Page MenuHomec4science

No OneTemporary

File Metadata

Created
Wed, Jun 25, 05:03
This file is larger than 256 KB, so syntax highlighting was skipped.
This document is not UTF8. It was detected as ISO-8859-1 (Latin 1) and converted to UTF8 for display.
diff --git a/.metadata/.bak_0.log b/.metadata/.bak_0.log
index 1e67987..fa2e2da 100644
--- a/.metadata/.bak_0.log
+++ b/.metadata/.bak_0.log
@@ -1,13673 +1,12240 @@
-!SESSION 2014-09-25 14:52:30.608 -----------------------------------------------
-eclipse.buildId=M20130204-1200
-java.version=1.7.0_45
-java.vendor=Oracle Corporation
-BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
-Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
-Command-line arguments: -data C:\Users\raisaro\workspace\yussef -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
-
-!ENTRY org.eclipse.egit.ui 2 0 2014-09-25 14:53:29.560
-!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
-Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
-The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
-this system level configuration. The Git installation location can be configured on the
-Team > Git > Configuration preference page's 'System Settings' tab.
-This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-
-!ENTRY org.eclipse.egit.ui 2 0 2014-09-25 14:53:29.561
-!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
-user global configuration and to define the default location to store repositories: 'C:\Users\raisaro'. If this is
-not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
-EGit might behave differently since they see different configuration options.
-This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-
-!ENTRY org.eclipse.ui 2 2 2014-09-25 14:53:34.061
-!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
-!SESSION 2014-09-26 14:31:04.334 -----------------------------------------------
+!SESSION 2015-01-08 09:16:53.391 -----------------------------------------------
eclipse.buildId=M20130204-1200
java.version=1.7.0_45
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
-!ENTRY org.eclipse.egit.ui 2 0 2014-09-26 14:31:15.702
-!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
-Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
-The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
-this system level configuration. The Git installation location can be configured on the
-Team > Git > Configuration preference page's 'System Settings' tab.
-This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-
-!ENTRY org.eclipse.egit.ui 2 0 2014-09-26 14:31:15.703
-!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
-user global configuration and to define the default location to store repositories: 'C:\Users\raisaro'. If this is
-not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
-EGit might behave differently since they see different configuration options.
-This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-
-!ENTRY org.eclipse.ui 2 2 2014-09-26 14:31:38.333
-!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
-!SESSION 2014-09-29 09:46:15.062 -----------------------------------------------
-eclipse.buildId=M20130204-1200
-java.version=1.7.0_45
-java.vendor=Oracle Corporation
-BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
-Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
-Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
+This is a continuation of log file C:\Users\raisaro\workspace\yussef\.metadata\.bak_0.log
+Created Time: 2015-01-08 09:17:08.649
-!ENTRY org.eclipse.egit.ui 2 0 2014-09-29 09:46:26.538
+!ENTRY org.eclipse.egit.ui 2 0 2015-01-08 09:17:08.649
!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
this system level configuration. The Git installation location can be configured on the
Team > Git > Configuration preference page's 'System Settings' tab.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-!ENTRY org.eclipse.egit.ui 2 0 2014-09-29 09:46:26.539
+!ENTRY org.eclipse.egit.ui 2 0 2015-01-08 09:17:08.659
!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
user global configuration and to define the default location to store repositories: 'C:\Users\raisaro'. If this is
not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
EGit might behave differently since they see different configuration options.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-!ENTRY org.eclipse.ui 2 2 2014-09-29 09:47:50.794
+!ENTRY org.eclipse.ui 2 2 2015-01-08 09:18:34.574
!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
-!SESSION 2014-10-28 09:27:09.641 -----------------------------------------------
+!SESSION 2015-01-08 10:49:27.724 -----------------------------------------------
eclipse.buildId=M20130204-1200
java.version=1.7.0_45
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
Command-line arguments: -data C:\Users\raisaro\workspace\yussef -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
-!ENTRY org.eclipse.egit.ui 2 0 2014-10-28 09:27:16.507
+!ENTRY org.eclipse.egit.ui 2 0 2015-01-08 10:49:36.376
!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
this system level configuration. The Git installation location can be configured on the
Team > Git > Configuration preference page's 'System Settings' tab.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-!ENTRY org.eclipse.egit.ui 2 0 2014-10-28 09:27:16.507
+!ENTRY org.eclipse.egit.ui 2 0 2015-01-08 10:49:36.386
!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
user global configuration and to define the default location to store repositories: 'C:\Users\raisaro'. If this is
not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
EGit might behave differently since they see different configuration options.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-!ENTRY org.eclipse.ui 2 2 2014-10-28 09:27:28.225
+!ENTRY org.eclipse.ui 2 2 2015-01-08 10:53:40.807
!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
-
-!ENTRY org.eclipse.e4.ui.workbench 4 0 2014-10-28 09:27:36.339
-!MESSAGE Error setting focus to : org.eclipse.e4.ui.model.application.ui.basic.impl.PartImpl GUI.java
-!STACK 0
-org.eclipse.swt.SWTException: Widget is disposed
- at org.eclipse.swt.SWT.error(SWT.java:4361)
- at org.eclipse.swt.SWT.error(SWT.java:4276)
- at org.eclipse.swt.SWT.error(SWT.java:4247)
- at org.eclipse.swt.widgets.Widget.error(Widget.java:468)
- at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:340)
- at org.eclipse.swt.widgets.Control.setFocus(Control.java:3301)
- at org.eclipse.swt.widgets.Composite.setFocus(Composite.java:1038)
- at org.eclipse.swt.widgets.Composite.setFocus(Composite.java:1038)
- at org.eclipse.ui.texteditor.StatusTextEditor.setFocus(StatusTextEditor.java:120)
- at org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.setFocus(JavaEditor.java:2389)
- at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.delegateSetFocus(CompatibilityPart.java:189)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
- at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:231)
- at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:237)
- at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:208)
- at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:106)
- at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer$2.setFocus(ContributedPartRenderer.java:101)
- at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer$9.mouseUp(StackRenderer.java:942)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:220)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-!SESSION 2014-10-28 10:00:24.366 -----------------------------------------------
+!SESSION 2015-01-08 14:12:53.962 -----------------------------------------------
eclipse.buildId=M20130204-1200
java.version=1.7.0_45
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
-!ENTRY org.eclipse.egit.ui 2 0 2014-10-28 10:00:33.398
+!ENTRY org.eclipse.egit.ui 2 0 2015-01-08 14:13:04.539
!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
this system level configuration. The Git installation location can be configured on the
Team > Git > Configuration preference page's 'System Settings' tab.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-!ENTRY org.eclipse.egit.ui 2 0 2014-10-28 10:00:33.398
+!ENTRY org.eclipse.egit.ui 2 0 2015-01-08 14:13:04.539
!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
user global configuration and to define the default location to store repositories: 'C:\Users\raisaro'. If this is
not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
EGit might behave differently since they see different configuration options.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-!ENTRY org.eclipse.ui 2 2 2014-10-28 10:02:39.540
+!ENTRY org.eclipse.ui 2 2 2015-01-08 14:13:22.543
!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
-!SESSION 2014-10-29 15:58:51.471 -----------------------------------------------
+!SESSION 2015-01-08 15:45:43.788 -----------------------------------------------
eclipse.buildId=M20130204-1200
java.version=1.7.0_45
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
-!ENTRY org.eclipse.egit.ui 2 0 2014-10-29 15:59:05.913
+!ENTRY org.eclipse.egit.ui 2 0 2015-01-08 15:45:52.092
!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
this system level configuration. The Git installation location can be configured on the
Team > Git > Configuration preference page's 'System Settings' tab.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-!ENTRY org.eclipse.egit.ui 2 0 2014-10-29 15:59:05.913
+!ENTRY org.eclipse.egit.ui 2 0 2015-01-08 15:45:52.092
!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
user global configuration and to define the default location to store repositories: 'C:\Users\raisaro'. If this is
not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
EGit might behave differently since they see different configuration options.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-!ENTRY org.eclipse.ui 2 2 2014-10-29 16:01:01.606
+!ENTRY org.eclipse.ui 2 2 2015-01-08 17:05:07.044
!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
-!SESSION 2014-11-04 09:37:56.005 -----------------------------------------------
+!SESSION 2015-01-09 13:29:51.250 -----------------------------------------------
eclipse.buildId=M20130204-1200
java.version=1.7.0_45
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
-!ENTRY org.eclipse.egit.ui 2 0 2014-11-04 09:38:07.907
+!ENTRY org.eclipse.egit.ui 2 0 2015-01-09 13:30:03.162
!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
this system level configuration. The Git installation location can be configured on the
Team > Git > Configuration preference page's 'System Settings' tab.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-!ENTRY org.eclipse.egit.ui 2 0 2014-11-04 09:38:07.907
+!ENTRY org.eclipse.egit.ui 2 0 2015-01-09 13:30:03.162
!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
user global configuration and to define the default location to store repositories: 'C:\Users\raisaro'. If this is
not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
EGit might behave differently since they see different configuration options.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-!ENTRY org.eclipse.ui 2 2 2014-11-04 10:10:09.102
+!ENTRY org.eclipse.ui 2 2 2015-01-09 13:30:08.329
!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
-!SESSION 2014-11-04 13:47:38.243 -----------------------------------------------
+!SESSION 2015-01-09 14:03:28.900 -----------------------------------------------
eclipse.buildId=M20130204-1200
java.version=1.7.0_45
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
-!ENTRY org.eclipse.core.resources 2 10035 2014-11-04 13:47:41.097
-!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.
-
-!ENTRY org.eclipse.egit.ui 2 0 2014-11-04 13:47:53.764
+!ENTRY org.eclipse.egit.ui 2 0 2015-01-09 14:03:37.574
!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
this system level configuration. The Git installation location can be configured on the
Team > Git > Configuration preference page's 'System Settings' tab.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-!ENTRY org.eclipse.egit.ui 2 0 2014-11-04 13:47:53.764
+!ENTRY org.eclipse.egit.ui 2 0 2015-01-09 14:03:37.589
!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
user global configuration and to define the default location to store repositories: 'C:\Users\raisaro'. If this is
not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
EGit might behave differently since they see different configuration options.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-!ENTRY org.eclipse.ui 2 2 2014-11-04 17:43:09.810
+!ENTRY org.eclipse.ui 2 2 2015-01-09 14:03:42.413
!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
-!SESSION 2014-11-06 09:19:22.585 -----------------------------------------------
+!SESSION 2015-01-22 17:04:11.333 -----------------------------------------------
eclipse.buildId=M20130204-1200
java.version=1.7.0_45
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
-!ENTRY org.eclipse.osgi 4 0 2014-11-06 09:19:28.649
-!MESSAGE Application error
-!STACK 1
-org.eclipse.swt.SWTError: No more handles
- at org.eclipse.swt.SWT.error(SWT.java:4387)
- at org.eclipse.swt.SWT.error(SWT.java:4276)
- at org.eclipse.swt.SWT.error(SWT.java:4247)
- at org.eclipse.swt.widgets.Widget.error(Widget.java:468)
- at org.eclipse.swt.widgets.Control.createHandle(Control.java:704)
- at org.eclipse.swt.widgets.Composite.createHandle(Composite.java:305)
- at org.eclipse.swt.widgets.Control.createWidget(Control.java:744)
- at org.eclipse.swt.widgets.Scrollable.createWidget(Scrollable.java:134)
- at org.eclipse.swt.widgets.Control.<init>(Control.java:112)
- at org.eclipse.swt.widgets.Scrollable.<init>(Scrollable.java:75)
- at org.eclipse.swt.widgets.Composite.<init>(Composite.java:95)
- at org.eclipse.ui.splash.BasicSplashHandler.getBundleProgressMonitor(BasicSplashHandler.java:159)
- at org.eclipse.ui.splash.BasicSplashHandler.getContent(BasicSplashHandler.java:265)
- at org.eclipse.ui.internal.splash.EclipseSplashHandler.init(EclipseSplashHandler.java:84)
- at org.eclipse.ui.internal.Workbench$6.run(Workbench.java:751)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
- at org.eclipse.ui.internal.Workbench.createSplashWrapper(Workbench.java:772)
- at org.eclipse.ui.internal.Workbench.access$5(Workbench.java:690)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:568)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-!SESSION 2014-11-06 14:11:39.626 -----------------------------------------------
-eclipse.buildId=M20130204-1200
-java.version=1.7.0_45
-java.vendor=Oracle Corporation
-BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
-Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
-Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
-
-!ENTRY org.eclipse.egit.ui 2 0 2014-11-06 14:11:50.918
+!ENTRY org.eclipse.egit.ui 2 0 2015-01-22 17:04:24.913
!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
this system level configuration. The Git installation location can be configured on the
Team > Git > Configuration preference page's 'System Settings' tab.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-!ENTRY org.eclipse.egit.ui 2 0 2014-11-06 14:11:50.918
+!ENTRY org.eclipse.egit.ui 2 0 2015-01-22 17:04:24.926
!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
user global configuration and to define the default location to store repositories: 'C:\Users\raisaro'. If this is
not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
EGit might behave differently since they see different configuration options.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-!ENTRY org.eclipse.ui 2 2 2014-11-06 14:13:08.021
+!ENTRY org.eclipse.ui 2 2 2015-01-22 17:13:04.912
!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
-!SESSION 2014-11-10 14:39:02.706 -----------------------------------------------
+!SESSION 2015-01-26 09:55:36.746 -----------------------------------------------
eclipse.buildId=M20130204-1200
java.version=1.7.0_45
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
-!ENTRY org.eclipse.egit.ui 2 0 2014-11-10 14:39:14.406
+!ENTRY org.eclipse.egit.ui 2 0 2015-01-26 09:55:50.384
!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
this system level configuration. The Git installation location can be configured on the
Team > Git > Configuration preference page's 'System Settings' tab.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-!ENTRY org.eclipse.egit.ui 2 0 2014-11-10 14:39:14.406
+!ENTRY org.eclipse.egit.ui 2 0 2015-01-26 09:55:50.387
!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
user global configuration and to define the default location to store repositories: 'C:\Users\raisaro'. If this is
not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
EGit might behave differently since they see different configuration options.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-!ENTRY org.eclipse.ui 2 2 2014-11-10 15:15:03.490
+!ENTRY org.eclipse.ui 2 2 2015-01-26 10:12:04.629
!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
-!ENTRY org.eclipse.equinox.event 4 0 2014-11-10 15:18:43.873
-!MESSAGE Exception while dispatching event org.osgi.service.event.Event [topic=org/eclipse/e4/ui/model/application/ApplicationElement/tags/REMOVE] to handler org.eclipse.e4.ui.services.internal.events.UIEventHandler@3ea150e
+!ENTRY org.eclipse.ui 4 4 2015-01-26 10:12:07.562
+!MESSAGE Could not create action delegate for id: org.eclipse.jdt.debug.ui.actions.ManageBreakpointRulerAction
+
+!ENTRY org.eclipse.equinox.registry 4 1 2015-01-26 10:12:07.563
+!MESSAGE Plug-in org.eclipse.wb.core.java was unable to load class org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate.
!STACK 0
-java.lang.NullPointerException
- at org.eclipse.e4.ui.workbench.addons.minmax.MinMaxAddon.restore(MinMaxAddon.java:578)
- at org.eclipse.e4.ui.workbench.addons.minmax.MinMaxAddon$8.handleEvent(MinMaxAddon.java:395)
+java.lang.ClassNotFoundException: org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
+ at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
+ at java.lang.ClassLoader.loadClass(Unknown Source)
+ at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
+ at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
+ at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
+ at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
+ at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
+ at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
+ at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
+ at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:265)
+ at org.eclipse.ui.internal.PluginAction.createDelegate(PluginAction.java:122)
+ at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:275)
+ at org.eclipse.ui.internal.PluginAction.<init>(PluginAction.java:112)
+ at org.eclipse.ui.internal.PartPluginAction.<init>(PartPluginAction.java:29)
+ at org.eclipse.ui.internal.EditorPluginAction.<init>(EditorPluginAction.java:32)
+ at org.eclipse.ui.internal.ActionDescriptor.createAction(ActionDescriptor.java:262)
+ at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:176)
+ at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:103)
+ at org.eclipse.ui.internal.EditorActionBuilder.createActionDescriptor(EditorActionBuilder.java:41)
+ at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:161)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElementChildren(RegistryReader.java:133)
+ at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readExtension(RegistryReader.java:155)
+ at org.eclipse.ui.internal.registry.RegistryReader.readRegistry(RegistryReader.java:176)
+ at org.eclipse.ui.internal.PluginActionBuilder.readContributions(PluginActionBuilder.java:115)
+ at org.eclipse.ui.internal.EditorActionBuilder.readActionExtensions(EditorActionBuilder.java:58)
+ at org.eclipse.ui.internal.EditorReference.createEditorActionBars(EditorReference.java:446)
+ at org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:356)
+ at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:301)
+ at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+ at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
+ at java.lang.reflect.Method.invoke(Unknown Source)
+ at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:861)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:841)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:113)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:321)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:242)
+ at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:161)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
+ at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:141)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1115)
+ at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer$1.handleEvent(LazyStackRenderer.java:67)
at org.eclipse.e4.ui.services.internal.events.UIEventHandler$1.run(UIEventHandler.java:41)
at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
at org.eclipse.e4.ui.internal.workbench.swt.E4Application$1.syncExec(E4Application.java:187)
at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:38)
at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:197)
at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:197)
at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:135)
at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:78)
at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:39)
at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:80)
at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:58)
at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:374)
- at org.eclipse.emf.ecore.util.EcoreEList.dispatchNotification(EcoreEList.java:249)
- at org.eclipse.emf.common.notify.impl.NotifyingListImpl.remove(NotifyingListImpl.java:725)
- at org.eclipse.emf.common.util.AbstractEList.remove(AbstractEList.java:460)
- at org.eclipse.ui.internal.WorkbenchPage.setEditorAreaVisible(WorkbenchPage.java:3510)
- at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2995)
+ at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement(ElementContainerImpl.java:171)
+ at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.showElementInWindow(ModelServiceImpl.java:422)
+ at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.bringToTop(ModelServiceImpl.java:389)
+ at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.delegateBringToTop(PartServiceImpl.java:606)
+ at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.bringToTop(PartServiceImpl.java:332)
+ at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.showPart(PartServiceImpl.java:1029)
+ at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:3047)
at org.eclipse.ui.internal.WorkbenchPage.access$22(WorkbenchPage.java:2969)
at org.eclipse.ui.internal.WorkbenchPage$8.run(WorkbenchPage.java:2951)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2947)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2911)
- at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2894)
- at org.eclipse.jdt.internal.debug.ui.console.JavaStackTraceHyperlink.processSearchResult(JavaStackTraceHyperlink.java:166)
- at org.eclipse.jdt.internal.debug.ui.console.JavaStackTraceHyperlink$2.runInUIThread(JavaStackTraceHyperlink.java:143)
- at org.eclipse.ui.progress.UIJob$1.run(UIJob.java:95)
- at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
- at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
- at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4144)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
+ at org.eclipse.ui.actions.OpenWithMenu.openEditor(OpenWithMenu.java:338)
+ at org.eclipse.ui.actions.OpenWithMenu$2.handleEvent(OpenWithMenu.java:180)
+ at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
+ at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
+ at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
+ at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-!ENTRY org.eclipse.equinox.event 4 0 2014-11-10 15:19:00.159
-!MESSAGE Exception while dispatching event org.osgi.service.event.Event [topic=org/eclipse/e4/ui/model/application/ApplicationElement/tags/REMOVE] to handler org.eclipse.e4.ui.services.internal.events.UIEventHandler@3ea150e
-!STACK 0
-java.lang.NullPointerException
- at org.eclipse.e4.ui.workbench.addons.minmax.MinMaxAddon.restore(MinMaxAddon.java:578)
- at org.eclipse.e4.ui.workbench.addons.minmax.MinMaxAddon$8.handleEvent(MinMaxAddon.java:395)
- at org.eclipse.e4.ui.services.internal.events.UIEventHandler$1.run(UIEventHandler.java:41)
- at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
- at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
- at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
- at org.eclipse.e4.ui.internal.workbench.swt.E4Application$1.syncExec(E4Application.java:187)
- at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:38)
- at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:197)
- at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:197)
- at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)
- at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
- at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
- at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:135)
- at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:78)
- at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:39)
- at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:80)
- at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:58)
- at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:374)
- at org.eclipse.emf.ecore.util.EcoreEList.dispatchNotification(EcoreEList.java:249)
- at org.eclipse.emf.common.notify.impl.NotifyingListImpl.remove(NotifyingListImpl.java:725)
- at org.eclipse.emf.common.util.AbstractEList.remove(AbstractEList.java:460)
- at org.eclipse.e4.ui.workbench.addons.minmax.MinMaxAddon.unzoom(MinMaxAddon.java:733)
- at org.eclipse.e4.ui.workbench.addons.minmax.MinMaxAddon$8.handleEvent(MinMaxAddon.java:397)
- at org.eclipse.e4.ui.services.internal.events.UIEventHandler$1.run(UIEventHandler.java:41)
- at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
- at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
- at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
- at org.eclipse.e4.ui.internal.workbench.swt.E4Application$1.syncExec(E4Application.java:187)
- at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:38)
- at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:197)
- at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:197)
- at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)
- at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
- at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
- at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:135)
- at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:78)
- at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:39)
- at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:80)
- at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:58)
- at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:374)
- at org.eclipse.emf.ecore.util.EcoreEList.dispatchNotification(EcoreEList.java:249)
- at org.eclipse.emf.common.notify.impl.NotifyingListImpl.remove(NotifyingListImpl.java:725)
- at org.eclipse.emf.common.util.AbstractEList.remove(AbstractEList.java:460)
- at org.eclipse.e4.ui.workbench.addons.minmax.MinMaxAddon.setState(MinMaxAddon.java:280)
- at org.eclipse.e4.ui.workbench.addons.minmax.MinMaxAddon.access$2(MinMaxAddon.java:270)
- at org.eclipse.e4.ui.workbench.addons.minmax.MinMaxAddon$4.mouseDoubleClick(MinMaxAddon.java:235)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:196)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-!SESSION 2014-11-10 16:41:35.620 -----------------------------------------------
-eclipse.buildId=M20130204-1200
-java.version=1.7.0_45
-java.vendor=Oracle Corporation
-BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
-Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
-Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
-
-!ENTRY org.eclipse.egit.ui 2 0 2014-11-10 16:41:43.047
-!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
-Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
-The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
-this system level configuration. The Git installation location can be configured on the
-Team > Git > Configuration preference page's 'System Settings' tab.
-This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-
-!ENTRY org.eclipse.egit.ui 2 0 2014-11-10 16:41:43.047
-!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
-user global configuration and to define the default location to store repositories: 'C:\Users\raisaro'. If this is
-not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
-EGit might behave differently since they see different configuration options.
-This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-
-!ENTRY org.eclipse.jdt.ui 4 10001 2014-11-10 16:42:59.135
-!MESSAGE Internal Error
-!STACK 1
-Java Model Exception: Java Model Status [Unknown javadoc format for Logger {key=Ljava/util/logging/Logger;} [in Logger.class [in java.util.logging [in C:\Program Files\Java\jre7\lib\rt.jar]]]]
- at org.eclipse.jdt.internal.core.JavadocContents.getTypeDoc(JavadocContents.java:77)
- at org.eclipse.jdt.internal.core.BinaryType.getAttachedJavadoc(BinaryType.java:997)
- at org.eclipse.jdt.internal.ui.text.javadoc.JavadocContentAccess2.getHTMLContent(JavadocContentAccess2.java:463)
- at org.eclipse.jdt.internal.ui.text.java.hover.JavadocHover.getHoverInfo(JavadocHover.java:619)
- at org.eclipse.jdt.internal.ui.text.java.hover.JavadocHover.internalGetHoverInfo(JavadocHover.java:565)
- at org.eclipse.jdt.internal.ui.text.java.hover.JavadocHover.getHoverInfo2(JavadocHover.java:557)
- at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:163)
- at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:129)
- at org.eclipse.jdt.internal.ui.text.java.hover.JavaEditorTextHoverProxy.getHoverInfo2(JavaEditorTextHoverProxy.java:85)
- at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
-!SUBENTRY 1 org.eclipse.jdt.core 4 1009 2014-11-10 16:42:59.135
-!MESSAGE Unknown javadoc format for Logger {key=Ljava/util/logging/Logger;} [in Logger.class [in java.util.logging [in C:\Program Files\Java\jre7\lib\rt.jar]]]
-
-!ENTRY org.eclipse.jdt.ui 4 10001 2014-11-10 16:53:38.358
-!MESSAGE Internal Error
-!STACK 1
-Java Model Exception: Java Model Status [Unknown javadoc format for LookAndFeelInfo {key=Ljavax/swing/UIManager$LookAndFeelInfo;} [in UIManager$LookAndFeelInfo.class [in javax.swing [in C:\Program Files\Java\jre7\lib\rt.jar]]]]
- at org.eclipse.jdt.internal.core.JavadocContents.getTypeDoc(JavadocContents.java:77)
- at org.eclipse.jdt.internal.core.BinaryType.getAttachedJavadoc(BinaryType.java:997)
- at org.eclipse.jdt.internal.ui.text.javadoc.JavadocContentAccess2.getHTMLContent(JavadocContentAccess2.java:463)
- at org.eclipse.jdt.internal.ui.text.java.hover.JavadocHover.getHoverInfo(JavadocHover.java:619)
- at org.eclipse.jdt.internal.ui.text.java.hover.JavadocHover.internalGetHoverInfo(JavadocHover.java:565)
- at org.eclipse.jdt.internal.ui.text.java.hover.JavadocHover.getHoverInfo2(JavadocHover.java:557)
- at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:163)
- at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:129)
- at org.eclipse.jdt.internal.ui.text.java.hover.JavaEditorTextHoverProxy.getHoverInfo2(JavaEditorTextHoverProxy.java:85)
- at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
-!SUBENTRY 1 org.eclipse.jdt.core 4 1009 2014-11-10 16:53:38.358
-!MESSAGE Unknown javadoc format for LookAndFeelInfo {key=Ljavax/swing/UIManager$LookAndFeelInfo;} [in UIManager$LookAndFeelInfo.class [in javax.swing [in C:\Program Files\Java\jre7\lib\rt.jar]]]
-
-!ENTRY org.eclipse.ui 2 2 2014-11-10 17:02:33.406
-!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
-
-!ENTRY org.eclipse.ui 4 4 2014-11-10 17:02:39.820
-!MESSAGE Referenced part does not exist yet: org.eclipse.ui.views.ProblemView.
-!SESSION 2014-11-11 09:35:34.567 -----------------------------------------------
-eclipse.buildId=M20130204-1200
-java.version=1.7.0_45
-java.vendor=Oracle Corporation
-BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
-Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
-Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
-
-!ENTRY org.eclipse.egit.ui 2 0 2014-11-11 09:35:48.014
-!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
-Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
-The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
-this system level configuration. The Git installation location can be configured on the
-Team > Git > Configuration preference page's 'System Settings' tab.
-This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-
-!ENTRY org.eclipse.egit.ui 2 0 2014-11-11 09:35:48.014
-!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
-user global configuration and to define the default location to store repositories: 'C:\Users\raisaro'. If this is
-not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
-EGit might behave differently since they see different configuration options.
-This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-
-!ENTRY org.eclipse.jdt.core 4 4 2014-11-28 12:10:54.733
-!MESSAGE Background Indexer Crash Recovery
-!STACK 0
-java.lang.OutOfMemoryError: Requested array size exceeds VM limit
-!SESSION 2014-12-04 14:09:37.799 -----------------------------------------------
-eclipse.buildId=M20130204-1200
-java.version=1.7.0_45
-java.vendor=Oracle Corporation
-BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
-Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
-Command-line arguments: -data C:\Users\raisaro\workspace\yussef -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
-
-!ENTRY org.eclipse.egit.ui 2 0 2014-12-04 14:09:44.917
-!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
-Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
-The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
-this system level configuration. The Git installation location can be configured on the
-Team > Git > Configuration preference page's 'System Settings' tab.
-This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-
-!ENTRY org.eclipse.egit.ui 2 0 2014-12-04 14:09:44.917
-!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
-user global configuration and to define the default location to store repositories: 'C:\Users\raisaro'. If this is
-not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
-EGit might behave differently since they see different configuration options.
-This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-
-!ENTRY org.eclipse.ui 2 2 2014-12-04 14:10:01.110
-!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
-!SESSION 2014-12-12 10:23:07.587 -----------------------------------------------
-eclipse.buildId=M20130204-1200
-java.version=1.7.0_45
-java.vendor=Oracle Corporation
-BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
-Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
-Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
-
-!ENTRY org.eclipse.egit.ui 2 0 2014-12-12 10:23:19.369
-!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
-Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
-The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
-this system level configuration. The Git installation location can be configured on the
-Team > Git > Configuration preference page's 'System Settings' tab.
-This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-
-!ENTRY org.eclipse.egit.ui 2 0 2014-12-12 10:23:19.379
-!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
-user global configuration and to define the default location to store repositories: 'C:\Users\raisaro'. If this is
-not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
-EGit might behave differently since they see different configuration options.
-This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-
-!ENTRY org.eclipse.ui 2 2 2014-12-12 10:34:30.671
-!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
-!SESSION 2014-12-12 17:47:48.644 -----------------------------------------------
-eclipse.buildId=M20130204-1200
-java.version=1.7.0_45
-java.vendor=Oracle Corporation
-BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
-Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
-Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
-
-!ENTRY org.eclipse.egit.ui 2 0 2014-12-12 17:47:57.833
-!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
-Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
-The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
-this system level configuration. The Git installation location can be configured on the
-Team > Git > Configuration preference page's 'System Settings' tab.
-This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-
-!ENTRY org.eclipse.egit.ui 2 0 2014-12-12 17:47:57.833
-!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
-user global configuration and to define the default location to store repositories: 'C:\Users\raisaro'. If this is
-not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
-EGit might behave differently since they see different configuration options.
-This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-
-!ENTRY org.eclipse.ui 2 2 2014-12-12 17:55:45.412
-!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
-!SESSION 2014-12-15 09:50:26.242 -----------------------------------------------
-eclipse.buildId=M20130204-1200
-java.version=1.7.0_45
-java.vendor=Oracle Corporation
-BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
-Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
-Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
-
-!ENTRY org.eclipse.egit.ui 2 0 2014-12-15 09:50:38.333
-!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
-Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
-The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
-this system level configuration. The Git installation location can be configured on the
-Team > Git > Configuration preference page's 'System Settings' tab.
-This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-
-!ENTRY org.eclipse.egit.ui 2 0 2014-12-15 09:50:38.343
-!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
-user global configuration and to define the default location to store repositories: 'C:\Users\raisaro'. If this is
-not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
-EGit might behave differently since they see different configuration options.
-This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-
-!ENTRY org.eclipse.ui 2 2 2014-12-15 10:50:13.472
-!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
-!SESSION 2014-12-15 11:42:36.556 -----------------------------------------------
-eclipse.buildId=M20130204-1200
-java.version=1.7.0_45
-java.vendor=Oracle Corporation
-BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
-Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
-Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
-
-!ENTRY org.eclipse.egit.ui 2 0 2014-12-15 11:42:48.464
-!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
-Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
-The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
-this system level configuration. The Git installation location can be configured on the
-Team > Git > Configuration preference page's 'System Settings' tab.
-This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-
-!ENTRY org.eclipse.egit.ui 2 0 2014-12-15 11:42:48.474
-!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
-user global configuration and to define the default location to store repositories: 'C:\Users\raisaro'. If this is
-not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
-EGit might behave differently since they see different configuration options.
-This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-
-!ENTRY org.eclipse.ui 2 2 2014-12-15 11:44:16.013
-!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
-
-!ENTRY org.eclipse.ui 4 4 2014-12-15 11:44:19.583
-!MESSAGE Could not create action delegate for id: org.eclipse.jdt.debug.ui.actions.ManageBreakpointRulerAction
-
-!ENTRY org.eclipse.equinox.registry 4 1 2014-12-15 11:44:19.583
-!MESSAGE Plug-in org.eclipse.wb.core.java was unable to load class org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate.
+!ENTRY org.eclipse.ui 4 4 2015-01-26 10:13:51.865
+!MESSAGE Could not create action delegate for id: org.eclipse.jdt.debug.ui.actions.ManageBreakpointRulerAction
+
+!ENTRY org.eclipse.equinox.registry 4 1 2015-01-26 10:13:51.866
+!MESSAGE Plug-in org.eclipse.wb.core.java was unable to load class org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate.
!STACK 0
java.lang.ClassNotFoundException: org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:265)
at org.eclipse.ui.internal.PluginAction.createDelegate(PluginAction.java:122)
at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:275)
at org.eclipse.ui.internal.PluginAction.<init>(PluginAction.java:112)
at org.eclipse.ui.internal.PartPluginAction.<init>(PartPluginAction.java:29)
at org.eclipse.ui.internal.EditorPluginAction.<init>(EditorPluginAction.java:32)
at org.eclipse.ui.internal.ActionDescriptor.createAction(ActionDescriptor.java:262)
at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:176)
at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:103)
at org.eclipse.ui.internal.EditorActionBuilder.createActionDescriptor(EditorActionBuilder.java:41)
at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:161)
at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
at org.eclipse.ui.internal.registry.RegistryReader.readElementChildren(RegistryReader.java:133)
at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:144)
at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
at org.eclipse.ui.internal.registry.RegistryReader.readExtension(RegistryReader.java:155)
at org.eclipse.ui.internal.registry.RegistryReader.readRegistry(RegistryReader.java:176)
at org.eclipse.ui.internal.PluginActionBuilder.readContributions(PluginActionBuilder.java:115)
at org.eclipse.ui.internal.EditorActionBuilder.readActionExtensions(EditorActionBuilder.java:58)
at org.eclipse.ui.internal.EditorReference.createEditorActionBars(EditorReference.java:446)
at org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:356)
at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:301)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:861)
at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:841)
at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:113)
at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:321)
at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:242)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:161)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:141)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
- at org.eclipse.e4.ui.internal.workbench.PartServiceImpl$1.handleEvent(PartServiceImpl.java:92)
- at org.eclipse.e4.ui.services.internal.events.UIEventHandler$1.run(UIEventHandler.java:41)
- at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
- at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
- at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
- at org.eclipse.e4.ui.internal.workbench.swt.E4Application$1.syncExec(E4Application.java:187)
- at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:38)
- at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:197)
- at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:197)
- at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)
- at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
- at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
- at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:135)
- at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:78)
- at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:39)
- at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:80)
- at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:58)
- at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:374)
- at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement(ElementContainerImpl.java:171)
- at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.showElementInWindow(ModelServiceImpl.java:422)
- at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.bringToTop(ModelServiceImpl.java:389)
- at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.delegateBringToTop(PartServiceImpl.java:606)
- at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.bringToTop(PartServiceImpl.java:332)
- at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.showPart(PartServiceImpl.java:1029)
- at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:3047)
+ at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.createElement(PartServiceImpl.java:1071)
+ at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.showPart(PartServiceImpl.java:1033)
+ at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:464)
+ at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:269)
+ at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2999)
at org.eclipse.ui.internal.WorkbenchPage.access$22(WorkbenchPage.java:2969)
at org.eclipse.ui.internal.WorkbenchPage$8.run(WorkbenchPage.java:2951)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2947)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2911)
at org.eclipse.ui.actions.OpenWithMenu.openEditor(OpenWithMenu.java:338)
at org.eclipse.ui.actions.OpenWithMenu$2.handleEvent(OpenWithMenu.java:180)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
+!SESSION 2015-01-27 10:29:50.689 -----------------------------------------------
+eclipse.buildId=M20130204-1200
+java.version=1.7.0_45
+java.vendor=Oracle Corporation
+BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
+Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
+Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
+
+!ENTRY org.eclipse.egit.ui 2 0 2015-01-27 10:30:03.566
+!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
+Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
+The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
+this system level configuration. The Git installation location can be configured on the
+Team > Git > Configuration preference page's 'System Settings' tab.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
+
+!ENTRY org.eclipse.egit.ui 2 0 2015-01-27 10:30:03.568
+!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
+user global configuration and to define the default location to store repositories: 'C:\Users\raisaro'. If this is
+not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
+EGit might behave differently since they see different configuration options.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-!ENTRY org.eclipse.ui 4 4 2014-12-15 11:48:52.155
+!ENTRY org.eclipse.ui 4 4 2015-01-27 10:34:23.351
!MESSAGE Could not create action delegate for id: org.eclipse.jdt.debug.ui.actions.ManageBreakpointRulerAction
-!ENTRY org.eclipse.equinox.registry 4 1 2014-12-15 11:48:52.155
+!ENTRY org.eclipse.equinox.registry 4 1 2015-01-27 10:34:23.352
!MESSAGE Plug-in org.eclipse.wb.core.java was unable to load class org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate.
!STACK 0
java.lang.ClassNotFoundException: org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:265)
at org.eclipse.ui.internal.PluginAction.createDelegate(PluginAction.java:122)
at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:275)
at org.eclipse.ui.internal.PluginAction.<init>(PluginAction.java:112)
at org.eclipse.ui.internal.PartPluginAction.<init>(PartPluginAction.java:29)
at org.eclipse.ui.internal.EditorPluginAction.<init>(EditorPluginAction.java:32)
at org.eclipse.ui.internal.ActionDescriptor.createAction(ActionDescriptor.java:262)
at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:176)
at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:103)
at org.eclipse.ui.internal.EditorActionBuilder.createActionDescriptor(EditorActionBuilder.java:41)
at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:161)
at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
at org.eclipse.ui.internal.registry.RegistryReader.readElementChildren(RegistryReader.java:133)
at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:144)
at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
at org.eclipse.ui.internal.registry.RegistryReader.readExtension(RegistryReader.java:155)
at org.eclipse.ui.internal.registry.RegistryReader.readRegistry(RegistryReader.java:176)
at org.eclipse.ui.internal.PluginActionBuilder.readContributions(PluginActionBuilder.java:115)
at org.eclipse.ui.internal.EditorActionBuilder.readActionExtensions(EditorActionBuilder.java:58)
at org.eclipse.ui.internal.EditorReference.createEditorActionBars(EditorReference.java:446)
at org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:356)
at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:301)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:861)
at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:841)
at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:113)
at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:321)
at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:242)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:161)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:141)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
- at org.eclipse.e4.ui.internal.workbench.PartServiceImpl$1.handleEvent(PartServiceImpl.java:92)
- at org.eclipse.e4.ui.services.internal.events.UIEventHandler$1.run(UIEventHandler.java:41)
- at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
- at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
- at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
- at org.eclipse.e4.ui.internal.workbench.swt.E4Application$1.syncExec(E4Application.java:187)
- at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:38)
- at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:197)
- at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:197)
- at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)
- at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
- at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
- at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:135)
- at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:78)
- at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:39)
- at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:80)
- at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:58)
- at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:374)
- at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement(ElementContainerImpl.java:171)
- at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.showElementInWindow(ModelServiceImpl.java:422)
- at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.bringToTop(ModelServiceImpl.java:389)
- at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.delegateBringToTop(PartServiceImpl.java:606)
- at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.bringToTop(PartServiceImpl.java:332)
- at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.showPart(PartServiceImpl.java:1029)
- at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:3047)
+ at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.createElement(PartServiceImpl.java:1071)
+ at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.showPart(PartServiceImpl.java:1033)
+ at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:464)
+ at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:269)
+ at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2999)
at org.eclipse.ui.internal.WorkbenchPage.access$22(WorkbenchPage.java:2969)
at org.eclipse.ui.internal.WorkbenchPage$8.run(WorkbenchPage.java:2951)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2947)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2911)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2902)
at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:373)
at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:179)
at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:249)
at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:228)
at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:275)
at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:251)
at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup.handleOpen(PackageExplorerActionGroup.java:376)
at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$4.open(PackageExplorerPart.java:538)
at org.eclipse.ui.OpenAndLinkWithEditorHelper$InternalListener.open(OpenAndLinkWithEditorHelper.java:48)
at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:866)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:864)
at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1152)
at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1256)
at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:275)
at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:269)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:309)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-!ENTRY org.eclipse.ui 4 4 2014-12-15 12:41:37.850
-!MESSAGE Could not create action delegate for id: org.eclipse.jdt.debug.ui.actions.ManageBreakpointRulerAction
+!ENTRY org.eclipse.ui 2 2 2015-01-27 10:34:37.938
+!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
-!ENTRY org.eclipse.equinox.registry 4 1 2014-12-15 12:41:37.850
-!MESSAGE Plug-in org.eclipse.wb.core.java was unable to load class org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate.
+!ENTRY org.eclipse.e4.ui.workbench 4 0 2015-01-27 10:41:34.708
+!MESSAGE Error setting focus to : org.eclipse.e4.ui.model.application.ui.basic.impl.PartImpl Buttons.java
!STACK 0
-java.lang.ClassNotFoundException: org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate
- at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
- at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
- at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
- at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
- at java.lang.ClassLoader.loadClass(Unknown Source)
- at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
- at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
- at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
- at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
- at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
- at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
- at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
- at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:265)
- at org.eclipse.ui.internal.PluginAction.createDelegate(PluginAction.java:122)
- at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:275)
- at org.eclipse.ui.internal.PluginAction.<init>(PluginAction.java:112)
+org.eclipse.swt.SWTException: Widget is disposed
+ at org.eclipse.swt.SWT.error(SWT.java:4361)
+ at org.eclipse.swt.SWT.error(SWT.java:4276)
+ at org.eclipse.swt.SWT.error(SWT.java:4247)
+ at org.eclipse.swt.widgets.Widget.error(Widget.java:468)
+ at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:340)
+ at org.eclipse.swt.widgets.Control.setFocus(Control.java:3301)
+ at org.eclipse.swt.widgets.Composite.setFocus(Composite.java:1038)
+ at org.eclipse.swt.widgets.Composite.setFocus(Composite.java:1038)
+ at org.eclipse.ui.texteditor.StatusTextEditor.setFocus(StatusTextEditor.java:120)
+ at org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.setFocus(JavaEditor.java:2389)
+ at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.delegateSetFocus(CompatibilityPart.java:189)
+ at sun.reflect.GeneratedMethodAccessor258.invoke(Unknown Source)
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
+ at java.lang.reflect.Method.invoke(Unknown Source)
+ at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:231)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:237)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:208)
+ at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:106)
+ at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer$2.setFocus(ContributedPartRenderer.java:101)
+ at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer$9.mouseUp(StackRenderer.java:942)
+ at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:220)
+ at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
+ at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
+ at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
+ at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
+ at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
+ at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
+ at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
+ at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
+ at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
+ at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
+ at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
+ at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
+ at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
+ at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
+ at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
+ at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
+ at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+ at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
+ at java.lang.reflect.Method.invoke(Unknown Source)
+ at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
+ at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
+ at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
+ at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
+
+!ENTRY org.eclipse.ui 4 4 2015-01-27 15:24:51.587
+!MESSAGE Could not create action delegate for id: org.eclipse.jdt.debug.ui.actions.ManageBreakpointRulerAction
+
+!ENTRY org.eclipse.equinox.registry 4 1 2015-01-27 15:24:51.587
+!MESSAGE Plug-in org.eclipse.wb.core.java was unable to load class org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate.
+!STACK 0
+java.lang.ClassNotFoundException: org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
+ at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
+ at java.lang.ClassLoader.loadClass(Unknown Source)
+ at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
+ at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
+ at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
+ at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
+ at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
+ at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
+ at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
+ at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:265)
+ at org.eclipse.ui.internal.PluginAction.createDelegate(PluginAction.java:122)
+ at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:275)
+ at org.eclipse.ui.internal.PluginAction.<init>(PluginAction.java:112)
at org.eclipse.ui.internal.PartPluginAction.<init>(PartPluginAction.java:29)
at org.eclipse.ui.internal.EditorPluginAction.<init>(EditorPluginAction.java:32)
at org.eclipse.ui.internal.ActionDescriptor.createAction(ActionDescriptor.java:262)
at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:176)
at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:103)
at org.eclipse.ui.internal.EditorActionBuilder.createActionDescriptor(EditorActionBuilder.java:41)
at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:161)
at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
at org.eclipse.ui.internal.registry.RegistryReader.readElementChildren(RegistryReader.java:133)
at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:144)
at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
at org.eclipse.ui.internal.registry.RegistryReader.readExtension(RegistryReader.java:155)
at org.eclipse.ui.internal.registry.RegistryReader.readRegistry(RegistryReader.java:176)
at org.eclipse.ui.internal.PluginActionBuilder.readContributions(PluginActionBuilder.java:115)
at org.eclipse.ui.internal.EditorActionBuilder.readActionExtensions(EditorActionBuilder.java:58)
at org.eclipse.ui.internal.EditorReference.createEditorActionBars(EditorReference.java:446)
at org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:356)
at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:301)
- at sun.reflect.GeneratedMethodAccessor224.invoke(Unknown Source)
+ at sun.reflect.GeneratedMethodAccessor261.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:861)
at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:841)
at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:113)
at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:321)
at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:242)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:161)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:141)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
- at org.eclipse.e4.ui.internal.workbench.PartServiceImpl$1.handleEvent(PartServiceImpl.java:92)
+ at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1115)
+ at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer$1.handleEvent(LazyStackRenderer.java:67)
at org.eclipse.e4.ui.services.internal.events.UIEventHandler$1.run(UIEventHandler.java:41)
at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
at org.eclipse.e4.ui.internal.workbench.swt.E4Application$1.syncExec(E4Application.java:187)
at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:38)
at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:197)
at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:197)
at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:135)
at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:78)
at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:39)
at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:80)
at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:58)
at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:374)
at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement(ElementContainerImpl.java:171)
at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.showElementInWindow(ModelServiceImpl.java:422)
at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.bringToTop(ModelServiceImpl.java:389)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.delegateBringToTop(PartServiceImpl.java:606)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.bringToTop(PartServiceImpl.java:332)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.showPart(PartServiceImpl.java:1029)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:3047)
at org.eclipse.ui.internal.WorkbenchPage.access$22(WorkbenchPage.java:2969)
at org.eclipse.ui.internal.WorkbenchPage$8.run(WorkbenchPage.java:2951)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2947)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2911)
- at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2902)
- at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:373)
- at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:179)
- at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:249)
- at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:228)
- at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:275)
- at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:251)
- at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup.handleOpen(PackageExplorerActionGroup.java:376)
- at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$4.open(PackageExplorerPart.java:538)
- at org.eclipse.ui.OpenAndLinkWithEditorHelper$InternalListener.open(OpenAndLinkWithEditorHelper.java:48)
- at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:866)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
- at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
- at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
- at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:864)
- at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1152)
- at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1256)
- at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:275)
- at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:269)
- at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:309)
+ at org.eclipse.ui.actions.OpenWithMenu.openEditor(OpenWithMenu.java:338)
+ at org.eclipse.ui.actions.OpenWithMenu$2.handleEvent(OpenWithMenu.java:180)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-!SESSION 2014-12-16 09:39:04.759 -----------------------------------------------
-eclipse.buildId=M20130204-1200
-java.version=1.7.0_45
-java.vendor=Oracle Corporation
-BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
-Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
-Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
-
-!ENTRY org.eclipse.egit.ui 2 0 2014-12-16 09:39:18.082
-!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
-Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
-The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
-this system level configuration. The Git installation location can be configured on the
-Team > Git > Configuration preference page's 'System Settings' tab.
-This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-
-!ENTRY org.eclipse.egit.ui 2 0 2014-12-16 09:39:18.084
-!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
-user global configuration and to define the default location to store repositories: 'C:\Users\raisaro'. If this is
-not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
-EGit might behave differently since they see different configuration options.
-This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-
-!ENTRY org.eclipse.ui 2 2 2014-12-16 10:24:30.204
-!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
-!SESSION 2014-12-17 11:50:11.409 -----------------------------------------------
-eclipse.buildId=M20130204-1200
-java.version=1.7.0_45
-java.vendor=Oracle Corporation
-BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
-Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
-Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
-
-!ENTRY org.eclipse.egit.ui 2 0 2014-12-17 12:13:10.072
-!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
-Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
-The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
-this system level configuration. The Git installation location can be configured on the
-Team > Git > Configuration preference page's 'System Settings' tab.
-This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-
-!ENTRY org.eclipse.egit.ui 2 0 2014-12-17 12:13:10.072
-!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
-user global configuration and to define the default location to store repositories: 'C:\Users\raisaro'. If this is
-not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
-EGit might behave differently since they see different configuration options.
-This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-!ENTRY org.eclipse.ui 2 2 2014-12-17 16:30:48.039
-!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
+!ENTRY org.eclipse.e4.ui.workbench 4 0 2015-01-27 16:49:18.773
+!MESSAGE
+!STACK 0
+org.eclipse.e4.core.di.InjectionException: org.eclipse.core.commands.NotHandledException: There is no handler to execute for command org.eclipse.ui.edit.paste
+ at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:63)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:231)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:212)
+ at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:131)
+ at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:171)
+ at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.executeCommand(KeyBindingDispatcher.java:277)
+ at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.press(KeyBindingDispatcher.java:496)
+ at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.processKeyEvent(KeyBindingDispatcher.java:547)
+ at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.filterKeySequenceBindings(KeyBindingDispatcher.java:368)
+ at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.access$0(KeyBindingDispatcher.java:314)
+ at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher$KeyDownFilter.handleEvent(KeyBindingDispatcher.java:83)
+ at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
+ at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1262)
+ at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1052)
+ at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
+ at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
+ at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1104)
+ at org.eclipse.swt.widgets.Text.sendKeyEvent(Text.java:1704)
+ at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1100)
+ at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1521)
+ at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:4640)
+ at org.eclipse.swt.widgets.Text.WM_CHAR(Text.java:2584)
+ at org.eclipse.swt.widgets.Control.windowProc(Control.java:4528)
+ at org.eclipse.swt.widgets.Text.windowProc(Text.java:2570)
+ at org.eclipse.swt.widgets.Display.windowProc(Display.java:4976)
+ at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
+ at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2546)
+ at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3756)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
+ at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
+ at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
+ at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
+ at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
+ at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
+ at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
+ at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
+ at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
+ at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
+ at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
+ at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
+ at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
+ at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+ at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
+ at java.lang.reflect.Method.invoke(Unknown Source)
+ at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
+ at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
+ at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
+ at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
+Caused by: org.eclipse.core.commands.NotHandledException: There is no handler to execute for command org.eclipse.ui.edit.paste
+ at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:84)
+ at sun.reflect.GeneratedMethodAccessor259.invoke(Unknown Source)
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
+ at java.lang.reflect.Method.invoke(Unknown Source)
+ at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
+ ... 49 more
-!ENTRY org.eclipse.ui 4 4 2014-12-17 16:30:50.592
+!ENTRY org.eclipse.ui 4 4 2015-01-27 17:52:52.015
!MESSAGE Could not create action delegate for id: org.eclipse.jdt.debug.ui.actions.ManageBreakpointRulerAction
-!ENTRY org.eclipse.equinox.registry 4 1 2014-12-17 16:30:50.602
+!ENTRY org.eclipse.equinox.registry 4 1 2015-01-27 17:52:52.016
!MESSAGE Plug-in org.eclipse.wb.core.java was unable to load class org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate.
!STACK 0
java.lang.ClassNotFoundException: org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:265)
at org.eclipse.ui.internal.PluginAction.createDelegate(PluginAction.java:122)
at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:275)
at org.eclipse.ui.internal.PluginAction.<init>(PluginAction.java:112)
at org.eclipse.ui.internal.PartPluginAction.<init>(PartPluginAction.java:29)
at org.eclipse.ui.internal.EditorPluginAction.<init>(EditorPluginAction.java:32)
at org.eclipse.ui.internal.ActionDescriptor.createAction(ActionDescriptor.java:262)
at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:176)
at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:103)
at org.eclipse.ui.internal.EditorActionBuilder.createActionDescriptor(EditorActionBuilder.java:41)
at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:161)
at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
at org.eclipse.ui.internal.registry.RegistryReader.readElementChildren(RegistryReader.java:133)
at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:144)
at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
at org.eclipse.ui.internal.registry.RegistryReader.readExtension(RegistryReader.java:155)
at org.eclipse.ui.internal.registry.RegistryReader.readRegistry(RegistryReader.java:176)
at org.eclipse.ui.internal.PluginActionBuilder.readContributions(PluginActionBuilder.java:115)
at org.eclipse.ui.internal.EditorActionBuilder.readActionExtensions(EditorActionBuilder.java:58)
at org.eclipse.ui.internal.EditorReference.createEditorActionBars(EditorReference.java:446)
at org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:356)
at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:301)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
+ at sun.reflect.GeneratedMethodAccessor261.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:861)
at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:841)
at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:113)
at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:321)
at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:242)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:161)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:141)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1115)
at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer$1.handleEvent(LazyStackRenderer.java:67)
at org.eclipse.e4.ui.services.internal.events.UIEventHandler$1.run(UIEventHandler.java:41)
at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
at org.eclipse.e4.ui.internal.workbench.swt.E4Application$1.syncExec(E4Application.java:187)
at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:38)
at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:197)
at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:197)
at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:135)
at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:78)
at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:39)
at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:80)
at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:58)
at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:374)
at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement(ElementContainerImpl.java:171)
at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.showElementInWindow(ModelServiceImpl.java:422)
at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.bringToTop(ModelServiceImpl.java:389)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.delegateBringToTop(PartServiceImpl.java:606)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.bringToTop(PartServiceImpl.java:332)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.showPart(PartServiceImpl.java:1029)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:3047)
at org.eclipse.ui.internal.WorkbenchPage.access$22(WorkbenchPage.java:2969)
at org.eclipse.ui.internal.WorkbenchPage$8.run(WorkbenchPage.java:2951)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2947)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2911)
- at org.eclipse.ui.actions.OpenWithMenu.openEditor(OpenWithMenu.java:338)
- at org.eclipse.ui.actions.OpenWithMenu$2.handleEvent(OpenWithMenu.java:180)
+ at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2902)
+ at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:373)
+ at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:179)
+ at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:249)
+ at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:228)
+ at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:275)
+ at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:251)
+ at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup.handleOpen(PackageExplorerActionGroup.java:376)
+ at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$4.open(PackageExplorerPart.java:538)
+ at org.eclipse.ui.OpenAndLinkWithEditorHelper$InternalListener.open(OpenAndLinkWithEditorHelper.java:48)
+ at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:866)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
+ at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
+ at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:864)
+ at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1152)
+ at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1256)
+ at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:275)
+ at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:269)
+ at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:309)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
+!SESSION 2015-01-28 09:13:42.159 -----------------------------------------------
+eclipse.buildId=M20130204-1200
+java.version=1.7.0_45
+java.vendor=Oracle Corporation
+BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
+Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
+Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
+
+!ENTRY org.eclipse.ui 4 4 2015-01-28 09:13:55.172
+!MESSAGE Could not create action delegate for id: org.eclipse.jdt.debug.ui.actions.ManageBreakpointRulerAction
-!ENTRY org.eclipse.wb.core 4 4 2014-12-17 16:42:14.939
-!MESSAGE Designer [1.5.2.r42x201302112024.201412171642]: 205 (Unable to parse source.).
- panel.setBorder(__WBP_NO_TYPE_BINDING.swing.BorderFactory.createLineBorder(new __WBP_NO_TYPE_BINDING.awt.Color(0, 0, 0))); line: 43 The method warnFailedTests(Diagnostic, ArrayList<TestName>) from the type GUI.GUIWorker is never used locally
-line: 44 The method displayError(String) from the type GUI.GUIWorker is never used locally
-line: 45 The method getSelectedTests() from the type GUI.GUIWorker is never used locally
-line: 45 Type safety: The expression of type ArrayList needs unchecked conversion to conform to ArrayList<String>
-line: 45 ArrayList is a raw type. References to generic type ArrayList<E> should be parameterized
-line: 46 The method getChildrenTests(TreeModel, Object) from the type GUI.GUIWorker is never used locally
-line: 46 Type safety: The expression of type ArrayList needs unchecked conversion to conform to ArrayList<String>
-line: 46 ArrayList is a raw type. References to generic type ArrayList<E> should be parameterized
-line: 52 LinkedList is a raw type. References to generic type LinkedList<E> should be parameterized
-line: 52 LinkedList is a raw type. References to generic type LinkedList<E> should be parameterized
-line: 53 HashMap is a raw type. References to generic type HashMap<K,V> should be parameterized
-line: 53 HashMap is a raw type. References to generic type HashMap<K,V> should be parameterized
-line: 62 The method initComponents() from the type GUI is never used locally
-line: 66 __WBP_NO_TYPE_BINDING cannot be resolved
-line: 66 __WBP_NO_TYPE_BINDING cannot be resolved to a type
-!STACK 0
-org.eclipse.wb.internal.core.utils.exception.DesignerException: 205 (Unable to parse source.).
- panel.setBorder(__WBP_NO_TYPE_BINDING.swing.BorderFactory.createLineBorder(new __WBP_NO_TYPE_BINDING.awt.Color(0, 0, 0))); line: 43 The method warnFailedTests(Diagnostic, ArrayList<TestName>) from the type GUI.GUIWorker is never used locally
-line: 44 The method displayError(String) from the type GUI.GUIWorker is never used locally
-line: 45 The method getSelectedTests() from the type GUI.GUIWorker is never used locally
-line: 45 Type safety: The expression of type ArrayList needs unchecked conversion to conform to ArrayList<String>
-line: 45 ArrayList is a raw type. References to generic type ArrayList<E> should be parameterized
-line: 46 The method getChildrenTests(TreeModel, Object) from the type GUI.GUIWorker is never used locally
-line: 46 Type safety: The expression of type ArrayList needs unchecked conversion to conform to ArrayList<String>
-line: 46 ArrayList is a raw type. References to generic type ArrayList<E> should be parameterized
-line: 52 LinkedList is a raw type. References to generic type LinkedList<E> should be parameterized
-line: 52 LinkedList is a raw type. References to generic type LinkedList<E> should be parameterized
-line: 53 HashMap is a raw type. References to generic type HashMap<K,V> should be parameterized
-line: 53 HashMap is a raw type. References to generic type HashMap<K,V> should be parameterized
-line: 62 The method initComponents() from the type GUI is never used locally
-line: 66 __WBP_NO_TYPE_BINDING cannot be resolved
-line: 66 __WBP_NO_TYPE_BINDING cannot be resolved to a type
- at org.eclipse.wb.internal.core.utils.ast.AstParser.parseStatement(AstParser.java:162)
- at org.eclipse.wb.internal.core.utils.ast.AstEditor.addStatement(AstEditor.java:1625)
- at org.eclipse.wb.internal.core.utils.ast.AstEditor.addStatement(AstEditor.java:1579)
- at org.eclipse.wb.core.model.JavaInfo.addExpressionStatement(JavaInfo.java:968)
- at org.eclipse.wb.core.model.JavaInfo.addMethodInvocation(JavaInfo.java:932)
- at org.eclipse.wb.core.model.JavaInfo.addMethodInvocation(JavaInfo.java:907)
- at org.eclipse.wb.internal.core.model.property.accessor.SetterAccessor$5.run(SetterAccessor.java:147)
- at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.run(ExecutionUtils.java:324)
- at org.eclipse.wb.internal.core.model.property.accessor.SetterAccessor.setExpression(SetterAccessor.java:145)
- at org.eclipse.wb.internal.core.model.property.GenericPropertyImpl.setExpressionUsingAccessor(GenericPropertyImpl.java:341)
- at org.eclipse.wb.internal.core.model.property.GenericPropertyImpl.setExpression(GenericPropertyImpl.java:300)
- at org.eclipse.wb.internal.core.model.clipboard.PropertiesClipboardCommand.execute(PropertiesClipboardCommand.java:62)
- at org.eclipse.wb.internal.core.model.clipboard.JavaInfoMemento.executeCommands(JavaInfoMemento.java:226)
- at org.eclipse.wb.internal.core.model.clipboard.JavaInfoMemento.apply(JavaInfoMemento.java:218)
- at org.eclipse.wb.internal.core.model.clipboard.ComponentInfoMemento.apply(ComponentInfoMemento.java:83)
- at org.eclipse.wb.internal.core.model.clipboard.JavaInfoMemento.apply(JavaInfoMemento.java:91)
- at org.eclipse.wb.internal.core.model.util.GlobalStateJava$4$1.executeEdit(GlobalStateJava.java:209)
- at org.eclipse.wb.core.gef.command.EditCommand$1.run(EditCommand.java:52)
- at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.run(ExecutionUtils.java:324)
- at org.eclipse.wb.core.gef.command.EditCommand.execute(EditCommand.java:50)
- at org.eclipse.wb.internal.gef.core.EditDomain.executeCommand(EditDomain.java:59)
- at org.eclipse.wb.gef.core.tools.Tool.executeCommand(Tool.java:209)
- at org.eclipse.wb.gef.core.tools.AbstractCreationTool.handleButtonUp(AbstractCreationTool.java:62)
- at org.eclipse.wb.gef.core.tools.Tool.mouseUp(Tool.java:395)
- at org.eclipse.wb.internal.gef.core.EditDomain.mouseUp(EditDomain.java:255)
- at org.eclipse.wb.internal.gef.graphical.EditEventManager.mouseUp(EditEventManager.java:149)
- at sun.reflect.GeneratedMethodAccessor299.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- at com.sun.proxy.$Proxy15.mouseUp(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:220)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: org.eclipse.wb.internal.core.utils.exception.DesignerException: 205 (Unable to parse source.). package ui;
-import java.awt.BorderLayout;
-import java.awt.FlowLayout;
-import java.awt.Font;
-import java.io.File;
-import java.io.IOException;
-import java.sql.SQLException;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.LinkedList;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-import javax.swing.GroupLayout;
-import javax.swing.GroupLayout.Alignment;
-import javax.swing.JDialog;
-import javax.swing.JFrame;
-import javax.swing.JLabel;
-import javax.swing.JOptionPane;
-import javax.swing.JPanel;
-import javax.swing.JTree;
-import javax.swing.LayoutStyle.ComponentPlacement;
-import javax.swing.SwingConstants;
-import javax.swing.border.EmptyBorder;
-import javax.swing.tree.DefaultMutableTreeNode;
-import javax.swing.tree.TreeModel;
-import javax.swing.tree.TreePath;
-import org.jpedal.examples.viewer.Commands;
-import org.jpedal.examples.viewer.Viewer;
-import utils.ClientProperties;
-import database.DBconnectorClient;
-import framework.Diagnostic;
-import framework.MedUnit;
-import framework.test.TestName;
-import javax.swing.JTabbedPane;
-import java.awt.Color;
-class GUI extends javax.swing.JFrame {
-class GUIWorker implements Runnable {
-javax.swing.JFrame mainFrame=(javax.swing.JFrame) null;
-utils.ClientProperties props=(utils.ClientProperties) null;
-framework.MedUnit mu=(framework.MedUnit) null;
-public GUIWorker(GUI gui, ClientProperties props) {}
-@Override public void run() {}
-private void warnFailedTests(Diagnostic diagnostic, ArrayList<TestName> selectedTests) {}
-private void displayError(String msg) {}
-private ArrayList<String> getSelectedTests() {return (java.util.ArrayList) null;}
-private ArrayList<String> getChildrenTests(TreeModel model, Object node) {return (java.util.ArrayList) null;}
-}
-static final java.util.logging.Logger LOGGER=(java.util.logging.Logger) null;
-static final long serialVersionUID=0L;
-utils.ClientProperties props=(utils.ClientProperties) null;
-database.DBconnectorClient connectorClientDB=(database.DBconnectorClient) null;
-java.util.LinkedList patients=(java.util.LinkedList) null;
-java.util.HashMap testsByName=(java.util.HashMap) null;
-org.jpedal.examples.viewer.Viewer viewer=(org.jpedal.examples.viewer.Viewer) null;
-javax.swing.JDialog dialog=(javax.swing.JDialog) null;
-javax.swing.JMenu jMenu1=(javax.swing.JMenu) null;
-javax.swing.JMenu jMenu2=(javax.swing.JMenu) null;
-javax.swing.JMenuBar jMenuBar1=(javax.swing.JMenuBar) null;
-javax.swing.JMenuItem jMenuItem1=(javax.swing.JMenuItem) null;
-javax.swing.JTabbedPane tabbedPane=(javax.swing.JTabbedPane) null;
-javax.swing.JPanel panel=(javax.swing.JPanel) null;
-private void initComponents() {}
-GUI(Object __wbp_param) {
-super();javax.swing.GroupLayout layout = (javax.swing.GroupLayout) null;
-
- panel.setBorder(__WBP_NO_TYPE_BINDING.swing.BorderFactory.createLineBorder(new __WBP_NO_TYPE_BINDING.awt.Color(0, 0, 0)));}
-} line: 43 The method warnFailedTests(Diagnostic, ArrayList<TestName>) from the type GUI.GUIWorker is never used locally
-line: 44 The method displayError(String) from the type GUI.GUIWorker is never used locally
-line: 45 The method getSelectedTests() from the type GUI.GUIWorker is never used locally
-line: 45 Type safety: The expression of type ArrayList needs unchecked conversion to conform to ArrayList<String>
-line: 45 ArrayList is a raw type. References to generic type ArrayList<E> should be parameterized
-line: 46 The method getChildrenTests(TreeModel, Object) from the type GUI.GUIWorker is never used locally
-line: 46 Type safety: The expression of type ArrayList needs unchecked conversion to conform to ArrayList<String>
-line: 46 ArrayList is a raw type. References to generic type ArrayList<E> should be parameterized
-line: 52 LinkedList is a raw type. References to generic type LinkedList<E> should be parameterized
-line: 52 LinkedList is a raw type. References to generic type LinkedList<E> should be parameterized
-line: 53 HashMap is a raw type. References to generic type HashMap<K,V> should be parameterized
-line: 53 HashMap is a raw type. References to generic type HashMap<K,V> should be parameterized
-line: 62 The method initComponents() from the type GUI is never used locally
-line: 66 __WBP_NO_TYPE_BINDING cannot be resolved
-line: 66 __WBP_NO_TYPE_BINDING cannot be resolved to a type
- at org.eclipse.wb.internal.core.utils.ast.AstParser.findNode(AstParser.java:773)
- at org.eclipse.wb.internal.core.utils.ast.AstParser.parseStatement(AstParser.java:159)
- ... 57 more
-Caused by: org.eclipse.wb.internal.core.utils.check.AssertionFailedException: null argument
- at org.eclipse.wb.internal.core.utils.check.Assert.fail(Assert.java:225)
- at org.eclipse.wb.internal.core.utils.check.Assert.isNotNull(Assert.java:174)
- at org.eclipse.wb.internal.core.utils.check.Assert.isNotNull(Assert.java:159)
- at org.eclipse.wb.internal.core.utils.ast.AstParser$3.postVisit(AstParser.java:957)
- at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2517)
- at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2585)
- at org.eclipse.jdt.core.dom.MethodInvocation.accept0(MethodInvocation.java:245)
- at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
- at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2585)
- at org.eclipse.jdt.core.dom.MethodInvocation.accept0(MethodInvocation.java:245)
- at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
- at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
- at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
- at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
- at org.eclipse.wb.internal.core.utils.ast.AstParser.copyBindings(AstParser.java:925)
- at org.eclipse.wb.internal.core.utils.ast.AstParser.findNode0(AstParser.java:827)
- at org.eclipse.wb.internal.core.utils.ast.AstParser.findNode(AstParser.java:770)
- ... 58 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-17 16:42:16.046
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy15.mouseUp(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:220)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor299.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: org.eclipse.core.runtime.AssertionFailedException: null argument:
- at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:85)
- at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:73)
- at org.eclipse.wb.internal.gef.core.AbstractEditPartViewer.setSelection(AbstractEditPartViewer.java:249)
- at org.eclipse.wb.gef.core.tools.PasteTool.selectAddedObjects(PasteTool.java:78)
- at org.eclipse.wb.gef.core.tools.AbstractCreationTool.handleButtonUp(AbstractCreationTool.java:63)
- at org.eclipse.wb.gef.core.tools.Tool.mouseUp(Tool.java:395)
- at org.eclipse.wb.internal.gef.core.EditDomain.mouseUp(EditDomain.java:255)
- at org.eclipse.wb.internal.gef.graphical.EditEventManager.mouseUp(EditEventManager.java:149)
- ... 32 more
-
-!ENTRY org.eclipse.wb.core 4 4 2014-12-17 16:43:59.687
-!MESSAGE Designer [1.5.2.r42x201302112024.201412171642]: 205 (Unable to parse source.).
- panel.setBorder(__WBP_NO_TYPE_BINDING.swing.BorderFactory.createLineBorder(new __WBP_NO_TYPE_BINDING.awt.Color(0, 0, 0))); line: 43 The method warnFailedTests(Diagnostic, ArrayList<TestName>) from the type GUI.GUIWorker is never used locally
-line: 44 The method displayError(String) from the type GUI.GUIWorker is never used locally
-line: 45 The method getSelectedTests() from the type GUI.GUIWorker is never used locally
-line: 45 Type safety: The expression of type ArrayList needs unchecked conversion to conform to ArrayList<String>
-line: 45 ArrayList is a raw type. References to generic type ArrayList<E> should be parameterized
-line: 46 The method getChildrenTests(TreeModel, Object) from the type GUI.GUIWorker is never used locally
-line: 46 Type safety: The expression of type ArrayList needs unchecked conversion to conform to ArrayList<String>
-line: 46 ArrayList is a raw type. References to generic type ArrayList<E> should be parameterized
-line: 52 LinkedList is a raw type. References to generic type LinkedList<E> should be parameterized
-line: 52 LinkedList is a raw type. References to generic type LinkedList<E> should be parameterized
-line: 53 HashMap is a raw type. References to generic type HashMap<K,V> should be parameterized
-line: 53 HashMap is a raw type. References to generic type HashMap<K,V> should be parameterized
-line: 62 The method initComponents() from the type GUI is never used locally
-line: 66 __WBP_NO_TYPE_BINDING cannot be resolved
-line: 66 __WBP_NO_TYPE_BINDING cannot be resolved to a type
-!STACK 0
-org.eclipse.wb.internal.core.utils.exception.DesignerException: 205 (Unable to parse source.).
- panel.setBorder(__WBP_NO_TYPE_BINDING.swing.BorderFactory.createLineBorder(new __WBP_NO_TYPE_BINDING.awt.Color(0, 0, 0))); line: 43 The method warnFailedTests(Diagnostic, ArrayList<TestName>) from the type GUI.GUIWorker is never used locally
-line: 44 The method displayError(String) from the type GUI.GUIWorker is never used locally
-line: 45 The method getSelectedTests() from the type GUI.GUIWorker is never used locally
-line: 45 Type safety: The expression of type ArrayList needs unchecked conversion to conform to ArrayList<String>
-line: 45 ArrayList is a raw type. References to generic type ArrayList<E> should be parameterized
-line: 46 The method getChildrenTests(TreeModel, Object) from the type GUI.GUIWorker is never used locally
-line: 46 Type safety: The expression of type ArrayList needs unchecked conversion to conform to ArrayList<String>
-line: 46 ArrayList is a raw type. References to generic type ArrayList<E> should be parameterized
-line: 52 LinkedList is a raw type. References to generic type LinkedList<E> should be parameterized
-line: 52 LinkedList is a raw type. References to generic type LinkedList<E> should be parameterized
-line: 53 HashMap is a raw type. References to generic type HashMap<K,V> should be parameterized
-line: 53 HashMap is a raw type. References to generic type HashMap<K,V> should be parameterized
-line: 62 The method initComponents() from the type GUI is never used locally
-line: 66 __WBP_NO_TYPE_BINDING cannot be resolved
-line: 66 __WBP_NO_TYPE_BINDING cannot be resolved to a type
- at org.eclipse.wb.internal.core.utils.ast.AstParser.parseStatement(AstParser.java:162)
- at org.eclipse.wb.internal.core.utils.ast.AstEditor.addStatement(AstEditor.java:1625)
- at org.eclipse.wb.internal.core.utils.ast.AstEditor.addStatement(AstEditor.java:1579)
- at org.eclipse.wb.core.model.JavaInfo.addExpressionStatement(JavaInfo.java:968)
- at org.eclipse.wb.core.model.JavaInfo.addMethodInvocation(JavaInfo.java:932)
- at org.eclipse.wb.core.model.JavaInfo.addMethodInvocation(JavaInfo.java:907)
- at org.eclipse.wb.internal.core.model.property.accessor.SetterAccessor$5.run(SetterAccessor.java:147)
- at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.run(ExecutionUtils.java:324)
- at org.eclipse.wb.internal.core.model.property.accessor.SetterAccessor.setExpression(SetterAccessor.java:145)
- at org.eclipse.wb.internal.core.model.property.GenericPropertyImpl.setExpressionUsingAccessor(GenericPropertyImpl.java:341)
- at org.eclipse.wb.internal.core.model.property.GenericPropertyImpl.setExpression(GenericPropertyImpl.java:300)
- at org.eclipse.wb.internal.core.model.clipboard.PropertiesClipboardCommand.execute(PropertiesClipboardCommand.java:62)
- at org.eclipse.wb.internal.core.model.clipboard.JavaInfoMemento.executeCommands(JavaInfoMemento.java:226)
- at org.eclipse.wb.internal.core.model.clipboard.JavaInfoMemento.apply(JavaInfoMemento.java:218)
- at org.eclipse.wb.internal.core.model.clipboard.ComponentInfoMemento.apply(ComponentInfoMemento.java:83)
- at org.eclipse.wb.internal.core.model.clipboard.JavaInfoMemento.apply(JavaInfoMemento.java:91)
- at org.eclipse.wb.internal.core.model.util.GlobalStateJava$4$1.executeEdit(GlobalStateJava.java:209)
- at org.eclipse.wb.core.gef.command.EditCommand$1.run(EditCommand.java:52)
- at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.run(ExecutionUtils.java:324)
- at org.eclipse.wb.core.gef.command.EditCommand.execute(EditCommand.java:50)
- at org.eclipse.wb.internal.gef.core.EditDomain.executeCommand(EditDomain.java:59)
- at org.eclipse.wb.gef.core.tools.Tool.executeCommand(Tool.java:209)
- at org.eclipse.wb.gef.core.tools.AbstractCreationTool.handleButtonUp(AbstractCreationTool.java:62)
- at org.eclipse.wb.gef.core.tools.Tool.mouseUp(Tool.java:395)
- at org.eclipse.wb.internal.gef.core.EditDomain.mouseUp(EditDomain.java:255)
- at org.eclipse.wb.internal.gef.graphical.EditEventManager.mouseUp(EditEventManager.java:149)
- at sun.reflect.GeneratedMethodAccessor299.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- at com.sun.proxy.$Proxy15.mouseUp(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:220)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: org.eclipse.wb.internal.core.utils.exception.DesignerException: 205 (Unable to parse source.). package ui;
-import java.awt.BorderLayout;
-import java.awt.FlowLayout;
-import java.awt.Font;
-import java.io.File;
-import java.io.IOException;
-import java.sql.SQLException;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.LinkedList;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-import javax.swing.GroupLayout;
-import javax.swing.GroupLayout.Alignment;
-import javax.swing.JDialog;
-import javax.swing.JFrame;
-import javax.swing.JLabel;
-import javax.swing.JOptionPane;
-import javax.swing.JPanel;
-import javax.swing.JTree;
-import javax.swing.LayoutStyle.ComponentPlacement;
-import javax.swing.SwingConstants;
-import javax.swing.border.EmptyBorder;
-import javax.swing.tree.DefaultMutableTreeNode;
-import javax.swing.tree.TreeModel;
-import javax.swing.tree.TreePath;
-import org.jpedal.examples.viewer.Commands;
-import org.jpedal.examples.viewer.Viewer;
-import utils.ClientProperties;
-import database.DBconnectorClient;
-import framework.Diagnostic;
-import framework.MedUnit;
-import framework.test.TestName;
-import javax.swing.JTabbedPane;
-import java.awt.Color;
-class GUI extends javax.swing.JFrame {
-class GUIWorker implements Runnable {
-javax.swing.JFrame mainFrame=(javax.swing.JFrame) null;
-utils.ClientProperties props=(utils.ClientProperties) null;
-framework.MedUnit mu=(framework.MedUnit) null;
-public GUIWorker(GUI gui, ClientProperties props) {}
-@Override public void run() {}
-private void warnFailedTests(Diagnostic diagnostic, ArrayList<TestName> selectedTests) {}
-private void displayError(String msg) {}
-private ArrayList<String> getSelectedTests() {return (java.util.ArrayList) null;}
-private ArrayList<String> getChildrenTests(TreeModel model, Object node) {return (java.util.ArrayList) null;}
-}
-static final java.util.logging.Logger LOGGER=(java.util.logging.Logger) null;
-static final long serialVersionUID=0L;
-utils.ClientProperties props=(utils.ClientProperties) null;
-database.DBconnectorClient connectorClientDB=(database.DBconnectorClient) null;
-java.util.LinkedList patients=(java.util.LinkedList) null;
-java.util.HashMap testsByName=(java.util.HashMap) null;
-org.jpedal.examples.viewer.Viewer viewer=(org.jpedal.examples.viewer.Viewer) null;
-javax.swing.JDialog dialog=(javax.swing.JDialog) null;
-javax.swing.JMenu jMenu1=(javax.swing.JMenu) null;
-javax.swing.JMenu jMenu2=(javax.swing.JMenu) null;
-javax.swing.JMenuBar jMenuBar1=(javax.swing.JMenuBar) null;
-javax.swing.JMenuItem jMenuItem1=(javax.swing.JMenuItem) null;
-javax.swing.JTabbedPane tabbedPane=(javax.swing.JTabbedPane) null;
-javax.swing.JPanel panel=(javax.swing.JPanel) null;
-private void initComponents() {}
-GUI(Object __wbp_param) {
-super();javax.swing.GroupLayout layout = (javax.swing.GroupLayout) null;
-
- panel.setBorder(__WBP_NO_TYPE_BINDING.swing.BorderFactory.createLineBorder(new __WBP_NO_TYPE_BINDING.awt.Color(0, 0, 0)));}
-} line: 43 The method warnFailedTests(Diagnostic, ArrayList<TestName>) from the type GUI.GUIWorker is never used locally
-line: 44 The method displayError(String) from the type GUI.GUIWorker is never used locally
-line: 45 The method getSelectedTests() from the type GUI.GUIWorker is never used locally
-line: 45 Type safety: The expression of type ArrayList needs unchecked conversion to conform to ArrayList<String>
-line: 45 ArrayList is a raw type. References to generic type ArrayList<E> should be parameterized
-line: 46 The method getChildrenTests(TreeModel, Object) from the type GUI.GUIWorker is never used locally
-line: 46 Type safety: The expression of type ArrayList needs unchecked conversion to conform to ArrayList<String>
-line: 46 ArrayList is a raw type. References to generic type ArrayList<E> should be parameterized
-line: 52 LinkedList is a raw type. References to generic type LinkedList<E> should be parameterized
-line: 52 LinkedList is a raw type. References to generic type LinkedList<E> should be parameterized
-line: 53 HashMap is a raw type. References to generic type HashMap<K,V> should be parameterized
-line: 53 HashMap is a raw type. References to generic type HashMap<K,V> should be parameterized
-line: 62 The method initComponents() from the type GUI is never used locally
-line: 66 __WBP_NO_TYPE_BINDING cannot be resolved
-line: 66 __WBP_NO_TYPE_BINDING cannot be resolved to a type
- at org.eclipse.wb.internal.core.utils.ast.AstParser.findNode(AstParser.java:773)
- at org.eclipse.wb.internal.core.utils.ast.AstParser.parseStatement(AstParser.java:159)
- ... 57 more
-Caused by: org.eclipse.wb.internal.core.utils.check.AssertionFailedException: null argument
- at org.eclipse.wb.internal.core.utils.check.Assert.fail(Assert.java:225)
- at org.eclipse.wb.internal.core.utils.check.Assert.isNotNull(Assert.java:174)
- at org.eclipse.wb.internal.core.utils.check.Assert.isNotNull(Assert.java:159)
- at org.eclipse.wb.internal.core.utils.ast.AstParser$3.postVisit(AstParser.java:957)
- at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2517)
- at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2585)
- at org.eclipse.jdt.core.dom.MethodInvocation.accept0(MethodInvocation.java:245)
- at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
- at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2585)
- at org.eclipse.jdt.core.dom.MethodInvocation.accept0(MethodInvocation.java:245)
- at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
- at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
- at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
- at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
- at org.eclipse.wb.internal.core.utils.ast.AstParser.copyBindings(AstParser.java:925)
- at org.eclipse.wb.internal.core.utils.ast.AstParser.findNode0(AstParser.java:827)
- at org.eclipse.wb.internal.core.utils.ast.AstParser.findNode(AstParser.java:770)
- ... 58 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-17 16:44:00.497
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy15.mouseUp(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:220)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor299.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: org.eclipse.core.runtime.AssertionFailedException: null argument:
- at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:85)
- at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:73)
- at org.eclipse.wb.internal.gef.core.AbstractEditPartViewer.setSelection(AbstractEditPartViewer.java:249)
- at org.eclipse.wb.gef.core.tools.PasteTool.selectAddedObjects(PasteTool.java:78)
- at org.eclipse.wb.gef.core.tools.AbstractCreationTool.handleButtonUp(AbstractCreationTool.java:63)
- at org.eclipse.wb.gef.core.tools.Tool.mouseUp(Tool.java:395)
- at org.eclipse.wb.internal.gef.core.EditDomain.mouseUp(EditDomain.java:255)
- at org.eclipse.wb.internal.gef.graphical.EditEventManager.mouseUp(EditEventManager.java:149)
- ... 32 more
-
-!ENTRY org.eclipse.e4.ui.workbench 4 0 2014-12-17 17:52:55.306
-!MESSAGE
-!STACK 0
-org.eclipse.e4.core.di.InjectionException: org.eclipse.core.commands.NotHandledException: There is no handler to execute for command org.eclipse.ui.edit.copy
- at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:63)
- at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:231)
- at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:212)
- at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:131)
- at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:171)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.executeCommand(KeyBindingDispatcher.java:277)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.press(KeyBindingDispatcher.java:496)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.processKeyEvent(KeyBindingDispatcher.java:547)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.filterKeySequenceBindings(KeyBindingDispatcher.java:368)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.access$0(KeyBindingDispatcher.java:314)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher$KeyDownFilter.handleEvent(KeyBindingDispatcher.java:83)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1262)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1052)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
- at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1104)
- at org.eclipse.swt.widgets.Text.sendKeyEvent(Text.java:1704)
- at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1100)
- at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1521)
- at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:4640)
- at org.eclipse.swt.widgets.Text.WM_CHAR(Text.java:2584)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4528)
- at org.eclipse.swt.widgets.Text.windowProc(Text.java:2570)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:4976)
- at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
- at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2546)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3756)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: org.eclipse.core.commands.NotHandledException: There is no handler to execute for command org.eclipse.ui.edit.copy
- at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:84)
- at sun.reflect.GeneratedMethodAccessor52.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
- ... 49 more
-
-!ENTRY org.eclipse.wb.core 4 4 2014-12-17 17:54:03.701
-!MESSAGE Designer [1.5.2.r42x201302112024.201412171642]: javax.swing.JLabel[,0,0,0x0,invalid,alignmentX=0.0,alignmentY=0.0,border=,flags=8388608,maximumSize=,minimumSize=,preferredSize=,defaultIcon=res/shcs_logo2_medium.gif,disabledIcon=,horizontalAlignment=LEADING,horizontalTextPosition=TRAILING,iconTextGap=4,labelFor=,text=,verticalAlignment=CENTER,verticalTextPosition=CENTER] is not attached to a horizontal group
-!STACK 0
-java.lang.IllegalStateException: javax.swing.JLabel[,0,0,0x0,invalid,alignmentX=0.0,alignmentY=0.0,border=,flags=8388608,maximumSize=,minimumSize=,preferredSize=,defaultIcon=res/shcs_logo2_medium.gif,disabledIcon=,horizontalAlignment=LEADING,horizontalTextPosition=TRAILING,iconTextGap=4,labelFor=,text=,verticalAlignment=CENTER,verticalTextPosition=CENTER] is not attached to a horizontal group
- at javax.swing.GroupLayout.checkComponents(Unknown Source)
- at javax.swing.GroupLayout.prepare(Unknown Source)
- at javax.swing.GroupLayout.preferredLayoutSize(Unknown Source)
- at java.awt.Container.preferredSize(Unknown Source)
- at java.awt.Container.getPreferredSize(Unknown Source)
- at javax.swing.JComponent.getPreferredSize(Unknown Source)
- at javax.swing.ScrollPaneLayout.layoutContainer(Unknown Source)
- at java.awt.Container.layout(Unknown Source)
- at java.awt.Container.doLayout(Unknown Source)
- at java.awt.Container.validateTree(Unknown Source)
- at java.awt.Container.validateTree(Unknown Source)
- at java.awt.Container.validateTree(Unknown Source)
- at java.awt.Container.validateTree(Unknown Source)
- at java.awt.Container.validateTree(Unknown Source)
- at java.awt.Container.validateTree(Unknown Source)
- at java.awt.Container.validate(Unknown Source)
- at org.eclipse.wb.internal.swing.model.component.top.WindowTopBoundsSupport.apply(WindowTopBoundsSupport.java:67)
- at org.eclipse.wb.core.model.AbstractComponentInfo.refresh_afterCreate(AbstractComponentInfo.java:241)
- at org.eclipse.wb.core.model.ObjectInfo.refreshCreate0(ObjectInfo.java:552)
- at org.eclipse.wb.core.model.ObjectInfo.access$0(ObjectInfo.java:546)
- at org.eclipse.wb.core.model.ObjectInfo$5$1.run(ObjectInfo.java:486)
- at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:145)
- at org.eclipse.wb.core.model.ObjectInfo$5.run(ObjectInfo.java:484)
- at org.eclipse.wb.internal.swing.utils.SwingUtils$2.run(SwingUtils.java:76)
- at java.awt.event.InvocationEvent.dispatch(Unknown Source)
- at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
- at java.awt.EventQueue.access$200(Unknown Source)
- at java.awt.EventQueue$3.run(Unknown Source)
- at java.awt.EventQueue$3.run(Unknown Source)
- at java.security.AccessController.doPrivileged(Native Method)
- at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
- at java.awt.EventQueue.dispatchEvent(Unknown Source)
- at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
- at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
- at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
- at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
- at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
- at java.awt.EventDispatchThread.run(Unknown Source)
-!SESSION 2014-12-18 09:23:01.192 -----------------------------------------------
-eclipse.buildId=M20130204-1200
-java.version=1.7.0_45
-java.vendor=Oracle Corporation
-BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
-Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
-Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
-
-!ENTRY org.eclipse.ui 4 4 2014-12-18 09:23:16.753
-!MESSAGE Could not create action delegate for id: org.eclipse.jdt.debug.ui.actions.ManageBreakpointRulerAction
-
-!ENTRY org.eclipse.equinox.registry 4 1 2014-12-18 09:23:16.753
-!MESSAGE Plug-in org.eclipse.wb.core.java was unable to load class org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate.
+!ENTRY org.eclipse.equinox.registry 4 1 2015-01-28 09:13:55.177
+!MESSAGE Plug-in org.eclipse.wb.core.java was unable to load class org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate.
!STACK 0
java.lang.ClassNotFoundException: org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:265)
at org.eclipse.ui.internal.PluginAction.createDelegate(PluginAction.java:122)
at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:275)
at org.eclipse.ui.internal.PluginAction.<init>(PluginAction.java:112)
at org.eclipse.ui.internal.PartPluginAction.<init>(PartPluginAction.java:29)
at org.eclipse.ui.internal.EditorPluginAction.<init>(EditorPluginAction.java:32)
at org.eclipse.ui.internal.ActionDescriptor.createAction(ActionDescriptor.java:262)
at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:176)
at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:103)
at org.eclipse.ui.internal.EditorActionBuilder.createActionDescriptor(EditorActionBuilder.java:41)
at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:161)
at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
at org.eclipse.ui.internal.registry.RegistryReader.readElementChildren(RegistryReader.java:133)
at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:144)
at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
at org.eclipse.ui.internal.registry.RegistryReader.readExtension(RegistryReader.java:155)
at org.eclipse.ui.internal.registry.RegistryReader.readRegistry(RegistryReader.java:176)
at org.eclipse.ui.internal.PluginActionBuilder.readContributions(PluginActionBuilder.java:115)
at org.eclipse.ui.internal.EditorActionBuilder.readActionExtensions(EditorActionBuilder.java:58)
at org.eclipse.ui.internal.EditorReference.createEditorActionBars(EditorReference.java:446)
at org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:356)
at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:301)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:861)
at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:841)
at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:113)
at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:321)
at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:242)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:161)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:141)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1115)
at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:98)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$6.run(PartRenderingEngine.java:520)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:505)
at org.eclipse.e4.ui.workbench.renderers.swt.ElementReferenceRenderer.createWidget(ElementReferenceRenderer.java:74)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveRenderer.processContents(PerspectiveRenderer.java:59)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.showTab(PerspectiveStackRenderer.java:103)
at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:98)
at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.postProcess(PerspectiveStackRenderer.java:77)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
at org.eclipse.e4.ui.workbench.renderers.swt.WBWRenderer.processContents(WBWRenderer.java:644)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:987)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-!ENTRY org.eclipse.egit.ui 2 0 2014-12-18 09:23:23.081
+!ENTRY org.eclipse.egit.ui 2 0 2015-01-28 09:14:01.689
!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
this system level configuration. The Git installation location can be configured on the
Team > Git > Configuration preference page's 'System Settings' tab.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-!ENTRY org.eclipse.egit.ui 2 0 2014-12-18 09:23:23.081
+!ENTRY org.eclipse.egit.ui 2 0 2015-01-28 09:14:01.689
!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
user global configuration and to define the default location to store repositories: 'C:\Users\raisaro'. If this is
not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
EGit might behave differently since they see different configuration options.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-!ENTRY org.eclipse.ui 2 2 2014-12-18 15:26:31.602
+!ENTRY org.eclipse.ui 2 2 2015-01-28 09:56:26.460
!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:50.576
-!MESSAGE Unhandled event loop exception
+!ENTRY org.eclipse.wb.core 4 4 2015-01-28 10:52:25.419
+!MESSAGE Designer [1.5.2.r42x201302112024.201501281052]: component not found in tabbed pane
+!STACK 0
+java.lang.IllegalArgumentException: component not found in tabbed pane
+ at javax.swing.JTabbedPane.setSelectedComponent(Unknown Source)
+ at org.eclipse.wb.internal.swing.model.component.JTabbedPaneInfo.refresh_afterCreate(JTabbedPaneInfo.java:156)
+ at org.eclipse.wb.core.model.ObjectInfo.refresh_afterCreate(ObjectInfo.java:621)
+ at org.eclipse.wb.core.model.JavaInfo.refresh_afterCreate(JavaInfo.java:1226)
+ at org.eclipse.wb.core.model.AbstractComponentInfo.refresh_afterCreate(AbstractComponentInfo.java:238)
+ at org.eclipse.wb.core.model.ObjectInfo.refresh_afterCreate(ObjectInfo.java:621)
+ at org.eclipse.wb.core.model.JavaInfo.refresh_afterCreate(JavaInfo.java:1226)
+ at org.eclipse.wb.core.model.AbstractComponentInfo.refresh_afterCreate(AbstractComponentInfo.java:238)
+ at org.eclipse.wb.core.model.ObjectInfo.refreshCreate0(ObjectInfo.java:552)
+ at org.eclipse.wb.core.model.ObjectInfo.access$0(ObjectInfo.java:546)
+ at org.eclipse.wb.core.model.ObjectInfo$5$1.run(ObjectInfo.java:486)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:145)
+ at org.eclipse.wb.core.model.ObjectInfo$5.run(ObjectInfo.java:484)
+ at org.eclipse.wb.internal.swing.utils.SwingUtils$2.run(SwingUtils.java:76)
+ at java.awt.event.InvocationEvent.dispatch(Unknown Source)
+ at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
+ at java.awt.EventQueue.access$200(Unknown Source)
+ at java.awt.EventQueue$3.run(Unknown Source)
+ at java.awt.EventQueue$3.run(Unknown Source)
+ at java.security.AccessController.doPrivileged(Native Method)
+ at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
+ at java.awt.EventQueue.dispatchEvent(Unknown Source)
+ at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
+ at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
+ at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
+ at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
+ at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
+ at java.awt.EventDispatchThread.run(Unknown Source)
+
+!ENTRY org.eclipse.ui 4 4 2015-01-28 11:58:16.773
+!MESSAGE Could not create action delegate for id: org.eclipse.jdt.debug.ui.actions.ManageBreakpointRulerAction
+
+!ENTRY org.eclipse.equinox.registry 4 1 2015-01-28 11:58:16.775
+!MESSAGE Plug-in org.eclipse.wb.core.java was unable to load class org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate.
!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
+java.lang.ClassNotFoundException: org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
+ at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
+ at java.lang.ClassLoader.loadClass(Unknown Source)
+ at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
+ at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
+ at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
+ at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
+ at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
+ at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
+ at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
+ at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:265)
+ at org.eclipse.ui.internal.PluginAction.createDelegate(PluginAction.java:122)
+ at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:275)
+ at org.eclipse.ui.internal.PluginAction.<init>(PluginAction.java:112)
+ at org.eclipse.ui.internal.PartPluginAction.<init>(PartPluginAction.java:29)
+ at org.eclipse.ui.internal.EditorPluginAction.<init>(EditorPluginAction.java:32)
+ at org.eclipse.ui.internal.ActionDescriptor.createAction(ActionDescriptor.java:262)
+ at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:176)
+ at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:103)
+ at org.eclipse.ui.internal.EditorActionBuilder.createActionDescriptor(EditorActionBuilder.java:41)
+ at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:161)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElementChildren(RegistryReader.java:133)
+ at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readExtension(RegistryReader.java:155)
+ at org.eclipse.ui.internal.registry.RegistryReader.readRegistry(RegistryReader.java:176)
+ at org.eclipse.ui.internal.PluginActionBuilder.readContributions(PluginActionBuilder.java:115)
+ at org.eclipse.ui.internal.EditorActionBuilder.readActionExtensions(EditorActionBuilder.java:58)
+ at org.eclipse.ui.internal.EditorReference.createEditorActionBars(EditorReference.java:446)
+ at org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:356)
+ at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:301)
+ at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+ at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
+ at java.lang.reflect.Method.invoke(Unknown Source)
+ at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:861)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:841)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:113)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:321)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:242)
+ at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:161)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
+ at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:141)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.internal.workbench.PartServiceImpl$1.handleEvent(PartServiceImpl.java:92)
+ at org.eclipse.e4.ui.services.internal.events.UIEventHandler$1.run(UIEventHandler.java:41)
+ at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
+ at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
+ at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
+ at org.eclipse.e4.ui.internal.workbench.swt.E4Application$1.syncExec(E4Application.java:187)
+ at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:38)
+ at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:197)
+ at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:197)
+ at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)
+ at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
+ at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
+ at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:135)
+ at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:78)
+ at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:39)
+ at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:80)
+ at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:58)
+ at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:374)
+ at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement(ElementContainerImpl.java:171)
+ at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.showElementInWindow(ModelServiceImpl.java:422)
+ at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.bringToTop(ModelServiceImpl.java:389)
+ at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.delegateBringToTop(PartServiceImpl.java:606)
+ at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.bringToTop(PartServiceImpl.java:332)
+ at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.showPart(PartServiceImpl.java:1029)
+ at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:3047)
+ at org.eclipse.ui.internal.WorkbenchPage.access$22(WorkbenchPage.java:2969)
+ at org.eclipse.ui.internal.WorkbenchPage$8.run(WorkbenchPage.java:2951)
+ at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
+ at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2947)
+ at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2911)
+ at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2902)
+ at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:373)
+ at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:179)
+ at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:249)
+ at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:228)
+ at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:275)
+ at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:251)
+ at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup.handleOpen(PackageExplorerActionGroup.java:376)
+ at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$4.open(PackageExplorerPart.java:538)
+ at org.eclipse.ui.OpenAndLinkWithEditorHelper$InternalListener.open(OpenAndLinkWithEditorHelper.java:48)
+ at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:866)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
+ at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
+ at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:864)
+ at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1152)
+ at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1256)
+ at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:275)
+ at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:269)
+ at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:309)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
+!SESSION 2015-01-29 09:17:23.995 -----------------------------------------------
+eclipse.buildId=M20130204-1200
+java.version=1.7.0_45
+java.vendor=Oracle Corporation
+BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
+Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
+Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:50.586
-!MESSAGE Unhandled event loop exception
+!ENTRY org.eclipse.egit.ui 2 0 2015-01-29 09:17:38.753
+!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
+Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
+The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
+this system level configuration. The Git installation location can be configured on the
+Team > Git > Configuration preference page's 'System Settings' tab.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
+
+!ENTRY org.eclipse.egit.ui 2 0 2015-01-29 09:17:38.754
+!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
+user global configuration and to define the default location to store repositories: 'C:\Users\raisaro'. If this is
+not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
+EGit might behave differently since they see different configuration options.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
+
+!ENTRY org.eclipse.ui 4 4 2015-01-29 10:23:51.355
+!MESSAGE Could not create action delegate for id: org.eclipse.jdt.debug.ui.actions.ManageBreakpointRulerAction
+
+!ENTRY org.eclipse.equinox.registry 4 1 2015-01-29 10:23:51.356
+!MESSAGE Plug-in org.eclipse.wb.core.java was unable to load class org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate.
!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
+java.lang.ClassNotFoundException: org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
+ at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
+ at java.lang.ClassLoader.loadClass(Unknown Source)
+ at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
+ at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
+ at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
+ at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
+ at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
+ at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
+ at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
+ at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:265)
+ at org.eclipse.ui.internal.PluginAction.createDelegate(PluginAction.java:122)
+ at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:275)
+ at org.eclipse.ui.internal.PluginAction.<init>(PluginAction.java:112)
+ at org.eclipse.ui.internal.PartPluginAction.<init>(PartPluginAction.java:29)
+ at org.eclipse.ui.internal.EditorPluginAction.<init>(EditorPluginAction.java:32)
+ at org.eclipse.ui.internal.ActionDescriptor.createAction(ActionDescriptor.java:262)
+ at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:176)
+ at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:103)
+ at org.eclipse.ui.internal.EditorActionBuilder.createActionDescriptor(EditorActionBuilder.java:41)
+ at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:161)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElementChildren(RegistryReader.java:133)
+ at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readExtension(RegistryReader.java:155)
+ at org.eclipse.ui.internal.registry.RegistryReader.readRegistry(RegistryReader.java:176)
+ at org.eclipse.ui.internal.PluginActionBuilder.readContributions(PluginActionBuilder.java:115)
+ at org.eclipse.ui.internal.EditorActionBuilder.readActionExtensions(EditorActionBuilder.java:58)
+ at org.eclipse.ui.internal.EditorReference.createEditorActionBars(EditorReference.java:446)
+ at org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:356)
+ at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:301)
+ at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+ at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
+ at java.lang.reflect.Method.invoke(Unknown Source)
+ at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:861)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:841)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:113)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:321)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:242)
+ at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:161)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
+ at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:141)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1115)
+ at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer$1.handleEvent(LazyStackRenderer.java:67)
+ at org.eclipse.e4.ui.services.internal.events.UIEventHandler$1.run(UIEventHandler.java:41)
+ at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
+ at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
+ at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
+ at org.eclipse.e4.ui.internal.workbench.swt.E4Application$1.syncExec(E4Application.java:187)
+ at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:38)
+ at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:197)
+ at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:197)
+ at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)
+ at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
+ at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
+ at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:135)
+ at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:78)
+ at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:39)
+ at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:80)
+ at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:58)
+ at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:374)
+ at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement(ElementContainerImpl.java:171)
+ at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer$8.widgetSelected(StackRenderer.java:911)
+ at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
+ at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
+ at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
+ at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
+ at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
+ at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:774)
+ at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3028)
+ at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1749)
+ at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:278)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:50.596
-!MESSAGE Unhandled event loop exception
+!ENTRY org.eclipse.ui 2 2 2015-01-29 11:45:55.717
+!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
+!SESSION 2015-01-29 14:30:09.015 -----------------------------------------------
+eclipse.buildId=M20130204-1200
+java.version=1.7.0_45
+java.vendor=Oracle Corporation
+BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
+Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
+Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
+
+!ENTRY org.eclipse.core.resources 2 10035 2015-01-29 14:30:11.462
+!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.
+
+!ENTRY org.eclipse.egit.ui 2 0 2015-01-29 14:30:20.586
+!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
+Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
+The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
+this system level configuration. The Git installation location can be configured on the
+Team > Git > Configuration preference page's 'System Settings' tab.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
+
+!ENTRY org.eclipse.egit.ui 2 0 2015-01-29 14:30:20.587
+!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
+user global configuration and to define the default location to store repositories: 'C:\Users\raisaro'. If this is
+not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
+EGit might behave differently since they see different configuration options.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
+
+!ENTRY org.eclipse.ui 4 4 2015-01-29 14:30:22.164
+!MESSAGE Could not create action delegate for id: org.eclipse.jdt.debug.ui.actions.ManageBreakpointRulerAction
+
+!ENTRY org.eclipse.equinox.registry 4 1 2015-01-29 14:30:22.164
+!MESSAGE Plug-in org.eclipse.wb.core.java was unable to load class org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate.
!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
+java.lang.ClassNotFoundException: org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
+ at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
+ at java.lang.ClassLoader.loadClass(Unknown Source)
+ at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
+ at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
+ at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
+ at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
+ at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
+ at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
+ at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
+ at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:265)
+ at org.eclipse.ui.internal.PluginAction.createDelegate(PluginAction.java:122)
+ at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:275)
+ at org.eclipse.ui.internal.PluginAction.<init>(PluginAction.java:112)
+ at org.eclipse.ui.internal.PartPluginAction.<init>(PartPluginAction.java:29)
+ at org.eclipse.ui.internal.EditorPluginAction.<init>(EditorPluginAction.java:32)
+ at org.eclipse.ui.internal.ActionDescriptor.createAction(ActionDescriptor.java:262)
+ at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:176)
+ at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:103)
+ at org.eclipse.ui.internal.EditorActionBuilder.createActionDescriptor(EditorActionBuilder.java:41)
+ at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:161)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElementChildren(RegistryReader.java:133)
+ at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readExtension(RegistryReader.java:155)
+ at org.eclipse.ui.internal.registry.RegistryReader.readRegistry(RegistryReader.java:176)
+ at org.eclipse.ui.internal.PluginActionBuilder.readContributions(PluginActionBuilder.java:115)
+ at org.eclipse.ui.internal.EditorActionBuilder.readActionExtensions(EditorActionBuilder.java:58)
+ at org.eclipse.ui.internal.EditorReference.createEditorActionBars(EditorReference.java:446)
+ at org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:356)
+ at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:301)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:50.606
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
+ at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:861)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:841)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:113)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:321)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:242)
+ at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:161)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
+ at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:141)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1115)
+ at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer$1.handleEvent(LazyStackRenderer.java:67)
+ at org.eclipse.e4.ui.services.internal.events.UIEventHandler$1.run(UIEventHandler.java:41)
+ at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
+ at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
+ at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
+ at org.eclipse.e4.ui.internal.workbench.swt.E4Application$1.syncExec(E4Application.java:187)
+ at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:38)
+ at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:197)
+ at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:197)
+ at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)
+ at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
+ at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
+ at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:135)
+ at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:78)
+ at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:39)
+ at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:80)
+ at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:58)
+ at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:374)
+ at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement(ElementContainerImpl.java:171)
+ at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer$8.widgetSelected(StackRenderer.java:911)
+ at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
+ at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
+ at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
+ at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
+ at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
+ at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:774)
+ at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3028)
+ at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1749)
+ at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:278)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:50.616
-!MESSAGE Unhandled event loop exception
+!ENTRY org.eclipse.wb.core 4 4 2015-01-29 15:50:14.365
+!MESSAGE Designer [1.5.2.r42x201302112024.201501291550]: java.lang.NullPointerException
!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
+java.lang.NullPointerException
+ at org.eclipse.wb.gef.core.EditPart.getViewer(EditPart.java:539)
+ at org.eclipse.wb.internal.core.gef.part.DesignRootEditPart$1.getFigureCanvas(DesignRootEditPart.java:78)
+ at org.eclipse.wb.internal.core.gef.part.DesignRootEditPart$1.refreshed(DesignRootEditPart.java:72)
+ at sun.reflect.GeneratedMethodAccessor134.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
+ at org.eclipse.wb.core.model.broadcast.BroadcastSupport$1.intercept(BroadcastSupport.java:208)
+ at org.eclipse.wb.core.model.broadcast.ObjectEventListener$$EnhancerByCGLIB$$4559a102.refreshed(<generated>)
+ at org.eclipse.wb.core.model.ObjectInfo.refresh(ObjectInfo.java:504)
+ at org.eclipse.wb.core.model.ObjectInfo.endEdit(ObjectInfo.java:446)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.run(ExecutionUtils.java:325)
+ at org.eclipse.wb.core.gef.command.EditCommand.execute(EditCommand.java:50)
+ at org.eclipse.wb.internal.gef.core.EditDomain.executeCommand(EditDomain.java:59)
+ at org.eclipse.wb.gef.core.tools.Tool.executeCommand(Tool.java:209)
+ at org.eclipse.wb.gef.core.tools.DragEditPartTracker.handleButtonUp(DragEditPartTracker.java:74)
+ at org.eclipse.wb.gef.core.tools.Tool.mouseUp(Tool.java:395)
+ at org.eclipse.wb.gef.graphical.tools.SelectionTool.mouseUp(SelectionTool.java:250)
+ at org.eclipse.wb.gef.graphical.tools.SelectionTool.handleViewerExited(SelectionTool.java:182)
+ at org.eclipse.wb.gef.core.tools.Tool.viewerExited(Tool.java:466)
+ at org.eclipse.wb.internal.gef.core.EditDomain.viewerExited(EditDomain.java:301)
+ at org.eclipse.wb.internal.gef.graphical.EditEventManager.mouseExit(EditEventManager.java:190)
+ at sun.reflect.GeneratedMethodAccessor173.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:50.616
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
+ at com.sun.proxy.$Proxy15.mouseExit(Unknown Source)
+ at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:204)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.waitEventLoop(ExecutionUtils.java:71)
+ at org.eclipse.wb.internal.swing.utils.SwingUtils.invokeLaterAndWait(SwingUtils.java:168)
+ at org.eclipse.wb.internal.swing.utils.SwingUtils.runLaterAndWait(SwingUtils.java:73)
+ at org.eclipse.wb.internal.swing.model.component.ComponentInfo.execRefreshOperation(ComponentInfo.java:119)
+ at org.eclipse.wb.core.model.ObjectInfo.refresh(ObjectInfo.java:492)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:580)
+ at org.eclipse.wb.internal.core.editor.DesignPage.access$9(DesignPage.java:522)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8$1.run(DesignPage.java:449)
+ at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
+ at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
+ at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8.run(DesignPage.java:446)
+ at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
+ at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
+ at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF_withProgress(DesignPage.java:465)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:415)
+ at org.eclipse.wb.internal.core.editor.UndoManager.refreshDesignerEditor(UndoManager.java:381)
+ at org.eclipse.wb.internal.core.editor.UndoManager$6.run(UndoManager.java:330)
+ at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
+ at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
+ at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4144)
+ at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:50.626
-!MESSAGE Unhandled event loop exception
+!ENTRY org.eclipse.wb.core 4 4 2015-01-29 15:50:14.602
+!MESSAGE Designer [1.5.2.r42x201302112024.201501291550]: java.lang.NullPointerException
!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
+java.lang.NullPointerException
+ at org.eclipse.wb.internal.swing.java6.model.SwingVisualMapper.getComponentPreferredSize(SwingVisualMapper.java:85)
+ at org.netbeans.modules.form.layoutdesign.LayoutDesigner.imposeCurrentComponentSize(LayoutDesigner.java:3554)
+ at org.netbeans.modules.form.layoutdesign.LayoutDesigner.imposeCurrentContainerSize(LayoutDesigner.java:3460)
+ at org.netbeans.modules.form.layoutdesign.LayoutDesigner.updatePositions(LayoutDesigner.java:128)
+ at org.netbeans.modules.form.layoutdesign.LayoutDesigner.updateCurrentState(LayoutDesigner.java:78)
+ at org.eclipse.wb.internal.layout.group.model.GroupLayoutSupport$3.refreshed(GroupLayoutSupport.java:154)
+ at sun.reflect.GeneratedMethodAccessor134.invoke(Unknown Source)
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
+ at java.lang.reflect.Method.invoke(Unknown Source)
+ at org.eclipse.wb.core.model.broadcast.BroadcastSupport$1.intercept(BroadcastSupport.java:208)
+ at org.eclipse.wb.core.model.broadcast.ObjectEventListener$$EnhancerByCGLIB$$4559a102.refreshed(<generated>)
+ at org.eclipse.wb.core.model.ObjectInfo.refresh(ObjectInfo.java:504)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:580)
+ at org.eclipse.wb.internal.core.editor.DesignPage.access$9(DesignPage.java:522)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8$1.run(DesignPage.java:449)
+ at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
+ at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
+ at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8.run(DesignPage.java:446)
+ at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
+ at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
+ at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF_withProgress(DesignPage.java:465)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:415)
+ at org.eclipse.wb.internal.core.editor.UndoManager.refreshDesignerEditor(UndoManager.java:381)
+ at org.eclipse.wb.internal.core.editor.UndoManager$6.run(UndoManager.java:330)
+ at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
+ at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
+ at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4144)
+ at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:50.636
-!MESSAGE Unhandled event loop exception
+!ENTRY org.eclipse.ui 2 2 2015-01-29 15:51:20.075
+!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
+!SESSION 2015-01-29 15:52:55.452 -----------------------------------------------
+eclipse.buildId=M20130204-1200
+java.version=1.7.0_45
+java.vendor=Oracle Corporation
+BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
+Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
+Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
+
+!ENTRY org.eclipse.ui 4 4 2015-01-29 15:53:17.539
+!MESSAGE Could not create action delegate for id: org.eclipse.jdt.debug.ui.actions.ManageBreakpointRulerAction
+
+!ENTRY org.eclipse.equinox.registry 4 1 2015-01-29 15:53:17.555
+!MESSAGE Plug-in org.eclipse.wb.core.java was unable to load class org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate.
!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
+java.lang.ClassNotFoundException: org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
+ at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
+ at java.lang.ClassLoader.loadClass(Unknown Source)
+ at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
+ at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
+ at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
+ at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
+ at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
+ at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
+ at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
+ at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:265)
+ at org.eclipse.ui.internal.PluginAction.createDelegate(PluginAction.java:122)
+ at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:275)
+ at org.eclipse.ui.internal.PluginAction.<init>(PluginAction.java:112)
+ at org.eclipse.ui.internal.PartPluginAction.<init>(PartPluginAction.java:29)
+ at org.eclipse.ui.internal.EditorPluginAction.<init>(EditorPluginAction.java:32)
+ at org.eclipse.ui.internal.ActionDescriptor.createAction(ActionDescriptor.java:262)
+ at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:176)
+ at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:103)
+ at org.eclipse.ui.internal.EditorActionBuilder.createActionDescriptor(EditorActionBuilder.java:41)
+ at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:161)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElementChildren(RegistryReader.java:133)
+ at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readExtension(RegistryReader.java:155)
+ at org.eclipse.ui.internal.registry.RegistryReader.readRegistry(RegistryReader.java:176)
+ at org.eclipse.ui.internal.PluginActionBuilder.readContributions(PluginActionBuilder.java:115)
+ at org.eclipse.ui.internal.EditorActionBuilder.readActionExtensions(EditorActionBuilder.java:58)
+ at org.eclipse.ui.internal.EditorReference.createEditorActionBars(EditorReference.java:446)
+ at org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:356)
+ at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:301)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:50.646
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
+ at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:861)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:841)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:113)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:321)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:242)
+ at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:161)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
+ at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:141)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1115)
+ at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:98)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$6.run(PartRenderingEngine.java:520)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:505)
+ at org.eclipse.e4.ui.workbench.renderers.swt.ElementReferenceRenderer.createWidget(ElementReferenceRenderer.java:74)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveRenderer.processContents(PerspectiveRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.showTab(PerspectiveStackRenderer.java:103)
+ at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:98)
+ at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.postProcess(PerspectiveStackRenderer.java:77)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.workbench.renderers.swt.WBWRenderer.processContents(WBWRenderer.java:644)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:987)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:50.656
-!MESSAGE Unhandled event loop exception
+!ENTRY org.eclipse.egit.ui 2 0 2015-01-29 15:53:26.050
+!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
+Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
+The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
+this system level configuration. The Git installation location can be configured on the
+Team > Git > Configuration preference page's 'System Settings' tab.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
+
+!ENTRY org.eclipse.egit.ui 2 0 2015-01-29 15:53:26.052
+!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
+user global configuration and to define the default location to store repositories: 'C:\Users\raisaro'. If this is
+not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
+EGit might behave differently since they see different configuration options.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
+
+!ENTRY org.eclipse.wb.core 4 4 2015-01-29 16:08:15.307
+!MESSAGE Designer [1.5.2.r42x201302112024.201501291608]: new GroupLayout(panel)
!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
+java.lang.Error: new GroupLayout(panel)
+ at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate(AstEvaluationEngine.java:71)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluateExpression(JavaInfoEvaluationHelper.java:630)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluate(JavaInfoEvaluationHelper.java:502)
+ at org.eclipse.wb.core.model.JavaInfo$8.postVisit(JavaInfo.java:1123)
+ at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:399)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$3090b6af.postVisit(<generated>)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2517)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.VariableDeclarationFragment.accept0(VariableDeclarationFragment.java:225)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2585)
+ at org.eclipse.jdt.core.dom.VariableDeclarationStatement.accept0(VariableDeclarationStatement.java:273)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.access$1(ExecutionFlowUtils.java:235)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.endVisit(ExecutionFlowUtils.java:442)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:391)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$3090b6af.endVisit(<generated>)
+ at org.eclipse.jdt.core.dom.MethodInvocation.accept0(MethodInvocation.java:247)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:343)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:228)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:191)
+ at org.eclipse.wb.core.model.JavaInfo.refresh_create(JavaInfo.java:1179)
+ at org.eclipse.wb.core.model.ObjectInfo.refreshCreate0(ObjectInfo.java:550)
+ at org.eclipse.wb.core.model.ObjectInfo.access$0(ObjectInfo.java:546)
+ at org.eclipse.wb.core.model.ObjectInfo$5$1.run(ObjectInfo.java:486)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:145)
+ at org.eclipse.wb.core.model.ObjectInfo$5.run(ObjectInfo.java:484)
+ at org.eclipse.wb.internal.swing.utils.SwingUtils$2.run(SwingUtils.java:76)
+ at java.awt.event.InvocationEvent.dispatch(Unknown Source)
+ at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
+ at java.awt.EventQueue.access$200(Unknown Source)
+ at java.awt.EventQueue$3.run(Unknown Source)
+ at java.awt.EventQueue$3.run(Unknown Source)
+ at java.security.AccessController.doPrivileged(Native Method)
+ at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
+ at java.awt.EventQueue.dispatchEvent(Unknown Source)
+ at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
+ at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
+ at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
+ at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
+ at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
+ at java.awt.EventDispatchThread.run(Unknown Source)
+Caused by: org.eclipse.wb.internal.core.utils.exception.DesignerException: 307 (Exception during constructor evaluation). new GroupLayout(panel) GroupLayout(Container) {<null>} java.lang.IllegalArgumentException: Container must be non-null
+ at javax.swing.GroupLayout.<init>(Unknown Source)
+ at org.eclipse.wb.internal.core.eval.evaluators.InvocationEvaluator.createConstructorProblemException(InvocationEvaluator.java:593)
+ at org.eclipse.wb.internal.core.eval.evaluators.InvocationEvaluator.evaluate(InvocationEvaluator.java:268)
+ at org.eclipse.wb.internal.core.eval.evaluators.InvocationEvaluator.evaluate(InvocationEvaluator.java:81)
+ at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate0(AstEvaluationEngine.java:177)
+ at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate(AstEvaluationEngine.java:61)
+ ... 61 more
+Caused by: java.lang.IllegalArgumentException: Container must be non-null
+ at javax.swing.GroupLayout.<init>(Unknown Source)
+ at sun.reflect.GeneratedConstructorAccessor33.newInstance(Unknown Source)
+ at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
+ at java.lang.reflect.Constructor.newInstance(Unknown Source)
+ at org.eclipse.wb.internal.core.eval.evaluators.InvocationEvaluator.evaluate(InvocationEvaluator.java:262)
+ ... 64 more
+
+!ENTRY org.eclipse.ui 2 2 2015-01-29 17:43:17.155
+!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
+!SESSION 2015-01-30 09:29:03.474 -----------------------------------------------
+eclipse.buildId=M20130204-1200
+java.version=1.7.0_45
+java.vendor=Oracle Corporation
+BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
+Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
+Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:50.656
-!MESSAGE Unhandled event loop exception
+!ENTRY org.eclipse.ui 4 4 2015-01-30 09:29:21.865
+!MESSAGE Could not create action delegate for id: org.eclipse.jdt.debug.ui.actions.ManageBreakpointRulerAction
+
+!ENTRY org.eclipse.equinox.registry 4 1 2015-01-30 09:29:21.877
+!MESSAGE Plug-in org.eclipse.wb.core.java was unable to load class org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate.
!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
+java.lang.ClassNotFoundException: org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
+ at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
+ at java.lang.ClassLoader.loadClass(Unknown Source)
+ at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
+ at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
+ at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
+ at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
+ at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
+ at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
+ at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
+ at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:265)
+ at org.eclipse.ui.internal.PluginAction.createDelegate(PluginAction.java:122)
+ at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:275)
+ at org.eclipse.ui.internal.PluginAction.<init>(PluginAction.java:112)
+ at org.eclipse.ui.internal.PartPluginAction.<init>(PartPluginAction.java:29)
+ at org.eclipse.ui.internal.EditorPluginAction.<init>(EditorPluginAction.java:32)
+ at org.eclipse.ui.internal.ActionDescriptor.createAction(ActionDescriptor.java:262)
+ at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:176)
+ at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:103)
+ at org.eclipse.ui.internal.EditorActionBuilder.createActionDescriptor(EditorActionBuilder.java:41)
+ at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:161)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElementChildren(RegistryReader.java:133)
+ at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readExtension(RegistryReader.java:155)
+ at org.eclipse.ui.internal.registry.RegistryReader.readRegistry(RegistryReader.java:176)
+ at org.eclipse.ui.internal.PluginActionBuilder.readContributions(PluginActionBuilder.java:115)
+ at org.eclipse.ui.internal.EditorActionBuilder.readActionExtensions(EditorActionBuilder.java:58)
+ at org.eclipse.ui.internal.EditorReference.createEditorActionBars(EditorReference.java:446)
+ at org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:356)
+ at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:301)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:50.666
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
+ at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:861)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:841)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:113)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:321)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:242)
+ at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:161)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
+ at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:141)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1115)
+ at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:98)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.workbench.renderers.swt.WBWRenderer.processContents(WBWRenderer.java:644)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$6.run(PartRenderingEngine.java:520)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:505)
+ at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveRenderer.processContents(PerspectiveRenderer.java:67)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.showTab(PerspectiveStackRenderer.java:103)
+ at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:98)
+ at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.postProcess(PerspectiveStackRenderer.java:77)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.workbench.renderers.swt.WBWRenderer.processContents(WBWRenderer.java:644)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:987)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:50.676
-!MESSAGE Unhandled event loop exception
+!ENTRY org.eclipse.egit.ui 2 0 2015-01-30 09:29:28.121
+!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
+Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
+The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
+this system level configuration. The Git installation location can be configured on the
+Team > Git > Configuration preference page's 'System Settings' tab.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
+
+!ENTRY org.eclipse.egit.ui 2 0 2015-01-30 09:29:28.123
+!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
+user global configuration and to define the default location to store repositories: 'C:\Users\raisaro'. If this is
+not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
+EGit might behave differently since they see different configuration options.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
+
+!ENTRY org.eclipse.ui 4 4 2015-01-30 09:31:39.543
+!MESSAGE Could not create action delegate for id: org.eclipse.jdt.debug.ui.actions.ManageBreakpointRulerAction
+
+!ENTRY org.eclipse.equinox.registry 4 1 2015-01-30 09:31:39.544
+!MESSAGE Plug-in org.eclipse.wb.core.java was unable to load class org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate.
!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
+java.lang.ClassNotFoundException: org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
+ at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
+ at java.lang.ClassLoader.loadClass(Unknown Source)
+ at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
+ at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
+ at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
+ at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
+ at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
+ at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
+ at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
+ at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:265)
+ at org.eclipse.ui.internal.PluginAction.createDelegate(PluginAction.java:122)
+ at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:275)
+ at org.eclipse.ui.internal.PluginAction.<init>(PluginAction.java:112)
+ at org.eclipse.ui.internal.PartPluginAction.<init>(PartPluginAction.java:29)
+ at org.eclipse.ui.internal.EditorPluginAction.<init>(EditorPluginAction.java:32)
+ at org.eclipse.ui.internal.ActionDescriptor.createAction(ActionDescriptor.java:262)
+ at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:176)
+ at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:103)
+ at org.eclipse.ui.internal.EditorActionBuilder.createActionDescriptor(EditorActionBuilder.java:41)
+ at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:161)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElementChildren(RegistryReader.java:133)
+ at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readExtension(RegistryReader.java:155)
+ at org.eclipse.ui.internal.registry.RegistryReader.readRegistry(RegistryReader.java:176)
+ at org.eclipse.ui.internal.PluginActionBuilder.readContributions(PluginActionBuilder.java:115)
+ at org.eclipse.ui.internal.EditorActionBuilder.readActionExtensions(EditorActionBuilder.java:58)
+ at org.eclipse.ui.internal.EditorReference.createEditorActionBars(EditorReference.java:446)
+ at org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:356)
+ at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:301)
+ at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+ at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
+ at java.lang.reflect.Method.invoke(Unknown Source)
+ at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:861)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:841)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:113)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:321)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:242)
+ at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:161)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
+ at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:141)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1115)
+ at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer$1.handleEvent(LazyStackRenderer.java:67)
+ at org.eclipse.e4.ui.services.internal.events.UIEventHandler$1.run(UIEventHandler.java:41)
+ at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
+ at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
+ at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
+ at org.eclipse.e4.ui.internal.workbench.swt.E4Application$1.syncExec(E4Application.java:187)
+ at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:38)
+ at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:197)
+ at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:197)
+ at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)
+ at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
+ at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
+ at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:135)
+ at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:78)
+ at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:39)
+ at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:80)
+ at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:58)
+ at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:374)
+ at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement(ElementContainerImpl.java:171)
+ at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer$8.widgetSelected(StackRenderer.java:911)
+ at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
+ at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
+ at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
+ at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
+ at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
+ at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:774)
+ at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3028)
+ at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1749)
+ at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:278)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:50.686
-!MESSAGE Unhandled event loop exception
+!ENTRY org.eclipse.wb.core 4 4 2015-01-30 09:49:10.256
+!MESSAGE Designer [1.5.2.r42x201302112024.201501300949]: java.lang.NullPointerException
!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
+java.lang.NullPointerException
+ at org.eclipse.wb.internal.swing.model.layout.LayoutInfo.storeLayoutDataDefault(LayoutInfo.java:397)
+ at org.eclipse.wb.internal.swing.model.layout.BoxLayoutInfo.storeLayoutData(BoxLayoutInfo.java:143)
+ at org.eclipse.wb.internal.swing.model.layout.LayoutInfo.onDelete(LayoutInfo.java:213)
+ at org.eclipse.wb.internal.swing.model.layout.LayoutInfo$1.before(LayoutInfo.java:89)
+ at sun.reflect.GeneratedMethodAccessor203.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:50.696
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
+ at org.eclipse.wb.core.model.broadcast.BroadcastSupport$1.intercept(BroadcastSupport.java:208)
+ at org.eclipse.wb.core.model.broadcast.ObjectInfoDelete$$EnhancerByCGLIB$$7eb8a89a.before(<generated>)
+ at org.eclipse.wb.core.model.JavaInfo$7.run(JavaInfo.java:790)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.run(ExecutionUtils.java:324)
+ at org.eclipse.wb.core.model.JavaInfo.delete(JavaInfo.java:784)
+ at org.eclipse.wb.internal.core.model.JavaInfoUtils.deleteJavaInfo(JavaInfoUtils.java:2036)
+ at org.eclipse.wb.internal.core.model.creation.ConstructorCreationSupport.delete(ConstructorCreationSupport.java:418)
+ at org.eclipse.wb.core.model.JavaInfo$7.run(JavaInfo.java:796)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.run(ExecutionUtils.java:324)
+ at org.eclipse.wb.core.model.JavaInfo.delete(JavaInfo.java:784)
+ at org.eclipse.wb.core.model.AbstractComponentInfo.delete(AbstractComponentInfo.java:215)
+ at org.eclipse.wb.internal.core.editor.actions.DeleteAction$2.executeEdit(DeleteAction.java:123)
+ at org.eclipse.wb.core.gef.command.EditCommand$1.run(EditCommand.java:52)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.run(ExecutionUtils.java:324)
+ at org.eclipse.wb.core.gef.command.EditCommand.execute(EditCommand.java:50)
+ at org.eclipse.wb.internal.gef.core.CompoundCommand.execute(CompoundCommand.java:89)
+ at org.eclipse.wb.core.gef.command.CompoundEditCommand.access$0(CompoundEditCommand.java:1)
+ at org.eclipse.wb.core.gef.command.CompoundEditCommand$1.run(CompoundEditCommand.java:47)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.run(ExecutionUtils.java:324)
+ at org.eclipse.wb.core.gef.command.CompoundEditCommand.execute(CompoundEditCommand.java:45)
+ at org.eclipse.wb.internal.gef.core.EditDomain.executeCommand(EditDomain.java:59)
+ at org.eclipse.wb.internal.core.editor.actions.DeleteAction.run(DeleteAction.java:64)
+ at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
+ at org.eclipse.jface.commands.ActionHandler.execute(ActionHandler.java:119)
+ at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:76)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:50.706
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
+ at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:231)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:212)
+ at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:131)
+ at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:171)
+ at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.executeCommand(KeyBindingDispatcher.java:277)
+ at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.press(KeyBindingDispatcher.java:496)
+ at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.processKeyEvent(KeyBindingDispatcher.java:547)
+ at org.eclipse.e4.ui.bindings.keys.OutOfOrderListener.handleEvent(OutOfOrderListener.java:60)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
+ at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
+ at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
+ at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1104)
+ at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1100)
+ at org.eclipse.swt.widgets.Widget.wmKeyDown(Widget.java:1823)
+ at org.eclipse.swt.widgets.Control.WM_KEYDOWN(Control.java:4892)
+ at org.eclipse.swt.widgets.Tree.WM_KEYDOWN(Tree.java:6109)
+ at org.eclipse.swt.widgets.Control.windowProc(Control.java:4560)
+ at org.eclipse.swt.widgets.Tree.windowProc(Tree.java:5977)
+ at org.eclipse.swt.widgets.Display.windowProc(Display.java:4976)
+ at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
+ at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2546)
+ at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3756)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:50.716
-!MESSAGE Unhandled event loop exception
+!ENTRY org.eclipse.ui 2 2 2015-01-30 10:00:56.273
+!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
+
+!ENTRY org.eclipse.wb.core 4 4 2015-01-30 10:06:22.702
+!MESSAGE Designer [1.5.2.r42x201302112024.201501300949]: java.lang.NullPointerException
!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
+java.lang.NullPointerException
+ at org.eclipse.wb.internal.swing.model.layout.LayoutInfo.storeLayoutDataDefault(LayoutInfo.java:397)
+ at org.eclipse.wb.internal.swing.model.layout.BoxLayoutInfo.storeLayoutData(BoxLayoutInfo.java:143)
+ at org.eclipse.wb.internal.swing.model.layout.LayoutInfo.onDelete(LayoutInfo.java:213)
+ at org.eclipse.wb.internal.swing.model.layout.LayoutInfo$1.before(LayoutInfo.java:89)
+ at sun.reflect.GeneratedMethodAccessor203.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:50.726
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
+ at org.eclipse.wb.core.model.broadcast.BroadcastSupport$1.intercept(BroadcastSupport.java:208)
+ at org.eclipse.wb.core.model.broadcast.ObjectInfoDelete$$EnhancerByCGLIB$$7eb8a89a.before(<generated>)
+ at org.eclipse.wb.core.model.JavaInfo$7.run(JavaInfo.java:790)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.run(ExecutionUtils.java:324)
+ at org.eclipse.wb.core.model.JavaInfo.delete(JavaInfo.java:784)
+ at org.eclipse.wb.internal.swing.model.component.ContainerInfo.setLayout(ContainerInfo.java:409)
+ at org.eclipse.wb.internal.swing.model.component.ContainerInfo$5.runEx(ContainerInfo.java:199)
+ at org.eclipse.wb.internal.core.model.util.ObjectInfoAction$1$1.run(ObjectInfoAction.java:86)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.run(ExecutionUtils.java:324)
+ at org.eclipse.wb.internal.core.model.util.ObjectInfoAction$1.run(ObjectInfoAction.java:84)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runLog(ExecutionUtils.java:106)
+ at org.eclipse.wb.internal.core.model.util.ObjectInfoAction.run(ObjectInfoAction.java:81)
+ at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
+ at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
+ at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
+ at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:50.736
-!MESSAGE Unhandled event loop exception
+!ENTRY org.eclipse.wb.core 4 4 2015-01-30 10:06:22.918
+!MESSAGE Designer [1.5.2.r42x201302112024.201501300949]: java.lang.NullPointerException
!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
+java.lang.NullPointerException
+ at org.eclipse.wb.internal.swing.java6.model.SwingVisualMapper.getComponentPreferredSize(SwingVisualMapper.java:85)
+ at org.netbeans.modules.form.layoutdesign.LayoutDesigner.copyLayoutFromOutside(LayoutDesigner.java:1516)
+ at org.eclipse.wb.internal.layout.group.model.GroupLayoutSupport.onSet(GroupLayoutSupport.java:238)
+ at org.eclipse.wb.internal.swing.java6.model.GroupLayoutInfo2.onSet(GroupLayoutInfo2.java:120)
+ at org.eclipse.wb.internal.swing.model.component.ContainerInfo.setLayout(ContainerInfo.java:421)
+ at org.eclipse.wb.internal.swing.model.component.ContainerInfo$5.runEx(ContainerInfo.java:199)
+ at org.eclipse.wb.internal.core.model.util.ObjectInfoAction$1$1.run(ObjectInfoAction.java:86)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.run(ExecutionUtils.java:324)
+ at org.eclipse.wb.internal.core.model.util.ObjectInfoAction$1.run(ObjectInfoAction.java:84)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runLog(ExecutionUtils.java:106)
+ at org.eclipse.wb.internal.core.model.util.ObjectInfoAction.run(ObjectInfoAction.java:81)
+ at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
+ at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
+ at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
+ at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:50.756
-!MESSAGE Unhandled event loop exception
+!ENTRY org.eclipse.wb.core 4 4 2015-01-30 10:07:13.967
+!MESSAGE Designer [1.5.2.r42x201302112024.201501300949]: java.lang.NullPointerException
!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
+java.lang.NullPointerException
+ at org.eclipse.wb.internal.swing.model.layout.LayoutInfo.storeLayoutDataDefault(LayoutInfo.java:397)
+ at org.eclipse.wb.internal.swing.model.layout.BoxLayoutInfo.storeLayoutData(BoxLayoutInfo.java:143)
+ at org.eclipse.wb.internal.swing.model.layout.LayoutInfo.onDelete(LayoutInfo.java:213)
+ at org.eclipse.wb.internal.swing.model.layout.LayoutInfo$1.before(LayoutInfo.java:89)
+ at sun.reflect.GeneratedMethodAccessor203.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:50.756
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
+ at org.eclipse.wb.core.model.broadcast.BroadcastSupport$1.intercept(BroadcastSupport.java:208)
+ at org.eclipse.wb.core.model.broadcast.ObjectInfoDelete$$EnhancerByCGLIB$$7eb8a89a.before(<generated>)
+ at org.eclipse.wb.core.model.JavaInfo$7.run(JavaInfo.java:790)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.run(ExecutionUtils.java:324)
+ at org.eclipse.wb.core.model.JavaInfo.delete(JavaInfo.java:784)
+ at org.eclipse.wb.internal.swing.model.component.ContainerInfo.setLayout(ContainerInfo.java:409)
+ at org.eclipse.wb.internal.swing.model.component.ContainerInfo$5.runEx(ContainerInfo.java:199)
+ at org.eclipse.wb.internal.core.model.util.ObjectInfoAction$1$1.run(ObjectInfoAction.java:86)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.run(ExecutionUtils.java:324)
+ at org.eclipse.wb.internal.core.model.util.ObjectInfoAction$1.run(ObjectInfoAction.java:84)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runLog(ExecutionUtils.java:106)
+ at org.eclipse.wb.internal.core.model.util.ObjectInfoAction.run(ObjectInfoAction.java:81)
+ at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
+ at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
+ at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
+ at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:50.776
-!MESSAGE Unhandled event loop exception
+!ENTRY org.eclipse.wb.core 4 4 2015-01-30 10:07:14.126
+!MESSAGE Designer [1.5.2.r42x201302112024.201501300949]: java.lang.NullPointerException
!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
+java.lang.NullPointerException
+ at org.eclipse.wb.internal.swing.java6.model.SwingVisualMapper.getComponentPreferredSize(SwingVisualMapper.java:85)
+ at org.netbeans.modules.form.layoutdesign.LayoutDesigner.copyLayoutFromOutside(LayoutDesigner.java:1516)
+ at org.eclipse.wb.internal.layout.group.model.GroupLayoutSupport.onSet(GroupLayoutSupport.java:238)
+ at org.eclipse.wb.internal.swing.java6.model.GroupLayoutInfo2.onSet(GroupLayoutInfo2.java:120)
+ at org.eclipse.wb.internal.swing.model.component.ContainerInfo.setLayout(ContainerInfo.java:421)
+ at org.eclipse.wb.internal.swing.model.component.ContainerInfo$5.runEx(ContainerInfo.java:199)
+ at org.eclipse.wb.internal.core.model.util.ObjectInfoAction$1$1.run(ObjectInfoAction.java:86)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.run(ExecutionUtils.java:324)
+ at org.eclipse.wb.internal.core.model.util.ObjectInfoAction$1.run(ObjectInfoAction.java:84)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runLog(ExecutionUtils.java:106)
+ at org.eclipse.wb.internal.core.model.util.ObjectInfoAction.run(ObjectInfoAction.java:81)
+ at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
+ at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
+ at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
+ at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
+!SESSION 2015-01-30 16:47:48.623 -----------------------------------------------
+eclipse.buildId=M20130204-1200
+java.version=1.7.0_45
+java.vendor=Oracle Corporation
+BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
+Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
+Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:50.786
-!MESSAGE Unhandled event loop exception
+!ENTRY org.eclipse.ui 4 4 2015-01-30 16:47:56.948
+!MESSAGE Could not create action delegate for id: org.eclipse.jdt.debug.ui.actions.ManageBreakpointRulerAction
+
+!ENTRY org.eclipse.equinox.registry 4 1 2015-01-30 16:47:56.953
+!MESSAGE Plug-in org.eclipse.wb.core.java was unable to load class org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate.
!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
+java.lang.ClassNotFoundException: org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
+ at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
+ at java.lang.ClassLoader.loadClass(Unknown Source)
+ at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
+ at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
+ at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
+ at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
+ at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
+ at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
+ at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
+ at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:265)
+ at org.eclipse.ui.internal.PluginAction.createDelegate(PluginAction.java:122)
+ at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:275)
+ at org.eclipse.ui.internal.PluginAction.<init>(PluginAction.java:112)
+ at org.eclipse.ui.internal.PartPluginAction.<init>(PartPluginAction.java:29)
+ at org.eclipse.ui.internal.EditorPluginAction.<init>(EditorPluginAction.java:32)
+ at org.eclipse.ui.internal.ActionDescriptor.createAction(ActionDescriptor.java:262)
+ at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:176)
+ at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:103)
+ at org.eclipse.ui.internal.EditorActionBuilder.createActionDescriptor(EditorActionBuilder.java:41)
+ at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:161)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElementChildren(RegistryReader.java:133)
+ at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readExtension(RegistryReader.java:155)
+ at org.eclipse.ui.internal.registry.RegistryReader.readRegistry(RegistryReader.java:176)
+ at org.eclipse.ui.internal.PluginActionBuilder.readContributions(PluginActionBuilder.java:115)
+ at org.eclipse.ui.internal.EditorActionBuilder.readActionExtensions(EditorActionBuilder.java:58)
+ at org.eclipse.ui.internal.EditorReference.createEditorActionBars(EditorReference.java:446)
+ at org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:356)
+ at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:301)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:50.786
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
+ at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:861)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:841)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:113)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:321)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:242)
+ at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:161)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
+ at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:141)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1115)
+ at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:98)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$6.run(PartRenderingEngine.java:520)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:505)
+ at org.eclipse.e4.ui.workbench.renderers.swt.ElementReferenceRenderer.createWidget(ElementReferenceRenderer.java:74)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveRenderer.processContents(PerspectiveRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.showTab(PerspectiveStackRenderer.java:103)
+ at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:98)
+ at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.postProcess(PerspectiveStackRenderer.java:77)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.workbench.renderers.swt.WBWRenderer.processContents(WBWRenderer.java:644)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:987)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:50.896
-!MESSAGE Unhandled event loop exception
+!ENTRY org.eclipse.egit.ui 2 0 2015-01-30 16:48:02.993
+!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
+Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
+The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
+this system level configuration. The Git installation location can be configured on the
+Team > Git > Configuration preference page's 'System Settings' tab.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
+
+!ENTRY org.eclipse.egit.ui 2 0 2015-01-30 16:48:02.995
+!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
+user global configuration and to define the default location to store repositories: 'C:\Users\raisaro'. If this is
+not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
+EGit might behave differently since they see different configuration options.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
+
+!ENTRY org.eclipse.ui 2 2 2015-01-30 16:48:30.112
+!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
+!SESSION 2015-02-02 14:57:56.450 -----------------------------------------------
+eclipse.buildId=M20130204-1200
+java.version=1.7.0_45
+java.vendor=Oracle Corporation
+BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
+Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
+Command-line arguments: -data C:\Users\raisaro\workspace\yussef -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
+
+!ENTRY org.eclipse.ui 4 4 2015-02-02 14:58:01.582
+!MESSAGE Could not create action delegate for id: org.eclipse.jdt.debug.ui.actions.ManageBreakpointRulerAction
+
+!ENTRY org.eclipse.equinox.registry 4 1 2015-02-02 14:58:01.598
+!MESSAGE Plug-in org.eclipse.wb.core.java was unable to load class org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate.
!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
+java.lang.ClassNotFoundException: org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
+ at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
+ at java.lang.ClassLoader.loadClass(Unknown Source)
+ at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
+ at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
+ at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
+ at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
+ at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
+ at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
+ at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
+ at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:265)
+ at org.eclipse.ui.internal.PluginAction.createDelegate(PluginAction.java:122)
+ at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:275)
+ at org.eclipse.ui.internal.PluginAction.<init>(PluginAction.java:112)
+ at org.eclipse.ui.internal.PartPluginAction.<init>(PartPluginAction.java:29)
+ at org.eclipse.ui.internal.EditorPluginAction.<init>(EditorPluginAction.java:32)
+ at org.eclipse.ui.internal.ActionDescriptor.createAction(ActionDescriptor.java:262)
+ at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:176)
+ at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:103)
+ at org.eclipse.ui.internal.EditorActionBuilder.createActionDescriptor(EditorActionBuilder.java:41)
+ at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:161)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElementChildren(RegistryReader.java:133)
+ at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readExtension(RegistryReader.java:155)
+ at org.eclipse.ui.internal.registry.RegistryReader.readRegistry(RegistryReader.java:176)
+ at org.eclipse.ui.internal.PluginActionBuilder.readContributions(PluginActionBuilder.java:115)
+ at org.eclipse.ui.internal.EditorActionBuilder.readActionExtensions(EditorActionBuilder.java:58)
+ at org.eclipse.ui.internal.EditorReference.createEditorActionBars(EditorReference.java:446)
+ at org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:356)
+ at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:301)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:50.916
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:50.926
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:50.936
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:50.946
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:50.956
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:50.966
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:50.976
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:50.976
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:50.986
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:51.248
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:51.288
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:51.298
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:51.308
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:51.309
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:51.310
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:51.330
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:51.350
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:51.360
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:51.400
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:51.410
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:51.430
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:51.460
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:51.470
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:51.480
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:51.480
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:51.490
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:51.500
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:51.510
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:51.520
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:51.520
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:51.530
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:51.540
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:51.550
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:51.560
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:51.560
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:51.570
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:51.580
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:51.590
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:51.600
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:51.600
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:51.610
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:51.620
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:51.630
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:51.640
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:51.650
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:51.660
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:51.670
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:51.680
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:51.680
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:51.690
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:51.710
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:51.720
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:51.730
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:51.740
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:51.750
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:51.760
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:51.760
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:51.770
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:51.780
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:51.790
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:51.800
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:51.800
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:51.810
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:51.980
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:52.000
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:52.000
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:52.010
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:52.030
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:52.040
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:52.040
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:52.050
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:52.060
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:52.070
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:52.080
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:52.080
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:52.090
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:52.100
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:52.110
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:52.120
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:52.120
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:52.130
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:52.140
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:52.150
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:52.160
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:52.160
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:52.170
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:52.180
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:52.190
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:52.200
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:52.210
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:52.230
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:52.240
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:52.250
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
+ at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:861)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:841)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:113)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:321)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:242)
+ at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:161)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
+ at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:141)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1115)
+ at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:98)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$6.run(PartRenderingEngine.java:520)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:505)
+ at org.eclipse.e4.ui.workbench.renderers.swt.ElementReferenceRenderer.createWidget(ElementReferenceRenderer.java:74)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveRenderer.processContents(PerspectiveRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.showTab(PerspectiveStackRenderer.java:103)
+ at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:98)
+ at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.postProcess(PerspectiveStackRenderer.java:77)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.workbench.renderers.swt.WBWRenderer.processContents(WBWRenderer.java:644)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:987)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:52.270
-!MESSAGE Unhandled event loop exception
+!ENTRY org.eclipse.egit.ui 2 0 2015-02-02 14:58:07.994
+!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
+Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
+The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
+this system level configuration. The Git installation location can be configured on the
+Team > Git > Configuration preference page's 'System Settings' tab.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
+
+!ENTRY org.eclipse.egit.ui 2 0 2015-02-02 14:58:07.994
+!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
+user global configuration and to define the default location to store repositories: 'C:\Users\raisaro'. If this is
+not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
+EGit might behave differently since they see different configuration options.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
+
+!ENTRY org.eclipse.ui 2 2 2015-02-02 15:01:21.247
+!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
+!SESSION 2015-02-02 16:32:29.139 -----------------------------------------------
+eclipse.buildId=M20130204-1200
+java.version=1.7.0_45
+java.vendor=Oracle Corporation
+BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
+Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
+Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
+
+!ENTRY org.eclipse.ui 4 4 2015-02-02 16:32:38.574
+!MESSAGE Could not create action delegate for id: org.eclipse.jdt.debug.ui.actions.ManageBreakpointRulerAction
+
+!ENTRY org.eclipse.equinox.registry 4 1 2015-02-02 16:32:38.574
+!MESSAGE Plug-in org.eclipse.wb.core.java was unable to load class org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate.
!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
+java.lang.ClassNotFoundException: org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
+ at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
+ at java.lang.ClassLoader.loadClass(Unknown Source)
+ at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
+ at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
+ at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
+ at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
+ at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
+ at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
+ at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
+ at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:265)
+ at org.eclipse.ui.internal.PluginAction.createDelegate(PluginAction.java:122)
+ at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:275)
+ at org.eclipse.ui.internal.PluginAction.<init>(PluginAction.java:112)
+ at org.eclipse.ui.internal.PartPluginAction.<init>(PartPluginAction.java:29)
+ at org.eclipse.ui.internal.EditorPluginAction.<init>(EditorPluginAction.java:32)
+ at org.eclipse.ui.internal.ActionDescriptor.createAction(ActionDescriptor.java:262)
+ at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:176)
+ at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:103)
+ at org.eclipse.ui.internal.EditorActionBuilder.createActionDescriptor(EditorActionBuilder.java:41)
+ at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:161)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElementChildren(RegistryReader.java:133)
+ at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readExtension(RegistryReader.java:155)
+ at org.eclipse.ui.internal.registry.RegistryReader.readRegistry(RegistryReader.java:176)
+ at org.eclipse.ui.internal.PluginActionBuilder.readContributions(PluginActionBuilder.java:115)
+ at org.eclipse.ui.internal.EditorActionBuilder.readActionExtensions(EditorActionBuilder.java:58)
+ at org.eclipse.ui.internal.EditorReference.createEditorActionBars(EditorReference.java:446)
+ at org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:356)
+ at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:301)
+ at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+ at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
+ at java.lang.reflect.Method.invoke(Unknown Source)
+ at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:861)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:841)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:113)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:321)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:242)
+ at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:161)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
+ at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:141)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1115)
+ at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:98)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$6.run(PartRenderingEngine.java:520)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:505)
+ at org.eclipse.e4.ui.workbench.renderers.swt.ElementReferenceRenderer.createWidget(ElementReferenceRenderer.java:74)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveRenderer.processContents(PerspectiveRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.showTab(PerspectiveStackRenderer.java:103)
+ at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:98)
+ at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.postProcess(PerspectiveStackRenderer.java:77)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.workbench.renderers.swt.WBWRenderer.processContents(WBWRenderer.java:644)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:987)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
+
+!ENTRY org.eclipse.egit.ui 2 0 2015-02-02 16:32:44.253
+!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
+Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
+The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
+this system level configuration. The Git installation location can be configured on the
+Team > Git > Configuration preference page's 'System Settings' tab.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
+
+!ENTRY org.eclipse.egit.ui 2 0 2015-02-02 16:32:44.253
+!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
+user global configuration and to define the default location to store repositories: 'C:\Users\raisaro'. If this is
+not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
+EGit might behave differently since they see different configuration options.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
+
+!ENTRY org.eclipse.ui 2 2 2015-02-02 17:29:18.264
+!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
+!SESSION 2015-02-04 09:38:59.904 -----------------------------------------------
+eclipse.buildId=M20130204-1200
+java.version=1.8.0_31
+java.vendor=Oracle Corporation
+BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
+Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
+Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
+
+!ENTRY org.eclipse.egit.ui 2 0 2015-02-04 09:39:15.491
+!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
+Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
+The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
+this system level configuration. The Git installation location can be configured on the
+Team > Git > Configuration preference page's 'System Settings' tab.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
+
+!ENTRY org.eclipse.egit.ui 2 0 2015-02-04 09:39:15.491
+!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
+user global configuration and to define the default location to store repositories: 'C:\Users\raisaro'. If this is
+not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
+EGit might behave differently since they see different configuration options.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
+
+!ENTRY org.eclipse.ui 4 4 2015-02-04 09:43:55.139
+!MESSAGE Could not create action delegate for id: org.eclipse.jdt.debug.ui.actions.ManageBreakpointRulerAction
+
+!ENTRY org.eclipse.equinox.registry 4 1 2015-02-04 09:43:55.139
+!MESSAGE Plug-in org.eclipse.wb.core.java was unable to load class org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate.
+!STACK 0
+java.lang.ClassNotFoundException: org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
+ at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
+ at java.lang.ClassLoader.loadClass(Unknown Source)
+ at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
+ at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
+ at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
+ at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
+ at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
+ at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
+ at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
+ at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:265)
+ at org.eclipse.ui.internal.PluginAction.createDelegate(PluginAction.java:122)
+ at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:275)
+ at org.eclipse.ui.internal.PluginAction.<init>(PluginAction.java:112)
+ at org.eclipse.ui.internal.PartPluginAction.<init>(PartPluginAction.java:29)
+ at org.eclipse.ui.internal.EditorPluginAction.<init>(EditorPluginAction.java:32)
+ at org.eclipse.ui.internal.ActionDescriptor.createAction(ActionDescriptor.java:262)
+ at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:176)
+ at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:103)
+ at org.eclipse.ui.internal.EditorActionBuilder.createActionDescriptor(EditorActionBuilder.java:41)
+ at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:161)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElementChildren(RegistryReader.java:133)
+ at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readExtension(RegistryReader.java:155)
+ at org.eclipse.ui.internal.registry.RegistryReader.readRegistry(RegistryReader.java:176)
+ at org.eclipse.ui.internal.PluginActionBuilder.readContributions(PluginActionBuilder.java:115)
+ at org.eclipse.ui.internal.EditorActionBuilder.readActionExtensions(EditorActionBuilder.java:58)
+ at org.eclipse.ui.internal.EditorReference.createEditorActionBars(EditorReference.java:446)
+ at org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:356)
+ at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:301)
+ at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+ at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:52.280
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
+ at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:861)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:841)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:113)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:321)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:242)
+ at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:161)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
+ at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:141)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.createElement(PartServiceImpl.java:1071)
+ at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.showPart(PartServiceImpl.java:1033)
+ at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:464)
+ at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:269)
+ at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2999)
+ at org.eclipse.ui.internal.WorkbenchPage.access$22(WorkbenchPage.java:2969)
+ at org.eclipse.ui.internal.WorkbenchPage$8.run(WorkbenchPage.java:2951)
+ at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
+ at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2947)
+ at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2911)
+ at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2902)
+ at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:373)
+ at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:179)
+ at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:249)
+ at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:228)
+ at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:275)
+ at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:251)
+ at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup.handleOpen(PackageExplorerActionGroup.java:376)
+ at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$4.open(PackageExplorerPart.java:538)
+ at org.eclipse.ui.OpenAndLinkWithEditorHelper$InternalListener.open(OpenAndLinkWithEditorHelper.java:48)
+ at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:866)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
+ at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
+ at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:864)
+ at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1152)
+ at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1256)
+ at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:275)
+ at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:269)
+ at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:309)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:52.520
-!MESSAGE Unhandled event loop exception
+!ENTRY org.eclipse.wb.core 4 4 2015-02-04 11:02:16.960
+!MESSAGE Designer [1.5.2.r42x201302112024.201502041102]: 313 (Exception during 'super' constructor evaluation). JFrame() {} java.lang.NullPointerException
+ at java.beans.MethodRef.get(Unknown Source)
+ at java.beans.PropertyDescriptor.getWriteMethod(Unknown Source)
!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
+org.eclipse.wb.internal.core.utils.exception.DesignerException: 313 (Exception during 'super' constructor evaluation). JFrame() {} java.lang.NullPointerException
+ at java.beans.MethodRef.get(Unknown Source)
+ at java.beans.PropertyDescriptor.getWriteMethod(Unknown Source)
+ at org.eclipse.wb.internal.core.model.creation.ThisCreationSupport.create(ThisCreationSupport.java:275)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluateJavaInfoUsingCreationSupport(JavaInfoEvaluationHelper.java:642)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.addJavaInfo(JavaInfoParser.java:1261)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:253)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$9(JavaInfoParser.java:238)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:153)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:1)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:159)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:151)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:534)
+ at org.eclipse.wb.internal.core.editor.DesignPage.access$9(DesignPage.java:522)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8$1.run(DesignPage.java:449)
+ at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
+ at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
+ at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8.run(DesignPage.java:446)
+ at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
+ at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
+ at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF_withProgress(DesignPage.java:465)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:415)
+ at org.eclipse.wb.internal.core.editor.UndoManager.refreshDesignerEditor(UndoManager.java:381)
+ at org.eclipse.wb.internal.core.editor.UndoManager.activate(UndoManager.java:90)
+ at org.eclipse.wb.internal.core.editor.DesignPage.handleActiveState_True(DesignPage.java:263)
+ at org.eclipse.wb.internal.core.editor.DesignPage.handleActiveState(DesignPage.java:241)
+ at org.eclipse.wb.internal.core.editor.multi.DefaultMultiMode.showPage(DefaultMultiMode.java:125)
+ at org.eclipse.wb.internal.core.editor.multi.DefaultMultiMode$1.widgetSelected(DefaultMultiMode.java:63)
+ at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
+ at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
+ at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
+ at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
+ at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
+ at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:774)
+ at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3028)
+ at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1749)
+ at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:278)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
+ at java.beans.MethodRef.get(Unknown Source)
+ at java.beans.PropertyDescriptor.getWriteMethod(Unknown Source)
+ at org.eclipse.wb.internal.core.model.JavaInfoUtils.addExposedChildred_Method(JavaInfoUtils.java:447)
+ at org.eclipse.wb.internal.core.model.JavaInfoUtils.addExposedChildren(JavaInfoUtils.java:429)
+ at org.eclipse.wb.internal.swing.model.component.ComponentInfo.createExposedChildren(ComponentInfo.java:109)
+ at org.eclipse.wb.internal.swing.model.component.ContainerInfo.createExposedChildren(ContainerInfo.java:143)
+ at org.eclipse.wb.core.model.JavaInfo.initialize(JavaInfo.java:419)
+ at org.eclipse.wb.internal.swing.model.component.ContainerInfo.initialize(ContainerInfo.java:114)
+ at org.eclipse.wb.core.model.JavaInfo.setObject(JavaInfo.java:1267)
+ at org.eclipse.wb.internal.core.model.creation.ThisCreationSupport.create(ThisCreationSupport.java:269)
+ ... 61 more
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:52.520
-!MESSAGE Unhandled event loop exception
+!ENTRY org.eclipse.wb.core 4 4 2015-02-04 11:02:23.182
+!MESSAGE Designer [1.5.2.r42x201302112024.201502041102]: new javax.swing.JPanel()
!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
+java.lang.Error: new javax.swing.JPanel()
+ at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate(AstEvaluationEngine.java:71)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluateExpression(JavaInfoEvaluationHelper.java:630)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluate(JavaInfoEvaluationHelper.java:502)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.evaluateNode(JavaInfoParser.java:1309)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$1(JavaInfoParser.java:1300)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor$3.run(JavaInfoParser.java:602)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runRethrow(ExecutionUtils.java:119)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor.postVisit(JavaInfoParser.java:592)
+ at sun.reflect.GeneratedMethodAccessor35.invoke(Unknown Source)
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
+ at java.lang.reflect.Method.invoke(Unknown Source)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:399)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$1f153325.postVisit(<generated>)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2517)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.Assignment.accept0(Assignment.java:312)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.access$1(ExecutionFlowUtils.java:235)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.endVisit(ExecutionFlowUtils.java:442)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:391)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$1f153325.endVisit(<generated>)
+ at org.eclipse.jdt.core.dom.MethodInvocation.accept0(MethodInvocation.java:247)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:343)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:228)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:191)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parseRootMethods(JavaInfoParser.java:312)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:268)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$9(JavaInfoParser.java:238)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:153)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:1)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:159)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:151)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:534)
+ at org.eclipse.wb.internal.core.editor.DesignPage.access$9(DesignPage.java:522)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8$1.run(DesignPage.java:449)
+ at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
+ at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
+ at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8.run(DesignPage.java:446)
+ at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
+ at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
+ at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF_withProgress(DesignPage.java:465)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:415)
+ at org.eclipse.wb.internal.core.editor.UndoManager.refreshDesignerEditor(UndoManager.java:381)
+ at org.eclipse.wb.internal.core.editor.DesignPage.refreshGEF(DesignPage.java:392)
+ at org.eclipse.wb.internal.core.editor.actions.RefreshAction.run(RefreshAction.java:46)
+ at org.eclipse.wb.internal.core.editor.actions.DesignPageAction.run(DesignPageAction.java:34)
+ at org.eclipse.wb.internal.core.editor.errors.JavaExceptionComposite.doRefresh(JavaExceptionComposite.java:87)
+ at org.eclipse.wb.internal.core.editor.errors.ExceptionComposite$3.widgetSelected(ExceptionComposite.java:129)
+ at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
+ at java.beans.MethodRef.get(Unknown Source)
+ at java.beans.PropertyDescriptor.getWriteMethod(Unknown Source)
+ at org.eclipse.wb.internal.core.model.JavaInfoUtils.addExposedChildred_Method(JavaInfoUtils.java:447)
+ at org.eclipse.wb.internal.core.model.JavaInfoUtils.addExposedChildren(JavaInfoUtils.java:429)
+ at org.eclipse.wb.internal.swing.model.component.ComponentInfo.createExposedChildren(ComponentInfo.java:109)
+ at org.eclipse.wb.internal.swing.model.component.ContainerInfo.createExposedChildren(ContainerInfo.java:143)
+ at org.eclipse.wb.core.model.JavaInfo.initialize(JavaInfo.java:419)
+ at org.eclipse.wb.internal.swing.model.component.ContainerInfo.initialize(ContainerInfo.java:114)
+ at org.eclipse.wb.core.model.JavaInfo.setObject(JavaInfo.java:1267)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper$3.evaluationSuccessful(JavaInfoEvaluationHelper.java:271)
+ at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate0(AstEvaluationEngine.java:179)
+ at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate(AstEvaluationEngine.java:61)
+ ... 96 more
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:52.521
-!MESSAGE Unhandled event loop exception
+!ENTRY org.eclipse.wb.core 4 4 2015-02-04 11:02:24.190
+!MESSAGE Designer [1.5.2.r42x201302112024.201502041102]: new javax.swing.JPanel()
!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
+java.lang.Error: new javax.swing.JPanel()
+ at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate(AstEvaluationEngine.java:71)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluateExpression(JavaInfoEvaluationHelper.java:630)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluate(JavaInfoEvaluationHelper.java:502)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.evaluateNode(JavaInfoParser.java:1309)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$1(JavaInfoParser.java:1300)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor$3.run(JavaInfoParser.java:602)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runRethrow(ExecutionUtils.java:119)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor.postVisit(JavaInfoParser.java:592)
+ at sun.reflect.GeneratedMethodAccessor35.invoke(Unknown Source)
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
+ at java.lang.reflect.Method.invoke(Unknown Source)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:399)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$1f153325.postVisit(<generated>)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2517)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.Assignment.accept0(Assignment.java:312)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.access$1(ExecutionFlowUtils.java:235)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.endVisit(ExecutionFlowUtils.java:442)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:391)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$1f153325.endVisit(<generated>)
+ at org.eclipse.jdt.core.dom.MethodInvocation.accept0(MethodInvocation.java:247)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:343)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:228)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:191)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parseRootMethods(JavaInfoParser.java:312)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:268)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$9(JavaInfoParser.java:238)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:153)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:1)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:159)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:151)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:534)
+ at org.eclipse.wb.internal.core.editor.DesignPage.access$9(DesignPage.java:522)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8$1.run(DesignPage.java:449)
+ at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
+ at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
+ at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8.run(DesignPage.java:446)
+ at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
+ at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
+ at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF_withProgress(DesignPage.java:465)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:415)
+ at org.eclipse.wb.internal.core.editor.UndoManager.refreshDesignerEditor(UndoManager.java:381)
+ at org.eclipse.wb.internal.core.editor.DesignPage.refreshGEF(DesignPage.java:392)
+ at org.eclipse.wb.internal.core.editor.actions.RefreshAction.run(RefreshAction.java:46)
+ at org.eclipse.wb.internal.core.editor.actions.DesignPageAction.run(DesignPageAction.java:34)
+ at org.eclipse.wb.internal.core.editor.errors.JavaExceptionComposite.doRefresh(JavaExceptionComposite.java:87)
+ at org.eclipse.wb.internal.core.editor.errors.ExceptionComposite$3.widgetSelected(ExceptionComposite.java:129)
+ at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
+ at java.beans.MethodRef.get(Unknown Source)
+ at java.beans.PropertyDescriptor.getReadMethod(Unknown Source)
+ at org.eclipse.wb.internal.core.model.JavaInfoUtils.addExposedChildred_Method(JavaInfoUtils.java:449)
+ at org.eclipse.wb.internal.core.model.JavaInfoUtils.addExposedChildren(JavaInfoUtils.java:429)
+ at org.eclipse.wb.internal.swing.model.component.ComponentInfo.createExposedChildren(ComponentInfo.java:109)
+ at org.eclipse.wb.internal.swing.model.component.ContainerInfo.createExposedChildren(ContainerInfo.java:143)
+ at org.eclipse.wb.core.model.JavaInfo.initialize(JavaInfo.java:419)
+ at org.eclipse.wb.internal.swing.model.component.ContainerInfo.initialize(ContainerInfo.java:114)
+ at org.eclipse.wb.core.model.JavaInfo.setObject(JavaInfo.java:1267)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper$3.evaluationSuccessful(JavaInfoEvaluationHelper.java:271)
+ at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate0(AstEvaluationEngine.java:179)
+ at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate(AstEvaluationEngine.java:61)
+ ... 96 more
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:52.526
-!MESSAGE Unhandled event loop exception
+!ENTRY org.eclipse.wb.core 4 4 2015-02-04 11:04:30.079
+!MESSAGE Designer [1.5.2.r42x201302112024.201502041102]: new javax.swing.JLabel()
!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
+java.lang.Error: new javax.swing.JLabel()
+ at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate(AstEvaluationEngine.java:71)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluateExpression(JavaInfoEvaluationHelper.java:630)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluate(JavaInfoEvaluationHelper.java:502)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.evaluateNode(JavaInfoParser.java:1309)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$1(JavaInfoParser.java:1300)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor$3.run(JavaInfoParser.java:602)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runRethrow(ExecutionUtils.java:119)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor.postVisit(JavaInfoParser.java:592)
+ at sun.reflect.GeneratedMethodAccessor35.invoke(Unknown Source)
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
+ at java.lang.reflect.Method.invoke(Unknown Source)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:399)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$1f153325.postVisit(<generated>)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2517)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.Assignment.accept0(Assignment.java:312)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.access$1(ExecutionFlowUtils.java:235)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.endVisit(ExecutionFlowUtils.java:442)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:391)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$1f153325.endVisit(<generated>)
+ at org.eclipse.jdt.core.dom.MethodInvocation.accept0(MethodInvocation.java:247)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:343)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:228)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:191)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parseRootMethods(JavaInfoParser.java:312)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:268)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$9(JavaInfoParser.java:238)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:153)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:1)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:159)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:151)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:534)
+ at org.eclipse.wb.internal.core.editor.DesignPage.access$9(DesignPage.java:522)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8$1.run(DesignPage.java:449)
+ at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
+ at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
+ at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8.run(DesignPage.java:446)
+ at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
+ at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
+ at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF_withProgress(DesignPage.java:465)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:415)
+ at org.eclipse.wb.internal.core.editor.UndoManager.refreshDesignerEditor(UndoManager.java:381)
+ at org.eclipse.wb.internal.core.editor.UndoManager.activate(UndoManager.java:90)
+ at org.eclipse.wb.internal.core.editor.DesignPage.handleActiveState_True(DesignPage.java:263)
+ at org.eclipse.wb.internal.core.editor.DesignPage.handleActiveState(DesignPage.java:241)
+ at org.eclipse.wb.internal.core.editor.multi.DefaultMultiMode.showPage(DefaultMultiMode.java:125)
+ at org.eclipse.wb.internal.core.editor.multi.DefaultMultiMode$1.widgetSelected(DefaultMultiMode.java:63)
+ at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
+ at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
+ at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
+ at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
+ at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
+ at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:774)
+ at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3028)
+ at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1749)
+ at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:278)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
+ at java.beans.MethodRef.get(Unknown Source)
+ at java.beans.PropertyDescriptor.getWriteMethod(Unknown Source)
+ at org.eclipse.wb.internal.core.model.JavaInfoUtils.addExposedChildred_Method(JavaInfoUtils.java:447)
+ at org.eclipse.wb.internal.core.model.JavaInfoUtils.addExposedChildren(JavaInfoUtils.java:429)
+ at org.eclipse.wb.internal.swing.model.component.ComponentInfo.createExposedChildren(ComponentInfo.java:109)
+ at org.eclipse.wb.internal.swing.model.component.ContainerInfo.createExposedChildren(ContainerInfo.java:143)
+ at org.eclipse.wb.core.model.JavaInfo.initialize(JavaInfo.java:419)
+ at org.eclipse.wb.internal.swing.model.component.ContainerInfo.initialize(ContainerInfo.java:114)
+ at org.eclipse.wb.core.model.JavaInfo.setObject(JavaInfo.java:1267)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper$3.evaluationSuccessful(JavaInfoEvaluationHelper.java:271)
+ at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate0(AstEvaluationEngine.java:179)
+ at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate(AstEvaluationEngine.java:61)
+ ... 104 more
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:52.551
-!MESSAGE Unhandled event loop exception
+!ENTRY org.eclipse.wb.core 4 4 2015-02-04 11:04:47.986
+!MESSAGE Designer [1.5.2.r42x201302112024.201502041102]: new javax.swing.JLabel()
!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
+java.lang.Error: new javax.swing.JLabel()
+ at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate(AstEvaluationEngine.java:71)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluateExpression(JavaInfoEvaluationHelper.java:630)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluate(JavaInfoEvaluationHelper.java:502)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.evaluateNode(JavaInfoParser.java:1309)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$1(JavaInfoParser.java:1300)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor$3.run(JavaInfoParser.java:602)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runRethrow(ExecutionUtils.java:119)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor.postVisit(JavaInfoParser.java:592)
+ at sun.reflect.GeneratedMethodAccessor35.invoke(Unknown Source)
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
+ at java.lang.reflect.Method.invoke(Unknown Source)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:399)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$1f153325.postVisit(<generated>)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2517)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.Assignment.accept0(Assignment.java:312)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.access$1(ExecutionFlowUtils.java:235)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.endVisit(ExecutionFlowUtils.java:442)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:391)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$1f153325.endVisit(<generated>)
+ at org.eclipse.jdt.core.dom.MethodInvocation.accept0(MethodInvocation.java:247)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:343)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:228)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:191)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parseRootMethods(JavaInfoParser.java:312)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:268)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$9(JavaInfoParser.java:238)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:153)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:1)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:159)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:151)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:534)
+ at org.eclipse.wb.internal.core.editor.DesignPage.access$9(DesignPage.java:522)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8$1.run(DesignPage.java:449)
+ at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
+ at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
+ at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8.run(DesignPage.java:446)
+ at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
+ at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
+ at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF_withProgress(DesignPage.java:465)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:415)
+ at org.eclipse.wb.internal.core.editor.UndoManager.refreshDesignerEditor(UndoManager.java:381)
+ at org.eclipse.wb.internal.core.editor.UndoManager.activate(UndoManager.java:90)
+ at org.eclipse.wb.internal.core.editor.DesignPage.handleActiveState_True(DesignPage.java:263)
+ at org.eclipse.wb.internal.core.editor.DesignPage.handleActiveState(DesignPage.java:241)
+ at org.eclipse.wb.internal.core.editor.multi.DefaultMultiMode.showPage(DefaultMultiMode.java:125)
+ at org.eclipse.wb.internal.core.editor.multi.DefaultMultiMode$1.widgetSelected(DefaultMultiMode.java:63)
+ at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
+ at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
+ at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
+ at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
+ at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
+ at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:774)
+ at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3028)
+ at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1749)
+ at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:278)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
+ at java.beans.MethodRef.get(Unknown Source)
+ at java.beans.PropertyDescriptor.getReadMethod(Unknown Source)
+ at org.eclipse.wb.internal.core.model.JavaInfoUtils.addExposedChildred_Method(JavaInfoUtils.java:449)
+ at org.eclipse.wb.internal.core.model.JavaInfoUtils.addExposedChildren(JavaInfoUtils.java:429)
+ at org.eclipse.wb.internal.swing.model.component.ComponentInfo.createExposedChildren(ComponentInfo.java:109)
+ at org.eclipse.wb.internal.swing.model.component.ContainerInfo.createExposedChildren(ContainerInfo.java:143)
+ at org.eclipse.wb.core.model.JavaInfo.initialize(JavaInfo.java:419)
+ at org.eclipse.wb.internal.swing.model.component.ContainerInfo.initialize(ContainerInfo.java:114)
+ at org.eclipse.wb.core.model.JavaInfo.setObject(JavaInfo.java:1267)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper$3.evaluationSuccessful(JavaInfoEvaluationHelper.java:271)
+ at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate0(AstEvaluationEngine.java:179)
+ at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate(AstEvaluationEngine.java:61)
+ ... 104 more
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:52.631
-!MESSAGE Unhandled event loop exception
+!ENTRY org.eclipse.wb.core 4 4 2015-02-04 11:05:14.564
+!MESSAGE Designer [1.5.2.r42x201302112024.201502041102]: new javax.swing.JComboBox<String>()
!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
+java.lang.Error: new javax.swing.JComboBox<String>()
+ at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate(AstEvaluationEngine.java:71)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluateExpression(JavaInfoEvaluationHelper.java:630)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluate(JavaInfoEvaluationHelper.java:502)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.evaluateNode(JavaInfoParser.java:1309)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$1(JavaInfoParser.java:1300)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor$3.run(JavaInfoParser.java:602)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runRethrow(ExecutionUtils.java:119)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor.postVisit(JavaInfoParser.java:592)
+ at sun.reflect.GeneratedMethodAccessor35.invoke(Unknown Source)
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
+ at java.lang.reflect.Method.invoke(Unknown Source)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:399)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$1f153325.postVisit(<generated>)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2517)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.Assignment.accept0(Assignment.java:312)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.access$1(ExecutionFlowUtils.java:235)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.endVisit(ExecutionFlowUtils.java:442)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:391)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$1f153325.endVisit(<generated>)
+ at org.eclipse.jdt.core.dom.MethodInvocation.accept0(MethodInvocation.java:247)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:343)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:228)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:191)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parseRootMethods(JavaInfoParser.java:312)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:268)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$9(JavaInfoParser.java:238)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:153)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:1)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:159)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:151)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:534)
+ at org.eclipse.wb.internal.core.editor.DesignPage.access$9(DesignPage.java:522)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8$1.run(DesignPage.java:449)
+ at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
+ at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
+ at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8.run(DesignPage.java:446)
+ at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
+ at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
+ at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF_withProgress(DesignPage.java:465)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:415)
+ at org.eclipse.wb.internal.core.editor.UndoManager.refreshDesignerEditor(UndoManager.java:381)
+ at org.eclipse.wb.internal.core.editor.DesignPage.refreshGEF(DesignPage.java:392)
+ at org.eclipse.wb.internal.core.editor.actions.RefreshAction.run(RefreshAction.java:46)
+ at org.eclipse.wb.internal.core.editor.actions.DesignPageAction.run(DesignPageAction.java:34)
+ at org.eclipse.wb.internal.core.editor.errors.JavaExceptionComposite.doRefresh(JavaExceptionComposite.java:87)
+ at org.eclipse.wb.internal.core.editor.errors.ExceptionComposite$3.widgetSelected(ExceptionComposite.java:129)
+ at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
+ at java.beans.MethodRef.get(Unknown Source)
+ at java.beans.PropertyDescriptor.getWriteMethod(Unknown Source)
+ at org.eclipse.wb.internal.core.model.JavaInfoUtils.addExposedChildred_Method(JavaInfoUtils.java:447)
+ at org.eclipse.wb.internal.core.model.JavaInfoUtils.addExposedChildren(JavaInfoUtils.java:429)
+ at org.eclipse.wb.internal.swing.model.component.ComponentInfo.createExposedChildren(ComponentInfo.java:109)
+ at org.eclipse.wb.internal.swing.model.component.ContainerInfo.createExposedChildren(ContainerInfo.java:143)
+ at org.eclipse.wb.core.model.JavaInfo.initialize(JavaInfo.java:419)
+ at org.eclipse.wb.internal.swing.model.component.ContainerInfo.initialize(ContainerInfo.java:114)
+ at org.eclipse.wb.core.model.JavaInfo.setObject(JavaInfo.java:1267)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper$3.evaluationSuccessful(JavaInfoEvaluationHelper.java:271)
+ at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate0(AstEvaluationEngine.java:179)
+ at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate(AstEvaluationEngine.java:61)
+ ... 96 more
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:52.631
-!MESSAGE Unhandled event loop exception
+!ENTRY org.eclipse.wb.core 4 4 2015-02-04 11:05:15.630
+!MESSAGE Designer [1.5.2.r42x201302112024.201502041102]: new javax.swing.JComboBox<String>()
!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
+java.lang.Error: new javax.swing.JComboBox<String>()
+ at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate(AstEvaluationEngine.java:71)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluateExpression(JavaInfoEvaluationHelper.java:630)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluate(JavaInfoEvaluationHelper.java:502)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.evaluateNode(JavaInfoParser.java:1309)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$1(JavaInfoParser.java:1300)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor$3.run(JavaInfoParser.java:602)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runRethrow(ExecutionUtils.java:119)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor.postVisit(JavaInfoParser.java:592)
+ at sun.reflect.GeneratedMethodAccessor35.invoke(Unknown Source)
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
+ at java.lang.reflect.Method.invoke(Unknown Source)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:399)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$1f153325.postVisit(<generated>)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2517)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.Assignment.accept0(Assignment.java:312)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.access$1(ExecutionFlowUtils.java:235)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.endVisit(ExecutionFlowUtils.java:442)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:391)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$1f153325.endVisit(<generated>)
+ at org.eclipse.jdt.core.dom.MethodInvocation.accept0(MethodInvocation.java:247)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:343)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:228)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:191)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parseRootMethods(JavaInfoParser.java:312)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:268)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$9(JavaInfoParser.java:238)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:153)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:1)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:159)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:151)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:534)
+ at org.eclipse.wb.internal.core.editor.DesignPage.access$9(DesignPage.java:522)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8$1.run(DesignPage.java:449)
+ at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
+ at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
+ at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8.run(DesignPage.java:446)
+ at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
+ at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
+ at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF_withProgress(DesignPage.java:465)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:415)
+ at org.eclipse.wb.internal.core.editor.UndoManager.refreshDesignerEditor(UndoManager.java:381)
+ at org.eclipse.wb.internal.core.editor.DesignPage.refreshGEF(DesignPage.java:392)
+ at org.eclipse.wb.internal.core.editor.actions.RefreshAction.run(RefreshAction.java:46)
+ at org.eclipse.wb.internal.core.editor.actions.DesignPageAction.run(DesignPageAction.java:34)
+ at org.eclipse.wb.internal.core.editor.errors.JavaExceptionComposite.doRefresh(JavaExceptionComposite.java:87)
+ at org.eclipse.wb.internal.core.editor.errors.ExceptionComposite$3.widgetSelected(ExceptionComposite.java:129)
+ at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
+ at java.beans.MethodRef.get(Unknown Source)
+ at java.beans.PropertyDescriptor.getReadMethod(Unknown Source)
+ at org.eclipse.wb.internal.core.model.JavaInfoUtils.addExposedChildred_Method(JavaInfoUtils.java:449)
+ at org.eclipse.wb.internal.core.model.JavaInfoUtils.addExposedChildren(JavaInfoUtils.java:429)
+ at org.eclipse.wb.internal.swing.model.component.ComponentInfo.createExposedChildren(ComponentInfo.java:109)
+ at org.eclipse.wb.internal.swing.model.component.ContainerInfo.createExposedChildren(ContainerInfo.java:143)
+ at org.eclipse.wb.core.model.JavaInfo.initialize(JavaInfo.java:419)
+ at org.eclipse.wb.internal.swing.model.component.ContainerInfo.initialize(ContainerInfo.java:114)
+ at org.eclipse.wb.core.model.JavaInfo.setObject(JavaInfo.java:1267)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper$3.evaluationSuccessful(JavaInfoEvaluationHelper.java:271)
+ at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate0(AstEvaluationEngine.java:179)
+ at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate(AstEvaluationEngine.java:61)
+ ... 96 more
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:52.641
-!MESSAGE Unhandled event loop exception
+!ENTRY org.eclipse.wb.core 4 4 2015-02-04 11:05:16.246
+!MESSAGE Designer [1.5.2.r42x201302112024.201502041102]: new javax.swing.JScrollPane()
!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
+java.lang.Error: new javax.swing.JScrollPane()
+ at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate(AstEvaluationEngine.java:71)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluateExpression(JavaInfoEvaluationHelper.java:630)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluate(JavaInfoEvaluationHelper.java:502)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.evaluateNode(JavaInfoParser.java:1309)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$1(JavaInfoParser.java:1300)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor$3.run(JavaInfoParser.java:602)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runRethrow(ExecutionUtils.java:119)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor.postVisit(JavaInfoParser.java:592)
+ at sun.reflect.GeneratedMethodAccessor35.invoke(Unknown Source)
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
+ at java.lang.reflect.Method.invoke(Unknown Source)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:399)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$1f153325.postVisit(<generated>)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2517)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.Assignment.accept0(Assignment.java:312)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.access$1(ExecutionFlowUtils.java:235)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.endVisit(ExecutionFlowUtils.java:442)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:391)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$1f153325.endVisit(<generated>)
+ at org.eclipse.jdt.core.dom.MethodInvocation.accept0(MethodInvocation.java:247)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:343)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:228)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:191)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parseRootMethods(JavaInfoParser.java:312)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:268)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$9(JavaInfoParser.java:238)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:153)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:1)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:159)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:151)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:534)
+ at org.eclipse.wb.internal.core.editor.DesignPage.access$9(DesignPage.java:522)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8$1.run(DesignPage.java:449)
+ at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
+ at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
+ at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8.run(DesignPage.java:446)
+ at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
+ at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
+ at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF_withProgress(DesignPage.java:465)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:415)
+ at org.eclipse.wb.internal.core.editor.UndoManager.refreshDesignerEditor(UndoManager.java:381)
+ at org.eclipse.wb.internal.core.editor.DesignPage.refreshGEF(DesignPage.java:392)
+ at org.eclipse.wb.internal.core.editor.actions.RefreshAction.run(RefreshAction.java:46)
+ at org.eclipse.wb.internal.core.editor.actions.DesignPageAction.run(DesignPageAction.java:34)
+ at org.eclipse.wb.internal.core.editor.errors.JavaExceptionComposite.doRefresh(JavaExceptionComposite.java:87)
+ at org.eclipse.wb.internal.core.editor.errors.ExceptionComposite$3.widgetSelected(ExceptionComposite.java:129)
+ at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
+ at java.beans.MethodRef.get(Unknown Source)
+ at java.beans.PropertyDescriptor.getWriteMethod(Unknown Source)
+ at org.eclipse.wb.internal.core.model.JavaInfoUtils.addExposedChildred_Method(JavaInfoUtils.java:447)
+ at org.eclipse.wb.internal.core.model.JavaInfoUtils.addExposedChildren(JavaInfoUtils.java:429)
+ at org.eclipse.wb.internal.swing.model.component.ComponentInfo.createExposedChildren(ComponentInfo.java:109)
+ at org.eclipse.wb.internal.swing.model.component.ContainerInfo.createExposedChildren(ContainerInfo.java:143)
+ at org.eclipse.wb.core.model.JavaInfo.initialize(JavaInfo.java:419)
+ at org.eclipse.wb.internal.swing.model.component.ContainerInfo.initialize(ContainerInfo.java:114)
+ at org.eclipse.wb.core.model.JavaInfo.setObject(JavaInfo.java:1267)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper$3.evaluationSuccessful(JavaInfoEvaluationHelper.java:271)
+ at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate0(AstEvaluationEngine.java:179)
+ at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate(AstEvaluationEngine.java:61)
+ ... 96 more
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:52.661
-!MESSAGE Unhandled event loop exception
+!ENTRY org.eclipse.ui 2 2 2015-02-04 12:05:39.790
+!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
+!SESSION 2015-02-04 12:21:31.183 -----------------------------------------------
+eclipse.buildId=M20130204-1200
+java.version=1.8.0_31
+java.vendor=Oracle Corporation
+BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
+Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
+Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
+
+!ENTRY org.eclipse.ui 4 4 2015-02-04 12:21:39.358
+!MESSAGE Could not create action delegate for id: org.eclipse.jdt.debug.ui.actions.ManageBreakpointRulerAction
+
+!ENTRY org.eclipse.equinox.registry 4 1 2015-02-04 12:21:39.367
+!MESSAGE Plug-in org.eclipse.wb.core.java was unable to load class org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate.
!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
+java.lang.ClassNotFoundException: org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
+ at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
+ at java.lang.ClassLoader.loadClass(Unknown Source)
+ at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
+ at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
+ at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
+ at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
+ at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
+ at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
+ at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
+ at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:265)
+ at org.eclipse.ui.internal.PluginAction.createDelegate(PluginAction.java:122)
+ at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:275)
+ at org.eclipse.ui.internal.PluginAction.<init>(PluginAction.java:112)
+ at org.eclipse.ui.internal.PartPluginAction.<init>(PartPluginAction.java:29)
+ at org.eclipse.ui.internal.EditorPluginAction.<init>(EditorPluginAction.java:32)
+ at org.eclipse.ui.internal.ActionDescriptor.createAction(ActionDescriptor.java:262)
+ at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:176)
+ at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:103)
+ at org.eclipse.ui.internal.EditorActionBuilder.createActionDescriptor(EditorActionBuilder.java:41)
+ at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:161)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElementChildren(RegistryReader.java:133)
+ at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readExtension(RegistryReader.java:155)
+ at org.eclipse.ui.internal.registry.RegistryReader.readRegistry(RegistryReader.java:176)
+ at org.eclipse.ui.internal.PluginActionBuilder.readContributions(PluginActionBuilder.java:115)
+ at org.eclipse.ui.internal.EditorActionBuilder.readActionExtensions(EditorActionBuilder.java:58)
+ at org.eclipse.ui.internal.EditorReference.createEditorActionBars(EditorReference.java:446)
+ at org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:356)
+ at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:301)
+ at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+ at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
+ at java.lang.reflect.Method.invoke(Unknown Source)
+ at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:861)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:841)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:113)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:321)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:242)
+ at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:161)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
+ at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:141)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1115)
+ at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:98)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$6.run(PartRenderingEngine.java:520)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:505)
+ at org.eclipse.e4.ui.workbench.renderers.swt.ElementReferenceRenderer.createWidget(ElementReferenceRenderer.java:74)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveRenderer.processContents(PerspectiveRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.showTab(PerspectiveStackRenderer.java:103)
+ at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:98)
+ at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.postProcess(PerspectiveStackRenderer.java:77)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.workbench.renderers.swt.WBWRenderer.processContents(WBWRenderer.java:644)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:987)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:52.874
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
+ at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
+ at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
+ at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
+ at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
+
+!ENTRY org.eclipse.egit.ui 2 0 2015-02-04 12:21:45.809
+!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
+Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
+The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
+this system level configuration. The Git installation location can be configured on the
+Team > Git > Configuration preference page's 'System Settings' tab.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
+
+!ENTRY org.eclipse.egit.ui 2 0 2015-02-04 12:21:45.811
+!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
+user global configuration and to define the default location to store repositories: 'C:\Users\raisaro'. If this is
+not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
+EGit might behave differently since they see different configuration options.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
+
+!ENTRY org.eclipse.ui 2 2 2015-02-04 12:28:03.879
+!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
+!SESSION 2015-02-04 13:32:08.916 -----------------------------------------------
+eclipse.buildId=M20130204-1200
+java.version=1.8.0_31
+java.vendor=Oracle Corporation
+BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
+Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
+Command-line arguments: -data C:\Users\raisaro\workspace\yussef -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
+
+!ENTRY org.eclipse.egit.ui 2 0 2015-02-04 13:32:19.035
+!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
+Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
+The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
+this system level configuration. The Git installation location can be configured on the
+Team > Git > Configuration preference page's 'System Settings' tab.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
+
+!ENTRY org.eclipse.egit.ui 2 0 2015-02-04 13:32:19.037
+!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
+user global configuration and to define the default location to store repositories: 'C:\Users\raisaro'. If this is
+not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
+EGit might behave differently since they see different configuration options.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
+
+!ENTRY org.eclipse.ui 2 2 2015-02-04 13:35:04.087
+!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
+!SESSION 2015-02-04 13:35:27.296 -----------------------------------------------
+eclipse.buildId=M20130204-1200
+java.version=1.8.0_31
+java.vendor=Oracle Corporation
+BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
+Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
+Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
+
+!ENTRY org.eclipse.egit.ui 2 0 2015-02-04 13:35:36.825
+!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
+Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
+The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
+this system level configuration. The Git installation location can be configured on the
+Team > Git > Configuration preference page's 'System Settings' tab.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
+
+!ENTRY org.eclipse.egit.ui 2 0 2015-02-04 13:35:36.827
+!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
+user global configuration and to define the default location to store repositories: 'C:\Users\raisaro'. If this is
+not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
+EGit might behave differently since they see different configuration options.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
+
+!ENTRY org.eclipse.ui 4 4 2015-02-04 13:40:35.652
+!MESSAGE Could not create action delegate for id: org.eclipse.jdt.debug.ui.actions.ManageBreakpointRulerAction
+
+!ENTRY org.eclipse.equinox.registry 4 1 2015-02-04 13:40:35.654
+!MESSAGE Plug-in org.eclipse.wb.core.java was unable to load class org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate.
+!STACK 0
+java.lang.ClassNotFoundException: org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
+ at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
+ at java.lang.ClassLoader.loadClass(Unknown Source)
+ at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
+ at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
+ at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
+ at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
+ at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
+ at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
+ at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
+ at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:265)
+ at org.eclipse.ui.internal.PluginAction.createDelegate(PluginAction.java:122)
+ at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:275)
+ at org.eclipse.ui.internal.PluginAction.<init>(PluginAction.java:112)
+ at org.eclipse.ui.internal.PartPluginAction.<init>(PartPluginAction.java:29)
+ at org.eclipse.ui.internal.EditorPluginAction.<init>(EditorPluginAction.java:32)
+ at org.eclipse.ui.internal.ActionDescriptor.createAction(ActionDescriptor.java:262)
+ at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:176)
+ at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:103)
+ at org.eclipse.ui.internal.EditorActionBuilder.createActionDescriptor(EditorActionBuilder.java:41)
+ at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:161)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElementChildren(RegistryReader.java:133)
+ at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readExtension(RegistryReader.java:155)
+ at org.eclipse.ui.internal.registry.RegistryReader.readRegistry(RegistryReader.java:176)
+ at org.eclipse.ui.internal.PluginActionBuilder.readContributions(PluginActionBuilder.java:115)
+ at org.eclipse.ui.internal.EditorActionBuilder.readActionExtensions(EditorActionBuilder.java:58)
+ at org.eclipse.ui.internal.EditorReference.createEditorActionBars(EditorReference.java:446)
+ at org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:356)
+ at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:301)
+ at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+ at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
+ at java.lang.reflect.Method.invoke(Unknown Source)
+ at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:861)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:841)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:113)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:321)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:242)
+ at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:161)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
+ at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:141)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1115)
+ at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer$1.handleEvent(LazyStackRenderer.java:67)
+ at org.eclipse.e4.ui.services.internal.events.UIEventHandler$1.run(UIEventHandler.java:41)
+ at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
+ at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
+ at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
+ at org.eclipse.e4.ui.internal.workbench.swt.E4Application$1.syncExec(E4Application.java:187)
+ at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:38)
+ at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:197)
+ at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:197)
+ at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)
+ at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
+ at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
+ at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:135)
+ at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:78)
+ at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:39)
+ at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:80)
+ at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:58)
+ at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:374)
+ at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement(ElementContainerImpl.java:171)
+ at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.showElementInWindow(ModelServiceImpl.java:422)
+ at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.bringToTop(ModelServiceImpl.java:389)
+ at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.delegateBringToTop(PartServiceImpl.java:606)
+ at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.activate(PartServiceImpl.java:579)
+ at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.activate(PartServiceImpl.java:549)
+ at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.activate(PartServiceImpl.java:538)
+ at org.eclipse.e4.ui.internal.workbench.renderers.swt.BasicPartList.gotoSelectedElement(BasicPartList.java:154)
+ at org.eclipse.e4.ui.internal.workbench.renderers.swt.AbstractTableInformationControl$4.mouseUp(AbstractTableInformationControl.java:245)
+ at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:220)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:52.894
+!ENTRY org.eclipse.ui 4 0 2015-02-04 13:41:15.419
!MESSAGE Unhandled event loop exception
!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
+java.lang.NullPointerException
+ at org.eclipse.wb.internal.core.utils.ui.dialogs.ResizableDialog.close(ResizableDialog.java:203)
+ at org.eclipse.jface.dialogs.Dialog.okPressed(Dialog.java:940)
+ at org.eclipse.wb.internal.core.model.property.editor.string.StringPropertyDialog.okPressed(StringPropertyDialog.java:311)
+ at org.eclipse.jface.dialogs.Dialog.buttonPressed(Dialog.java:472)
+ at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
+ at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:52.904
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
+ at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
+ at org.eclipse.jface.window.Window.open(Window.java:801)
+ at org.eclipse.wb.internal.core.model.property.editor.string.StringPropertyEditor.openDialog(StringPropertyEditor.java:96)
+ at org.eclipse.wb.internal.core.model.property.editor.string.StringPropertyEditor.access$0(StringPropertyEditor.java:94)
+ at org.eclipse.wb.internal.core.model.property.editor.string.StringPropertyEditor$1.onClick(StringPropertyEditor.java:47)
+ at org.eclipse.wb.internal.core.model.property.editor.presentation.ButtonPropertyEditorPresentationImpl$4.handleEvent(ButtonPropertyEditorPresentationImpl.java:124)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:52.924
-!MESSAGE Unhandled event loop exception
+!ENTRY org.eclipse.ui 2 2 2015-02-04 13:57:27.896
+!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
+!SESSION 2015-02-04 14:00:34.871 -----------------------------------------------
+eclipse.buildId=M20130204-1200
+java.version=1.8.0_31
+java.vendor=Oracle Corporation
+BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
+Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
+Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
+
+!ENTRY org.eclipse.ui 4 4 2015-02-04 14:00:41.147
+!MESSAGE Could not create action delegate for id: org.eclipse.jdt.debug.ui.actions.ManageBreakpointRulerAction
+
+!ENTRY org.eclipse.equinox.registry 4 1 2015-02-04 14:00:41.152
+!MESSAGE Plug-in org.eclipse.wb.core.java was unable to load class org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate.
!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
+java.lang.ClassNotFoundException: org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
+ at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
+ at java.lang.ClassLoader.loadClass(Unknown Source)
+ at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
+ at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
+ at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
+ at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
+ at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
+ at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
+ at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
+ at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:265)
+ at org.eclipse.ui.internal.PluginAction.createDelegate(PluginAction.java:122)
+ at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:275)
+ at org.eclipse.ui.internal.PluginAction.<init>(PluginAction.java:112)
+ at org.eclipse.ui.internal.PartPluginAction.<init>(PartPluginAction.java:29)
+ at org.eclipse.ui.internal.EditorPluginAction.<init>(EditorPluginAction.java:32)
+ at org.eclipse.ui.internal.ActionDescriptor.createAction(ActionDescriptor.java:262)
+ at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:176)
+ at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:103)
+ at org.eclipse.ui.internal.EditorActionBuilder.createActionDescriptor(EditorActionBuilder.java:41)
+ at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:161)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElementChildren(RegistryReader.java:133)
+ at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readExtension(RegistryReader.java:155)
+ at org.eclipse.ui.internal.registry.RegistryReader.readRegistry(RegistryReader.java:176)
+ at org.eclipse.ui.internal.PluginActionBuilder.readContributions(PluginActionBuilder.java:115)
+ at org.eclipse.ui.internal.EditorActionBuilder.readActionExtensions(EditorActionBuilder.java:58)
+ at org.eclipse.ui.internal.EditorReference.createEditorActionBars(EditorReference.java:446)
+ at org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:356)
+ at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:301)
+ at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+ at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
+ at java.lang.reflect.Method.invoke(Unknown Source)
+ at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:861)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:841)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:113)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:321)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:242)
+ at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:161)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
+ at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:141)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1115)
+ at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:98)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$6.run(PartRenderingEngine.java:520)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:505)
+ at org.eclipse.e4.ui.workbench.renderers.swt.ElementReferenceRenderer.createWidget(ElementReferenceRenderer.java:74)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveRenderer.processContents(PerspectiveRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.showTab(PerspectiveStackRenderer.java:103)
+ at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:98)
+ at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.postProcess(PerspectiveStackRenderer.java:77)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.workbench.renderers.swt.WBWRenderer.processContents(WBWRenderer.java:644)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:987)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:52.934
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
+!ENTRY org.eclipse.egit.ui 2 0 2015-02-04 14:00:45.851
+!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
+Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
+The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
+this system level configuration. The Git installation location can be configured on the
+Team > Git > Configuration preference page's 'System Settings' tab.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:52.944
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
+!ENTRY org.eclipse.egit.ui 2 0 2015-02-04 14:00:45.852
+!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
+user global configuration and to define the default location to store repositories: 'C:\Users\raisaro'. If this is
+not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
+EGit might behave differently since they see different configuration options.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:52.944
-!MESSAGE Unhandled event loop exception
+!ENTRY org.eclipse.ui 2 2 2015-02-04 14:31:56.091
+!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
+!SESSION 2015-02-04 14:31:57.703 -----------------------------------------------
+eclipse.buildId=M20130204-1200
+java.version=1.8.0_31
+java.vendor=Oracle Corporation
+BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
+Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
+Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
+
+!ENTRY org.eclipse.ui 4 4 2015-02-04 14:32:03.829
+!MESSAGE Could not create action delegate for id: org.eclipse.jdt.debug.ui.actions.ManageBreakpointRulerAction
+
+!ENTRY org.eclipse.equinox.registry 4 1 2015-02-04 14:32:03.836
+!MESSAGE Plug-in org.eclipse.wb.core.java was unable to load class org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate.
!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
+java.lang.ClassNotFoundException: org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
+ at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
+ at java.lang.ClassLoader.loadClass(Unknown Source)
+ at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
+ at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
+ at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
+ at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
+ at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
+ at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
+ at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
+ at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:265)
+ at org.eclipse.ui.internal.PluginAction.createDelegate(PluginAction.java:122)
+ at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:275)
+ at org.eclipse.ui.internal.PluginAction.<init>(PluginAction.java:112)
+ at org.eclipse.ui.internal.PartPluginAction.<init>(PartPluginAction.java:29)
+ at org.eclipse.ui.internal.EditorPluginAction.<init>(EditorPluginAction.java:32)
+ at org.eclipse.ui.internal.ActionDescriptor.createAction(ActionDescriptor.java:262)
+ at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:176)
+ at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:103)
+ at org.eclipse.ui.internal.EditorActionBuilder.createActionDescriptor(EditorActionBuilder.java:41)
+ at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:161)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElementChildren(RegistryReader.java:133)
+ at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readExtension(RegistryReader.java:155)
+ at org.eclipse.ui.internal.registry.RegistryReader.readRegistry(RegistryReader.java:176)
+ at org.eclipse.ui.internal.PluginActionBuilder.readContributions(PluginActionBuilder.java:115)
+ at org.eclipse.ui.internal.EditorActionBuilder.readActionExtensions(EditorActionBuilder.java:58)
+ at org.eclipse.ui.internal.EditorReference.createEditorActionBars(EditorReference.java:446)
+ at org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:356)
+ at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:301)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:53.135
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
+ at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:861)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:841)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:113)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:321)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:242)
+ at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:161)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
+ at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:141)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1115)
+ at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:98)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$6.run(PartRenderingEngine.java:520)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:505)
+ at org.eclipse.e4.ui.workbench.renderers.swt.ElementReferenceRenderer.createWidget(ElementReferenceRenderer.java:74)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveRenderer.processContents(PerspectiveRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.showTab(PerspectiveStackRenderer.java:103)
+ at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:98)
+ at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.postProcess(PerspectiveStackRenderer.java:77)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.workbench.renderers.swt.WBWRenderer.processContents(WBWRenderer.java:644)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:987)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:53.135
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
+!ENTRY org.eclipse.egit.ui 2 0 2015-02-04 14:32:08.628
+!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
+Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
+The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
+this system level configuration. The Git installation location can be configured on the
+Team > Git > Configuration preference page's 'System Settings' tab.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:53.145
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
+!ENTRY org.eclipse.egit.ui 2 0 2015-02-04 14:32:08.629
+!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
+user global configuration and to define the default location to store repositories: 'C:\Users\raisaro'. If this is
+not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
+EGit might behave differently since they see different configuration options.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:53.155
-!MESSAGE Unhandled event loop exception
+!ENTRY org.eclipse.ui 2 2 2015-02-04 14:37:22.689
+!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
+!SESSION 2015-02-04 14:37:26.918 -----------------------------------------------
+eclipse.buildId=M20130204-1200
+java.version=1.8.0_31
+java.vendor=Oracle Corporation
+BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
+Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
+Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
+
+!ENTRY org.eclipse.egit.ui 2 0 2015-02-04 14:37:34.958
+!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
+Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
+The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
+this system level configuration. The Git installation location can be configured on the
+Team > Git > Configuration preference page's 'System Settings' tab.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
+
+!ENTRY org.eclipse.egit.ui 2 0 2015-02-04 14:37:34.960
+!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
+user global configuration and to define the default location to store repositories: 'C:\Users\raisaro'. If this is
+not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
+EGit might behave differently since they see different configuration options.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
+
+!ENTRY org.eclipse.ui 4 4 2015-02-04 14:39:39.123
+!MESSAGE Could not create action delegate for id: org.eclipse.jdt.debug.ui.actions.ManageBreakpointRulerAction
+
+!ENTRY org.eclipse.equinox.registry 4 1 2015-02-04 14:39:39.125
+!MESSAGE Plug-in org.eclipse.wb.core.java was unable to load class org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate.
!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
+java.lang.ClassNotFoundException: org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
+ at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
+ at java.lang.ClassLoader.loadClass(Unknown Source)
+ at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
+ at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
+ at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
+ at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
+ at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
+ at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
+ at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
+ at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:265)
+ at org.eclipse.ui.internal.PluginAction.createDelegate(PluginAction.java:122)
+ at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:275)
+ at org.eclipse.ui.internal.PluginAction.<init>(PluginAction.java:112)
+ at org.eclipse.ui.internal.PartPluginAction.<init>(PartPluginAction.java:29)
+ at org.eclipse.ui.internal.EditorPluginAction.<init>(EditorPluginAction.java:32)
+ at org.eclipse.ui.internal.ActionDescriptor.createAction(ActionDescriptor.java:262)
+ at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:176)
+ at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:103)
+ at org.eclipse.ui.internal.EditorActionBuilder.createActionDescriptor(EditorActionBuilder.java:41)
+ at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:161)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElementChildren(RegistryReader.java:133)
+ at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readExtension(RegistryReader.java:155)
+ at org.eclipse.ui.internal.registry.RegistryReader.readRegistry(RegistryReader.java:176)
+ at org.eclipse.ui.internal.PluginActionBuilder.readContributions(PluginActionBuilder.java:115)
+ at org.eclipse.ui.internal.EditorActionBuilder.readActionExtensions(EditorActionBuilder.java:58)
+ at org.eclipse.ui.internal.EditorReference.createEditorActionBars(EditorReference.java:446)
+ at org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:356)
+ at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:301)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:53.165
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
+ at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:861)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:841)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:113)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:321)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:242)
+ at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:161)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
+ at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:141)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.internal.workbench.PartServiceImpl$1.handleEvent(PartServiceImpl.java:92)
+ at org.eclipse.e4.ui.services.internal.events.UIEventHandler$1.run(UIEventHandler.java:41)
+ at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
+ at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
+ at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
+ at org.eclipse.e4.ui.internal.workbench.swt.E4Application$1.syncExec(E4Application.java:187)
+ at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:38)
+ at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:197)
+ at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:197)
+ at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)
+ at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
+ at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
+ at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:135)
+ at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:78)
+ at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:39)
+ at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:80)
+ at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:58)
+ at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:374)
+ at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement(ElementContainerImpl.java:171)
+ at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer$8.widgetSelected(StackRenderer.java:911)
+ at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
+ at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
+ at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
+ at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
+ at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
+ at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:774)
+ at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3028)
+ at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1749)
+ at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:278)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:53.175
-!MESSAGE Unhandled event loop exception
+!ENTRY org.eclipse.ui 2 2 2015-02-04 14:41:03.522
+!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
+!SESSION 2015-02-04 14:41:19.575 -----------------------------------------------
+eclipse.buildId=M20130204-1200
+java.version=1.8.0_31
+java.vendor=Oracle Corporation
+BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
+Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
+Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
+
+!ENTRY org.eclipse.ui 4 4 2015-02-04 14:41:25.468
+!MESSAGE Could not create action delegate for id: org.eclipse.jdt.debug.ui.actions.ManageBreakpointRulerAction
+
+!ENTRY org.eclipse.equinox.registry 4 1 2015-02-04 14:41:25.473
+!MESSAGE Plug-in org.eclipse.wb.core.java was unable to load class org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate.
!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
+java.lang.ClassNotFoundException: org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
+ at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
+ at java.lang.ClassLoader.loadClass(Unknown Source)
+ at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
+ at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
+ at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
+ at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
+ at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
+ at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
+ at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
+ at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:265)
+ at org.eclipse.ui.internal.PluginAction.createDelegate(PluginAction.java:122)
+ at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:275)
+ at org.eclipse.ui.internal.PluginAction.<init>(PluginAction.java:112)
+ at org.eclipse.ui.internal.PartPluginAction.<init>(PartPluginAction.java:29)
+ at org.eclipse.ui.internal.EditorPluginAction.<init>(EditorPluginAction.java:32)
+ at org.eclipse.ui.internal.ActionDescriptor.createAction(ActionDescriptor.java:262)
+ at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:176)
+ at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:103)
+ at org.eclipse.ui.internal.EditorActionBuilder.createActionDescriptor(EditorActionBuilder.java:41)
+ at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:161)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElementChildren(RegistryReader.java:133)
+ at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readExtension(RegistryReader.java:155)
+ at org.eclipse.ui.internal.registry.RegistryReader.readRegistry(RegistryReader.java:176)
+ at org.eclipse.ui.internal.PluginActionBuilder.readContributions(PluginActionBuilder.java:115)
+ at org.eclipse.ui.internal.EditorActionBuilder.readActionExtensions(EditorActionBuilder.java:58)
+ at org.eclipse.ui.internal.EditorReference.createEditorActionBars(EditorReference.java:446)
+ at org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:356)
+ at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:301)
+ at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+ at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
+ at java.lang.reflect.Method.invoke(Unknown Source)
+ at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:861)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:841)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:113)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:321)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:242)
+ at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:161)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
+ at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:141)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1115)
+ at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:98)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$6.run(PartRenderingEngine.java:520)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:505)
+ at org.eclipse.e4.ui.workbench.renderers.swt.ElementReferenceRenderer.createWidget(ElementReferenceRenderer.java:74)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveRenderer.processContents(PerspectiveRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.showTab(PerspectiveStackRenderer.java:103)
+ at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:98)
+ at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.postProcess(PerspectiveStackRenderer.java:77)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.workbench.renderers.swt.WBWRenderer.processContents(WBWRenderer.java:644)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:987)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:53.175
-!MESSAGE Unhandled event loop exception
+!ENTRY org.eclipse.egit.ui 2 0 2015-02-04 14:41:30.242
+!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
+Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
+The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
+this system level configuration. The Git installation location can be configured on the
+Team > Git > Configuration preference page's 'System Settings' tab.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
+
+!ENTRY org.eclipse.egit.ui 2 0 2015-02-04 14:41:30.243
+!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
+user global configuration and to define the default location to store repositories: 'C:\Users\raisaro'. If this is
+not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
+EGit might behave differently since they see different configuration options.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
+
+!ENTRY org.eclipse.ui 2 2 2015-02-04 14:47:26.304
+!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
+!SESSION 2015-02-04 15:10:10.976 -----------------------------------------------
+eclipse.buildId=M20130204-1200
+java.version=1.8.0_31
+java.vendor=Oracle Corporation
+BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
+Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
+Command-line arguments: -data C:\Users\raisaro\workspace\yussef -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
+
+!ENTRY org.eclipse.egit.ui 2 0 2015-02-04 15:10:21.548
+!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
+Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
+The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
+this system level configuration. The Git installation location can be configured on the
+Team > Git > Configuration preference page's 'System Settings' tab.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
+
+!ENTRY org.eclipse.egit.ui 2 0 2015-02-04 15:10:21.549
+!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
+user global configuration and to define the default location to store repositories: 'C:\Users\raisaro'. If this is
+not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
+EGit might behave differently since they see different configuration options.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
+
+!ENTRY org.eclipse.ui 4 4 2015-02-04 15:22:00.215
+!MESSAGE Could not create action delegate for id: org.eclipse.jdt.debug.ui.actions.ManageBreakpointRulerAction
+
+!ENTRY org.eclipse.equinox.registry 4 1 2015-02-04 15:22:00.217
+!MESSAGE Plug-in org.eclipse.wb.core.java was unable to load class org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate.
!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
+java.lang.ClassNotFoundException: org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
+ at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
+ at java.lang.ClassLoader.loadClass(Unknown Source)
+ at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
+ at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
+ at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
+ at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
+ at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
+ at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
+ at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
+ at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:265)
+ at org.eclipse.ui.internal.PluginAction.createDelegate(PluginAction.java:122)
+ at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:275)
+ at org.eclipse.ui.internal.PluginAction.<init>(PluginAction.java:112)
+ at org.eclipse.ui.internal.PartPluginAction.<init>(PartPluginAction.java:29)
+ at org.eclipse.ui.internal.EditorPluginAction.<init>(EditorPluginAction.java:32)
+ at org.eclipse.ui.internal.ActionDescriptor.createAction(ActionDescriptor.java:262)
+ at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:176)
+ at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:103)
+ at org.eclipse.ui.internal.EditorActionBuilder.createActionDescriptor(EditorActionBuilder.java:41)
+ at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:161)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElementChildren(RegistryReader.java:133)
+ at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readExtension(RegistryReader.java:155)
+ at org.eclipse.ui.internal.registry.RegistryReader.readRegistry(RegistryReader.java:176)
+ at org.eclipse.ui.internal.PluginActionBuilder.readContributions(PluginActionBuilder.java:115)
+ at org.eclipse.ui.internal.EditorActionBuilder.readActionExtensions(EditorActionBuilder.java:58)
+ at org.eclipse.ui.internal.EditorReference.createEditorActionBars(EditorReference.java:446)
+ at org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:356)
+ at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:301)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:53.185
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
+ at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:861)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:841)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:113)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:321)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:242)
+ at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:161)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
+ at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:141)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1115)
+ at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer$1.handleEvent(LazyStackRenderer.java:67)
+ at org.eclipse.e4.ui.services.internal.events.UIEventHandler$1.run(UIEventHandler.java:41)
+ at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
+ at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
+ at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
+ at org.eclipse.e4.ui.internal.workbench.swt.E4Application$1.syncExec(E4Application.java:187)
+ at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:38)
+ at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:197)
+ at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:197)
+ at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)
+ at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
+ at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
+ at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:135)
+ at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:78)
+ at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:39)
+ at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:80)
+ at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:58)
+ at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:374)
+ at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement(ElementContainerImpl.java:171)
+ at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer$8.widgetSelected(StackRenderer.java:911)
+ at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
+ at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
+ at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
+ at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
+ at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
+ at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:774)
+ at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3028)
+ at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1749)
+ at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:278)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:53.195
-!MESSAGE Unhandled event loop exception
+!ENTRY org.eclipse.wb.core 4 4 2015-02-04 15:52:12.633
+!MESSAGE Designer [1.5.2.r42x201302112024.201502041552]: 313 (Exception during 'super' constructor evaluation). JFrame() {} java.lang.NullPointerException
+ at java.beans.MethodRef.get(Unknown Source)
+ at java.beans.PropertyDescriptor.getWriteMethod(Unknown Source)
!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
+org.eclipse.wb.internal.core.utils.exception.DesignerException: 313 (Exception during 'super' constructor evaluation). JFrame() {} java.lang.NullPointerException
+ at java.beans.MethodRef.get(Unknown Source)
+ at java.beans.PropertyDescriptor.getWriteMethod(Unknown Source)
+ at org.eclipse.wb.internal.core.model.creation.ThisCreationSupport.create(ThisCreationSupport.java:275)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluateJavaInfoUsingCreationSupport(JavaInfoEvaluationHelper.java:642)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.addJavaInfo(JavaInfoParser.java:1261)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:253)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$9(JavaInfoParser.java:238)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:153)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:1)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:159)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:151)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:534)
+ at org.eclipse.wb.internal.core.editor.DesignPage.access$9(DesignPage.java:522)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8$1.run(DesignPage.java:449)
+ at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
+ at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
+ at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8.run(DesignPage.java:446)
+ at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
+ at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
+ at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF_withProgress(DesignPage.java:465)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:415)
+ at org.eclipse.wb.internal.core.editor.UndoManager.refreshDesignerEditor(UndoManager.java:381)
+ at org.eclipse.wb.internal.core.editor.UndoManager.activate(UndoManager.java:90)
+ at org.eclipse.wb.internal.core.editor.DesignPage.handleActiveState_True(DesignPage.java:263)
+ at org.eclipse.wb.internal.core.editor.DesignPage.handleActiveState(DesignPage.java:241)
+ at org.eclipse.wb.internal.core.editor.multi.DefaultMultiMode.showPage(DefaultMultiMode.java:125)
+ at org.eclipse.wb.internal.core.editor.multi.DefaultMultiMode$1.widgetSelected(DefaultMultiMode.java:63)
+ at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
+ at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
+ at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
+ at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
+ at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
+ at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:774)
+ at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3028)
+ at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1749)
+ at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:278)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
+ at java.beans.MethodRef.get(Unknown Source)
+ at java.beans.PropertyDescriptor.getWriteMethod(Unknown Source)
+ at org.eclipse.wb.internal.core.model.JavaInfoUtils.addExposedChildred_Method(JavaInfoUtils.java:447)
+ at org.eclipse.wb.internal.core.model.JavaInfoUtils.addExposedChildren(JavaInfoUtils.java:429)
+ at org.eclipse.wb.internal.swing.model.component.ComponentInfo.createExposedChildren(ComponentInfo.java:109)
+ at org.eclipse.wb.internal.swing.model.component.ContainerInfo.createExposedChildren(ContainerInfo.java:143)
+ at org.eclipse.wb.core.model.JavaInfo.initialize(JavaInfo.java:419)
+ at org.eclipse.wb.internal.swing.model.component.ContainerInfo.initialize(ContainerInfo.java:114)
+ at org.eclipse.wb.core.model.JavaInfo.setObject(JavaInfo.java:1267)
+ at org.eclipse.wb.internal.core.model.creation.ThisCreationSupport.create(ThisCreationSupport.java:269)
+ ... 61 more
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:53.205
-!MESSAGE Unhandled event loop exception
+!ENTRY org.eclipse.ui 2 2 2015-02-04 15:52:27.016
+!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
+!SESSION 2015-02-04 15:52:29.537 -----------------------------------------------
+eclipse.buildId=M20130204-1200
+java.version=1.8.0_31
+java.vendor=Oracle Corporation
+BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
+Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
+Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
+
+!ENTRY org.eclipse.ui 4 4 2015-02-04 15:52:35.929
+!MESSAGE Could not create action delegate for id: org.eclipse.jdt.debug.ui.actions.ManageBreakpointRulerAction
+
+!ENTRY org.eclipse.equinox.registry 4 1 2015-02-04 15:52:35.936
+!MESSAGE Plug-in org.eclipse.wb.core.java was unable to load class org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate.
!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
+java.lang.ClassNotFoundException: org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
+ at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
+ at java.lang.ClassLoader.loadClass(Unknown Source)
+ at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
+ at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
+ at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
+ at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
+ at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
+ at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
+ at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
+ at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:265)
+ at org.eclipse.ui.internal.PluginAction.createDelegate(PluginAction.java:122)
+ at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:275)
+ at org.eclipse.ui.internal.PluginAction.<init>(PluginAction.java:112)
+ at org.eclipse.ui.internal.PartPluginAction.<init>(PartPluginAction.java:29)
+ at org.eclipse.ui.internal.EditorPluginAction.<init>(EditorPluginAction.java:32)
+ at org.eclipse.ui.internal.ActionDescriptor.createAction(ActionDescriptor.java:262)
+ at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:176)
+ at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:103)
+ at org.eclipse.ui.internal.EditorActionBuilder.createActionDescriptor(EditorActionBuilder.java:41)
+ at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:161)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElementChildren(RegistryReader.java:133)
+ at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readExtension(RegistryReader.java:155)
+ at org.eclipse.ui.internal.registry.RegistryReader.readRegistry(RegistryReader.java:176)
+ at org.eclipse.ui.internal.PluginActionBuilder.readContributions(PluginActionBuilder.java:115)
+ at org.eclipse.ui.internal.EditorActionBuilder.readActionExtensions(EditorActionBuilder.java:58)
+ at org.eclipse.ui.internal.EditorReference.createEditorActionBars(EditorReference.java:446)
+ at org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:356)
+ at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:301)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:53.215
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
+ at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:861)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:841)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:113)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:321)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:242)
+ at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:161)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
+ at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:141)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1115)
+ at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:98)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$6.run(PartRenderingEngine.java:520)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:505)
+ at org.eclipse.e4.ui.workbench.renderers.swt.ElementReferenceRenderer.createWidget(ElementReferenceRenderer.java:74)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveRenderer.processContents(PerspectiveRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.showTab(PerspectiveStackRenderer.java:103)
+ at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:98)
+ at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.postProcess(PerspectiveStackRenderer.java:77)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.workbench.renderers.swt.WBWRenderer.processContents(WBWRenderer.java:644)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:987)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
+
+!ENTRY org.eclipse.egit.ui 2 0 2015-02-04 15:52:43.375
+!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
+Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
+The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
+this system level configuration. The Git installation location can be configured on the
+Team > Git > Configuration preference page's 'System Settings' tab.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
+
+!ENTRY org.eclipse.egit.ui 2 0 2015-02-04 15:52:43.377
+!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
+user global configuration and to define the default location to store repositories: 'C:\Users\raisaro'. If this is
+not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
+EGit might behave differently since they see different configuration options.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
+
+!ENTRY org.eclipse.wb.core 4 4 2015-02-04 16:33:52.241
+!MESSAGE Designer [1.5.2.r42x201302112024.201502041633]: java.lang.NullPointerException
+!STACK 0
+java.lang.NullPointerException
+ at java.beans.MethodRef.get(Unknown Source)
+ at java.beans.PropertyDescriptor.getWriteMethod(Unknown Source)
+ at org.eclipse.wb.internal.core.model.JavaInfoUtils.addExposedChildred_Method(JavaInfoUtils.java:447)
+ at org.eclipse.wb.internal.core.model.JavaInfoUtils.addExposedChildren(JavaInfoUtils.java:429)
+ at org.eclipse.wb.internal.swing.model.component.ComponentInfo.createExposedChildren(ComponentInfo.java:109)
+ at org.eclipse.wb.internal.swing.model.component.ContainerInfo.createExposedChildren(ContainerInfo.java:143)
+ at org.eclipse.wb.core.model.JavaInfo.initialize(JavaInfo.java:419)
+ at org.eclipse.wb.internal.swing.model.component.ContainerInfo.initialize(ContainerInfo.java:114)
+ at org.eclipse.wb.core.model.JavaInfo.setObject(JavaInfo.java:1267)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper$3.evaluationSuccessful(JavaInfoEvaluationHelper.java:271)
+ at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate0(AstEvaluationEngine.java:179)
+ at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate(AstEvaluationEngine.java:61)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluateExpression(JavaInfoEvaluationHelper.java:630)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluate(JavaInfoEvaluationHelper.java:502)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.evaluateNode(JavaInfoParser.java:1309)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$1(JavaInfoParser.java:1300)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor$3.run(JavaInfoParser.java:602)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runRethrow(ExecutionUtils.java:119)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor.postVisit(JavaInfoParser.java:592)
+ at sun.reflect.GeneratedMethodAccessor23.invoke(Unknown Source)
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
+ at java.lang.reflect.Method.invoke(Unknown Source)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:399)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$2a5df964.postVisit(<generated>)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2517)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.VariableDeclarationFragment.accept0(VariableDeclarationFragment.java:225)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2585)
+ at org.eclipse.jdt.core.dom.VariableDeclarationStatement.accept0(VariableDeclarationStatement.java:273)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:228)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:191)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parseRootMethods(JavaInfoParser.java:312)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$10(JavaInfoParser.java:307)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$2.runObject(JavaInfoParser.java:166)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$2.runObject(JavaInfoParser.java:1)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:159)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:164)
+ at org.eclipse.wb.internal.core.model.util.live.AbstractLiveManager.parse(AbstractLiveManager.java:191)
+ at org.eclipse.wb.internal.swing.model.component.live.SwingLiveManager.createLiveComponent(SwingLiveManager.java:56)
+ at org.eclipse.wb.internal.core.model.util.live.AbstractLiveManager.createCacheEntryEx(AbstractLiveManager.java:103)
+ at org.eclipse.wb.internal.core.model.util.live.AbstractLiveManager.createCacheEntry(AbstractLiveManager.java:82)
+ at org.eclipse.wb.internal.core.model.util.live.AbstractLiveManager.getCachedEntry(AbstractLiveManager.java:264)
+ at org.eclipse.wb.internal.core.model.util.live.AbstractLiveManager.getCachedEntry(AbstractLiveManager.java:245)
+ at org.eclipse.wb.internal.swing.model.component.live.SwingLiveManager.getImage(SwingLiveManager.java:131)
+ at org.eclipse.wb.internal.swing.model.component.ComponentInfo.getLiveImage(ComponentInfo.java:259)
+ at org.eclipse.wb.core.model.AbstractComponentInfo.getImage(AbstractComponentInfo.java:165)
+ at org.eclipse.wb.internal.layout.group.gef.GroupLayoutEditPolicy2.showCreationFeedback(GroupLayoutEditPolicy2.java:169)
+ at org.eclipse.wb.internal.layout.group.gef.GroupLayoutEditPolicy2.showLayoutTargetFeedback(GroupLayoutEditPolicy2.java:135)
+ at org.eclipse.wb.gef.graphical.policies.LayoutEditPolicy.showTargetFeedback(LayoutEditPolicy.java:210)
+ at org.eclipse.wb.gef.core.EditPart.showTargetFeedback(EditPart.java:827)
+ at org.eclipse.wb.gef.core.tools.TargetingTool.showTargetFeedback(TargetingTool.java:242)
+ at org.eclipse.wb.gef.core.tools.TargetingTool.handleEnteredEditPart(TargetingTool.java:99)
+ at org.eclipse.wb.gef.core.tools.TargetingTool.setTargetEditPart(TargetingTool.java:76)
+ at org.eclipse.wb.gef.core.tools.TargetingTool.updateTargetUnderMouse(TargetingTool.java:177)
+ at org.eclipse.wb.gef.core.tools.AbstractCreationTool.handleMove(AbstractCreationTool.java:73)
+ at org.eclipse.wb.gef.core.tools.Tool.mouseMove(Tool.java:426)
+ at org.eclipse.wb.internal.gef.core.EditDomain.mouseMove(EditDomain.java:266)
+ at org.eclipse.wb.internal.gef.graphical.EditEventManager.mouseMove(EditEventManager.java:170)
+ at sun.reflect.GeneratedMethodAccessor157.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:53.215
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:53.225
-!MESSAGE Unhandled event loop exception
+!ENTRY org.eclipse.wb.core 4 4 2015-02-04 16:34:27.696
+!MESSAGE Designer [1.5.2.r42x201302112024.201502041633]: 313 (Exception during 'super' constructor evaluation). JFrame() {} java.lang.NullPointerException
+ at java.beans.MethodRef.get(Unknown Source)
+ at java.beans.PropertyDescriptor.getWriteMethod(Unknown Source)
!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
+org.eclipse.wb.internal.core.utils.exception.DesignerException: 313 (Exception during 'super' constructor evaluation). JFrame() {} java.lang.NullPointerException
+ at java.beans.MethodRef.get(Unknown Source)
+ at java.beans.PropertyDescriptor.getWriteMethod(Unknown Source)
+ at org.eclipse.wb.internal.core.model.creation.ThisCreationSupport.create(ThisCreationSupport.java:275)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluateJavaInfoUsingCreationSupport(JavaInfoEvaluationHelper.java:642)
+ at org.eclipse.wb.core.model.JavaInfo.refresh_create(JavaInfo.java:1176)
+ at org.eclipse.wb.core.model.ObjectInfo.refreshCreate0(ObjectInfo.java:550)
+ at org.eclipse.wb.core.model.ObjectInfo.access$0(ObjectInfo.java:546)
+ at org.eclipse.wb.core.model.ObjectInfo$5$1.run(ObjectInfo.java:486)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:145)
+ at org.eclipse.wb.core.model.ObjectInfo$5.run(ObjectInfo.java:484)
+ at org.eclipse.wb.internal.swing.utils.SwingUtils$2.run(SwingUtils.java:76)
+ at java.awt.event.InvocationEvent.dispatch(Unknown Source)
+ at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
+ at java.awt.EventQueue.access$500(Unknown Source)
+ at java.awt.EventQueue$3.run(Unknown Source)
+ at java.awt.EventQueue$3.run(Unknown Source)
+ at java.security.AccessController.doPrivileged(Native Method)
+ at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
+ at java.awt.EventQueue.dispatchEvent(Unknown Source)
+ at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
+ at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
+ at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
+ at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
+ at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
+ at java.awt.EventDispatchThread.run(Unknown Source)
+Caused by: java.lang.NullPointerException
+ at java.beans.MethodRef.get(Unknown Source)
+ at java.beans.PropertyDescriptor.getWriteMethod(Unknown Source)
+ at org.eclipse.wb.internal.core.model.JavaInfoUtils.addExposedChildred_Method(JavaInfoUtils.java:447)
+ at org.eclipse.wb.internal.core.model.JavaInfoUtils.addExposedChildren(JavaInfoUtils.java:429)
+ at org.eclipse.wb.internal.swing.model.component.ComponentInfo.createExposedChildren(ComponentInfo.java:109)
+ at org.eclipse.wb.internal.swing.model.component.ContainerInfo.createExposedChildren(ContainerInfo.java:143)
+ at org.eclipse.wb.internal.core.model.creation.ThisCreationSupport.duringParsing_createExposedChildren(ThisCreationSupport.java:701)
+ at org.eclipse.wb.internal.core.model.creation.ThisCreationSupport.create(ThisCreationSupport.java:270)
+ ... 22 more
+
+!ENTRY org.eclipse.wb.core 4 4 2015-02-04 16:34:29.654
+!MESSAGE Designer [1.5.2.r42x201302112024.201502041633]: new javax.swing.JPanel()
+!STACK 0
+java.lang.Error: new javax.swing.JPanel()
+ at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate(AstEvaluationEngine.java:71)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluateExpression(JavaInfoEvaluationHelper.java:630)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluate(JavaInfoEvaluationHelper.java:502)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.evaluateNode(JavaInfoParser.java:1309)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$1(JavaInfoParser.java:1300)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor$3.run(JavaInfoParser.java:602)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runRethrow(ExecutionUtils.java:119)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor.postVisit(JavaInfoParser.java:592)
+ at sun.reflect.GeneratedMethodAccessor23.invoke(Unknown Source)
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
+ at java.lang.reflect.Method.invoke(Unknown Source)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:399)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$2a5df964.postVisit(<generated>)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2517)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.Assignment.accept0(Assignment.java:312)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.access$1(ExecutionFlowUtils.java:235)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.endVisit(ExecutionFlowUtils.java:442)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:391)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$2a5df964.endVisit(<generated>)
+ at org.eclipse.jdt.core.dom.MethodInvocation.accept0(MethodInvocation.java:247)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:343)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:228)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:191)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parseRootMethods(JavaInfoParser.java:312)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:268)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$9(JavaInfoParser.java:238)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:153)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:1)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:159)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:151)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:534)
+ at org.eclipse.wb.internal.core.editor.DesignPage.access$9(DesignPage.java:522)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8$1.run(DesignPage.java:449)
+ at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
+ at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
+ at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8.run(DesignPage.java:446)
+ at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
+ at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
+ at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF_withProgress(DesignPage.java:465)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:415)
+ at org.eclipse.wb.internal.core.editor.UndoManager.refreshDesignerEditor(UndoManager.java:381)
+ at org.eclipse.wb.internal.core.editor.DesignPage.refreshGEF(DesignPage.java:392)
+ at org.eclipse.wb.internal.core.editor.actions.RefreshAction.run(RefreshAction.java:46)
+ at org.eclipse.wb.internal.core.editor.actions.DesignPageAction.run(DesignPageAction.java:34)
+ at org.eclipse.wb.internal.core.editor.errors.JavaExceptionComposite.doRefresh(JavaExceptionComposite.java:87)
+ at org.eclipse.wb.internal.core.editor.errors.ExceptionComposite$3.widgetSelected(ExceptionComposite.java:129)
+ at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:53.235
-!MESSAGE Unhandled event loop exception
+!ENTRY org.eclipse.ui 2 2 2015-02-04 16:34:35.246
+!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
+!SESSION 2015-02-04 16:34:37.017 -----------------------------------------------
+eclipse.buildId=M20130204-1200
+java.version=1.8.0_31
+java.vendor=Oracle Corporation
+BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
+Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
+Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
+
+!ENTRY org.eclipse.ui 4 4 2015-02-04 16:34:43.820
+!MESSAGE Could not create action delegate for id: org.eclipse.jdt.debug.ui.actions.ManageBreakpointRulerAction
+
+!ENTRY org.eclipse.equinox.registry 4 1 2015-02-04 16:34:43.826
+!MESSAGE Plug-in org.eclipse.wb.core.java was unable to load class org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate.
!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
+java.lang.ClassNotFoundException: org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
+ at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
+ at java.lang.ClassLoader.loadClass(Unknown Source)
+ at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
+ at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
+ at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
+ at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
+ at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
+ at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
+ at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
+ at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:265)
+ at org.eclipse.ui.internal.PluginAction.createDelegate(PluginAction.java:122)
+ at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:275)
+ at org.eclipse.ui.internal.PluginAction.<init>(PluginAction.java:112)
+ at org.eclipse.ui.internal.PartPluginAction.<init>(PartPluginAction.java:29)
+ at org.eclipse.ui.internal.EditorPluginAction.<init>(EditorPluginAction.java:32)
+ at org.eclipse.ui.internal.ActionDescriptor.createAction(ActionDescriptor.java:262)
+ at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:176)
+ at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:103)
+ at org.eclipse.ui.internal.EditorActionBuilder.createActionDescriptor(EditorActionBuilder.java:41)
+ at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:161)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElementChildren(RegistryReader.java:133)
+ at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readExtension(RegistryReader.java:155)
+ at org.eclipse.ui.internal.registry.RegistryReader.readRegistry(RegistryReader.java:176)
+ at org.eclipse.ui.internal.PluginActionBuilder.readContributions(PluginActionBuilder.java:115)
+ at org.eclipse.ui.internal.EditorActionBuilder.readActionExtensions(EditorActionBuilder.java:58)
+ at org.eclipse.ui.internal.EditorReference.createEditorActionBars(EditorReference.java:446)
+ at org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:356)
+ at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:301)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:53.245
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
+ at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:861)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:841)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:113)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:321)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:242)
+ at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:161)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
+ at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:141)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1115)
+ at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:98)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$6.run(PartRenderingEngine.java:520)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:505)
+ at org.eclipse.e4.ui.workbench.renderers.swt.ElementReferenceRenderer.createWidget(ElementReferenceRenderer.java:74)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveRenderer.processContents(PerspectiveRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.showTab(PerspectiveStackRenderer.java:103)
+ at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:98)
+ at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.postProcess(PerspectiveStackRenderer.java:77)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.workbench.renderers.swt.WBWRenderer.processContents(WBWRenderer.java:644)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:987)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:53.255
+!ENTRY org.eclipse.egit.ui 2 0 2015-02-04 16:34:49.110
+!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
+Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
+The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
+this system level configuration. The Git installation location can be configured on the
+Team > Git > Configuration preference page's 'System Settings' tab.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
+
+!ENTRY org.eclipse.egit.ui 2 0 2015-02-04 16:34:49.111
+!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
+user global configuration and to define the default location to store repositories: 'C:\Users\raisaro'. If this is
+not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
+EGit might behave differently since they see different configuration options.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
+
+!ENTRY org.eclipse.ui 4 0 2015-02-04 16:40:06.987
!MESSAGE Unhandled event loop exception
!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
+org.eclipse.swt.SWTException: Graphic is disposed
+ at org.eclipse.swt.SWT.error(SWT.java:4361)
+ at org.eclipse.swt.SWT.error(SWT.java:4276)
+ at org.eclipse.swt.SWT.error(SWT.java:4247)
+ at org.eclipse.swt.graphics.GC.getFont(GC.java:3491)
+ at org.eclipse.swt.custom.CTabFolder.onPaint(CTabFolder.java:1921)
+ at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:284)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
+ at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
+ at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
+ at org.eclipse.swt.widgets.Composite.WM_PAINT(Composite.java:1463)
+ at org.eclipse.swt.widgets.Control.windowProc(Control.java:4585)
+ at org.eclipse.swt.widgets.Display.windowProc(Display.java:4989)
+ at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
+ at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2546)
+ at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3756)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:53.255
+!ENTRY org.eclipse.ui 4 0 2015-02-04 16:40:06.994
!MESSAGE Unhandled event loop exception
!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
+org.eclipse.swt.SWTException: Graphic is disposed
+ at org.eclipse.swt.SWT.error(SWT.java:4361)
+ at org.eclipse.swt.SWT.error(SWT.java:4276)
+ at org.eclipse.swt.SWT.error(SWT.java:4247)
+ at org.eclipse.swt.graphics.GC.setBackground(GC.java:4188)
+ at org.eclipse.swt.custom.StyledTextRenderer.drawLine(StyledTextRenderer.java:383)
+ at org.eclipse.swt.custom.StyledText.handlePaint(StyledText.java:6084)
+ at org.eclipse.swt.custom.StyledText$7.handleEvent(StyledText.java:5635)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
+ at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
+ at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
+ at org.eclipse.swt.widgets.Composite.WM_PAINT(Composite.java:1463)
+ at org.eclipse.swt.widgets.Control.windowProc(Control.java:4585)
+ at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
+ at org.eclipse.swt.widgets.Display.windowProc(Display.java:4989)
+ at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
+ at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2546)
+ at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3756)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
+!SESSION 2015-02-04 16:42:13.714 -----------------------------------------------
+eclipse.buildId=M20130204-1200
+java.version=1.8.0_31
+java.vendor=Oracle Corporation
+BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
+Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
+Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:53.265
-!MESSAGE Unhandled event loop exception
+!ENTRY org.eclipse.ui 4 4 2015-02-04 16:42:26.910
+!MESSAGE Could not create action delegate for id: org.eclipse.jdt.debug.ui.actions.ManageBreakpointRulerAction
+
+!ENTRY org.eclipse.equinox.registry 4 1 2015-02-04 16:42:26.910
+!MESSAGE Plug-in org.eclipse.wb.core.java was unable to load class org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate.
!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
+java.lang.ClassNotFoundException: org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
+ at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
+ at java.lang.ClassLoader.loadClass(Unknown Source)
+ at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
+ at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
+ at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
+ at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
+ at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
+ at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
+ at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
+ at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:265)
+ at org.eclipse.ui.internal.PluginAction.createDelegate(PluginAction.java:122)
+ at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:275)
+ at org.eclipse.ui.internal.PluginAction.<init>(PluginAction.java:112)
+ at org.eclipse.ui.internal.PartPluginAction.<init>(PartPluginAction.java:29)
+ at org.eclipse.ui.internal.EditorPluginAction.<init>(EditorPluginAction.java:32)
+ at org.eclipse.ui.internal.ActionDescriptor.createAction(ActionDescriptor.java:262)
+ at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:176)
+ at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:103)
+ at org.eclipse.ui.internal.EditorActionBuilder.createActionDescriptor(EditorActionBuilder.java:41)
+ at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:161)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElementChildren(RegistryReader.java:133)
+ at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readExtension(RegistryReader.java:155)
+ at org.eclipse.ui.internal.registry.RegistryReader.readRegistry(RegistryReader.java:176)
+ at org.eclipse.ui.internal.PluginActionBuilder.readContributions(PluginActionBuilder.java:115)
+ at org.eclipse.ui.internal.EditorActionBuilder.readActionExtensions(EditorActionBuilder.java:58)
+ at org.eclipse.ui.internal.EditorReference.createEditorActionBars(EditorReference.java:446)
+ at org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:356)
+ at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:301)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:53.275
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
+ at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:861)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:841)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:113)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:321)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:242)
+ at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:161)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
+ at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:141)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1115)
+ at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:98)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$6.run(PartRenderingEngine.java:520)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:505)
+ at org.eclipse.e4.ui.workbench.renderers.swt.ElementReferenceRenderer.createWidget(ElementReferenceRenderer.java:74)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveRenderer.processContents(PerspectiveRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.showTab(PerspectiveStackRenderer.java:103)
+ at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:98)
+ at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.postProcess(PerspectiveStackRenderer.java:77)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.workbench.renderers.swt.WBWRenderer.processContents(WBWRenderer.java:644)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:987)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
+
+!ENTRY org.eclipse.egit.ui 2 0 2015-02-04 16:42:32.373
+!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
+Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
+The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
+this system level configuration. The Git installation location can be configured on the
+Team > Git > Configuration preference page's 'System Settings' tab.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
+
+!ENTRY org.eclipse.egit.ui 2 0 2015-02-04 16:42:32.373
+!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
+user global configuration and to define the default location to store repositories: 'C:\Users\raisaro'. If this is
+not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
+EGit might behave differently since they see different configuration options.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
+
+!ENTRY org.eclipse.wb.core 4 4 2015-02-04 17:04:56.465
+!MESSAGE Designer [1.5.2.r42x201302112024.201502041704]: org.eclipse.wb.core.model.association.CompoundAssociation cannot be cast to org.eclipse.wb.core.model.association.InvocationChildAssociation
+!STACK 0
+java.lang.ClassCastException: org.eclipse.wb.core.model.association.CompoundAssociation cannot be cast to org.eclipse.wb.core.model.association.InvocationChildAssociation
+ at org.eclipse.wb.internal.swing.model.component.AbstractPositionContainerInfo.getAssociationInvocation(AbstractPositionContainerInfo.java:89)
+ at org.eclipse.wb.internal.swing.model.component.AbstractPositionContainerInfo.command_MOVE(AbstractPositionContainerInfo.java:62)
+ at org.eclipse.wb.internal.swing.gef.policy.component.JScrollPaneLayoutEditPolicy.command_MOVE(JScrollPaneLayoutEditPolicy.java:90)
+ at org.eclipse.wb.internal.swing.gef.policy.component.JScrollPaneLayoutEditPolicy.command_MOVE(JScrollPaneLayoutEditPolicy.java:1)
+ at org.eclipse.wb.core.gef.policy.layout.position.ObjectPositionLayoutEditPolicy$3.executeEdit(ObjectPositionLayoutEditPolicy.java:73)
+ at org.eclipse.wb.core.gef.command.EditCommand$1.run(EditCommand.java:52)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.run(ExecutionUtils.java:324)
+ at org.eclipse.wb.core.gef.command.EditCommand.execute(EditCommand.java:50)
+ at org.eclipse.wb.internal.gef.core.EditDomain.executeCommand(EditDomain.java:59)
+ at org.eclipse.wb.gef.core.tools.Tool.executeCommand(Tool.java:209)
+ at org.eclipse.wb.gef.core.tools.DragEditPartTracker.handleButtonUp(DragEditPartTracker.java:74)
+ at org.eclipse.wb.gef.core.tools.Tool.mouseUp(Tool.java:395)
+ at org.eclipse.wb.gef.graphical.tools.SelectionTool.mouseUp(SelectionTool.java:250)
+ at org.eclipse.wb.internal.gef.core.EditDomain.mouseUp(EditDomain.java:255)
+ at org.eclipse.wb.internal.gef.graphical.EditEventManager.mouseUp(EditEventManager.java:149)
+ at sun.reflect.GeneratedMethodAccessor289.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:53.285
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
+ at com.sun.proxy.$Proxy14.mouseUp(Unknown Source)
+ at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:220)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:53.295
-!MESSAGE Unhandled event loop exception
+!ENTRY org.eclipse.ui 2 2 2015-02-04 17:28:54.999
+!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
+!SESSION 2015-02-05 09:22:44.976 -----------------------------------------------
+eclipse.buildId=M20130204-1200
+java.version=1.8.0_31
+java.vendor=Oracle Corporation
+BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
+Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
+Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
+
+!ENTRY org.eclipse.ui 4 4 2015-02-05 09:22:56.298
+!MESSAGE Could not create action delegate for id: org.eclipse.jdt.debug.ui.actions.ManageBreakpointRulerAction
+
+!ENTRY org.eclipse.equinox.registry 4 1 2015-02-05 09:22:56.308
+!MESSAGE Plug-in org.eclipse.wb.core.java was unable to load class org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate.
!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
+java.lang.ClassNotFoundException: org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
+ at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
+ at java.lang.ClassLoader.loadClass(Unknown Source)
+ at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
+ at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
+ at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
+ at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
+ at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
+ at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
+ at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
+ at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:265)
+ at org.eclipse.ui.internal.PluginAction.createDelegate(PluginAction.java:122)
+ at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:275)
+ at org.eclipse.ui.internal.PluginAction.<init>(PluginAction.java:112)
+ at org.eclipse.ui.internal.PartPluginAction.<init>(PartPluginAction.java:29)
+ at org.eclipse.ui.internal.EditorPluginAction.<init>(EditorPluginAction.java:32)
+ at org.eclipse.ui.internal.ActionDescriptor.createAction(ActionDescriptor.java:262)
+ at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:176)
+ at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:103)
+ at org.eclipse.ui.internal.EditorActionBuilder.createActionDescriptor(EditorActionBuilder.java:41)
+ at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:161)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElementChildren(RegistryReader.java:133)
+ at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readExtension(RegistryReader.java:155)
+ at org.eclipse.ui.internal.registry.RegistryReader.readRegistry(RegistryReader.java:176)
+ at org.eclipse.ui.internal.PluginActionBuilder.readContributions(PluginActionBuilder.java:115)
+ at org.eclipse.ui.internal.EditorActionBuilder.readActionExtensions(EditorActionBuilder.java:58)
+ at org.eclipse.ui.internal.EditorReference.createEditorActionBars(EditorReference.java:446)
+ at org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:356)
+ at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:301)
+ at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+ at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
+ at java.lang.reflect.Method.invoke(Unknown Source)
+ at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:861)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:841)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:113)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:321)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:242)
+ at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:161)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
+ at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:141)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1115)
+ at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:98)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$6.run(PartRenderingEngine.java:520)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:505)
+ at org.eclipse.e4.ui.workbench.renderers.swt.ElementReferenceRenderer.createWidget(ElementReferenceRenderer.java:74)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveRenderer.processContents(PerspectiveRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.showTab(PerspectiveStackRenderer.java:103)
+ at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:98)
+ at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.postProcess(PerspectiveStackRenderer.java:77)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.workbench.renderers.swt.WBWRenderer.processContents(WBWRenderer.java:644)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:987)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:53.295
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
+ at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
+ at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
+ at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
+ at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
+
+!ENTRY org.eclipse.egit.ui 2 0 2015-02-05 09:23:02.119
+!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
+Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
+The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
+this system level configuration. The Git installation location can be configured on the
+Team > Git > Configuration preference page's 'System Settings' tab.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
+
+!ENTRY org.eclipse.egit.ui 2 0 2015-02-05 09:23:02.119
+!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
+user global configuration and to define the default location to store repositories: 'C:\Users\raisaro'. If this is
+not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
+EGit might behave differently since they see different configuration options.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
+
+!ENTRY org.eclipse.ui 2 2 2015-02-05 09:38:47.808
+!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
+!SESSION 2015-02-05 10:32:17.049 -----------------------------------------------
+eclipse.buildId=M20130204-1200
+java.version=1.8.0_31
+java.vendor=Oracle Corporation
+BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
+Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
+Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
+
+!ENTRY org.eclipse.egit.ui 2 0 2015-02-05 10:32:29.828
+!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
+Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
+The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
+this system level configuration. The Git installation location can be configured on the
+Team > Git > Configuration preference page's 'System Settings' tab.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
+
+!ENTRY org.eclipse.egit.ui 2 0 2015-02-05 10:32:29.828
+!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
+user global configuration and to define the default location to store repositories: 'C:\Users\raisaro'. If this is
+not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
+EGit might behave differently since they see different configuration options.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
+
+!ENTRY org.eclipse.ui 4 4 2015-02-05 10:32:38.127
+!MESSAGE Could not create action delegate for id: org.eclipse.jdt.debug.ui.actions.ManageBreakpointRulerAction
+
+!ENTRY org.eclipse.equinox.registry 4 1 2015-02-05 10:32:38.127
+!MESSAGE Plug-in org.eclipse.wb.core.java was unable to load class org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate.
+!STACK 0
+java.lang.ClassNotFoundException: org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
+ at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
+ at java.lang.ClassLoader.loadClass(Unknown Source)
+ at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
+ at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
+ at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
+ at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
+ at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
+ at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
+ at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
+ at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:265)
+ at org.eclipse.ui.internal.PluginAction.createDelegate(PluginAction.java:122)
+ at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:275)
+ at org.eclipse.ui.internal.PluginAction.<init>(PluginAction.java:112)
+ at org.eclipse.ui.internal.PartPluginAction.<init>(PartPluginAction.java:29)
+ at org.eclipse.ui.internal.EditorPluginAction.<init>(EditorPluginAction.java:32)
+ at org.eclipse.ui.internal.ActionDescriptor.createAction(ActionDescriptor.java:262)
+ at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:176)
+ at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:103)
+ at org.eclipse.ui.internal.EditorActionBuilder.createActionDescriptor(EditorActionBuilder.java:41)
+ at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:161)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElementChildren(RegistryReader.java:133)
+ at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readExtension(RegistryReader.java:155)
+ at org.eclipse.ui.internal.registry.RegistryReader.readRegistry(RegistryReader.java:176)
+ at org.eclipse.ui.internal.PluginActionBuilder.readContributions(PluginActionBuilder.java:115)
+ at org.eclipse.ui.internal.EditorActionBuilder.readActionExtensions(EditorActionBuilder.java:58)
+ at org.eclipse.ui.internal.EditorReference.createEditorActionBars(EditorReference.java:446)
+ at org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:356)
+ at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:301)
+ at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+ at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
+ at java.lang.reflect.Method.invoke(Unknown Source)
+ at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:861)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:841)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:113)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:321)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:242)
+ at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:161)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
+ at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:141)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1115)
+ at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer$1.handleEvent(LazyStackRenderer.java:67)
+ at org.eclipse.e4.ui.services.internal.events.UIEventHandler$1.run(UIEventHandler.java:41)
+ at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
+ at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
+ at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
+ at org.eclipse.e4.ui.internal.workbench.swt.E4Application$1.syncExec(E4Application.java:187)
+ at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:38)
+ at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:197)
+ at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:197)
+ at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)
+ at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
+ at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
+ at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:135)
+ at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:78)
+ at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:39)
+ at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:80)
+ at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:58)
+ at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:374)
+ at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement(ElementContainerImpl.java:171)
+ at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer$8.widgetSelected(StackRenderer.java:911)
+ at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
+ at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
+ at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
+ at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
+ at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
+ at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:774)
+ at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3028)
+ at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1749)
+ at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:278)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:53.315
-!MESSAGE Unhandled event loop exception
+!ENTRY org.eclipse.ui 2 2 2015-02-05 10:55:37.453
+!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
+!SESSION 2015-02-05 11:57:40.097 -----------------------------------------------
+eclipse.buildId=M20130204-1200
+java.version=1.8.0_31
+java.vendor=Oracle Corporation
+BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
+Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
+Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
+
+!ENTRY org.eclipse.ui 4 4 2015-02-05 11:57:49.092
+!MESSAGE Could not create action delegate for id: org.eclipse.jdt.debug.ui.actions.ManageBreakpointRulerAction
+
+!ENTRY org.eclipse.equinox.registry 4 1 2015-02-05 11:57:49.099
+!MESSAGE Plug-in org.eclipse.wb.core.java was unable to load class org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate.
!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
+java.lang.ClassNotFoundException: org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
+ at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
+ at java.lang.ClassLoader.loadClass(Unknown Source)
+ at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
+ at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
+ at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
+ at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
+ at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
+ at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
+ at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
+ at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:265)
+ at org.eclipse.ui.internal.PluginAction.createDelegate(PluginAction.java:122)
+ at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:275)
+ at org.eclipse.ui.internal.PluginAction.<init>(PluginAction.java:112)
+ at org.eclipse.ui.internal.PartPluginAction.<init>(PartPluginAction.java:29)
+ at org.eclipse.ui.internal.EditorPluginAction.<init>(EditorPluginAction.java:32)
+ at org.eclipse.ui.internal.ActionDescriptor.createAction(ActionDescriptor.java:262)
+ at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:176)
+ at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:103)
+ at org.eclipse.ui.internal.EditorActionBuilder.createActionDescriptor(EditorActionBuilder.java:41)
+ at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:161)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElementChildren(RegistryReader.java:133)
+ at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readExtension(RegistryReader.java:155)
+ at org.eclipse.ui.internal.registry.RegistryReader.readRegistry(RegistryReader.java:176)
+ at org.eclipse.ui.internal.PluginActionBuilder.readContributions(PluginActionBuilder.java:115)
+ at org.eclipse.ui.internal.EditorActionBuilder.readActionExtensions(EditorActionBuilder.java:58)
+ at org.eclipse.ui.internal.EditorReference.createEditorActionBars(EditorReference.java:446)
+ at org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:356)
+ at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:301)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:53.335
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
+ at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:861)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:841)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:113)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:321)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:242)
+ at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:161)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
+ at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:141)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1115)
+ at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:98)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$6.run(PartRenderingEngine.java:520)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:505)
+ at org.eclipse.e4.ui.workbench.renderers.swt.ElementReferenceRenderer.createWidget(ElementReferenceRenderer.java:74)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveRenderer.processContents(PerspectiveRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.showTab(PerspectiveStackRenderer.java:103)
+ at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:98)
+ at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.postProcess(PerspectiveStackRenderer.java:77)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.workbench.renderers.swt.WBWRenderer.processContents(WBWRenderer.java:644)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:987)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-!ENTRY org.eclipse.ui 4 0 2014-12-18 17:12:53.335
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.reflect.UndeclaredThrowableException
- at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- ... 28 more
-Caused by: java.lang.NullPointerException
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.Figure.getFigureCanvas(Figure.java:372)
- at org.eclipse.wb.draw2d.FigureUtils.translateFigureToCanvas(FigureUtils.java:100)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.getTargetFigure(PaletteComposite.java:1167)
- at org.eclipse.wb.core.controls.palette.PaletteComposite.access$6(PaletteComposite.java:1164)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.move_showFeedback(PaletteComposite.java:831)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure.access$12(PaletteComposite.java:827)
- at org.eclipse.wb.core.controls.palette.PaletteComposite$EntryFigure$2.mouseMove(PaletteComposite.java:793)
- at org.eclipse.wb.internal.draw2d.EventManager$4.invokeListener(EventManager.java:267)
- at org.eclipse.wb.internal.draw2d.EventManager.sendEvent(EventManager.java:205)
- at org.eclipse.wb.internal.draw2d.EventManager.handleMouseEvent(EventManager.java:191)
- at org.eclipse.wb.internal.draw2d.EventManager.mouseMove(EventManager.java:184)
- ... 32 more
-!SESSION 2014-12-19 09:11:05.618 -----------------------------------------------
+!ENTRY org.eclipse.egit.ui 2 0 2015-02-05 11:57:55.599
+!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
+Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
+The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
+this system level configuration. The Git installation location can be configured on the
+Team > Git > Configuration preference page's 'System Settings' tab.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
+
+!ENTRY org.eclipse.egit.ui 2 0 2015-02-05 11:57:55.601
+!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
+user global configuration and to define the default location to store repositories: 'C:\Users\raisaro'. If this is
+not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
+EGit might behave differently since they see different configuration options.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
+
+!ENTRY org.eclipse.ui 2 2 2015-02-05 12:42:09.854
+!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
+!SESSION 2015-02-05 15:28:31.651 -----------------------------------------------
eclipse.buildId=M20130204-1200
-java.version=1.7.0_45
+java.version=1.8.0_31
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
-!ENTRY org.eclipse.ui 4 4 2014-12-19 09:11:19.839
+!ENTRY org.eclipse.ui 4 4 2015-02-05 15:28:42.753
!MESSAGE Could not create action delegate for id: org.eclipse.jdt.debug.ui.actions.ManageBreakpointRulerAction
-!ENTRY org.eclipse.equinox.registry 4 1 2014-12-19 09:11:19.839
+!ENTRY org.eclipse.equinox.registry 4 1 2015-02-05 15:28:42.759
!MESSAGE Plug-in org.eclipse.wb.core.java was unable to load class org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate.
!STACK 0
java.lang.ClassNotFoundException: org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:265)
at org.eclipse.ui.internal.PluginAction.createDelegate(PluginAction.java:122)
at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:275)
at org.eclipse.ui.internal.PluginAction.<init>(PluginAction.java:112)
at org.eclipse.ui.internal.PartPluginAction.<init>(PartPluginAction.java:29)
at org.eclipse.ui.internal.EditorPluginAction.<init>(EditorPluginAction.java:32)
at org.eclipse.ui.internal.ActionDescriptor.createAction(ActionDescriptor.java:262)
at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:176)
at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:103)
at org.eclipse.ui.internal.EditorActionBuilder.createActionDescriptor(EditorActionBuilder.java:41)
at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:161)
at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
at org.eclipse.ui.internal.registry.RegistryReader.readElementChildren(RegistryReader.java:133)
at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:144)
at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
at org.eclipse.ui.internal.registry.RegistryReader.readExtension(RegistryReader.java:155)
at org.eclipse.ui.internal.registry.RegistryReader.readRegistry(RegistryReader.java:176)
at org.eclipse.ui.internal.PluginActionBuilder.readContributions(PluginActionBuilder.java:115)
at org.eclipse.ui.internal.EditorActionBuilder.readActionExtensions(EditorActionBuilder.java:58)
at org.eclipse.ui.internal.EditorReference.createEditorActionBars(EditorReference.java:446)
at org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:356)
at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:301)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:861)
at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:841)
at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:113)
at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:321)
at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:242)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:161)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:141)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1115)
at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:98)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$6.run(PartRenderingEngine.java:520)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:505)
at org.eclipse.e4.ui.workbench.renderers.swt.ElementReferenceRenderer.createWidget(ElementReferenceRenderer.java:74)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveRenderer.processContents(PerspectiveRenderer.java:59)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.showTab(PerspectiveStackRenderer.java:103)
at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:98)
at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.postProcess(PerspectiveStackRenderer.java:77)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
at org.eclipse.e4.ui.workbench.renderers.swt.WBWRenderer.processContents(WBWRenderer.java:644)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:987)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-!ENTRY org.eclipse.egit.ui 2 0 2014-12-19 09:11:26.119
+!ENTRY org.eclipse.egit.ui 2 0 2015-02-05 15:28:51.305
!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
this system level configuration. The Git installation location can be configured on the
Team > Git > Configuration preference page's 'System Settings' tab.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-!ENTRY org.eclipse.egit.ui 2 0 2014-12-19 09:11:26.119
+!ENTRY org.eclipse.egit.ui 2 0 2015-02-05 15:28:51.307
!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
user global configuration and to define the default location to store repositories: 'C:\Users\raisaro'. If this is
not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
EGit might behave differently since they see different configuration options.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-!ENTRY org.eclipse.e4.ui.workbench 4 0 2014-12-19 12:20:52.755
-!MESSAGE
+!ENTRY org.eclipse.ui 2 2 2015-02-05 15:30:07.234
+!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
+!SESSION 2015-02-06 09:52:03.609 -----------------------------------------------
+eclipse.buildId=M20130204-1200
+java.version=1.8.0_31
+java.vendor=Oracle Corporation
+BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
+Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
+Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
+
+!ENTRY org.eclipse.ui 4 4 2015-02-06 09:52:13.902
+!MESSAGE Could not create action delegate for id: org.eclipse.jdt.debug.ui.actions.ManageBreakpointRulerAction
+
+!ENTRY org.eclipse.equinox.registry 4 1 2015-02-06 09:52:13.956
+!MESSAGE Plug-in org.eclipse.wb.core.java was unable to load class org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate.
!STACK 0
-org.eclipse.e4.core.di.InjectionException: org.eclipse.core.commands.ExecutionException: While executing the action, an exception occurred
- at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:63)
- at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:231)
- at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:212)
- at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:131)
- at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:171)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.executeCommand(KeyBindingDispatcher.java:277)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.press(KeyBindingDispatcher.java:496)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.processKeyEvent(KeyBindingDispatcher.java:547)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.filterKeySequenceBindings(KeyBindingDispatcher.java:368)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.access$0(KeyBindingDispatcher.java:314)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher$KeyDownFilter.handleEvent(KeyBindingDispatcher.java:83)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1262)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1052)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
- at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1104)
- at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1100)
- at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1521)
- at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:4640)
- at org.eclipse.swt.widgets.Canvas.WM_CHAR(Canvas.java:345)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4528)
- at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:4976)
- at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
- at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2546)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3756)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
+java.lang.ClassNotFoundException: org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
+ at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
+ at java.lang.ClassLoader.loadClass(Unknown Source)
+ at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
+ at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
+ at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
+ at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
+ at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
+ at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
+ at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
+ at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:265)
+ at org.eclipse.ui.internal.PluginAction.createDelegate(PluginAction.java:122)
+ at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:275)
+ at org.eclipse.ui.internal.PluginAction.<init>(PluginAction.java:112)
+ at org.eclipse.ui.internal.PartPluginAction.<init>(PartPluginAction.java:29)
+ at org.eclipse.ui.internal.EditorPluginAction.<init>(EditorPluginAction.java:32)
+ at org.eclipse.ui.internal.ActionDescriptor.createAction(ActionDescriptor.java:262)
+ at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:176)
+ at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:103)
+ at org.eclipse.ui.internal.EditorActionBuilder.createActionDescriptor(EditorActionBuilder.java:41)
+ at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:161)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElementChildren(RegistryReader.java:133)
+ at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readExtension(RegistryReader.java:155)
+ at org.eclipse.ui.internal.registry.RegistryReader.readRegistry(RegistryReader.java:176)
+ at org.eclipse.ui.internal.PluginActionBuilder.readContributions(PluginActionBuilder.java:115)
+ at org.eclipse.ui.internal.EditorActionBuilder.readActionExtensions(EditorActionBuilder.java:58)
+ at org.eclipse.ui.internal.EditorReference.createEditorActionBars(EditorReference.java:446)
+ at org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:356)
+ at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:301)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: org.eclipse.core.commands.ExecutionException: While executing the action, an exception occurred
- at org.eclipse.jface.commands.ActionHandler.execute(ActionHandler.java:124)
- at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:76)
- at sun.reflect.GeneratedMethodAccessor275.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
- ... 48 more
-Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
- at org.eclipse.jdt.internal.codeassist.InternalCompletionProposal.findConstructorParameterNames(InternalCompletionProposal.java:257)
- at org.eclipse.jdt.internal.codeassist.InternalCompletionProposal.findParameterNames(InternalCompletionProposal.java:1456)
- at org.eclipse.jdt.ui.text.java.CompletionProposalLabelProvider.appendUnboundedParameterList(CompletionProposalLabelProvider.java:113)
- at org.eclipse.jdt.ui.text.java.CompletionProposalLabelProvider.createMethodProposalLabel(CompletionProposalLabelProvider.java:272)
- at org.eclipse.jdt.ui.text.java.CompletionProposalLabelProvider.createStyledLabel(CompletionProposalLabelProvider.java:570)
- at org.eclipse.jdt.internal.ui.text.java.LazyJavaCompletionProposal.computeDisplayString(LazyJavaCompletionProposal.java:262)
- at org.eclipse.jdt.internal.ui.text.java.LazyJavaCompletionProposal.getDisplayString(LazyJavaCompletionProposal.java:245)
- at org.eclipse.jdt.internal.ui.text.java.AbstractJavaCompletionProposal.isValidPrefix(AbstractJavaCompletionProposal.java:784)
- at org.eclipse.jdt.internal.ui.text.java.LazyJavaCompletionProposal.isValidPrefix(LazyJavaCompletionProposal.java:377)
- at org.eclipse.jdt.internal.ui.text.java.JavaMethodCompletionProposal.isValidPrefix(JavaMethodCompletionProposal.java:272)
- at org.eclipse.jdt.internal.ui.text.java.AbstractJavaCompletionProposal.validate(AbstractJavaCompletionProposal.java:736)
- at org.eclipse.jdt.internal.ui.text.java.AbstractJavaCompletionProposal.apply(AbstractJavaCompletionProposal.java:452)
- at org.eclipse.jdt.internal.ui.text.java.LazyJavaCompletionProposal.apply(LazyJavaCompletionProposal.java:488)
- at org.eclipse.jface.text.contentassist.CompletionProposalPopup.insertProposal(CompletionProposalPopup.java:940)
- at org.eclipse.jface.text.contentassist.CompletionProposalPopup.access$21(CompletionProposalPopup.java:904)
- at org.eclipse.jface.text.contentassist.CompletionProposalPopup$2.run(CompletionProposalPopup.java:505)
- at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
- at org.eclipse.jface.text.contentassist.CompletionProposalPopup.showProposals(CompletionProposalPopup.java:492)
- at org.eclipse.jface.text.contentassist.ContentAssistant.showPossibleCompletions(ContentAssistant.java:1665)
- at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor$AdaptedSourceViewer.doOperation(CompilationUnitEditor.java:183)
- at org.eclipse.ui.texteditor.ContentAssistAction$1.run(ContentAssistAction.java:82)
- at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
- at org.eclipse.ui.texteditor.ContentAssistAction.run(ContentAssistAction.java:80)
- at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
- at org.eclipse.jface.commands.ActionHandler.execute(ActionHandler.java:119)
- ... 53 more
-
-!ENTRY org.eclipse.e4.ui.workbench 4 0 2014-12-19 12:20:53.678
-!MESSAGE
-!STACK 0
-org.eclipse.e4.core.di.InjectionException: org.eclipse.core.commands.ExecutionException: While executing the action, an exception occurred
- at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:63)
- at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:231)
- at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:212)
- at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:131)
- at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:171)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.executeCommand(KeyBindingDispatcher.java:277)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.press(KeyBindingDispatcher.java:496)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.processKeyEvent(KeyBindingDispatcher.java:547)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.filterKeySequenceBindings(KeyBindingDispatcher.java:368)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.access$0(KeyBindingDispatcher.java:314)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher$KeyDownFilter.handleEvent(KeyBindingDispatcher.java:83)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1262)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1052)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
- at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1104)
- at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1100)
- at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1521)
- at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:4640)
- at org.eclipse.swt.widgets.Canvas.WM_CHAR(Canvas.java:345)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4528)
- at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:4976)
- at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
- at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2546)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3756)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:861)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:841)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:113)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:321)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:242)
+ at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:161)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
+ at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:141)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1115)
+ at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:98)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$6.run(PartRenderingEngine.java:520)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:505)
+ at org.eclipse.e4.ui.workbench.renderers.swt.ElementReferenceRenderer.createWidget(ElementReferenceRenderer.java:74)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveRenderer.processContents(PerspectiveRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.showTab(PerspectiveStackRenderer.java:103)
+ at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:98)
+ at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.postProcess(PerspectiveStackRenderer.java:77)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.workbench.renderers.swt.WBWRenderer.processContents(WBWRenderer.java:644)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:987)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: org.eclipse.core.commands.ExecutionException: While executing the action, an exception occurred
- at org.eclipse.jface.commands.ActionHandler.execute(ActionHandler.java:124)
- at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:76)
- at sun.reflect.GeneratedMethodAccessor275.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
- ... 48 more
-Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
- at org.eclipse.jdt.internal.codeassist.InternalCompletionProposal.findConstructorParameterNames(InternalCompletionProposal.java:257)
- at org.eclipse.jdt.internal.codeassist.InternalCompletionProposal.findParameterNames(InternalCompletionProposal.java:1456)
- at org.eclipse.jdt.ui.text.java.CompletionProposalLabelProvider.appendUnboundedParameterList(CompletionProposalLabelProvider.java:113)
- at org.eclipse.jdt.ui.text.java.CompletionProposalLabelProvider.createMethodProposalLabel(CompletionProposalLabelProvider.java:272)
- at org.eclipse.jdt.ui.text.java.CompletionProposalLabelProvider.createStyledLabel(CompletionProposalLabelProvider.java:570)
- at org.eclipse.jdt.internal.ui.text.java.LazyJavaCompletionProposal.computeDisplayString(LazyJavaCompletionProposal.java:262)
- at org.eclipse.jdt.internal.ui.text.java.LazyJavaCompletionProposal.getDisplayString(LazyJavaCompletionProposal.java:245)
- at org.eclipse.jdt.internal.ui.text.java.AbstractJavaCompletionProposal.isValidPrefix(AbstractJavaCompletionProposal.java:784)
- at org.eclipse.jdt.internal.ui.text.java.LazyJavaCompletionProposal.isValidPrefix(LazyJavaCompletionProposal.java:377)
- at org.eclipse.jdt.internal.ui.text.java.JavaMethodCompletionProposal.isValidPrefix(JavaMethodCompletionProposal.java:272)
- at org.eclipse.jdt.internal.ui.text.java.AbstractJavaCompletionProposal.validate(AbstractJavaCompletionProposal.java:736)
- at org.eclipse.jdt.internal.ui.text.java.AbstractJavaCompletionProposal.apply(AbstractJavaCompletionProposal.java:452)
- at org.eclipse.jdt.internal.ui.text.java.LazyJavaCompletionProposal.apply(LazyJavaCompletionProposal.java:488)
- at org.eclipse.jface.text.contentassist.CompletionProposalPopup.insertProposal(CompletionProposalPopup.java:940)
- at org.eclipse.jface.text.contentassist.CompletionProposalPopup.access$21(CompletionProposalPopup.java:904)
- at org.eclipse.jface.text.contentassist.CompletionProposalPopup$2.run(CompletionProposalPopup.java:505)
- at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
- at org.eclipse.jface.text.contentassist.CompletionProposalPopup.showProposals(CompletionProposalPopup.java:492)
- at org.eclipse.jface.text.contentassist.ContentAssistant.showPossibleCompletions(ContentAssistant.java:1665)
- at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor$AdaptedSourceViewer.doOperation(CompilationUnitEditor.java:183)
- at org.eclipse.ui.texteditor.ContentAssistAction$1.run(ContentAssistAction.java:82)
- at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
- at org.eclipse.ui.texteditor.ContentAssistAction.run(ContentAssistAction.java:80)
- at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
- at org.eclipse.jface.commands.ActionHandler.execute(ActionHandler.java:119)
- ... 53 more
-!ENTRY org.eclipse.e4.ui.workbench 4 0 2014-12-19 12:20:54.967
-!MESSAGE
+!ENTRY org.eclipse.egit.ui 2 0 2015-02-06 09:52:21.547
+!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
+Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
+The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
+this system level configuration. The Git installation location can be configured on the
+Team > Git > Configuration preference page's 'System Settings' tab.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
+
+!ENTRY org.eclipse.egit.ui 2 0 2015-02-06 09:52:21.549
+!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
+user global configuration and to define the default location to store repositories: 'C:\Users\raisaro'. If this is
+not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
+EGit might behave differently since they see different configuration options.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
+
+!ENTRY org.eclipse.ui 2 2 2015-02-06 09:56:56.447
+!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
+!SESSION 2015-02-06 17:51:57.685 -----------------------------------------------
+eclipse.buildId=M20130204-1200
+java.version=1.8.0_31
+java.vendor=Oracle Corporation
+BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
+Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
+Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
+
+!ENTRY org.eclipse.ui 4 4 2015-02-06 17:52:04.511
+!MESSAGE Could not create action delegate for id: org.eclipse.jdt.debug.ui.actions.ManageBreakpointRulerAction
+
+!ENTRY org.eclipse.equinox.registry 4 1 2015-02-06 17:52:04.521
+!MESSAGE Plug-in org.eclipse.wb.core.java was unable to load class org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate.
!STACK 0
-org.eclipse.e4.core.di.InjectionException: org.eclipse.core.commands.ExecutionException: While executing the action, an exception occurred
- at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:63)
- at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:231)
- at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:212)
- at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:131)
- at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:171)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.executeCommand(KeyBindingDispatcher.java:277)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.press(KeyBindingDispatcher.java:496)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.processKeyEvent(KeyBindingDispatcher.java:547)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.filterKeySequenceBindings(KeyBindingDispatcher.java:368)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.access$0(KeyBindingDispatcher.java:314)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher$KeyDownFilter.handleEvent(KeyBindingDispatcher.java:83)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1262)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1052)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
- at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1104)
- at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1100)
- at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1521)
- at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:4640)
- at org.eclipse.swt.widgets.Canvas.WM_CHAR(Canvas.java:345)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4528)
- at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:4976)
- at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
- at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2546)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3756)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
+java.lang.ClassNotFoundException: org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
+ at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
+ at java.lang.ClassLoader.loadClass(Unknown Source)
+ at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
+ at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
+ at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
+ at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
+ at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
+ at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
+ at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
+ at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:265)
+ at org.eclipse.ui.internal.PluginAction.createDelegate(PluginAction.java:122)
+ at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:275)
+ at org.eclipse.ui.internal.PluginAction.<init>(PluginAction.java:112)
+ at org.eclipse.ui.internal.PartPluginAction.<init>(PartPluginAction.java:29)
+ at org.eclipse.ui.internal.EditorPluginAction.<init>(EditorPluginAction.java:32)
+ at org.eclipse.ui.internal.ActionDescriptor.createAction(ActionDescriptor.java:262)
+ at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:176)
+ at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:103)
+ at org.eclipse.ui.internal.EditorActionBuilder.createActionDescriptor(EditorActionBuilder.java:41)
+ at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:161)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElementChildren(RegistryReader.java:133)
+ at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readExtension(RegistryReader.java:155)
+ at org.eclipse.ui.internal.registry.RegistryReader.readRegistry(RegistryReader.java:176)
+ at org.eclipse.ui.internal.PluginActionBuilder.readContributions(PluginActionBuilder.java:115)
+ at org.eclipse.ui.internal.EditorActionBuilder.readActionExtensions(EditorActionBuilder.java:58)
+ at org.eclipse.ui.internal.EditorReference.createEditorActionBars(EditorReference.java:446)
+ at org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:356)
+ at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:301)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: org.eclipse.core.commands.ExecutionException: While executing the action, an exception occurred
- at org.eclipse.jface.commands.ActionHandler.execute(ActionHandler.java:124)
- at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:76)
- at sun.reflect.GeneratedMethodAccessor275.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
- ... 48 more
-Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
- at org.eclipse.jdt.internal.codeassist.InternalCompletionProposal.findConstructorParameterNames(InternalCompletionProposal.java:257)
- at org.eclipse.jdt.internal.codeassist.InternalCompletionProposal.findParameterNames(InternalCompletionProposal.java:1456)
- at org.eclipse.jdt.ui.text.java.CompletionProposalLabelProvider.appendUnboundedParameterList(CompletionProposalLabelProvider.java:113)
- at org.eclipse.jdt.ui.text.java.CompletionProposalLabelProvider.createMethodProposalLabel(CompletionProposalLabelProvider.java:272)
- at org.eclipse.jdt.ui.text.java.CompletionProposalLabelProvider.createStyledLabel(CompletionProposalLabelProvider.java:570)
- at org.eclipse.jdt.internal.ui.text.java.LazyJavaCompletionProposal.computeDisplayString(LazyJavaCompletionProposal.java:262)
- at org.eclipse.jdt.internal.ui.text.java.LazyJavaCompletionProposal.getDisplayString(LazyJavaCompletionProposal.java:245)
- at org.eclipse.jdt.internal.ui.text.java.AbstractJavaCompletionProposal.isValidPrefix(AbstractJavaCompletionProposal.java:784)
- at org.eclipse.jdt.internal.ui.text.java.LazyJavaCompletionProposal.isValidPrefix(LazyJavaCompletionProposal.java:377)
- at org.eclipse.jdt.internal.ui.text.java.JavaMethodCompletionProposal.isValidPrefix(JavaMethodCompletionProposal.java:272)
- at org.eclipse.jdt.internal.ui.text.java.AbstractJavaCompletionProposal.validate(AbstractJavaCompletionProposal.java:736)
- at org.eclipse.jdt.internal.ui.text.java.AbstractJavaCompletionProposal.apply(AbstractJavaCompletionProposal.java:452)
- at org.eclipse.jdt.internal.ui.text.java.LazyJavaCompletionProposal.apply(LazyJavaCompletionProposal.java:488)
- at org.eclipse.jface.text.contentassist.CompletionProposalPopup.insertProposal(CompletionProposalPopup.java:940)
- at org.eclipse.jface.text.contentassist.CompletionProposalPopup.access$21(CompletionProposalPopup.java:904)
- at org.eclipse.jface.text.contentassist.CompletionProposalPopup$2.run(CompletionProposalPopup.java:505)
- at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
- at org.eclipse.jface.text.contentassist.CompletionProposalPopup.showProposals(CompletionProposalPopup.java:492)
- at org.eclipse.jface.text.contentassist.ContentAssistant.showPossibleCompletions(ContentAssistant.java:1665)
- at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor$AdaptedSourceViewer.doOperation(CompilationUnitEditor.java:183)
- at org.eclipse.ui.texteditor.ContentAssistAction$1.run(ContentAssistAction.java:82)
- at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
- at org.eclipse.ui.texteditor.ContentAssistAction.run(ContentAssistAction.java:80)
- at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
- at org.eclipse.jface.commands.ActionHandler.execute(ActionHandler.java:119)
- ... 53 more
-
-!ENTRY org.eclipse.e4.ui.workbench 4 0 2014-12-19 12:21:00.753
-!MESSAGE
-!STACK 0
-org.eclipse.e4.core.di.InjectionException: org.eclipse.core.commands.ExecutionException: While executing the action, an exception occurred
- at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:63)
- at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:231)
- at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:212)
- at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:131)
- at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:171)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.executeCommand(KeyBindingDispatcher.java:277)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.press(KeyBindingDispatcher.java:496)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.processKeyEvent(KeyBindingDispatcher.java:547)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.filterKeySequenceBindings(KeyBindingDispatcher.java:368)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.access$0(KeyBindingDispatcher.java:314)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher$KeyDownFilter.handleEvent(KeyBindingDispatcher.java:83)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1262)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1052)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
- at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1104)
- at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1100)
- at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1521)
- at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:4640)
- at org.eclipse.swt.widgets.Canvas.WM_CHAR(Canvas.java:345)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4528)
- at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:4976)
- at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
- at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2546)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3756)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:861)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:841)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:113)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:321)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:242)
+ at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:161)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
+ at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:141)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1115)
+ at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:98)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$6.run(PartRenderingEngine.java:520)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:505)
+ at org.eclipse.e4.ui.workbench.renderers.swt.ElementReferenceRenderer.createWidget(ElementReferenceRenderer.java:74)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveRenderer.processContents(PerspectiveRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.showTab(PerspectiveStackRenderer.java:103)
+ at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:98)
+ at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.postProcess(PerspectiveStackRenderer.java:77)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.workbench.renderers.swt.WBWRenderer.processContents(WBWRenderer.java:644)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:987)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: org.eclipse.core.commands.ExecutionException: While executing the action, an exception occurred
- at org.eclipse.jface.commands.ActionHandler.execute(ActionHandler.java:124)
- at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:76)
- at sun.reflect.GeneratedMethodAccessor275.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
- ... 48 more
-Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
- at org.eclipse.jdt.internal.codeassist.InternalCompletionProposal.findConstructorParameterNames(InternalCompletionProposal.java:257)
- at org.eclipse.jdt.internal.codeassist.InternalCompletionProposal.findParameterNames(InternalCompletionProposal.java:1456)
- at org.eclipse.jdt.ui.text.java.CompletionProposalLabelProvider.appendUnboundedParameterList(CompletionProposalLabelProvider.java:113)
- at org.eclipse.jdt.ui.text.java.CompletionProposalLabelProvider.createMethodProposalLabel(CompletionProposalLabelProvider.java:272)
- at org.eclipse.jdt.ui.text.java.CompletionProposalLabelProvider.createStyledLabel(CompletionProposalLabelProvider.java:570)
- at org.eclipse.jdt.internal.ui.text.java.LazyJavaCompletionProposal.computeDisplayString(LazyJavaCompletionProposal.java:262)
- at org.eclipse.jdt.internal.ui.text.java.LazyJavaCompletionProposal.getStyledDisplayString(LazyJavaCompletionProposal.java:238)
- at org.eclipse.jface.text.contentassist.CompletionProposalPopup.handleSetData(CompletionProposalPopup.java:841)
- at org.eclipse.jface.text.contentassist.CompletionProposalPopup.access$24(CompletionProposalPopup.java:831)
- at org.eclipse.jface.text.contentassist.CompletionProposalPopup$3.handleEvent(CompletionProposalPopup.java:593)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
- at org.eclipse.swt.widgets.Table.checkData(Table.java:1166)
- at org.eclipse.swt.widgets.Table.wmNotifyChild(Table.java:6749)
- at org.eclipse.swt.widgets.Control.wmNotify(Control.java:5534)
- at org.eclipse.swt.widgets.Composite.wmNotify(Composite.java:1896)
- at org.eclipse.swt.widgets.Control.WM_NOTIFY(Control.java:5086)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4584)
- at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
- at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1627)
- at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:2069)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:4989)
- at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method)
- at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:2440)
- at org.eclipse.swt.widgets.Table.callWindowProc(Table.java:564)
- at org.eclipse.swt.widgets.Table.callWindowProc(Table.java:430)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4623)
- at org.eclipse.swt.widgets.Table.windowProc(Table.java:5913)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:4976)
- at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method)
- at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:2440)
- at org.eclipse.swt.widgets.Table.callWindowProc(Table.java:564)
- at org.eclipse.swt.widgets.Table.callWindowProc(Table.java:430)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4623)
- at org.eclipse.swt.widgets.Table.windowProc(Table.java:5913)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:4976)
- at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method)
- at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:2440)
- at org.eclipse.swt.widgets.Table.callWindowProc(Table.java:564)
- at org.eclipse.swt.widgets.Table.callWindowProc(Table.java:430)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4623)
- at org.eclipse.swt.widgets.Table.windowProc(Table.java:5913)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:4976)
- at org.eclipse.swt.internal.win32.OS.SendMessageW(Native Method)
- at org.eclipse.swt.internal.win32.OS.SendMessage(OS.java:3290)
- at org.eclipse.swt.widgets.Table.setItemCount(Table.java:4645)
- at org.eclipse.jface.text.contentassist.CompletionProposalPopup.setProposals(CompletionProposalPopup.java:1127)
- at org.eclipse.jface.text.contentassist.CompletionProposalPopup.access$7(CompletionProposalPopup.java:1105)
- at org.eclipse.jface.text.contentassist.CompletionProposalPopup$2.run(CompletionProposalPopup.java:509)
- at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
- at org.eclipse.jface.text.contentassist.CompletionProposalPopup.showProposals(CompletionProposalPopup.java:492)
- at org.eclipse.jface.text.contentassist.ContentAssistant.showPossibleCompletions(ContentAssistant.java:1665)
- at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor$AdaptedSourceViewer.doOperation(CompilationUnitEditor.java:183)
- at org.eclipse.ui.texteditor.ContentAssistAction$1.run(ContentAssistAction.java:82)
- at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
- at org.eclipse.ui.texteditor.ContentAssistAction.run(ContentAssistAction.java:80)
- at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
- at org.eclipse.jface.commands.ActionHandler.execute(ActionHandler.java:119)
- ... 53 more
-!ENTRY org.eclipse.e4.ui.workbench 4 0 2014-12-19 12:21:01.740
-!MESSAGE
-!STACK 0
-org.eclipse.e4.core.di.InjectionException: org.eclipse.core.commands.ExecutionException: While executing the action, an exception occurred
- at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:63)
- at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:231)
- at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:212)
- at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:131)
- at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:171)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.executeCommand(KeyBindingDispatcher.java:277)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.press(KeyBindingDispatcher.java:496)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.processKeyEvent(KeyBindingDispatcher.java:547)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.filterKeySequenceBindings(KeyBindingDispatcher.java:368)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.access$0(KeyBindingDispatcher.java:314)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher$KeyDownFilter.handleEvent(KeyBindingDispatcher.java:83)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1262)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1052)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
- at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1104)
- at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1100)
- at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1521)
- at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:4640)
- at org.eclipse.swt.widgets.Canvas.WM_CHAR(Canvas.java:345)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4528)
- at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:4976)
- at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
- at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2546)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3756)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: org.eclipse.core.commands.ExecutionException: While executing the action, an exception occurred
- at org.eclipse.jface.commands.ActionHandler.execute(ActionHandler.java:124)
- at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:76)
- at sun.reflect.GeneratedMethodAccessor275.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
- ... 48 more
-Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
- at org.eclipse.jdt.internal.codeassist.InternalCompletionProposal.findConstructorParameterNames(InternalCompletionProposal.java:257)
- at org.eclipse.jdt.internal.codeassist.InternalCompletionProposal.findParameterNames(InternalCompletionProposal.java:1456)
- at org.eclipse.jdt.ui.text.java.CompletionProposalLabelProvider.appendUnboundedParameterList(CompletionProposalLabelProvider.java:113)
- at org.eclipse.jdt.ui.text.java.CompletionProposalLabelProvider.createMethodProposalLabel(CompletionProposalLabelProvider.java:272)
- at org.eclipse.jdt.ui.text.java.CompletionProposalLabelProvider.createStyledLabel(CompletionProposalLabelProvider.java:570)
- at org.eclipse.jdt.internal.ui.text.java.LazyJavaCompletionProposal.computeDisplayString(LazyJavaCompletionProposal.java:262)
- at org.eclipse.jdt.internal.ui.text.java.LazyJavaCompletionProposal.getStyledDisplayString(LazyJavaCompletionProposal.java:238)
- at org.eclipse.jface.text.contentassist.CompletionProposalPopup.handleSetData(CompletionProposalPopup.java:841)
- at org.eclipse.jface.text.contentassist.CompletionProposalPopup.access$24(CompletionProposalPopup.java:831)
- at org.eclipse.jface.text.contentassist.CompletionProposalPopup$3.handleEvent(CompletionProposalPopup.java:593)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
- at org.eclipse.swt.widgets.Table.checkData(Table.java:1166)
- at org.eclipse.swt.widgets.Table.wmNotifyChild(Table.java:6749)
- at org.eclipse.swt.widgets.Control.wmNotify(Control.java:5534)
- at org.eclipse.swt.widgets.Composite.wmNotify(Composite.java:1896)
- at org.eclipse.swt.widgets.Control.WM_NOTIFY(Control.java:5086)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4584)
- at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
- at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1627)
- at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:2069)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:4989)
- at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method)
- at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:2440)
- at org.eclipse.swt.widgets.Table.callWindowProc(Table.java:564)
- at org.eclipse.swt.widgets.Table.callWindowProc(Table.java:430)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4623)
- at org.eclipse.swt.widgets.Table.windowProc(Table.java:5913)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:4976)
- at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method)
- at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:2440)
- at org.eclipse.swt.widgets.Table.callWindowProc(Table.java:564)
- at org.eclipse.swt.widgets.Table.callWindowProc(Table.java:430)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4623)
- at org.eclipse.swt.widgets.Table.windowProc(Table.java:5913)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:4976)
- at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method)
- at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:2440)
- at org.eclipse.swt.widgets.Table.callWindowProc(Table.java:564)
- at org.eclipse.swt.widgets.Table.callWindowProc(Table.java:430)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4623)
- at org.eclipse.swt.widgets.Table.windowProc(Table.java:5913)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:4976)
- at org.eclipse.swt.internal.win32.OS.SendMessageW(Native Method)
- at org.eclipse.swt.internal.win32.OS.SendMessage(OS.java:3290)
- at org.eclipse.swt.widgets.Table.setItemCount(Table.java:4645)
- at org.eclipse.jface.text.contentassist.CompletionProposalPopup.setProposals(CompletionProposalPopup.java:1127)
- at org.eclipse.jface.text.contentassist.CompletionProposalPopup.handleRepeatedInvocation(CompletionProposalPopup.java:552)
- at org.eclipse.jface.text.contentassist.CompletionProposalPopup.showProposals(CompletionProposalPopup.java:516)
- at org.eclipse.jface.text.contentassist.ContentAssistant.showPossibleCompletions(ContentAssistant.java:1665)
- at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor$AdaptedSourceViewer.doOperation(CompilationUnitEditor.java:183)
- at org.eclipse.ui.texteditor.ContentAssistAction$1.run(ContentAssistAction.java:82)
- at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
- at org.eclipse.ui.texteditor.ContentAssistAction.run(ContentAssistAction.java:80)
- at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
- at org.eclipse.jface.commands.ActionHandler.execute(ActionHandler.java:119)
- ... 53 more
+!ENTRY org.eclipse.egit.ui 2 0 2015-02-06 17:52:09.596
+!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
+Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
+The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
+this system level configuration. The Git installation location can be configured on the
+Team > Git > Configuration preference page's 'System Settings' tab.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
+
+!ENTRY org.eclipse.egit.ui 2 0 2015-02-06 17:52:09.596
+!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
+user global configuration and to define the default location to store repositories: 'C:\Users\raisaro'. If this is
+not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
+EGit might behave differently since they see different configuration options.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-!ENTRY org.eclipse.ui 2 2 2014-12-19 12:22:08.065
+!ENTRY org.eclipse.ui 2 2 2015-02-06 17:52:19.051
!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
-!SESSION 2014-12-19 12:22:09.085 -----------------------------------------------
+!SESSION 2015-02-09 16:56:13.556 -----------------------------------------------
eclipse.buildId=M20130204-1200
-java.version=1.7.0_45
+java.version=1.8.0_31
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
-!ENTRY org.eclipse.ui 4 4 2014-12-19 12:22:17.870
+!ENTRY org.eclipse.ui 4 4 2015-02-09 16:56:23.312
!MESSAGE Could not create action delegate for id: org.eclipse.jdt.debug.ui.actions.ManageBreakpointRulerAction
-!ENTRY org.eclipse.equinox.registry 4 1 2014-12-19 12:22:17.877
+!ENTRY org.eclipse.equinox.registry 4 1 2015-02-09 16:56:23.494
!MESSAGE Plug-in org.eclipse.wb.core.java was unable to load class org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate.
!STACK 0
java.lang.ClassNotFoundException: org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:265)
at org.eclipse.ui.internal.PluginAction.createDelegate(PluginAction.java:122)
at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:275)
at org.eclipse.ui.internal.PluginAction.<init>(PluginAction.java:112)
at org.eclipse.ui.internal.PartPluginAction.<init>(PartPluginAction.java:29)
at org.eclipse.ui.internal.EditorPluginAction.<init>(EditorPluginAction.java:32)
at org.eclipse.ui.internal.ActionDescriptor.createAction(ActionDescriptor.java:262)
at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:176)
at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:103)
at org.eclipse.ui.internal.EditorActionBuilder.createActionDescriptor(EditorActionBuilder.java:41)
at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:161)
at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
at org.eclipse.ui.internal.registry.RegistryReader.readElementChildren(RegistryReader.java:133)
at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:144)
at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
at org.eclipse.ui.internal.registry.RegistryReader.readExtension(RegistryReader.java:155)
at org.eclipse.ui.internal.registry.RegistryReader.readRegistry(RegistryReader.java:176)
at org.eclipse.ui.internal.PluginActionBuilder.readContributions(PluginActionBuilder.java:115)
at org.eclipse.ui.internal.EditorActionBuilder.readActionExtensions(EditorActionBuilder.java:58)
at org.eclipse.ui.internal.EditorReference.createEditorActionBars(EditorReference.java:446)
at org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:356)
at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:301)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:861)
at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:841)
at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:113)
at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:321)
at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:242)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:161)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:141)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1115)
at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:98)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$6.run(PartRenderingEngine.java:520)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:505)
at org.eclipse.e4.ui.workbench.renderers.swt.ElementReferenceRenderer.createWidget(ElementReferenceRenderer.java:74)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveRenderer.processContents(PerspectiveRenderer.java:59)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.showTab(PerspectiveStackRenderer.java:103)
at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:98)
at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.postProcess(PerspectiveStackRenderer.java:77)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
at org.eclipse.e4.ui.workbench.renderers.swt.WBWRenderer.processContents(WBWRenderer.java:644)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:987)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-!ENTRY org.eclipse.egit.ui 2 0 2014-12-19 12:22:22.365
+!ENTRY org.eclipse.egit.ui 2 0 2015-02-09 16:56:30.980
!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
this system level configuration. The Git installation location can be configured on the
Team > Git > Configuration preference page's 'System Settings' tab.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-!ENTRY org.eclipse.egit.ui 2 0 2014-12-19 12:22:22.366
+!ENTRY org.eclipse.egit.ui 2 0 2015-02-09 16:56:30.982
!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
user global configuration and to define the default location to store repositories: 'C:\Users\raisaro'. If this is
not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
EGit might behave differently since they see different configuration options.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-!ENTRY org.eclipse.e4.ui.workbench 4 0 2014-12-19 12:24:34.868
-!MESSAGE
+!ENTRY org.eclipse.wb.core 4 4 2015-02-09 17:29:16.899
+!MESSAGE Designer [1.5.2.r42x201302112024.201502091729]: new JSplitPane()
!STACK 0
-org.eclipse.e4.core.di.InjectionException: org.eclipse.core.commands.ExecutionException: While executing the action, an exception occurred
- at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:63)
- at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:231)
- at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:212)
- at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:131)
- at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:171)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.executeCommand(KeyBindingDispatcher.java:277)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.press(KeyBindingDispatcher.java:496)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.processKeyEvent(KeyBindingDispatcher.java:547)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.filterKeySequenceBindings(KeyBindingDispatcher.java:368)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.access$0(KeyBindingDispatcher.java:314)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher$KeyDownFilter.handleEvent(KeyBindingDispatcher.java:83)
+java.lang.Error: new JSplitPane()
+ at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate(AstEvaluationEngine.java:71)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluateExpression(JavaInfoEvaluationHelper.java:630)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluate(JavaInfoEvaluationHelper.java:502)
+ at org.eclipse.wb.core.model.JavaInfo$8.postVisit(JavaInfo.java:1123)
+ at sun.reflect.GeneratedMethodAccessor30.invoke(Unknown Source)
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
+ at java.lang.reflect.Method.invoke(Unknown Source)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:399)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$bb36b221.postVisit(<generated>)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2517)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.Assignment.accept0(Assignment.java:312)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:343)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:228)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:191)
+ at org.eclipse.wb.core.model.JavaInfo.refresh_create(JavaInfo.java:1179)
+ at org.eclipse.wb.core.model.ObjectInfo.refreshCreate0(ObjectInfo.java:550)
+ at org.eclipse.wb.core.model.ObjectInfo.access$0(ObjectInfo.java:546)
+ at org.eclipse.wb.core.model.ObjectInfo$5$1.run(ObjectInfo.java:486)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:145)
+ at org.eclipse.wb.core.model.ObjectInfo$5.run(ObjectInfo.java:484)
+ at org.eclipse.wb.internal.swing.utils.SwingUtils$2.run(SwingUtils.java:76)
+ at java.awt.event.InvocationEvent.dispatch(Unknown Source)
+ at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
+ at java.awt.EventQueue.access$500(Unknown Source)
+ at java.awt.EventQueue$3.run(Unknown Source)
+ at java.awt.EventQueue$3.run(Unknown Source)
+ at java.security.AccessController.doPrivileged(Native Method)
+ at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
+ at java.awt.EventQueue.dispatchEvent(Unknown Source)
+ at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
+ at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
+ at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
+ at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
+ at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
+ at java.awt.EventDispatchThread.run(Unknown Source)
+Caused by: java.lang.NullPointerException
+ at java.beans.MethodRef.get(Unknown Source)
+ at java.beans.PropertyDescriptor.getWriteMethod(Unknown Source)
+ at org.eclipse.wb.internal.core.model.JavaInfoUtils.addExposedChildred_Method(JavaInfoUtils.java:447)
+ at org.eclipse.wb.internal.core.model.JavaInfoUtils.addExposedChildren(JavaInfoUtils.java:429)
+ at org.eclipse.wb.internal.swing.model.component.ComponentInfo.createExposedChildren(ComponentInfo.java:109)
+ at org.eclipse.wb.internal.swing.model.component.ContainerInfo.createExposedChildren(ContainerInfo.java:143)
+ at org.eclipse.wb.core.model.JavaInfo.initialize(JavaInfo.java:419)
+ at org.eclipse.wb.internal.swing.model.component.ContainerInfo.initialize(ContainerInfo.java:114)
+ at org.eclipse.wb.core.model.JavaInfo.setObject(JavaInfo.java:1267)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper$3.evaluationSuccessful(JavaInfoEvaluationHelper.java:271)
+ at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate0(AstEvaluationEngine.java:179)
+ at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate(AstEvaluationEngine.java:61)
+ ... 47 more
+
+!ENTRY org.eclipse.wb.core 4 4 2015-02-09 17:29:20.678
+!MESSAGE Designer [1.5.2.r42x201302112024.201502091729]: 313 (Exception during 'super' constructor evaluation). JFrame() {} java.lang.NullPointerException
+ at java.beans.MethodRef.get(Unknown Source)
+ at java.beans.PropertyDescriptor.getWriteMethod(Unknown Source)
+!STACK 0
+org.eclipse.wb.internal.core.utils.exception.DesignerException: 313 (Exception during 'super' constructor evaluation). JFrame() {} java.lang.NullPointerException
+ at java.beans.MethodRef.get(Unknown Source)
+ at java.beans.PropertyDescriptor.getWriteMethod(Unknown Source)
+ at org.eclipse.wb.internal.core.model.creation.ThisCreationSupport.create(ThisCreationSupport.java:275)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluateJavaInfoUsingCreationSupport(JavaInfoEvaluationHelper.java:642)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.addJavaInfo(JavaInfoParser.java:1261)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:253)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$9(JavaInfoParser.java:238)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:153)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:1)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:159)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:151)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:534)
+ at org.eclipse.wb.internal.core.editor.DesignPage.access$9(DesignPage.java:522)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8$1.run(DesignPage.java:449)
+ at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
+ at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
+ at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8.run(DesignPage.java:446)
+ at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
+ at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
+ at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF_withProgress(DesignPage.java:465)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:415)
+ at org.eclipse.wb.internal.core.editor.UndoManager.refreshDesignerEditor(UndoManager.java:381)
+ at org.eclipse.wb.internal.core.editor.DesignPage.refreshGEF(DesignPage.java:392)
+ at org.eclipse.wb.internal.core.editor.actions.RefreshAction.run(RefreshAction.java:46)
+ at org.eclipse.wb.internal.core.editor.actions.DesignPageAction.run(DesignPageAction.java:34)
+ at org.eclipse.wb.internal.core.editor.errors.JavaExceptionComposite.doRefresh(JavaExceptionComposite.java:87)
+ at org.eclipse.wb.internal.core.editor.errors.ExceptionComposite$3.widgetSelected(ExceptionComposite.java:129)
+ at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
+ at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
+ at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
+ at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
+ at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
+ at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
+ at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
+ at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
+ at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
+ at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
+ at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
+ at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
+ at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
+ at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
+ at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
+ at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
+ at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
+ at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+ at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
+ at java.lang.reflect.Method.invoke(Unknown Source)
+ at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
+ at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
+ at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
+ at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
+Caused by: java.lang.NullPointerException
+ at java.beans.MethodRef.get(Unknown Source)
+ at java.beans.PropertyDescriptor.getWriteMethod(Unknown Source)
+ at org.eclipse.wb.internal.core.model.JavaInfoUtils.addExposedChildred_Method(JavaInfoUtils.java:447)
+ at org.eclipse.wb.internal.core.model.JavaInfoUtils.addExposedChildren(JavaInfoUtils.java:429)
+ at org.eclipse.wb.internal.swing.model.component.ComponentInfo.createExposedChildren(ComponentInfo.java:109)
+ at org.eclipse.wb.internal.swing.model.component.ContainerInfo.createExposedChildren(ContainerInfo.java:143)
+ at org.eclipse.wb.core.model.JavaInfo.initialize(JavaInfo.java:419)
+ at org.eclipse.wb.internal.swing.model.component.ContainerInfo.initialize(ContainerInfo.java:114)
+ at org.eclipse.wb.core.model.JavaInfo.setObject(JavaInfo.java:1267)
+ at org.eclipse.wb.internal.core.model.creation.ThisCreationSupport.create(ThisCreationSupport.java:269)
+ ... 53 more
+
+!ENTRY org.eclipse.wb.core 4 4 2015-02-09 17:29:21.724
+!MESSAGE Designer [1.5.2.r42x201302112024.201502091729]: new javax.swing.JPanel()
+!STACK 0
+java.lang.Error: new javax.swing.JPanel()
+ at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate(AstEvaluationEngine.java:71)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluateExpression(JavaInfoEvaluationHelper.java:630)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluate(JavaInfoEvaluationHelper.java:502)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.evaluateNode(JavaInfoParser.java:1309)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$1(JavaInfoParser.java:1300)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor$3.run(JavaInfoParser.java:602)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runRethrow(ExecutionUtils.java:119)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor.postVisit(JavaInfoParser.java:592)
+ at sun.reflect.GeneratedMethodAccessor30.invoke(Unknown Source)
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
+ at java.lang.reflect.Method.invoke(Unknown Source)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:399)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$bb36b221.postVisit(<generated>)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2517)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.Assignment.accept0(Assignment.java:312)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.access$1(ExecutionFlowUtils.java:235)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.endVisit(ExecutionFlowUtils.java:442)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:391)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$bb36b221.endVisit(<generated>)
+ at org.eclipse.jdt.core.dom.MethodInvocation.accept0(MethodInvocation.java:247)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:343)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:228)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:191)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parseRootMethods(JavaInfoParser.java:312)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:268)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$9(JavaInfoParser.java:238)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:153)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:1)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:159)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:151)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:534)
+ at org.eclipse.wb.internal.core.editor.DesignPage.access$9(DesignPage.java:522)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8$1.run(DesignPage.java:449)
+ at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
+ at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
+ at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8.run(DesignPage.java:446)
+ at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
+ at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
+ at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF_withProgress(DesignPage.java:465)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:415)
+ at org.eclipse.wb.internal.core.editor.UndoManager.refreshDesignerEditor(UndoManager.java:381)
+ at org.eclipse.wb.internal.core.editor.DesignPage.refreshGEF(DesignPage.java:392)
+ at org.eclipse.wb.internal.core.editor.actions.RefreshAction.run(RefreshAction.java:46)
+ at org.eclipse.wb.internal.core.editor.actions.DesignPageAction.run(DesignPageAction.java:34)
+ at org.eclipse.wb.internal.core.editor.errors.JavaExceptionComposite.doRefresh(JavaExceptionComposite.java:87)
+ at org.eclipse.wb.internal.core.editor.errors.ExceptionComposite$3.widgetSelected(ExceptionComposite.java:129)
+ at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
+ at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
+ at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
+ at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
+ at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
+ at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
+ at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
+ at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
+ at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
+ at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
+ at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
+ at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
+ at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
+ at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
+ at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
+ at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
+ at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
+ at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+ at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
+ at java.lang.reflect.Method.invoke(Unknown Source)
+ at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
+ at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
+ at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
+ at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
+Caused by: java.lang.NullPointerException
+ at java.beans.MethodRef.get(Unknown Source)
+ at java.beans.PropertyDescriptor.getWriteMethod(Unknown Source)
+ at org.eclipse.wb.internal.core.model.JavaInfoUtils.addExposedChildred_Method(JavaInfoUtils.java:447)
+ at org.eclipse.wb.internal.core.model.JavaInfoUtils.addExposedChildren(JavaInfoUtils.java:429)
+ at org.eclipse.wb.internal.swing.model.component.ComponentInfo.createExposedChildren(ComponentInfo.java:109)
+ at org.eclipse.wb.internal.swing.model.component.ContainerInfo.createExposedChildren(ContainerInfo.java:143)
+ at org.eclipse.wb.core.model.JavaInfo.initialize(JavaInfo.java:419)
+ at org.eclipse.wb.internal.swing.model.component.ContainerInfo.initialize(ContainerInfo.java:114)
+ at org.eclipse.wb.core.model.JavaInfo.setObject(JavaInfo.java:1267)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper$3.evaluationSuccessful(JavaInfoEvaluationHelper.java:271)
+ at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate0(AstEvaluationEngine.java:179)
+ at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate(AstEvaluationEngine.java:61)
+ ... 96 more
+
+!ENTRY org.eclipse.wb.core 4 4 2015-02-09 17:29:22.354
+!MESSAGE Designer [1.5.2.r42x201302112024.201502091729]: new javax.swing.JPanel()
+!STACK 0
+java.lang.Error: new javax.swing.JPanel()
+ at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate(AstEvaluationEngine.java:71)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluateExpression(JavaInfoEvaluationHelper.java:630)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluate(JavaInfoEvaluationHelper.java:502)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.evaluateNode(JavaInfoParser.java:1309)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$1(JavaInfoParser.java:1300)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor$3.run(JavaInfoParser.java:602)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runRethrow(ExecutionUtils.java:119)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor.postVisit(JavaInfoParser.java:592)
+ at sun.reflect.GeneratedMethodAccessor30.invoke(Unknown Source)
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
+ at java.lang.reflect.Method.invoke(Unknown Source)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:399)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$bb36b221.postVisit(<generated>)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2517)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.Assignment.accept0(Assignment.java:312)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.access$1(ExecutionFlowUtils.java:235)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.endVisit(ExecutionFlowUtils.java:442)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:391)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$bb36b221.endVisit(<generated>)
+ at org.eclipse.jdt.core.dom.MethodInvocation.accept0(MethodInvocation.java:247)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:343)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:228)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:191)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parseRootMethods(JavaInfoParser.java:312)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:268)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$9(JavaInfoParser.java:238)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:153)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:1)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:159)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:151)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:534)
+ at org.eclipse.wb.internal.core.editor.DesignPage.access$9(DesignPage.java:522)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8$1.run(DesignPage.java:449)
+ at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
+ at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
+ at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8.run(DesignPage.java:446)
+ at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
+ at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
+ at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF_withProgress(DesignPage.java:465)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:415)
+ at org.eclipse.wb.internal.core.editor.UndoManager.refreshDesignerEditor(UndoManager.java:381)
+ at org.eclipse.wb.internal.core.editor.DesignPage.refreshGEF(DesignPage.java:392)
+ at org.eclipse.wb.internal.core.editor.actions.RefreshAction.run(RefreshAction.java:46)
+ at org.eclipse.wb.internal.core.editor.actions.DesignPageAction.run(DesignPageAction.java:34)
+ at org.eclipse.wb.internal.core.editor.errors.JavaExceptionComposite.doRefresh(JavaExceptionComposite.java:87)
+ at org.eclipse.wb.internal.core.editor.errors.ExceptionComposite$3.widgetSelected(ExceptionComposite.java:129)
+ at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1262)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1052)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
- at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1104)
- at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1100)
- at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1521)
- at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:4640)
- at org.eclipse.swt.widgets.Canvas.WM_CHAR(Canvas.java:345)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4528)
- at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:4976)
- at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
- at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2546)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3756)
+ at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
+ at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
+ at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: org.eclipse.core.commands.ExecutionException: While executing the action, an exception occurred
- at org.eclipse.jface.commands.ActionHandler.execute(ActionHandler.java:124)
- at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:76)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
- ... 48 more
-Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
- at org.eclipse.jdt.internal.codeassist.InternalCompletionProposal.findMethodParameterNames(InternalCompletionProposal.java:314)
- at org.eclipse.jdt.internal.codeassist.InternalCompletionProposal.findParameterNames(InternalCompletionProposal.java:1440)
- at org.eclipse.jdt.ui.text.java.CompletionProposalLabelProvider.appendUnboundedParameterList(CompletionProposalLabelProvider.java:113)
- at org.eclipse.jdt.ui.text.java.CompletionProposalLabelProvider.createMethodProposalLabel(CompletionProposalLabelProvider.java:272)
- at org.eclipse.jdt.ui.text.java.CompletionProposalLabelProvider.createStyledLabel(CompletionProposalLabelProvider.java:570)
- at org.eclipse.jdt.internal.ui.text.java.LazyJavaCompletionProposal.computeDisplayString(LazyJavaCompletionProposal.java:262)
- at org.eclipse.jdt.internal.ui.text.java.LazyJavaCompletionProposal.getDisplayString(LazyJavaCompletionProposal.java:245)
- at org.eclipse.jdt.internal.ui.text.java.AbstractJavaCompletionProposal.isValidPrefix(AbstractJavaCompletionProposal.java:784)
- at org.eclipse.jdt.internal.ui.text.java.LazyJavaCompletionProposal.isValidPrefix(LazyJavaCompletionProposal.java:377)
- at org.eclipse.jdt.internal.ui.text.java.JavaMethodCompletionProposal.isValidPrefix(JavaMethodCompletionProposal.java:272)
- at org.eclipse.jdt.internal.ui.text.java.AbstractJavaCompletionProposal.validate(AbstractJavaCompletionProposal.java:736)
- at org.eclipse.jdt.internal.ui.text.java.AbstractJavaCompletionProposal.apply(AbstractJavaCompletionProposal.java:452)
- at org.eclipse.jdt.internal.ui.text.java.LazyJavaCompletionProposal.apply(LazyJavaCompletionProposal.java:488)
- at org.eclipse.jface.text.contentassist.CompletionProposalPopup.insertProposal(CompletionProposalPopup.java:940)
- at org.eclipse.jface.text.contentassist.CompletionProposalPopup.access$21(CompletionProposalPopup.java:904)
- at org.eclipse.jface.text.contentassist.CompletionProposalPopup$2.run(CompletionProposalPopup.java:505)
- at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
- at org.eclipse.jface.text.contentassist.CompletionProposalPopup.showProposals(CompletionProposalPopup.java:492)
- at org.eclipse.jface.text.contentassist.ContentAssistant.showPossibleCompletions(ContentAssistant.java:1665)
- at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor$AdaptedSourceViewer.doOperation(CompilationUnitEditor.java:183)
- at org.eclipse.ui.texteditor.ContentAssistAction$1.run(ContentAssistAction.java:82)
- at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
- at org.eclipse.ui.texteditor.ContentAssistAction.run(ContentAssistAction.java:80)
- at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
- at org.eclipse.jface.commands.ActionHandler.execute(ActionHandler.java:119)
- ... 54 more
+Caused by: java.lang.NullPointerException
+ at java.beans.MethodRef.get(Unknown Source)
+ at java.beans.PropertyDescriptor.getReadMethod(Unknown Source)
+ at org.eclipse.wb.internal.core.model.JavaInfoUtils.addExposedChildred_Method(JavaInfoUtils.java:449)
+ at org.eclipse.wb.internal.core.model.JavaInfoUtils.addExposedChildren(JavaInfoUtils.java:429)
+ at org.eclipse.wb.internal.swing.model.component.ComponentInfo.createExposedChildren(ComponentInfo.java:109)
+ at org.eclipse.wb.internal.swing.model.component.ContainerInfo.createExposedChildren(ContainerInfo.java:143)
+ at org.eclipse.wb.core.model.JavaInfo.initialize(JavaInfo.java:419)
+ at org.eclipse.wb.internal.swing.model.component.ContainerInfo.initialize(ContainerInfo.java:114)
+ at org.eclipse.wb.core.model.JavaInfo.setObject(JavaInfo.java:1267)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper$3.evaluationSuccessful(JavaInfoEvaluationHelper.java:271)
+ at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate0(AstEvaluationEngine.java:179)
+ at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate(AstEvaluationEngine.java:61)
+ ... 96 more
-!ENTRY org.eclipse.e4.ui.workbench 4 0 2014-12-19 12:24:35.707
-!MESSAGE
+!ENTRY org.eclipse.wb.core 4 4 2015-02-09 17:29:27.423
+!MESSAGE Designer [1.5.2.r42x201302112024.201502091729]: new javax.swing.JComboBox<String>()
!STACK 0
-org.eclipse.e4.core.di.InjectionException: org.eclipse.core.commands.ExecutionException: While executing the action, an exception occurred
- at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:63)
- at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:231)
- at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:212)
- at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:131)
- at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:171)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.executeCommand(KeyBindingDispatcher.java:277)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.press(KeyBindingDispatcher.java:496)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.processKeyEvent(KeyBindingDispatcher.java:547)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.filterKeySequenceBindings(KeyBindingDispatcher.java:368)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.access$0(KeyBindingDispatcher.java:314)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher$KeyDownFilter.handleEvent(KeyBindingDispatcher.java:83)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1262)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1052)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
- at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1104)
- at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1100)
- at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1521)
- at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:4640)
- at org.eclipse.swt.widgets.Canvas.WM_CHAR(Canvas.java:345)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4528)
- at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:4976)
- at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
- at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2546)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3756)
+java.lang.Error: new javax.swing.JComboBox<String>()
+ at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate(AstEvaluationEngine.java:71)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluateExpression(JavaInfoEvaluationHelper.java:630)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluate(JavaInfoEvaluationHelper.java:502)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.evaluateNode(JavaInfoParser.java:1309)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$1(JavaInfoParser.java:1300)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor$3.run(JavaInfoParser.java:602)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runRethrow(ExecutionUtils.java:119)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor.postVisit(JavaInfoParser.java:592)
+ at sun.reflect.GeneratedMethodAccessor30.invoke(Unknown Source)
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
+ at java.lang.reflect.Method.invoke(Unknown Source)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:399)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$bb36b221.postVisit(<generated>)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2517)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.Assignment.accept0(Assignment.java:312)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.access$1(ExecutionFlowUtils.java:235)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.endVisit(ExecutionFlowUtils.java:442)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:391)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$bb36b221.endVisit(<generated>)
+ at org.eclipse.jdt.core.dom.MethodInvocation.accept0(MethodInvocation.java:247)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:343)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:228)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:191)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parseRootMethods(JavaInfoParser.java:312)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:268)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$9(JavaInfoParser.java:238)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:153)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:1)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:159)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:151)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:534)
+ at org.eclipse.wb.internal.core.editor.DesignPage.access$9(DesignPage.java:522)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8$1.run(DesignPage.java:449)
+ at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
+ at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
+ at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8.run(DesignPage.java:446)
+ at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
+ at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
+ at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF_withProgress(DesignPage.java:465)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:415)
+ at org.eclipse.wb.internal.core.editor.UndoManager.refreshDesignerEditor(UndoManager.java:381)
+ at org.eclipse.wb.internal.core.editor.UndoManager$6.run(UndoManager.java:330)
+ at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
+ at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
+ at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4144)
+ at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: org.eclipse.core.commands.ExecutionException: While executing the action, an exception occurred
- at org.eclipse.jface.commands.ActionHandler.execute(ActionHandler.java:124)
- at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:76)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
- ... 48 more
-Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
- at org.eclipse.jdt.internal.codeassist.InternalCompletionProposal.findMethodParameterNames(InternalCompletionProposal.java:314)
- at org.eclipse.jdt.internal.codeassist.InternalCompletionProposal.findParameterNames(InternalCompletionProposal.java:1440)
- at org.eclipse.jdt.ui.text.java.CompletionProposalLabelProvider.appendUnboundedParameterList(CompletionProposalLabelProvider.java:113)
- at org.eclipse.jdt.ui.text.java.CompletionProposalLabelProvider.createMethodProposalLabel(CompletionProposalLabelProvider.java:272)
- at org.eclipse.jdt.ui.text.java.CompletionProposalLabelProvider.createStyledLabel(CompletionProposalLabelProvider.java:570)
- at org.eclipse.jdt.internal.ui.text.java.LazyJavaCompletionProposal.computeDisplayString(LazyJavaCompletionProposal.java:262)
- at org.eclipse.jdt.internal.ui.text.java.LazyJavaCompletionProposal.getDisplayString(LazyJavaCompletionProposal.java:245)
- at org.eclipse.jdt.internal.ui.text.java.AbstractJavaCompletionProposal.isValidPrefix(AbstractJavaCompletionProposal.java:784)
- at org.eclipse.jdt.internal.ui.text.java.LazyJavaCompletionProposal.isValidPrefix(LazyJavaCompletionProposal.java:377)
- at org.eclipse.jdt.internal.ui.text.java.JavaMethodCompletionProposal.isValidPrefix(JavaMethodCompletionProposal.java:272)
- at org.eclipse.jdt.internal.ui.text.java.AbstractJavaCompletionProposal.validate(AbstractJavaCompletionProposal.java:736)
- at org.eclipse.jdt.internal.ui.text.java.AbstractJavaCompletionProposal.apply(AbstractJavaCompletionProposal.java:452)
- at org.eclipse.jdt.internal.ui.text.java.LazyJavaCompletionProposal.apply(LazyJavaCompletionProposal.java:488)
- at org.eclipse.jface.text.contentassist.CompletionProposalPopup.insertProposal(CompletionProposalPopup.java:940)
- at org.eclipse.jface.text.contentassist.CompletionProposalPopup.access$21(CompletionProposalPopup.java:904)
- at org.eclipse.jface.text.contentassist.CompletionProposalPopup$2.run(CompletionProposalPopup.java:505)
- at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
- at org.eclipse.jface.text.contentassist.CompletionProposalPopup.showProposals(CompletionProposalPopup.java:492)
- at org.eclipse.jface.text.contentassist.ContentAssistant.showPossibleCompletions(ContentAssistant.java:1665)
- at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor$AdaptedSourceViewer.doOperation(CompilationUnitEditor.java:183)
- at org.eclipse.ui.texteditor.ContentAssistAction$1.run(ContentAssistAction.java:82)
- at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
- at org.eclipse.ui.texteditor.ContentAssistAction.run(ContentAssistAction.java:80)
- at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
- at org.eclipse.jface.commands.ActionHandler.execute(ActionHandler.java:119)
- ... 54 more
+Caused by: java.lang.NullPointerException
-!ENTRY org.eclipse.e4.ui.workbench 4 0 2014-12-19 12:24:38.469
-!MESSAGE
+!ENTRY org.eclipse.wb.core 4 4 2015-02-09 17:29:28.521
+!MESSAGE Designer [1.5.2.r42x201302112024.201502091729]: new javax.swing.JComboBox<String>()
!STACK 0
-org.eclipse.e4.core.di.InjectionException: org.eclipse.core.commands.ExecutionException: While executing the action, an exception occurred
- at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:63)
- at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:231)
- at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:212)
- at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:131)
- at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:171)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.executeCommand(KeyBindingDispatcher.java:277)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.press(KeyBindingDispatcher.java:496)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.processKeyEvent(KeyBindingDispatcher.java:547)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.filterKeySequenceBindings(KeyBindingDispatcher.java:368)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.access$0(KeyBindingDispatcher.java:314)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher$KeyDownFilter.handleEvent(KeyBindingDispatcher.java:83)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1262)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1052)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
- at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1104)
- at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1100)
- at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1521)
- at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:4640)
- at org.eclipse.swt.widgets.Canvas.WM_CHAR(Canvas.java:345)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4528)
- at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:4976)
- at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
- at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2546)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3756)
+java.lang.Error: new javax.swing.JComboBox<String>()
+ at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate(AstEvaluationEngine.java:71)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluateExpression(JavaInfoEvaluationHelper.java:630)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluate(JavaInfoEvaluationHelper.java:502)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.evaluateNode(JavaInfoParser.java:1309)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$1(JavaInfoParser.java:1300)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor$3.run(JavaInfoParser.java:602)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runRethrow(ExecutionUtils.java:119)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor.postVisit(JavaInfoParser.java:592)
+ at sun.reflect.GeneratedMethodAccessor30.invoke(Unknown Source)
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
+ at java.lang.reflect.Method.invoke(Unknown Source)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:399)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$bb36b221.postVisit(<generated>)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2517)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.Assignment.accept0(Assignment.java:312)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.access$1(ExecutionFlowUtils.java:235)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.endVisit(ExecutionFlowUtils.java:442)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:391)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$bb36b221.endVisit(<generated>)
+ at org.eclipse.jdt.core.dom.MethodInvocation.accept0(MethodInvocation.java:247)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:343)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:228)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:191)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parseRootMethods(JavaInfoParser.java:312)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:268)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$9(JavaInfoParser.java:238)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:153)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:1)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:159)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:151)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:534)
+ at org.eclipse.wb.internal.core.editor.DesignPage.access$9(DesignPage.java:522)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8$1.run(DesignPage.java:449)
+ at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
+ at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
+ at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8.run(DesignPage.java:446)
+ at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
+ at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
+ at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF_withProgress(DesignPage.java:465)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:415)
+ at org.eclipse.wb.internal.core.editor.UndoManager.refreshDesignerEditor(UndoManager.java:381)
+ at org.eclipse.wb.internal.core.editor.UndoManager$6.run(UndoManager.java:330)
+ at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
+ at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
+ at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4144)
+ at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: org.eclipse.core.commands.ExecutionException: While executing the action, an exception occurred
- at org.eclipse.jface.commands.ActionHandler.execute(ActionHandler.java:124)
- at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:76)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
- ... 48 more
-Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
- at org.eclipse.jdt.internal.codeassist.InternalCompletionProposal.findConstructorParameterNames(InternalCompletionProposal.java:257)
- at org.eclipse.jdt.internal.codeassist.InternalCompletionProposal.findParameterNames(InternalCompletionProposal.java:1456)
- at org.eclipse.jdt.ui.text.java.CompletionProposalLabelProvider.appendUnboundedParameterList(CompletionProposalLabelProvider.java:113)
- at org.eclipse.jdt.ui.text.java.CompletionProposalLabelProvider.createMethodProposalLabel(CompletionProposalLabelProvider.java:272)
- at org.eclipse.jdt.ui.text.java.CompletionProposalLabelProvider.createStyledLabel(CompletionProposalLabelProvider.java:570)
- at org.eclipse.jdt.internal.ui.text.java.LazyJavaCompletionProposal.computeDisplayString(LazyJavaCompletionProposal.java:262)
- at org.eclipse.jdt.internal.ui.text.java.LazyJavaCompletionProposal.getDisplayString(LazyJavaCompletionProposal.java:245)
- at org.eclipse.jdt.internal.ui.text.java.AbstractJavaCompletionProposal.isValidPrefix(AbstractJavaCompletionProposal.java:784)
- at org.eclipse.jdt.internal.ui.text.java.LazyJavaCompletionProposal.isValidPrefix(LazyJavaCompletionProposal.java:377)
- at org.eclipse.jdt.internal.ui.text.java.JavaMethodCompletionProposal.isValidPrefix(JavaMethodCompletionProposal.java:272)
- at org.eclipse.jdt.internal.ui.text.java.AbstractJavaCompletionProposal.validate(AbstractJavaCompletionProposal.java:736)
- at org.eclipse.jdt.internal.ui.text.java.AbstractJavaCompletionProposal.apply(AbstractJavaCompletionProposal.java:452)
- at org.eclipse.jdt.internal.ui.text.java.LazyJavaCompletionProposal.apply(LazyJavaCompletionProposal.java:488)
- at org.eclipse.jface.text.contentassist.CompletionProposalPopup.insertProposal(CompletionProposalPopup.java:940)
- at org.eclipse.jface.text.contentassist.CompletionProposalPopup.access$21(CompletionProposalPopup.java:904)
- at org.eclipse.jface.text.contentassist.CompletionProposalPopup$2.run(CompletionProposalPopup.java:505)
- at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
- at org.eclipse.jface.text.contentassist.CompletionProposalPopup.showProposals(CompletionProposalPopup.java:492)
- at org.eclipse.jface.text.contentassist.ContentAssistant.showPossibleCompletions(ContentAssistant.java:1665)
- at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor$AdaptedSourceViewer.doOperation(CompilationUnitEditor.java:183)
- at org.eclipse.ui.texteditor.ContentAssistAction$1.run(ContentAssistAction.java:82)
- at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
- at org.eclipse.ui.texteditor.ContentAssistAction.run(ContentAssistAction.java:80)
- at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
- at org.eclipse.jface.commands.ActionHandler.execute(ActionHandler.java:119)
- ... 54 more
+Caused by: java.lang.NullPointerException
-!ENTRY org.eclipse.e4.ui.workbench 4 0 2014-12-19 12:24:38.759
-!MESSAGE
+!ENTRY org.eclipse.wb.core 4 4 2015-02-09 17:29:29.841
+!MESSAGE Designer [1.5.2.r42x201302112024.201502091729]: new javax.swing.JLabel()
!STACK 0
-org.eclipse.e4.core.di.InjectionException: org.eclipse.core.commands.ExecutionException: While executing the action, an exception occurred
- at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:63)
- at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:231)
- at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:212)
- at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:131)
- at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:171)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.executeCommand(KeyBindingDispatcher.java:277)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.press(KeyBindingDispatcher.java:496)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.processKeyEvent(KeyBindingDispatcher.java:547)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.filterKeySequenceBindings(KeyBindingDispatcher.java:368)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.access$0(KeyBindingDispatcher.java:314)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher$KeyDownFilter.handleEvent(KeyBindingDispatcher.java:83)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1262)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1052)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
- at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1104)
- at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1100)
- at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1521)
- at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:4640)
- at org.eclipse.swt.widgets.Canvas.WM_CHAR(Canvas.java:345)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4528)
- at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:4976)
- at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
- at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2546)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3756)
+java.lang.Error: new javax.swing.JLabel()
+ at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate(AstEvaluationEngine.java:71)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluateExpression(JavaInfoEvaluationHelper.java:630)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluate(JavaInfoEvaluationHelper.java:502)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.evaluateNode(JavaInfoParser.java:1309)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$1(JavaInfoParser.java:1300)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor$3.run(JavaInfoParser.java:602)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runRethrow(ExecutionUtils.java:119)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor.postVisit(JavaInfoParser.java:592)
+ at sun.reflect.GeneratedMethodAccessor30.invoke(Unknown Source)
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
+ at java.lang.reflect.Method.invoke(Unknown Source)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:399)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$bb36b221.postVisit(<generated>)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2517)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.Assignment.accept0(Assignment.java:312)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.access$1(ExecutionFlowUtils.java:235)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.endVisit(ExecutionFlowUtils.java:442)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:391)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$bb36b221.endVisit(<generated>)
+ at org.eclipse.jdt.core.dom.MethodInvocation.accept0(MethodInvocation.java:247)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:343)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:228)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:191)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parseRootMethods(JavaInfoParser.java:312)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:268)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$9(JavaInfoParser.java:238)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:153)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:1)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:159)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:151)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:534)
+ at org.eclipse.wb.internal.core.editor.DesignPage.access$9(DesignPage.java:522)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8$1.run(DesignPage.java:449)
+ at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
+ at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
+ at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8.run(DesignPage.java:446)
+ at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
+ at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
+ at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF_withProgress(DesignPage.java:465)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:415)
+ at org.eclipse.wb.internal.core.editor.UndoManager.refreshDesignerEditor(UndoManager.java:381)
+ at org.eclipse.wb.internal.core.editor.UndoManager$6.run(UndoManager.java:330)
+ at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
+ at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
+ at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4144)
+ at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: org.eclipse.core.commands.ExecutionException: While executing the action, an exception occurred
- at org.eclipse.jface.commands.ActionHandler.execute(ActionHandler.java:124)
- at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:76)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
- ... 48 more
-Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
- at org.eclipse.jdt.internal.codeassist.InternalCompletionProposal.findConstructorParameterNames(InternalCompletionProposal.java:257)
- at org.eclipse.jdt.internal.codeassist.InternalCompletionProposal.findParameterNames(InternalCompletionProposal.java:1456)
- at org.eclipse.jdt.ui.text.java.CompletionProposalLabelProvider.appendUnboundedParameterList(CompletionProposalLabelProvider.java:113)
- at org.eclipse.jdt.ui.text.java.CompletionProposalLabelProvider.createMethodProposalLabel(CompletionProposalLabelProvider.java:272)
- at org.eclipse.jdt.ui.text.java.CompletionProposalLabelProvider.createStyledLabel(CompletionProposalLabelProvider.java:570)
- at org.eclipse.jdt.internal.ui.text.java.LazyJavaCompletionProposal.computeDisplayString(LazyJavaCompletionProposal.java:262)
- at org.eclipse.jdt.internal.ui.text.java.LazyJavaCompletionProposal.getDisplayString(LazyJavaCompletionProposal.java:245)
- at org.eclipse.jdt.internal.ui.text.java.AbstractJavaCompletionProposal.isValidPrefix(AbstractJavaCompletionProposal.java:784)
- at org.eclipse.jdt.internal.ui.text.java.LazyJavaCompletionProposal.isValidPrefix(LazyJavaCompletionProposal.java:377)
- at org.eclipse.jdt.internal.ui.text.java.JavaMethodCompletionProposal.isValidPrefix(JavaMethodCompletionProposal.java:272)
- at org.eclipse.jdt.internal.ui.text.java.AbstractJavaCompletionProposal.validate(AbstractJavaCompletionProposal.java:736)
- at org.eclipse.jdt.internal.ui.text.java.AbstractJavaCompletionProposal.apply(AbstractJavaCompletionProposal.java:452)
- at org.eclipse.jdt.internal.ui.text.java.LazyJavaCompletionProposal.apply(LazyJavaCompletionProposal.java:488)
- at org.eclipse.jface.text.contentassist.CompletionProposalPopup.insertProposal(CompletionProposalPopup.java:940)
- at org.eclipse.jface.text.contentassist.CompletionProposalPopup.access$21(CompletionProposalPopup.java:904)
- at org.eclipse.jface.text.contentassist.CompletionProposalPopup$2.run(CompletionProposalPopup.java:505)
- at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
- at org.eclipse.jface.text.contentassist.CompletionProposalPopup.showProposals(CompletionProposalPopup.java:492)
- at org.eclipse.jface.text.contentassist.ContentAssistant.showPossibleCompletions(ContentAssistant.java:1665)
- at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor$AdaptedSourceViewer.doOperation(CompilationUnitEditor.java:183)
- at org.eclipse.ui.texteditor.ContentAssistAction$1.run(ContentAssistAction.java:82)
- at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
- at org.eclipse.ui.texteditor.ContentAssistAction.run(ContentAssistAction.java:80)
- at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
- at org.eclipse.jface.commands.ActionHandler.execute(ActionHandler.java:119)
- ... 54 more
+Caused by: java.lang.NullPointerException
-!ENTRY org.eclipse.e4.ui.workbench 4 0 2014-12-19 12:24:38.973
-!MESSAGE
+!ENTRY org.eclipse.wb.core 4 4 2015-02-09 17:29:30.638
+!MESSAGE Designer [1.5.2.r42x201302112024.201502091729]: new javax.swing.JLabel()
!STACK 0
-org.eclipse.e4.core.di.InjectionException: org.eclipse.core.commands.ExecutionException: While executing the action, an exception occurred
- at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:63)
- at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:231)
- at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:212)
- at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:131)
- at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:171)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.executeCommand(KeyBindingDispatcher.java:277)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.press(KeyBindingDispatcher.java:496)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.processKeyEvent(KeyBindingDispatcher.java:547)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.filterKeySequenceBindings(KeyBindingDispatcher.java:368)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.access$0(KeyBindingDispatcher.java:314)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher$KeyDownFilter.handleEvent(KeyBindingDispatcher.java:83)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1262)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1052)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
- at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1104)
- at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1100)
- at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1521)
- at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:4640)
- at org.eclipse.swt.widgets.Canvas.WM_CHAR(Canvas.java:345)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4528)
- at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:4976)
- at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
- at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2546)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3756)
+java.lang.Error: new javax.swing.JLabel()
+ at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate(AstEvaluationEngine.java:71)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluateExpression(JavaInfoEvaluationHelper.java:630)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluate(JavaInfoEvaluationHelper.java:502)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.evaluateNode(JavaInfoParser.java:1309)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$1(JavaInfoParser.java:1300)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor$3.run(JavaInfoParser.java:602)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runRethrow(ExecutionUtils.java:119)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor.postVisit(JavaInfoParser.java:592)
+ at sun.reflect.GeneratedMethodAccessor30.invoke(Unknown Source)
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
+ at java.lang.reflect.Method.invoke(Unknown Source)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:399)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$bb36b221.postVisit(<generated>)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2517)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.Assignment.accept0(Assignment.java:312)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.access$1(ExecutionFlowUtils.java:235)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.endVisit(ExecutionFlowUtils.java:442)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:391)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$bb36b221.endVisit(<generated>)
+ at org.eclipse.jdt.core.dom.MethodInvocation.accept0(MethodInvocation.java:247)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:343)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:228)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:191)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parseRootMethods(JavaInfoParser.java:312)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:268)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$9(JavaInfoParser.java:238)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:153)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:1)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:159)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:151)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:534)
+ at org.eclipse.wb.internal.core.editor.DesignPage.access$9(DesignPage.java:522)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8$1.run(DesignPage.java:449)
+ at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
+ at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
+ at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8.run(DesignPage.java:446)
+ at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
+ at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
+ at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF_withProgress(DesignPage.java:465)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:415)
+ at org.eclipse.wb.internal.core.editor.UndoManager.refreshDesignerEditor(UndoManager.java:381)
+ at org.eclipse.wb.internal.core.editor.UndoManager$6.run(UndoManager.java:330)
+ at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
+ at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
+ at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4144)
+ at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: org.eclipse.core.commands.ExecutionException: While executing the action, an exception occurred
- at org.eclipse.jface.commands.ActionHandler.execute(ActionHandler.java:124)
- at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:76)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
- ... 48 more
-Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
- at org.eclipse.jdt.internal.codeassist.InternalCompletionProposal.findConstructorParameterNames(InternalCompletionProposal.java:257)
- at org.eclipse.jdt.internal.codeassist.InternalCompletionProposal.findParameterNames(InternalCompletionProposal.java:1456)
- at org.eclipse.jdt.ui.text.java.CompletionProposalLabelProvider.appendUnboundedParameterList(CompletionProposalLabelProvider.java:113)
- at org.eclipse.jdt.ui.text.java.CompletionProposalLabelProvider.createMethodProposalLabel(CompletionProposalLabelProvider.java:272)
- at org.eclipse.jdt.ui.text.java.CompletionProposalLabelProvider.createStyledLabel(CompletionProposalLabelProvider.java:570)
- at org.eclipse.jdt.internal.ui.text.java.LazyJavaCompletionProposal.computeDisplayString(LazyJavaCompletionProposal.java:262)
- at org.eclipse.jdt.internal.ui.text.java.LazyJavaCompletionProposal.getDisplayString(LazyJavaCompletionProposal.java:245)
- at org.eclipse.jdt.internal.ui.text.java.AbstractJavaCompletionProposal.isValidPrefix(AbstractJavaCompletionProposal.java:784)
- at org.eclipse.jdt.internal.ui.text.java.LazyJavaCompletionProposal.isValidPrefix(LazyJavaCompletionProposal.java:377)
- at org.eclipse.jdt.internal.ui.text.java.JavaMethodCompletionProposal.isValidPrefix(JavaMethodCompletionProposal.java:272)
- at org.eclipse.jdt.internal.ui.text.java.AbstractJavaCompletionProposal.validate(AbstractJavaCompletionProposal.java:736)
- at org.eclipse.jdt.internal.ui.text.java.AbstractJavaCompletionProposal.apply(AbstractJavaCompletionProposal.java:452)
- at org.eclipse.jdt.internal.ui.text.java.LazyJavaCompletionProposal.apply(LazyJavaCompletionProposal.java:488)
- at org.eclipse.jface.text.contentassist.CompletionProposalPopup.insertProposal(CompletionProposalPopup.java:940)
- at org.eclipse.jface.text.contentassist.CompletionProposalPopup.access$21(CompletionProposalPopup.java:904)
- at org.eclipse.jface.text.contentassist.CompletionProposalPopup$2.run(CompletionProposalPopup.java:505)
- at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
- at org.eclipse.jface.text.contentassist.CompletionProposalPopup.showProposals(CompletionProposalPopup.java:492)
- at org.eclipse.jface.text.contentassist.ContentAssistant.showPossibleCompletions(ContentAssistant.java:1665)
- at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor$AdaptedSourceViewer.doOperation(CompilationUnitEditor.java:183)
- at org.eclipse.ui.texteditor.ContentAssistAction$1.run(ContentAssistAction.java:82)
- at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
- at org.eclipse.ui.texteditor.ContentAssistAction.run(ContentAssistAction.java:80)
- at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
- at org.eclipse.jface.commands.ActionHandler.execute(ActionHandler.java:119)
- ... 54 more
+Caused by: java.lang.NullPointerException
-!ENTRY org.eclipse.e4.ui.workbench 4 0 2014-12-19 12:24:39.697
-!MESSAGE
+!ENTRY org.eclipse.wb.core 4 4 2015-02-09 17:29:31.397
+!MESSAGE Designer [1.5.2.r42x201302112024.201502091729]: new javax.swing.JScrollPane()
!STACK 0
-org.eclipse.e4.core.di.InjectionException: org.eclipse.core.commands.ExecutionException: While executing the action, an exception occurred
- at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:63)
- at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:231)
- at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:212)
- at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:131)
- at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:171)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.executeCommand(KeyBindingDispatcher.java:277)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.press(KeyBindingDispatcher.java:496)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.processKeyEvent(KeyBindingDispatcher.java:547)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.filterKeySequenceBindings(KeyBindingDispatcher.java:368)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.access$0(KeyBindingDispatcher.java:314)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher$KeyDownFilter.handleEvent(KeyBindingDispatcher.java:83)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1262)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1052)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
- at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1104)
- at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1100)
- at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1521)
- at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:4640)
- at org.eclipse.swt.widgets.Canvas.WM_CHAR(Canvas.java:345)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4528)
- at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:4976)
- at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
- at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2546)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3756)
+java.lang.Error: new javax.swing.JScrollPane()
+ at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate(AstEvaluationEngine.java:71)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluateExpression(JavaInfoEvaluationHelper.java:630)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluate(JavaInfoEvaluationHelper.java:502)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.evaluateNode(JavaInfoParser.java:1309)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$1(JavaInfoParser.java:1300)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor$3.run(JavaInfoParser.java:602)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runRethrow(ExecutionUtils.java:119)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor.postVisit(JavaInfoParser.java:592)
+ at sun.reflect.GeneratedMethodAccessor30.invoke(Unknown Source)
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
+ at java.lang.reflect.Method.invoke(Unknown Source)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:399)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$bb36b221.postVisit(<generated>)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2517)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.Assignment.accept0(Assignment.java:312)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.access$1(ExecutionFlowUtils.java:235)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.endVisit(ExecutionFlowUtils.java:442)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:391)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$bb36b221.endVisit(<generated>)
+ at org.eclipse.jdt.core.dom.MethodInvocation.accept0(MethodInvocation.java:247)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:343)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:228)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:191)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parseRootMethods(JavaInfoParser.java:312)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:268)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$9(JavaInfoParser.java:238)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:153)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:1)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:159)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:151)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:534)
+ at org.eclipse.wb.internal.core.editor.DesignPage.access$9(DesignPage.java:522)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8$1.run(DesignPage.java:449)
+ at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
+ at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
+ at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8.run(DesignPage.java:446)
+ at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
+ at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
+ at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF_withProgress(DesignPage.java:465)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:415)
+ at org.eclipse.wb.internal.core.editor.UndoManager.refreshDesignerEditor(UndoManager.java:381)
+ at org.eclipse.wb.internal.core.editor.UndoManager$6.run(UndoManager.java:330)
+ at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
+ at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
+ at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4144)
+ at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: org.eclipse.core.commands.ExecutionException: While executing the action, an exception occurred
- at org.eclipse.jface.commands.ActionHandler.execute(ActionHandler.java:124)
- at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:76)
+Caused by: java.lang.NullPointerException
+
+!ENTRY org.eclipse.wb.core 4 4 2015-02-09 17:29:31.963
+!MESSAGE Designer [1.5.2.r42x201302112024.201502091729]: new javax.swing.JScrollPane()
+!STACK 0
+java.lang.Error: new javax.swing.JScrollPane()
+ at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate(AstEvaluationEngine.java:71)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluateExpression(JavaInfoEvaluationHelper.java:630)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluate(JavaInfoEvaluationHelper.java:502)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.evaluateNode(JavaInfoParser.java:1309)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$1(JavaInfoParser.java:1300)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor$3.run(JavaInfoParser.java:602)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runRethrow(ExecutionUtils.java:119)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor.postVisit(JavaInfoParser.java:592)
+ at sun.reflect.GeneratedMethodAccessor30.invoke(Unknown Source)
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
+ at java.lang.reflect.Method.invoke(Unknown Source)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:399)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$bb36b221.postVisit(<generated>)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2517)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.Assignment.accept0(Assignment.java:312)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.access$1(ExecutionFlowUtils.java:235)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.endVisit(ExecutionFlowUtils.java:442)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:391)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$bb36b221.endVisit(<generated>)
+ at org.eclipse.jdt.core.dom.MethodInvocation.accept0(MethodInvocation.java:247)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:343)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:228)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:191)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parseRootMethods(JavaInfoParser.java:312)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:268)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$9(JavaInfoParser.java:238)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:153)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:1)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:159)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:151)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:534)
+ at org.eclipse.wb.internal.core.editor.DesignPage.access$9(DesignPage.java:522)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8$1.run(DesignPage.java:449)
+ at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
+ at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
+ at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8.run(DesignPage.java:446)
+ at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
+ at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
+ at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF_withProgress(DesignPage.java:465)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:415)
+ at org.eclipse.wb.internal.core.editor.UndoManager.refreshDesignerEditor(UndoManager.java:381)
+ at org.eclipse.wb.internal.core.editor.UndoManager$6.run(UndoManager.java:330)
+ at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
+ at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
+ at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4144)
+ at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
+ at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
+ at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
+ at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
+ at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
+ at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
+ at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
+ at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
+ at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
+ at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
+ at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
+ at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
+ at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
- ... 48 more
-Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
- at org.eclipse.jdt.internal.codeassist.InternalCompletionProposal.findConstructorParameterNames(InternalCompletionProposal.java:257)
- at org.eclipse.jdt.internal.codeassist.InternalCompletionProposal.findParameterNames(InternalCompletionProposal.java:1456)
- at org.eclipse.jdt.ui.text.java.CompletionProposalLabelProvider.appendUnboundedParameterList(CompletionProposalLabelProvider.java:113)
- at org.eclipse.jdt.ui.text.java.CompletionProposalLabelProvider.createMethodProposalLabel(CompletionProposalLabelProvider.java:272)
- at org.eclipse.jdt.ui.text.java.CompletionProposalLabelProvider.createStyledLabel(CompletionProposalLabelProvider.java:570)
- at org.eclipse.jdt.internal.ui.text.java.LazyJavaCompletionProposal.computeDisplayString(LazyJavaCompletionProposal.java:262)
- at org.eclipse.jdt.internal.ui.text.java.LazyJavaCompletionProposal.getDisplayString(LazyJavaCompletionProposal.java:245)
- at org.eclipse.jdt.internal.ui.text.java.AbstractJavaCompletionProposal.isValidPrefix(AbstractJavaCompletionProposal.java:784)
- at org.eclipse.jdt.internal.ui.text.java.LazyJavaCompletionProposal.isValidPrefix(LazyJavaCompletionProposal.java:377)
- at org.eclipse.jdt.internal.ui.text.java.JavaMethodCompletionProposal.isValidPrefix(JavaMethodCompletionProposal.java:272)
- at org.eclipse.jdt.internal.ui.text.java.AbstractJavaCompletionProposal.validate(AbstractJavaCompletionProposal.java:736)
- at org.eclipse.jdt.internal.ui.text.java.AbstractJavaCompletionProposal.apply(AbstractJavaCompletionProposal.java:452)
- at org.eclipse.jdt.internal.ui.text.java.LazyJavaCompletionProposal.apply(LazyJavaCompletionProposal.java:488)
- at org.eclipse.jface.text.contentassist.CompletionProposalPopup.insertProposal(CompletionProposalPopup.java:940)
- at org.eclipse.jface.text.contentassist.CompletionProposalPopup.access$21(CompletionProposalPopup.java:904)
- at org.eclipse.jface.text.contentassist.CompletionProposalPopup$2.run(CompletionProposalPopup.java:505)
- at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
- at org.eclipse.jface.text.contentassist.CompletionProposalPopup.showProposals(CompletionProposalPopup.java:492)
- at org.eclipse.jface.text.contentassist.ContentAssistant.showPossibleCompletions(ContentAssistant.java:1665)
- at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor$AdaptedSourceViewer.doOperation(CompilationUnitEditor.java:183)
- at org.eclipse.ui.texteditor.ContentAssistAction$1.run(ContentAssistAction.java:82)
- at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
- at org.eclipse.ui.texteditor.ContentAssistAction.run(ContentAssistAction.java:80)
- at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
- at org.eclipse.jface.commands.ActionHandler.execute(ActionHandler.java:119)
- ... 54 more
+ at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
+ at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
+ at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
+ at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
+Caused by: java.lang.NullPointerException
-!ENTRY org.eclipse.wb.core 4 4 2014-12-19 12:26:06.873
-!MESSAGE Designer [1.5.2.r42x201302112024.201412191226]: java.lang.NullPointerException
+!ENTRY org.eclipse.wb.core 4 4 2015-02-09 17:29:32.963
+!MESSAGE Designer [1.5.2.r42x201302112024.201502091729]: new javax.swing.JMenuBar()
!STACK 0
-java.lang.NullPointerException
- at java.util.TreeMap.getEntry(Unknown Source)
- at java.util.TreeMap.get(Unknown Source)
- at org.eclipse.wb.internal.core.model.property.PropertyManager.getCategoryForced(PropertyManager.java:61)
- at org.eclipse.wb.internal.core.model.property.category.PropertyCategoryProviders$2.getCategory(PropertyCategoryProviders.java:43)
- at org.eclipse.wb.internal.core.model.property.category.PropertyCategoryProviders$3.getCategory(PropertyCategoryProviders.java:66)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.getCategory(PropertyTable.java:1284)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.access$3(PropertyTable.java:1283)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.getSubProperties(PropertyTable.java:1484)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.prepareChildren(PropertyTable.java:1469)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.isShowComplex(PropertyTable.java:1335)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.drawProperty(PropertyTable.java:1217)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.drawContent(PropertyTable.java:1103)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.handlePaint(PropertyTable.java:1046)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.access$6(PropertyTable.java:1005)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$3.handleEvent(PropertyTable.java:163)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
- at org.eclipse.swt.widgets.Composite.WM_PAINT(Composite.java:1564)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4585)
- at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:4976)
- at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
- at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2546)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3756)
+java.lang.Error: new javax.swing.JMenuBar()
+ at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate(AstEvaluationEngine.java:71)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluateExpression(JavaInfoEvaluationHelper.java:630)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluate(JavaInfoEvaluationHelper.java:502)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.evaluateNode(JavaInfoParser.java:1309)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$1(JavaInfoParser.java:1300)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor$3.run(JavaInfoParser.java:602)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runRethrow(ExecutionUtils.java:119)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor.postVisit(JavaInfoParser.java:592)
+ at sun.reflect.GeneratedMethodAccessor30.invoke(Unknown Source)
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
+ at java.lang.reflect.Method.invoke(Unknown Source)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:399)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$bb36b221.postVisit(<generated>)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2517)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.Assignment.accept0(Assignment.java:312)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.access$1(ExecutionFlowUtils.java:235)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.endVisit(ExecutionFlowUtils.java:442)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:391)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$bb36b221.endVisit(<generated>)
+ at org.eclipse.jdt.core.dom.MethodInvocation.accept0(MethodInvocation.java:247)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:343)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:228)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:191)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parseRootMethods(JavaInfoParser.java:312)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:268)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$9(JavaInfoParser.java:238)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:153)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:1)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:159)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:151)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:534)
+ at org.eclipse.wb.internal.core.editor.DesignPage.access$9(DesignPage.java:522)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8$1.run(DesignPage.java:449)
+ at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
+ at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
+ at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8.run(DesignPage.java:446)
+ at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
+ at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
+ at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF_withProgress(DesignPage.java:465)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:415)
+ at org.eclipse.wb.internal.core.editor.UndoManager.refreshDesignerEditor(UndoManager.java:381)
+ at org.eclipse.wb.internal.core.editor.UndoManager$6.run(UndoManager.java:330)
+ at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
+ at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
+ at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4144)
+ at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
+Caused by: java.lang.NullPointerException
-!ENTRY org.eclipse.wb.core 4 4 2014-12-19 12:26:49.775
-!MESSAGE Designer [1.5.2.r42x201302112024.201412191226]: java.lang.NullPointerException
+!ENTRY org.eclipse.wb.core 4 4 2015-02-09 17:29:33.606
+!MESSAGE Designer [1.5.2.r42x201302112024.201502091729]: new javax.swing.JMenuBar()
!STACK 0
-java.lang.NullPointerException
- at java.util.TreeMap.getEntry(Unknown Source)
- at java.util.TreeMap.get(Unknown Source)
- at org.eclipse.wb.internal.core.model.property.PropertyManager.getCategoryForced(PropertyManager.java:61)
- at org.eclipse.wb.internal.core.model.property.category.PropertyCategoryProviders$2.getCategory(PropertyCategoryProviders.java:43)
- at org.eclipse.wb.internal.core.model.property.category.PropertyCategoryProviders$3.getCategory(PropertyCategoryProviders.java:66)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.getCategory(PropertyTable.java:1284)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.access$3(PropertyTable.java:1283)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.getSubProperties(PropertyTable.java:1484)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.prepareChildren(PropertyTable.java:1469)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.isShowComplex(PropertyTable.java:1335)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.drawProperty(PropertyTable.java:1217)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.drawContent(PropertyTable.java:1103)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.handlePaint(PropertyTable.java:1046)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.access$6(PropertyTable.java:1005)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$3.handleEvent(PropertyTable.java:163)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
- at org.eclipse.swt.widgets.Composite.WM_PAINT(Composite.java:1564)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4585)
- at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:4989)
- at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
- at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2546)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3756)
+java.lang.Error: new javax.swing.JMenuBar()
+ at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate(AstEvaluationEngine.java:71)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluateExpression(JavaInfoEvaluationHelper.java:630)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluate(JavaInfoEvaluationHelper.java:502)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.evaluateNode(JavaInfoParser.java:1309)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$1(JavaInfoParser.java:1300)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor$3.run(JavaInfoParser.java:602)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runRethrow(ExecutionUtils.java:119)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor.postVisit(JavaInfoParser.java:592)
+ at sun.reflect.GeneratedMethodAccessor30.invoke(Unknown Source)
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
+ at java.lang.reflect.Method.invoke(Unknown Source)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:399)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$bb36b221.postVisit(<generated>)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2517)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.Assignment.accept0(Assignment.java:312)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.access$1(ExecutionFlowUtils.java:235)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.endVisit(ExecutionFlowUtils.java:442)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:391)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$bb36b221.endVisit(<generated>)
+ at org.eclipse.jdt.core.dom.MethodInvocation.accept0(MethodInvocation.java:247)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:343)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:228)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:191)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parseRootMethods(JavaInfoParser.java:312)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:268)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$9(JavaInfoParser.java:238)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:153)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:1)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:159)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:151)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:534)
+ at org.eclipse.wb.internal.core.editor.DesignPage.access$9(DesignPage.java:522)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8$1.run(DesignPage.java:449)
+ at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
+ at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
+ at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8.run(DesignPage.java:446)
+ at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
+ at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
+ at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF_withProgress(DesignPage.java:465)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:415)
+ at org.eclipse.wb.internal.core.editor.UndoManager.refreshDesignerEditor(UndoManager.java:381)
+ at org.eclipse.wb.internal.core.editor.UndoManager$6.run(UndoManager.java:330)
+ at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
+ at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
+ at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4144)
+ at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
+Caused by: java.lang.NullPointerException
-!ENTRY org.eclipse.wb.core 4 4 2014-12-19 13:15:12.219
-!MESSAGE Designer [1.5.2.r42x201302112024.201412191226]: java.lang.NullPointerException
+!ENTRY org.eclipse.wb.core 4 4 2015-02-09 17:29:34.725
+!MESSAGE Designer [1.5.2.r42x201302112024.201502091729]: new javax.swing.JMenu()
!STACK 0
-java.lang.NullPointerException
- at java.util.TreeMap.getEntry(Unknown Source)
- at java.util.TreeMap.get(Unknown Source)
- at org.eclipse.wb.internal.core.model.property.PropertyManager.getCategoryForced(PropertyManager.java:61)
- at org.eclipse.wb.internal.core.model.property.category.PropertyCategoryProviders$2.getCategory(PropertyCategoryProviders.java:43)
- at org.eclipse.wb.internal.core.model.property.category.PropertyCategoryProviders$3.getCategory(PropertyCategoryProviders.java:66)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.getCategory(PropertyTable.java:1284)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.access$3(PropertyTable.java:1283)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.getSubProperties(PropertyTable.java:1484)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.prepareChildren(PropertyTable.java:1469)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.isShowComplex(PropertyTable.java:1335)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.drawProperty(PropertyTable.java:1217)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.drawContent(PropertyTable.java:1103)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.handlePaint(PropertyTable.java:1046)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.access$6(PropertyTable.java:1005)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$3.handleEvent(PropertyTable.java:163)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
- at org.eclipse.swt.widgets.Composite.WM_PAINT(Composite.java:1564)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4585)
- at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:4989)
- at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
- at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2546)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3756)
+java.lang.Error: new javax.swing.JMenu()
+ at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate(AstEvaluationEngine.java:71)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluateExpression(JavaInfoEvaluationHelper.java:630)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluate(JavaInfoEvaluationHelper.java:502)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.evaluateNode(JavaInfoParser.java:1309)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$1(JavaInfoParser.java:1300)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor$3.run(JavaInfoParser.java:602)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runRethrow(ExecutionUtils.java:119)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor.postVisit(JavaInfoParser.java:592)
+ at sun.reflect.GeneratedMethodAccessor30.invoke(Unknown Source)
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
+ at java.lang.reflect.Method.invoke(Unknown Source)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:399)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$bb36b221.postVisit(<generated>)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2517)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.Assignment.accept0(Assignment.java:312)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.access$1(ExecutionFlowUtils.java:235)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.endVisit(ExecutionFlowUtils.java:442)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:391)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$bb36b221.endVisit(<generated>)
+ at org.eclipse.jdt.core.dom.MethodInvocation.accept0(MethodInvocation.java:247)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:343)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:228)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:191)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parseRootMethods(JavaInfoParser.java:312)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:268)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$9(JavaInfoParser.java:238)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:153)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:1)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:159)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:151)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:534)
+ at org.eclipse.wb.internal.core.editor.DesignPage.access$9(DesignPage.java:522)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8$1.run(DesignPage.java:449)
+ at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
+ at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
+ at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8.run(DesignPage.java:446)
+ at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
+ at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
+ at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF_withProgress(DesignPage.java:465)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:415)
+ at org.eclipse.wb.internal.core.editor.UndoManager.refreshDesignerEditor(UndoManager.java:381)
+ at org.eclipse.wb.internal.core.editor.UndoManager$6.run(UndoManager.java:330)
+ at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
+ at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
+ at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4144)
+ at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
+Caused by: java.lang.NullPointerException
-!ENTRY org.eclipse.wb.core 4 4 2014-12-19 13:46:02.783
-!MESSAGE Designer [1.5.2.r42x201302112024.201412191226]: java.lang.NullPointerException
+!ENTRY org.eclipse.wb.core 4 4 2015-02-09 17:29:35.287
+!MESSAGE Designer [1.5.2.r42x201302112024.201502091729]: new javax.swing.JMenu()
!STACK 0
-java.lang.NullPointerException
- at java.util.TreeMap.getEntry(Unknown Source)
- at java.util.TreeMap.get(Unknown Source)
- at org.eclipse.wb.internal.core.model.property.PropertyManager.getCategoryForced(PropertyManager.java:61)
- at org.eclipse.wb.internal.core.model.property.category.PropertyCategoryProviders$2.getCategory(PropertyCategoryProviders.java:43)
- at org.eclipse.wb.internal.core.model.property.category.PropertyCategoryProviders$3.getCategory(PropertyCategoryProviders.java:66)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.getCategory(PropertyTable.java:1284)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.access$3(PropertyTable.java:1283)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.getSubProperties(PropertyTable.java:1484)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.prepareChildren(PropertyTable.java:1469)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.isShowComplex(PropertyTable.java:1335)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.drawProperty(PropertyTable.java:1217)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.drawContent(PropertyTable.java:1103)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.handlePaint(PropertyTable.java:1046)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.access$6(PropertyTable.java:1005)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$3.handleEvent(PropertyTable.java:163)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
- at org.eclipse.swt.widgets.Composite.WM_PAINT(Composite.java:1564)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4585)
- at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:4989)
- at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
- at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2546)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3756)
+java.lang.Error: new javax.swing.JMenu()
+ at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate(AstEvaluationEngine.java:71)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluateExpression(JavaInfoEvaluationHelper.java:630)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluate(JavaInfoEvaluationHelper.java:502)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.evaluateNode(JavaInfoParser.java:1309)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$1(JavaInfoParser.java:1300)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor$3.run(JavaInfoParser.java:602)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runRethrow(ExecutionUtils.java:119)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor.postVisit(JavaInfoParser.java:592)
+ at sun.reflect.GeneratedMethodAccessor30.invoke(Unknown Source)
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
+ at java.lang.reflect.Method.invoke(Unknown Source)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:399)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$bb36b221.postVisit(<generated>)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2517)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.Assignment.accept0(Assignment.java:312)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.access$1(ExecutionFlowUtils.java:235)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.endVisit(ExecutionFlowUtils.java:442)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:391)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$bb36b221.endVisit(<generated>)
+ at org.eclipse.jdt.core.dom.MethodInvocation.accept0(MethodInvocation.java:247)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:343)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:228)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:191)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parseRootMethods(JavaInfoParser.java:312)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:268)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$9(JavaInfoParser.java:238)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:153)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:1)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:159)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:151)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:534)
+ at org.eclipse.wb.internal.core.editor.DesignPage.access$9(DesignPage.java:522)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8$1.run(DesignPage.java:449)
+ at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
+ at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
+ at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8.run(DesignPage.java:446)
+ at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
+ at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
+ at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF_withProgress(DesignPage.java:465)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:415)
+ at org.eclipse.wb.internal.core.editor.UndoManager.refreshDesignerEditor(UndoManager.java:381)
+ at org.eclipse.wb.internal.core.editor.UndoManager$6.run(UndoManager.java:330)
+ at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
+ at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
+ at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4144)
+ at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
+Caused by: java.lang.NullPointerException
-!ENTRY org.eclipse.wb.core 4 4 2014-12-19 13:46:35.001
-!MESSAGE Designer [1.5.2.r42x201302112024.201412191226]: java.lang.NullPointerException
+!ENTRY org.eclipse.wb.core 4 4 2015-02-09 17:29:35.970
+!MESSAGE Designer [1.5.2.r42x201302112024.201502091729]: new javax.swing.JMenu()
!STACK 0
-java.lang.NullPointerException
- at java.util.TreeMap.getEntry(Unknown Source)
- at java.util.TreeMap.get(Unknown Source)
- at org.eclipse.wb.internal.core.model.property.PropertyManager.getCategoryForced(PropertyManager.java:61)
- at org.eclipse.wb.internal.core.model.property.category.PropertyCategoryProviders$2.getCategory(PropertyCategoryProviders.java:43)
- at org.eclipse.wb.internal.core.model.property.category.PropertyCategoryProviders$3.getCategory(PropertyCategoryProviders.java:66)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.getCategory(PropertyTable.java:1284)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.access$3(PropertyTable.java:1283)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.getSubProperties(PropertyTable.java:1484)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.prepareChildren(PropertyTable.java:1469)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.isShowComplex(PropertyTable.java:1335)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.drawProperty(PropertyTable.java:1217)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.drawContent(PropertyTable.java:1103)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.handlePaint(PropertyTable.java:1046)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.access$6(PropertyTable.java:1005)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$3.handleEvent(PropertyTable.java:163)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
- at org.eclipse.swt.widgets.Composite.WM_PAINT(Composite.java:1564)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4585)
- at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:4989)
- at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
- at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2546)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3756)
+java.lang.Error: new javax.swing.JMenu()
+ at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate(AstEvaluationEngine.java:71)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluateExpression(JavaInfoEvaluationHelper.java:630)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluate(JavaInfoEvaluationHelper.java:502)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.evaluateNode(JavaInfoParser.java:1309)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$1(JavaInfoParser.java:1300)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor$3.run(JavaInfoParser.java:602)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runRethrow(ExecutionUtils.java:119)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor.postVisit(JavaInfoParser.java:592)
+ at sun.reflect.GeneratedMethodAccessor30.invoke(Unknown Source)
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
+ at java.lang.reflect.Method.invoke(Unknown Source)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:399)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$bb36b221.postVisit(<generated>)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2517)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.Assignment.accept0(Assignment.java:312)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.access$1(ExecutionFlowUtils.java:235)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.endVisit(ExecutionFlowUtils.java:442)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:391)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$bb36b221.endVisit(<generated>)
+ at org.eclipse.jdt.core.dom.MethodInvocation.accept0(MethodInvocation.java:247)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:343)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:228)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:191)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parseRootMethods(JavaInfoParser.java:312)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:268)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$9(JavaInfoParser.java:238)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:153)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:1)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:159)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:151)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:534)
+ at org.eclipse.wb.internal.core.editor.DesignPage.access$9(DesignPage.java:522)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8$1.run(DesignPage.java:449)
+ at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
+ at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
+ at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8.run(DesignPage.java:446)
+ at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
+ at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
+ at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF_withProgress(DesignPage.java:465)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:415)
+ at org.eclipse.wb.internal.core.editor.UndoManager.refreshDesignerEditor(UndoManager.java:381)
+ at org.eclipse.wb.internal.core.editor.UndoManager$6.run(UndoManager.java:330)
+ at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
+ at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
+ at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4144)
+ at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
+Caused by: java.lang.NullPointerException
-!ENTRY org.eclipse.wb.core 4 4 2014-12-19 13:46:46.436
-!MESSAGE Designer [1.5.2.r42x201302112024.201412191226]: java.lang.NullPointerException
+!ENTRY org.eclipse.wb.core 4 4 2015-02-09 17:29:36.501
+!MESSAGE Designer [1.5.2.r42x201302112024.201502091729]: new javax.swing.JMenuItem()
!STACK 0
-java.lang.NullPointerException
- at java.util.TreeMap.getEntry(Unknown Source)
- at java.util.TreeMap.get(Unknown Source)
- at org.eclipse.wb.internal.core.model.property.PropertyManager.getCategoryForced(PropertyManager.java:61)
- at org.eclipse.wb.internal.core.model.property.category.PropertyCategoryProviders$2.getCategory(PropertyCategoryProviders.java:43)
- at org.eclipse.wb.internal.core.model.property.category.PropertyCategoryProviders$3.getCategory(PropertyCategoryProviders.java:66)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.getCategory(PropertyTable.java:1284)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.access$3(PropertyTable.java:1283)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.getSubProperties(PropertyTable.java:1484)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.prepareChildren(PropertyTable.java:1469)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.isShowComplex(PropertyTable.java:1335)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.drawProperty(PropertyTable.java:1217)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.drawContent(PropertyTable.java:1103)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.handlePaint(PropertyTable.java:1046)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.access$6(PropertyTable.java:1005)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$3.handleEvent(PropertyTable.java:163)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
- at org.eclipse.swt.widgets.Composite.WM_PAINT(Composite.java:1564)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4585)
- at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:4989)
- at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
- at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2546)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3756)
+java.lang.Error: new javax.swing.JMenuItem()
+ at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate(AstEvaluationEngine.java:71)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluateExpression(JavaInfoEvaluationHelper.java:630)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluate(JavaInfoEvaluationHelper.java:502)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.evaluateNode(JavaInfoParser.java:1309)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$1(JavaInfoParser.java:1300)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor$3.run(JavaInfoParser.java:602)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runRethrow(ExecutionUtils.java:119)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor.postVisit(JavaInfoParser.java:592)
+ at sun.reflect.GeneratedMethodAccessor30.invoke(Unknown Source)
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
+ at java.lang.reflect.Method.invoke(Unknown Source)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:399)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$bb36b221.postVisit(<generated>)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2517)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.Assignment.accept0(Assignment.java:312)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.access$1(ExecutionFlowUtils.java:235)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.endVisit(ExecutionFlowUtils.java:442)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:391)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$bb36b221.endVisit(<generated>)
+ at org.eclipse.jdt.core.dom.MethodInvocation.accept0(MethodInvocation.java:247)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:343)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:228)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:191)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parseRootMethods(JavaInfoParser.java:312)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:268)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$9(JavaInfoParser.java:238)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:153)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:1)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:159)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:151)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:534)
+ at org.eclipse.wb.internal.core.editor.DesignPage.access$9(DesignPage.java:522)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8$1.run(DesignPage.java:449)
+ at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
+ at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
+ at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8.run(DesignPage.java:446)
+ at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
+ at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
+ at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF_withProgress(DesignPage.java:465)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:415)
+ at org.eclipse.wb.internal.core.editor.UndoManager.refreshDesignerEditor(UndoManager.java:381)
+ at org.eclipse.wb.internal.core.editor.UndoManager$6.run(UndoManager.java:330)
+ at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
+ at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
+ at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4144)
+ at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
+Caused by: java.lang.NullPointerException
-!ENTRY org.eclipse.wb.core 4 4 2014-12-19 13:46:51.463
-!MESSAGE Designer [1.5.2.r42x201302112024.201412191226]: java.lang.NullPointerException
+!ENTRY org.eclipse.wb.core 4 4 2015-02-09 17:29:37.001
+!MESSAGE Designer [1.5.2.r42x201302112024.201502091729]: new javax.swing.JMenuItem()
!STACK 0
-java.lang.NullPointerException
- at java.util.TreeMap.getEntry(Unknown Source)
- at java.util.TreeMap.get(Unknown Source)
- at org.eclipse.wb.internal.core.model.property.PropertyManager.getCategoryForced(PropertyManager.java:61)
- at org.eclipse.wb.internal.core.model.property.category.PropertyCategoryProviders$2.getCategory(PropertyCategoryProviders.java:43)
- at org.eclipse.wb.internal.core.model.property.category.PropertyCategoryProviders$3.getCategory(PropertyCategoryProviders.java:66)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.getCategory(PropertyTable.java:1284)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.access$3(PropertyTable.java:1283)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.getSubProperties(PropertyTable.java:1484)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.prepareChildren(PropertyTable.java:1469)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.isShowComplex(PropertyTable.java:1335)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.drawProperty(PropertyTable.java:1217)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.drawContent(PropertyTable.java:1103)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.handlePaint(PropertyTable.java:1046)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.access$6(PropertyTable.java:1005)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$3.handleEvent(PropertyTable.java:163)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
- at org.eclipse.swt.widgets.Composite.WM_PAINT(Composite.java:1564)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4585)
- at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:4989)
- at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
- at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2546)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3756)
+java.lang.Error: new javax.swing.JMenuItem()
+ at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate(AstEvaluationEngine.java:71)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluateExpression(JavaInfoEvaluationHelper.java:630)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluate(JavaInfoEvaluationHelper.java:502)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.evaluateNode(JavaInfoParser.java:1309)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$1(JavaInfoParser.java:1300)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor$3.run(JavaInfoParser.java:602)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runRethrow(ExecutionUtils.java:119)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor.postVisit(JavaInfoParser.java:592)
+ at sun.reflect.GeneratedMethodAccessor30.invoke(Unknown Source)
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
+ at java.lang.reflect.Method.invoke(Unknown Source)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:399)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$bb36b221.postVisit(<generated>)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2517)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.Assignment.accept0(Assignment.java:312)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.access$1(ExecutionFlowUtils.java:235)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.endVisit(ExecutionFlowUtils.java:442)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:391)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$bb36b221.endVisit(<generated>)
+ at org.eclipse.jdt.core.dom.MethodInvocation.accept0(MethodInvocation.java:247)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:343)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:228)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:191)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parseRootMethods(JavaInfoParser.java:312)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:268)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$9(JavaInfoParser.java:238)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:153)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:1)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:159)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:151)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:534)
+ at org.eclipse.wb.internal.core.editor.DesignPage.access$9(DesignPage.java:522)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8$1.run(DesignPage.java:449)
+ at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
+ at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
+ at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8.run(DesignPage.java:446)
+ at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
+ at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
+ at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF_withProgress(DesignPage.java:465)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:415)
+ at org.eclipse.wb.internal.core.editor.UndoManager.refreshDesignerEditor(UndoManager.java:381)
+ at org.eclipse.wb.internal.core.editor.UndoManager$6.run(UndoManager.java:330)
+ at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
+ at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
+ at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4144)
+ at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
+Caused by: java.lang.NullPointerException
-!ENTRY org.eclipse.wb.core 4 4 2014-12-19 13:47:16.447
-!MESSAGE Designer [1.5.2.r42x201302112024.201412191226]: java.lang.NullPointerException
+!ENTRY org.eclipse.wb.core 4 4 2015-02-09 17:29:37.444
+!MESSAGE Designer [1.5.2.r42x201302112024.201502091729]: new JDialog()
!STACK 0
-java.lang.NullPointerException
- at java.util.TreeMap.getEntry(Unknown Source)
- at java.util.TreeMap.get(Unknown Source)
- at org.eclipse.wb.internal.core.model.property.PropertyManager.getCategoryForced(PropertyManager.java:61)
- at org.eclipse.wb.internal.core.model.property.category.PropertyCategoryProviders$2.getCategory(PropertyCategoryProviders.java:43)
- at org.eclipse.wb.internal.core.model.property.category.PropertyCategoryProviders$3.getCategory(PropertyCategoryProviders.java:66)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.getCategory(PropertyTable.java:1284)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.access$3(PropertyTable.java:1283)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.getSubProperties(PropertyTable.java:1484)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.prepareChildren(PropertyTable.java:1469)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.isShowComplex(PropertyTable.java:1335)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.drawProperty(PropertyTable.java:1217)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.drawContent(PropertyTable.java:1103)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.handlePaint(PropertyTable.java:1046)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.access$6(PropertyTable.java:1005)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$3.handleEvent(PropertyTable.java:163)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
- at org.eclipse.swt.widgets.Composite.WM_PAINT(Composite.java:1564)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4585)
- at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:4989)
- at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
- at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2546)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3756)
+java.lang.Error: new JDialog()
+ at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate(AstEvaluationEngine.java:71)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluateExpression(JavaInfoEvaluationHelper.java:630)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluate(JavaInfoEvaluationHelper.java:502)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.evaluateNode(JavaInfoParser.java:1309)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$1(JavaInfoParser.java:1300)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor$3.run(JavaInfoParser.java:602)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runRethrow(ExecutionUtils.java:119)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor.postVisit(JavaInfoParser.java:592)
+ at sun.reflect.GeneratedMethodAccessor30.invoke(Unknown Source)
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
+ at java.lang.reflect.Method.invoke(Unknown Source)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:399)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$bb36b221.postVisit(<generated>)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2517)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.Assignment.accept0(Assignment.java:312)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.access$1(ExecutionFlowUtils.java:235)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.endVisit(ExecutionFlowUtils.java:442)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:391)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$bb36b221.endVisit(<generated>)
+ at org.eclipse.jdt.core.dom.MethodInvocation.accept0(MethodInvocation.java:247)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:343)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:228)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:191)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parseRootMethods(JavaInfoParser.java:312)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:268)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$9(JavaInfoParser.java:238)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:153)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:1)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:159)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:151)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:534)
+ at org.eclipse.wb.internal.core.editor.DesignPage.access$9(DesignPage.java:522)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8$1.run(DesignPage.java:449)
+ at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
+ at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
+ at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8.run(DesignPage.java:446)
+ at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
+ at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
+ at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF_withProgress(DesignPage.java:465)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:415)
+ at org.eclipse.wb.internal.core.editor.UndoManager.refreshDesignerEditor(UndoManager.java:381)
+ at org.eclipse.wb.internal.core.editor.UndoManager$6.run(UndoManager.java:330)
+ at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
+ at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
+ at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4144)
+ at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
+Caused by: java.lang.NullPointerException
-!ENTRY org.eclipse.wb.core 4 4 2014-12-19 13:47:31.439
-!MESSAGE Designer [1.5.2.r42x201302112024.201412191226]: java.lang.NullPointerException
+!ENTRY org.eclipse.wb.core 4 4 2015-02-09 17:29:37.671
+!MESSAGE Designer [1.5.2.r42x201302112024.201502091729]: new JTabbedPane(JTabbedPane.TOP)
!STACK 0
-java.lang.NullPointerException
- at java.util.TreeMap.getEntry(Unknown Source)
- at java.util.TreeMap.get(Unknown Source)
- at org.eclipse.wb.internal.core.model.property.PropertyManager.getCategoryForced(PropertyManager.java:61)
- at org.eclipse.wb.internal.core.model.property.category.PropertyCategoryProviders$2.getCategory(PropertyCategoryProviders.java:43)
- at org.eclipse.wb.internal.core.model.property.category.PropertyCategoryProviders$3.getCategory(PropertyCategoryProviders.java:66)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.getCategory(PropertyTable.java:1284)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.access$3(PropertyTable.java:1283)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.getSubProperties(PropertyTable.java:1484)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.prepareChildren(PropertyTable.java:1469)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.isShowComplex(PropertyTable.java:1335)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.drawProperty(PropertyTable.java:1217)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.drawContent(PropertyTable.java:1103)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.handlePaint(PropertyTable.java:1046)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.access$6(PropertyTable.java:1005)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$3.handleEvent(PropertyTable.java:163)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
- at org.eclipse.swt.widgets.Composite.WM_PAINT(Composite.java:1564)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4585)
- at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:4989)
- at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
- at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2546)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3756)
+java.lang.Error: new JTabbedPane(JTabbedPane.TOP)
+ at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate(AstEvaluationEngine.java:71)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluateExpression(JavaInfoEvaluationHelper.java:630)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluate(JavaInfoEvaluationHelper.java:502)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.evaluateNode(JavaInfoParser.java:1309)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$1(JavaInfoParser.java:1300)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor$3.run(JavaInfoParser.java:602)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runRethrow(ExecutionUtils.java:119)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor.postVisit(JavaInfoParser.java:592)
+ at sun.reflect.GeneratedMethodAccessor30.invoke(Unknown Source)
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
+ at java.lang.reflect.Method.invoke(Unknown Source)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:399)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$bb36b221.postVisit(<generated>)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2517)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.Assignment.accept0(Assignment.java:312)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.access$1(ExecutionFlowUtils.java:235)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.endVisit(ExecutionFlowUtils.java:442)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:391)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$bb36b221.endVisit(<generated>)
+ at org.eclipse.jdt.core.dom.MethodInvocation.accept0(MethodInvocation.java:247)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:343)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:228)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:191)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parseRootMethods(JavaInfoParser.java:312)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:268)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$9(JavaInfoParser.java:238)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:153)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:1)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:159)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:151)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:534)
+ at org.eclipse.wb.internal.core.editor.DesignPage.access$9(DesignPage.java:522)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8$1.run(DesignPage.java:449)
+ at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
+ at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
+ at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8.run(DesignPage.java:446)
+ at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
+ at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
+ at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF_withProgress(DesignPage.java:465)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:415)
+ at org.eclipse.wb.internal.core.editor.UndoManager.refreshDesignerEditor(UndoManager.java:381)
+ at org.eclipse.wb.internal.core.editor.UndoManager$6.run(UndoManager.java:330)
+ at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
+ at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
+ at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4144)
+ at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
+Caused by: java.lang.NullPointerException
+
+!ENTRY org.eclipse.ui 2 2 2015-02-09 17:29:47.139
+!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
+!SESSION 2015-02-09 17:29:50.564 -----------------------------------------------
+eclipse.buildId=M20130204-1200
+java.version=1.8.0_31
+java.vendor=Oracle Corporation
+BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
+Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
+Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
+
+!ENTRY org.eclipse.ui 4 4 2015-02-09 17:29:56.693
+!MESSAGE Could not create action delegate for id: org.eclipse.jdt.debug.ui.actions.ManageBreakpointRulerAction
-!ENTRY org.eclipse.wb.core 4 4 2014-12-19 13:47:43.020
-!MESSAGE Designer [1.5.2.r42x201302112024.201412191226]: java.lang.NullPointerException
+!ENTRY org.eclipse.equinox.registry 4 1 2015-02-09 17:29:56.699
+!MESSAGE Plug-in org.eclipse.wb.core.java was unable to load class org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate.
!STACK 0
-java.lang.NullPointerException
- at java.util.TreeMap.getEntry(Unknown Source)
- at java.util.TreeMap.get(Unknown Source)
- at org.eclipse.wb.internal.core.model.property.PropertyManager.getCategoryForced(PropertyManager.java:61)
- at org.eclipse.wb.internal.core.model.property.category.PropertyCategoryProviders$2.getCategory(PropertyCategoryProviders.java:43)
- at org.eclipse.wb.internal.core.model.property.category.PropertyCategoryProviders$3.getCategory(PropertyCategoryProviders.java:66)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.getCategory(PropertyTable.java:1284)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.access$3(PropertyTable.java:1283)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.getSubProperties(PropertyTable.java:1484)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.prepareChildren(PropertyTable.java:1469)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.isShowComplex(PropertyTable.java:1335)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.drawProperty(PropertyTable.java:1217)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.drawContent(PropertyTable.java:1103)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.handlePaint(PropertyTable.java:1046)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.access$6(PropertyTable.java:1005)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$3.handleEvent(PropertyTable.java:163)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
- at org.eclipse.swt.widgets.Composite.WM_PAINT(Composite.java:1564)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4585)
- at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:4989)
- at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
- at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2546)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3756)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
+java.lang.ClassNotFoundException: org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
+ at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
+ at java.lang.ClassLoader.loadClass(Unknown Source)
+ at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
+ at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
+ at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
+ at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
+ at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
+ at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
+ at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
+ at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:265)
+ at org.eclipse.ui.internal.PluginAction.createDelegate(PluginAction.java:122)
+ at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:275)
+ at org.eclipse.ui.internal.PluginAction.<init>(PluginAction.java:112)
+ at org.eclipse.ui.internal.PartPluginAction.<init>(PartPluginAction.java:29)
+ at org.eclipse.ui.internal.EditorPluginAction.<init>(EditorPluginAction.java:32)
+ at org.eclipse.ui.internal.ActionDescriptor.createAction(ActionDescriptor.java:262)
+ at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:176)
+ at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:103)
+ at org.eclipse.ui.internal.EditorActionBuilder.createActionDescriptor(EditorActionBuilder.java:41)
+ at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:161)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElementChildren(RegistryReader.java:133)
+ at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readExtension(RegistryReader.java:155)
+ at org.eclipse.ui.internal.registry.RegistryReader.readRegistry(RegistryReader.java:176)
+ at org.eclipse.ui.internal.PluginActionBuilder.readContributions(PluginActionBuilder.java:115)
+ at org.eclipse.ui.internal.EditorActionBuilder.readActionExtensions(EditorActionBuilder.java:58)
+ at org.eclipse.ui.internal.EditorReference.createEditorActionBars(EditorReference.java:446)
+ at org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:356)
+ at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:301)
+ at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+ at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
+ at java.lang.reflect.Method.invoke(Unknown Source)
+ at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:861)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:841)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:113)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:321)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:242)
+ at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:161)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
+ at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:141)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1115)
+ at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:98)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$6.run(PartRenderingEngine.java:520)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:505)
+ at org.eclipse.e4.ui.workbench.renderers.swt.ElementReferenceRenderer.createWidget(ElementReferenceRenderer.java:74)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveRenderer.processContents(PerspectiveRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.showTab(PerspectiveStackRenderer.java:103)
+ at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:98)
+ at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.postProcess(PerspectiveStackRenderer.java:77)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.workbench.renderers.swt.WBWRenderer.processContents(WBWRenderer.java:644)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:987)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-!ENTRY org.eclipse.wb.core 4 4 2014-12-19 13:55:42.989
-!MESSAGE Designer [1.5.2.r42x201302112024.201412191226]: java.lang.NullPointerException
+!ENTRY org.eclipse.egit.ui 2 0 2015-02-09 17:30:01.645
+!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
+Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
+The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
+this system level configuration. The Git installation location can be configured on the
+Team > Git > Configuration preference page's 'System Settings' tab.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
+
+!ENTRY org.eclipse.egit.ui 2 0 2015-02-09 17:30:01.646
+!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
+user global configuration and to define the default location to store repositories: 'C:\Users\raisaro'. If this is
+not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
+EGit might behave differently since they see different configuration options.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
+
+!ENTRY org.eclipse.ui 2 2 2015-02-09 17:35:20.599
+!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
+
+!ENTRY org.eclipse.wb.core 4 4 2015-02-09 17:38:06.928
+!MESSAGE Designer [1.5.2.r42x201302112024.201502091738]: java.lang.NullPointerException
!STACK 0
java.lang.NullPointerException
- at java.util.TreeMap.getEntry(Unknown Source)
- at java.util.TreeMap.get(Unknown Source)
- at org.eclipse.wb.internal.core.model.property.PropertyManager.getCategoryForced(PropertyManager.java:61)
- at org.eclipse.wb.internal.core.model.property.category.PropertyCategoryProviders$2.getCategory(PropertyCategoryProviders.java:43)
- at org.eclipse.wb.internal.core.model.property.category.PropertyCategoryProviders$3.getCategory(PropertyCategoryProviders.java:66)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.getCategory(PropertyTable.java:1284)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.access$3(PropertyTable.java:1283)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.getSubProperties(PropertyTable.java:1484)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.prepareChildren(PropertyTable.java:1469)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.isShowComplex(PropertyTable.java:1335)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.drawProperty(PropertyTable.java:1217)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.drawContent(PropertyTable.java:1103)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.handlePaint(PropertyTable.java:1046)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.access$6(PropertyTable.java:1005)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$3.handleEvent(PropertyTable.java:163)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
- at org.eclipse.swt.widgets.Composite.WM_PAINT(Composite.java:1564)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4585)
- at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:4989)
- at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
- at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2546)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3756)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
+ at org.eclipse.wb.core.model.JavaInfo.getPropertyList(JavaInfo.java:550)
+ at org.eclipse.wb.internal.swing.model.component.ContainerInfo.getPropertyList(ContainerInfo.java:217)
+ at org.eclipse.wb.core.model.ObjectInfo.getProperties(ObjectInfo.java:363)
+ at org.eclipse.wb.internal.core.editor.structure.property.ComponentsPropertiesPage.getProperties(ComponentsPropertiesPage.java:652)
+ at org.eclipse.wb.internal.core.editor.structure.property.ComponentsPropertiesPage.getAllProperties(ComponentsPropertiesPage.java:643)
+ at org.eclipse.wb.internal.core.editor.structure.property.ComponentsPropertiesPage.showProperties(ComponentsPropertiesPage.java:566)
+ at org.eclipse.wb.internal.core.editor.structure.property.ComponentsPropertiesPage.access$21(ComponentsPropertiesPage.java:564)
+ at org.eclipse.wb.internal.core.editor.structure.property.ComponentsPropertiesPage$12.run(ComponentsPropertiesPage.java:535)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runLog(ExecutionUtils.java:106)
+ at org.eclipse.wb.internal.core.editor.structure.property.ComponentsPropertiesPage.refreshProperties(ComponentsPropertiesPage.java:530)
+ at org.eclipse.wb.internal.core.editor.structure.property.ComponentsPropertiesPage.setSelection(ComponentsPropertiesPage.java:321)
+ at org.eclipse.wb.internal.core.editor.structure.DesignComponentsComposite$1.selectionChanged(DesignComponentsComposite.java:72)
+ at org.eclipse.wb.internal.core.utils.gef.EditPartsSelectionProvider.fireSelectionChanged(EditPartsSelectionProvider.java:111)
+ at org.eclipse.wb.internal.core.utils.gef.EditPartsSelectionProvider.access$0(EditPartsSelectionProvider.java:102)
+ at org.eclipse.wb.internal.core.utils.gef.EditPartsSelectionProvider$1.selectionChanged(EditPartsSelectionProvider.java:40)
+ at org.eclipse.wb.internal.gef.core.AbstractEditPartViewer.fireSelectionChanged(AbstractEditPartViewer.java:202)
+ at org.eclipse.wb.internal.gef.core.AbstractEditPartViewer.setSelection(AbstractEditPartViewer.java:262)
+ at org.eclipse.wb.internal.core.editor.structure.components.ComponentsTreePage.setSelection(ComponentsTreePage.java:195)
+ at org.eclipse.wb.internal.core.editor.structure.components.ComponentsTreePage.selectTreeViewer(ComponentsTreePage.java:127)
+ at org.eclipse.wb.internal.core.editor.structure.components.ComponentsTreePage.access$1(ComponentsTreePage.java:125)
+ at org.eclipse.wb.internal.core.editor.structure.components.ComponentsTreePage$2.selectionChanged(ComponentsTreePage.java:118)
+ at org.eclipse.wb.internal.gef.core.AbstractEditPartViewer.fireSelectionChanged(AbstractEditPartViewer.java:202)
+ at org.eclipse.wb.internal.gef.core.AbstractEditPartViewer.deselect(AbstractEditPartViewer.java:297)
+ at org.eclipse.wb.gef.core.EditPart.removeNotify(EditPart.java:151)
+ at org.eclipse.wb.gef.core.EditPart.removeNotify(EditPart.java:154)
+ at org.eclipse.wb.gef.core.EditPart.removeNotify(EditPart.java:154)
+ at org.eclipse.wb.gef.core.EditPart.removeNotify(EditPart.java:154)
+ at org.eclipse.wb.gef.core.EditPart.removeNotify(EditPart.java:154)
+ at org.eclipse.wb.gef.core.EditPart.removeNotify(EditPart.java:154)
+ at org.eclipse.wb.gef.core.EditPart.removeChild(EditPart.java:490)
+ at org.eclipse.wb.internal.gef.graphical.RootEditPart.setContent(RootEditPart.java:121)
+ at org.eclipse.wb.internal.gef.core.AbstractEditPartViewer.setInput(AbstractEditPartViewer.java:134)
+ at org.eclipse.wb.internal.core.editor.DesignComposite.disposeDesign(DesignComposite.java:188)
+ at org.eclipse.wb.internal.core.editor.JavaDesignComposite.disposeDesign(JavaDesignComposite.java:164)
+ at org.eclipse.wb.internal.core.editor.DesignPage.disposeAll(DesignPage.java:342)
+ at org.eclipse.wb.internal.core.editor.DesignPage.handleDesignException(DesignPage.java:641)
+ at org.eclipse.wb.internal.core.editor.DesignPage.access$8(DesignPage.java:632)
+ at org.eclipse.wb.internal.core.editor.DesignPage$9.handleException(DesignPage.java:564)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.run(ExecutionUtils.java:330)
+ at org.eclipse.wb.core.model.JavaInfo.delete(JavaInfo.java:784)
+ at org.eclipse.wb.internal.core.model.JavaInfoUtils.deleteJavaInfo(JavaInfoUtils.java:2036)
+ at org.eclipse.wb.internal.core.model.creation.ConstructorCreationSupport.delete(ConstructorCreationSupport.java:418)
+ at org.eclipse.wb.core.model.JavaInfo$7.run(JavaInfo.java:796)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.run(ExecutionUtils.java:324)
+ at org.eclipse.wb.core.model.JavaInfo.delete(JavaInfo.java:784)
+ at org.eclipse.wb.core.model.AbstractComponentInfo.delete(AbstractComponentInfo.java:215)
+ at org.eclipse.wb.internal.core.editor.actions.DeleteAction$2.executeEdit(DeleteAction.java:123)
+ at org.eclipse.wb.core.gef.command.EditCommand$1.run(EditCommand.java:52)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.run(ExecutionUtils.java:324)
+ at org.eclipse.wb.core.gef.command.EditCommand.execute(EditCommand.java:50)
+ at org.eclipse.wb.internal.gef.core.CompoundCommand.execute(CompoundCommand.java:89)
+ at org.eclipse.wb.core.gef.command.CompoundEditCommand.access$0(CompoundEditCommand.java:1)
+ at org.eclipse.wb.core.gef.command.CompoundEditCommand$1.run(CompoundEditCommand.java:47)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.run(ExecutionUtils.java:324)
+ at org.eclipse.wb.core.gef.command.CompoundEditCommand.execute(CompoundEditCommand.java:45)
+ at org.eclipse.wb.internal.gef.core.EditDomain.executeCommand(EditDomain.java:59)
+ at org.eclipse.wb.internal.core.editor.actions.DeleteAction.run(DeleteAction.java:64)
+ at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
+ at org.eclipse.jface.commands.ActionHandler.execute(ActionHandler.java:119)
+ at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:76)
+ at sun.reflect.GeneratedMethodAccessor413.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-
-!ENTRY org.eclipse.wb.core 4 4 2014-12-19 14:26:31.501
-!MESSAGE Designer [1.5.2.r42x201302112024.201412191226]: java.lang.NullPointerException
-!STACK 0
-java.lang.NullPointerException
- at java.util.TreeMap.getEntry(Unknown Source)
- at java.util.TreeMap.get(Unknown Source)
- at org.eclipse.wb.internal.core.model.property.PropertyManager.getCategoryForced(PropertyManager.java:61)
- at org.eclipse.wb.internal.core.model.property.category.PropertyCategoryProviders$2.getCategory(PropertyCategoryProviders.java:43)
- at org.eclipse.wb.internal.core.model.property.category.PropertyCategoryProviders$3.getCategory(PropertyCategoryProviders.java:66)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.getCategory(PropertyTable.java:1284)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.access$3(PropertyTable.java:1283)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.getSubProperties(PropertyTable.java:1484)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.prepareChildren(PropertyTable.java:1469)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.isShowComplex(PropertyTable.java:1335)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.drawProperty(PropertyTable.java:1217)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.drawContent(PropertyTable.java:1103)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.handlePaint(PropertyTable.java:1046)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.access$6(PropertyTable.java:1005)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$3.handleEvent(PropertyTable.java:163)
+ at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:231)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:212)
+ at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:131)
+ at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:171)
+ at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.executeCommand(KeyBindingDispatcher.java:277)
+ at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.press(KeyBindingDispatcher.java:496)
+ at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.processKeyEvent(KeyBindingDispatcher.java:547)
+ at org.eclipse.e4.ui.bindings.keys.OutOfOrderListener.handleEvent(OutOfOrderListener.java:60)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
- at org.eclipse.swt.widgets.Composite.WM_PAINT(Composite.java:1564)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4585)
- at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:4989)
+ at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1104)
+ at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1100)
+ at org.eclipse.swt.widgets.Widget.wmKeyDown(Widget.java:1823)
+ at org.eclipse.swt.widgets.Control.WM_KEYDOWN(Control.java:4892)
+ at org.eclipse.swt.widgets.Tree.WM_KEYDOWN(Tree.java:6109)
+ at org.eclipse.swt.widgets.Control.windowProc(Control.java:4560)
+ at org.eclipse.swt.widgets.Tree.windowProc(Tree.java:5977)
+ at org.eclipse.swt.widgets.Display.windowProc(Display.java:4976)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2546)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3756)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-!ENTRY org.eclipse.wb.core 4 4 2014-12-19 14:26:41.962
-!MESSAGE Designer [1.5.2.r42x201302112024.201412191226]: java.lang.NullPointerException
+!ENTRY org.eclipse.wb.core 4 4 2015-02-09 17:38:07.093
+!MESSAGE Designer [1.5.2.r42x201302112024.201502091738]: java.lang.NullPointerException
!STACK 0
java.lang.NullPointerException
- at java.util.TreeMap.getEntry(Unknown Source)
- at java.util.TreeMap.get(Unknown Source)
- at org.eclipse.wb.internal.core.model.property.PropertyManager.getCategoryForced(PropertyManager.java:61)
- at org.eclipse.wb.internal.core.model.property.category.PropertyCategoryProviders$2.getCategory(PropertyCategoryProviders.java:43)
- at org.eclipse.wb.internal.core.model.property.category.PropertyCategoryProviders$3.getCategory(PropertyCategoryProviders.java:66)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.getCategory(PropertyTable.java:1284)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.access$3(PropertyTable.java:1283)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.getSubProperties(PropertyTable.java:1484)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.prepareChildren(PropertyTable.java:1469)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.isShowComplex(PropertyTable.java:1335)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.drawProperty(PropertyTable.java:1217)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.drawContent(PropertyTable.java:1103)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.handlePaint(PropertyTable.java:1046)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.access$6(PropertyTable.java:1005)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$3.handleEvent(PropertyTable.java:163)
+ at org.eclipse.wb.core.model.JavaInfo.canDelete(JavaInfo.java:762)
+ at org.eclipse.wb.internal.core.editor.actions.DeleteAction.getCommand(DeleteAction.java:104)
+ at org.eclipse.wb.internal.core.editor.actions.CutAction.isEnabled(CutAction.java:78)
+ at org.eclipse.wb.internal.core.editor.actions.CutAction$1.selectionChanged(CutAction.java:45)
+ at org.eclipse.wb.internal.gef.core.AbstractEditPartViewer.fireSelectionChanged(AbstractEditPartViewer.java:202)
+ at org.eclipse.wb.internal.gef.core.AbstractEditPartViewer.setSelection(AbstractEditPartViewer.java:262)
+ at org.eclipse.wb.internal.core.editor.structure.components.ComponentsTreePage.setSelection(ComponentsTreePage.java:195)
+ at org.eclipse.wb.internal.core.editor.structure.components.ComponentsTreePage.selectTreeViewer(ComponentsTreePage.java:127)
+ at org.eclipse.wb.internal.core.editor.structure.components.ComponentsTreePage.access$1(ComponentsTreePage.java:125)
+ at org.eclipse.wb.internal.core.editor.structure.components.ComponentsTreePage$2.selectionChanged(ComponentsTreePage.java:118)
+ at org.eclipse.wb.internal.gef.core.AbstractEditPartViewer.fireSelectionChanged(AbstractEditPartViewer.java:202)
+ at org.eclipse.wb.internal.gef.core.AbstractEditPartViewer.deselect(AbstractEditPartViewer.java:297)
+ at org.eclipse.wb.gef.core.EditPart.removeNotify(EditPart.java:151)
+ at org.eclipse.wb.gef.core.EditPart.removeNotify(EditPart.java:154)
+ at org.eclipse.wb.gef.core.EditPart.removeNotify(EditPart.java:154)
+ at org.eclipse.wb.gef.core.EditPart.removeNotify(EditPart.java:154)
+ at org.eclipse.wb.gef.core.EditPart.removeNotify(EditPart.java:154)
+ at org.eclipse.wb.gef.core.EditPart.removeNotify(EditPart.java:154)
+ at org.eclipse.wb.gef.core.EditPart.removeChild(EditPart.java:490)
+ at org.eclipse.wb.internal.gef.graphical.RootEditPart.setContent(RootEditPart.java:121)
+ at org.eclipse.wb.internal.gef.core.AbstractEditPartViewer.setInput(AbstractEditPartViewer.java:134)
+ at org.eclipse.wb.internal.core.editor.DesignComposite.disposeDesign(DesignComposite.java:188)
+ at org.eclipse.wb.internal.core.editor.JavaDesignComposite.disposeDesign(JavaDesignComposite.java:164)
+ at org.eclipse.wb.internal.core.editor.DesignPage.disposeAll(DesignPage.java:342)
+ at org.eclipse.wb.internal.core.editor.DesignPage.handleDesignException(DesignPage.java:641)
+ at org.eclipse.wb.internal.core.editor.DesignPage.access$8(DesignPage.java:632)
+ at org.eclipse.wb.internal.core.editor.DesignPage$9.handleException(DesignPage.java:564)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.run(ExecutionUtils.java:330)
+ at org.eclipse.wb.core.model.JavaInfo.delete(JavaInfo.java:784)
+ at org.eclipse.wb.internal.core.model.JavaInfoUtils.deleteJavaInfo(JavaInfoUtils.java:2036)
+ at org.eclipse.wb.internal.core.model.creation.ConstructorCreationSupport.delete(ConstructorCreationSupport.java:418)
+ at org.eclipse.wb.core.model.JavaInfo$7.run(JavaInfo.java:796)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.run(ExecutionUtils.java:324)
+ at org.eclipse.wb.core.model.JavaInfo.delete(JavaInfo.java:784)
+ at org.eclipse.wb.core.model.AbstractComponentInfo.delete(AbstractComponentInfo.java:215)
+ at org.eclipse.wb.internal.core.editor.actions.DeleteAction$2.executeEdit(DeleteAction.java:123)
+ at org.eclipse.wb.core.gef.command.EditCommand$1.run(EditCommand.java:52)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.run(ExecutionUtils.java:324)
+ at org.eclipse.wb.core.gef.command.EditCommand.execute(EditCommand.java:50)
+ at org.eclipse.wb.internal.gef.core.CompoundCommand.execute(CompoundCommand.java:89)
+ at org.eclipse.wb.core.gef.command.CompoundEditCommand.access$0(CompoundEditCommand.java:1)
+ at org.eclipse.wb.core.gef.command.CompoundEditCommand$1.run(CompoundEditCommand.java:47)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.run(ExecutionUtils.java:324)
+ at org.eclipse.wb.core.gef.command.CompoundEditCommand.execute(CompoundEditCommand.java:45)
+ at org.eclipse.wb.internal.gef.core.EditDomain.executeCommand(EditDomain.java:59)
+ at org.eclipse.wb.internal.core.editor.actions.DeleteAction.run(DeleteAction.java:64)
+ at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
+ at org.eclipse.jface.commands.ActionHandler.execute(ActionHandler.java:119)
+ at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:76)
+ at sun.reflect.GeneratedMethodAccessor413.invoke(Unknown Source)
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
+ at java.lang.reflect.Method.invoke(Unknown Source)
+ at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:231)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:212)
+ at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:131)
+ at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:171)
+ at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.executeCommand(KeyBindingDispatcher.java:277)
+ at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.press(KeyBindingDispatcher.java:496)
+ at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.processKeyEvent(KeyBindingDispatcher.java:547)
+ at org.eclipse.e4.ui.bindings.keys.OutOfOrderListener.handleEvent(OutOfOrderListener.java:60)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
- at org.eclipse.swt.widgets.Composite.WM_PAINT(Composite.java:1564)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4585)
- at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:4989)
+ at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1104)
+ at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1100)
+ at org.eclipse.swt.widgets.Widget.wmKeyDown(Widget.java:1823)
+ at org.eclipse.swt.widgets.Control.WM_KEYDOWN(Control.java:4892)
+ at org.eclipse.swt.widgets.Tree.WM_KEYDOWN(Tree.java:6109)
+ at org.eclipse.swt.widgets.Control.windowProc(Control.java:4560)
+ at org.eclipse.swt.widgets.Tree.windowProc(Tree.java:5977)
+ at org.eclipse.swt.widgets.Display.windowProc(Display.java:4976)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2546)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3756)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-!ENTRY org.eclipse.wb.core 4 4 2014-12-19 14:35:52.695
-!MESSAGE Designer [1.5.2.r42x201302112024.201412191226]: java.lang.NullPointerException
+!ENTRY org.eclipse.wb.core 4 4 2015-02-09 17:38:07.280
+!MESSAGE Designer [1.5.2.r42x201302112024.201502091738]: java.lang.NullPointerException
!STACK 0
java.lang.NullPointerException
- at java.util.TreeMap.getEntry(Unknown Source)
- at java.util.TreeMap.get(Unknown Source)
- at org.eclipse.wb.internal.core.model.property.PropertyManager.getCategoryForced(PropertyManager.java:61)
- at org.eclipse.wb.internal.core.model.property.category.PropertyCategoryProviders$2.getCategory(PropertyCategoryProviders.java:43)
- at org.eclipse.wb.internal.core.model.property.category.PropertyCategoryProviders$3.getCategory(PropertyCategoryProviders.java:66)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.getCategory(PropertyTable.java:1284)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.access$3(PropertyTable.java:1283)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.getSubProperties(PropertyTable.java:1484)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.prepareChildren(PropertyTable.java:1469)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.isShowComplex(PropertyTable.java:1335)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.drawProperty(PropertyTable.java:1217)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.drawContent(PropertyTable.java:1103)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.handlePaint(PropertyTable.java:1046)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.access$6(PropertyTable.java:1005)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$3.handleEvent(PropertyTable.java:163)
+ at org.eclipse.wb.core.model.JavaInfo.getPropertyList(JavaInfo.java:550)
+ at org.eclipse.wb.internal.swing.model.component.ContainerInfo.getPropertyList(ContainerInfo.java:217)
+ at org.eclipse.wb.core.model.ObjectInfo.getPropertyByTitle(ObjectInfo.java:388)
+ at org.eclipse.wb.internal.swing.java6.model.SwingGroupLayoutCodeSupport.prepareLayoutCode(SwingGroupLayoutCodeSupport.java:144)
+ at org.eclipse.wb.internal.layout.group.model.GroupLayoutCodeSupport.saveLayout(GroupLayoutCodeSupport.java:232)
+ at org.eclipse.wb.internal.layout.group.model.GroupLayoutSupport.saveLayout(GroupLayoutSupport.java:209)
+ at org.eclipse.wb.internal.layout.group.model.GroupLayoutSupport.command_delete(GroupLayoutSupport.java:323)
+ at org.eclipse.wb.internal.layout.group.model.GroupLayoutSupport$1.before(GroupLayoutSupport.java:81)
+ at sun.reflect.GeneratedMethodAccessor250.invoke(Unknown Source)
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
+ at java.lang.reflect.Method.invoke(Unknown Source)
+ at org.eclipse.wb.core.model.broadcast.BroadcastSupport$1.intercept(BroadcastSupport.java:208)
+ at org.eclipse.wb.core.model.broadcast.ObjectInfoDelete$$EnhancerByCGLIB$$d58e2434.before(<generated>)
+ at org.eclipse.wb.core.model.JavaInfo$7.run(JavaInfo.java:790)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.run(ExecutionUtils.java:324)
+ at org.eclipse.wb.core.model.JavaInfo.delete(JavaInfo.java:784)
+ at org.eclipse.wb.core.model.AbstractComponentInfo.delete(AbstractComponentInfo.java:215)
+ at org.eclipse.wb.internal.core.editor.actions.DeleteAction$2.executeEdit(DeleteAction.java:123)
+ at org.eclipse.wb.core.gef.command.EditCommand$1.run(EditCommand.java:52)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.run(ExecutionUtils.java:324)
+ at org.eclipse.wb.core.gef.command.EditCommand.execute(EditCommand.java:50)
+ at org.eclipse.wb.internal.gef.core.CompoundCommand.execute(CompoundCommand.java:89)
+ at org.eclipse.wb.core.gef.command.CompoundEditCommand.access$0(CompoundEditCommand.java:1)
+ at org.eclipse.wb.core.gef.command.CompoundEditCommand$1.run(CompoundEditCommand.java:47)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.run(ExecutionUtils.java:324)
+ at org.eclipse.wb.core.gef.command.CompoundEditCommand.execute(CompoundEditCommand.java:45)
+ at org.eclipse.wb.internal.gef.core.EditDomain.executeCommand(EditDomain.java:59)
+ at org.eclipse.wb.internal.core.editor.actions.DeleteAction.run(DeleteAction.java:64)
+ at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
+ at org.eclipse.jface.commands.ActionHandler.execute(ActionHandler.java:119)
+ at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:76)
+ at sun.reflect.GeneratedMethodAccessor413.invoke(Unknown Source)
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
+ at java.lang.reflect.Method.invoke(Unknown Source)
+ at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:231)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:212)
+ at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:131)
+ at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:171)
+ at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.executeCommand(KeyBindingDispatcher.java:277)
+ at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.press(KeyBindingDispatcher.java:496)
+ at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.processKeyEvent(KeyBindingDispatcher.java:547)
+ at org.eclipse.e4.ui.bindings.keys.OutOfOrderListener.handleEvent(OutOfOrderListener.java:60)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
- at org.eclipse.swt.widgets.Composite.WM_PAINT(Composite.java:1564)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4585)
- at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:4989)
+ at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1104)
+ at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1100)
+ at org.eclipse.swt.widgets.Widget.wmKeyDown(Widget.java:1823)
+ at org.eclipse.swt.widgets.Control.WM_KEYDOWN(Control.java:4892)
+ at org.eclipse.swt.widgets.Tree.WM_KEYDOWN(Tree.java:6109)
+ at org.eclipse.swt.widgets.Control.windowProc(Control.java:4560)
+ at org.eclipse.swt.widgets.Tree.windowProc(Tree.java:5977)
+ at org.eclipse.swt.widgets.Display.windowProc(Display.java:4976)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2546)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3756)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-!ENTRY org.eclipse.wb.core 4 4 2014-12-19 14:36:13.727
-!MESSAGE Designer [1.5.2.r42x201302112024.201412191226]: java.lang.NullPointerException
+!ENTRY org.eclipse.wb.core 4 4 2015-02-09 17:38:07.358
+!MESSAGE Designer [1.5.2.r42x201302112024.201502091738]: java.lang.NullPointerException
!STACK 0
java.lang.NullPointerException
- at java.util.TreeMap.getEntry(Unknown Source)
- at java.util.TreeMap.get(Unknown Source)
- at org.eclipse.wb.internal.core.model.property.PropertyManager.getCategoryForced(PropertyManager.java:61)
- at org.eclipse.wb.internal.core.model.property.category.PropertyCategoryProviders$2.getCategory(PropertyCategoryProviders.java:43)
- at org.eclipse.wb.internal.core.model.property.category.PropertyCategoryProviders$3.getCategory(PropertyCategoryProviders.java:66)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.getCategory(PropertyTable.java:1284)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.access$3(PropertyTable.java:1283)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.getSubProperties(PropertyTable.java:1484)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.prepareChildren(PropertyTable.java:1469)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.isShowComplex(PropertyTable.java:1335)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.drawProperty(PropertyTable.java:1217)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.drawContent(PropertyTable.java:1103)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.handlePaint(PropertyTable.java:1046)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.access$6(PropertyTable.java:1005)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$3.handleEvent(PropertyTable.java:163)
+ at org.eclipse.wb.core.model.JavaInfo.getPropertyList(JavaInfo.java:550)
+ at org.eclipse.wb.internal.swing.model.component.ContainerInfo.getPropertyList(ContainerInfo.java:217)
+ at org.eclipse.wb.core.model.ObjectInfo.getPropertyByTitle(ObjectInfo.java:388)
+ at org.eclipse.wb.internal.swing.java6.model.SwingGroupLayoutCodeSupport.prepareLayoutCode(SwingGroupLayoutCodeSupport.java:144)
+ at org.eclipse.wb.internal.layout.group.model.GroupLayoutCodeSupport.saveLayout(GroupLayoutCodeSupport.java:232)
+ at org.eclipse.wb.internal.layout.group.model.GroupLayoutSupport.saveLayout(GroupLayoutSupport.java:209)
+ at org.eclipse.wb.internal.layout.group.model.GroupLayoutSupport.command_delete(GroupLayoutSupport.java:323)
+ at org.eclipse.wb.internal.layout.group.model.GroupLayoutSupport$1.before(GroupLayoutSupport.java:81)
+ at sun.reflect.GeneratedMethodAccessor250.invoke(Unknown Source)
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
+ at java.lang.reflect.Method.invoke(Unknown Source)
+ at org.eclipse.wb.core.model.broadcast.BroadcastSupport$1.intercept(BroadcastSupport.java:208)
+ at org.eclipse.wb.core.model.broadcast.ObjectInfoDelete$$EnhancerByCGLIB$$d58e2434.before(<generated>)
+ at org.eclipse.wb.core.model.JavaInfo$7.run(JavaInfo.java:790)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.run(ExecutionUtils.java:324)
+ at org.eclipse.wb.core.model.JavaInfo.delete(JavaInfo.java:784)
+ at org.eclipse.wb.core.model.AbstractComponentInfo.delete(AbstractComponentInfo.java:215)
+ at org.eclipse.wb.internal.core.editor.actions.DeleteAction$2.executeEdit(DeleteAction.java:123)
+ at org.eclipse.wb.core.gef.command.EditCommand$1.run(EditCommand.java:52)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.run(ExecutionUtils.java:324)
+ at org.eclipse.wb.core.gef.command.EditCommand.execute(EditCommand.java:50)
+ at org.eclipse.wb.internal.gef.core.CompoundCommand.execute(CompoundCommand.java:89)
+ at org.eclipse.wb.core.gef.command.CompoundEditCommand.access$0(CompoundEditCommand.java:1)
+ at org.eclipse.wb.core.gef.command.CompoundEditCommand$1.run(CompoundEditCommand.java:47)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.run(ExecutionUtils.java:324)
+ at org.eclipse.wb.core.gef.command.CompoundEditCommand.execute(CompoundEditCommand.java:45)
+ at org.eclipse.wb.internal.gef.core.EditDomain.executeCommand(EditDomain.java:59)
+ at org.eclipse.wb.internal.core.editor.actions.DeleteAction.run(DeleteAction.java:64)
+ at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
+ at org.eclipse.jface.commands.ActionHandler.execute(ActionHandler.java:119)
+ at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:76)
+ at sun.reflect.GeneratedMethodAccessor413.invoke(Unknown Source)
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
+ at java.lang.reflect.Method.invoke(Unknown Source)
+ at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:231)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:212)
+ at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:131)
+ at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:171)
+ at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.executeCommand(KeyBindingDispatcher.java:277)
+ at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.press(KeyBindingDispatcher.java:496)
+ at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.processKeyEvent(KeyBindingDispatcher.java:547)
+ at org.eclipse.e4.ui.bindings.keys.OutOfOrderListener.handleEvent(OutOfOrderListener.java:60)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
- at org.eclipse.swt.widgets.Composite.WM_PAINT(Composite.java:1564)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4585)
- at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:4989)
+ at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1104)
+ at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1100)
+ at org.eclipse.swt.widgets.Widget.wmKeyDown(Widget.java:1823)
+ at org.eclipse.swt.widgets.Control.WM_KEYDOWN(Control.java:4892)
+ at org.eclipse.swt.widgets.Tree.WM_KEYDOWN(Tree.java:6109)
+ at org.eclipse.swt.widgets.Control.windowProc(Control.java:4560)
+ at org.eclipse.swt.widgets.Tree.windowProc(Tree.java:5977)
+ at org.eclipse.swt.widgets.Display.windowProc(Display.java:4976)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2546)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3756)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-!ENTRY org.eclipse.wb.core 4 4 2014-12-19 14:37:05.524
-!MESSAGE Designer [1.5.2.r42x201302112024.201412191226]: java.lang.NullPointerException
+!ENTRY org.eclipse.wb.core 4 4 2015-02-09 17:43:05.055
+!MESSAGE Designer [1.5.2.r42x201302112024.201502091738]: BoxLayout can't be shared
!STACK 0
-java.lang.NullPointerException
- at java.util.TreeMap.getEntry(Unknown Source)
- at java.util.TreeMap.get(Unknown Source)
- at org.eclipse.wb.internal.core.model.property.PropertyManager.getCategoryForced(PropertyManager.java:61)
- at org.eclipse.wb.internal.core.model.property.category.PropertyCategoryProviders$2.getCategory(PropertyCategoryProviders.java:43)
- at org.eclipse.wb.internal.core.model.property.category.PropertyCategoryProviders$3.getCategory(PropertyCategoryProviders.java:66)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.getCategory(PropertyTable.java:1284)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.access$3(PropertyTable.java:1283)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.getSubProperties(PropertyTable.java:1484)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.prepareChildren(PropertyTable.java:1469)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.isShowComplex(PropertyTable.java:1335)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.drawProperty(PropertyTable.java:1217)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.drawContent(PropertyTable.java:1103)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.handlePaint(PropertyTable.java:1046)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.access$6(PropertyTable.java:1005)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$3.handleEvent(PropertyTable.java:163)
+java.awt.AWTError: BoxLayout can't be shared
+ at javax.swing.BoxLayout.checkContainer(Unknown Source)
+ at javax.swing.BoxLayout.invalidateLayout(Unknown Source)
+ at java.awt.Container.invalidate(Unknown Source)
+ at java.awt.Component.addNotify(Unknown Source)
+ at java.awt.Container.addNotify(Unknown Source)
+ at javax.swing.JComponent.addNotify(Unknown Source)
+ at java.awt.Container.addNotify(Unknown Source)
+ at javax.swing.JComponent.addNotify(Unknown Source)
+ at java.awt.Container.addNotify(Unknown Source)
+ at javax.swing.JComponent.addNotify(Unknown Source)
+ at java.awt.Container.addNotify(Unknown Source)
+ at javax.swing.JComponent.addNotify(Unknown Source)
+ at java.awt.Container.addNotify(Unknown Source)
+ at javax.swing.JComponent.addNotify(Unknown Source)
+ at java.awt.Container.addNotify(Unknown Source)
+ at javax.swing.JComponent.addNotify(Unknown Source)
+ at java.awt.Container.addNotify(Unknown Source)
+ at javax.swing.JComponent.addNotify(Unknown Source)
+ at java.awt.Container.addNotify(Unknown Source)
+ at javax.swing.JComponent.addNotify(Unknown Source)
+ at java.awt.Container.addNotify(Unknown Source)
+ at javax.swing.JComponent.addNotify(Unknown Source)
+ at javax.swing.JRootPane.addNotify(Unknown Source)
+ at java.awt.Container.addNotify(Unknown Source)
+ at java.awt.Window.addNotify(Unknown Source)
+ at java.awt.Frame.addNotify(Unknown Source)
+ at org.eclipse.wb.internal.swing.model.component.top.WindowTopBoundsSupport.apply(WindowTopBoundsSupport.java:65)
+ at org.eclipse.wb.core.model.AbstractComponentInfo.refresh_afterCreate(AbstractComponentInfo.java:241)
+ at org.eclipse.wb.core.model.ObjectInfo.refreshCreate0(ObjectInfo.java:552)
+ at org.eclipse.wb.core.model.ObjectInfo.access$0(ObjectInfo.java:546)
+ at org.eclipse.wb.core.model.ObjectInfo$7$1.run(ObjectInfo.java:527)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:145)
+ at org.eclipse.wb.core.model.ObjectInfo$7.run(ObjectInfo.java:525)
+ at org.eclipse.wb.internal.swing.utils.SwingUtils$2.run(SwingUtils.java:76)
+ at java.awt.event.InvocationEvent.dispatch(Unknown Source)
+ at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
+ at java.awt.EventQueue.access$500(Unknown Source)
+ at java.awt.EventQueue$3.run(Unknown Source)
+ at java.awt.EventQueue$3.run(Unknown Source)
+ at java.security.AccessController.doPrivileged(Native Method)
+ at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
+ at java.awt.EventQueue.dispatchEvent(Unknown Source)
+ at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
+ at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
+ at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
+ at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
+ at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
+ at java.awt.EventDispatchThread.run(Unknown Source)
+
+!ENTRY org.eclipse.ui 4 0 2015-02-09 17:43:05.062
+!MESSAGE Unhandled event loop exception
+!STACK 0
+java.lang.reflect.UndeclaredThrowableException
+ at com.sun.proxy.$Proxy14.mouseUp(Unknown Source)
+ at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:220)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
- at org.eclipse.swt.widgets.Composite.WM_PAINT(Composite.java:1564)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4585)
- at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:4989)
- at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
- at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2546)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3756)
+ at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
+ at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
+Caused by: java.lang.reflect.InvocationTargetException
+ at sun.reflect.GeneratedMethodAccessor276.invoke(Unknown Source)
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
+ at java.lang.reflect.Method.invoke(Unknown Source)
+ at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
+ ... 28 more
+Caused by: org.eclipse.core.runtime.AssertionFailedException: null argument:
+ at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:85)
+ at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:73)
+ at org.eclipse.wb.internal.gef.core.AbstractEditPartViewer.setSelection(AbstractEditPartViewer.java:249)
+ at org.eclipse.wb.gef.core.tools.PasteTool.selectAddedObjects(PasteTool.java:78)
+ at org.eclipse.wb.gef.core.tools.AbstractCreationTool.handleButtonUp(AbstractCreationTool.java:63)
+ at org.eclipse.wb.gef.core.tools.Tool.mouseUp(Tool.java:395)
+ at org.eclipse.wb.internal.gef.core.EditDomain.mouseUp(EditDomain.java:255)
+ at org.eclipse.wb.internal.gef.graphical.EditEventManager.mouseUp(EditEventManager.java:149)
+ ... 32 more
-!ENTRY org.eclipse.wb.core 4 4 2014-12-19 14:37:59.055
-!MESSAGE Designer [1.5.2.r42x201302112024.201412191226]: java.lang.NullPointerException
+!ENTRY org.eclipse.wb.core 4 4 2015-02-09 17:43:15.651
+!MESSAGE Designer [1.5.2.r42x201302112024.201502091738]: BoxLayout can't be shared
+!STACK 0
+java.awt.AWTError: BoxLayout can't be shared
+ at javax.swing.BoxLayout.checkContainer(Unknown Source)
+ at javax.swing.BoxLayout.invalidateLayout(Unknown Source)
+ at java.awt.Container.invalidate(Unknown Source)
+ at java.awt.Component.addNotify(Unknown Source)
+ at java.awt.Container.addNotify(Unknown Source)
+ at javax.swing.JComponent.addNotify(Unknown Source)
+ at java.awt.Container.addNotify(Unknown Source)
+ at javax.swing.JComponent.addNotify(Unknown Source)
+ at java.awt.Container.addNotify(Unknown Source)
+ at javax.swing.JComponent.addNotify(Unknown Source)
+ at java.awt.Container.addNotify(Unknown Source)
+ at javax.swing.JComponent.addNotify(Unknown Source)
+ at java.awt.Container.addNotify(Unknown Source)
+ at javax.swing.JComponent.addNotify(Unknown Source)
+ at java.awt.Container.addNotify(Unknown Source)
+ at javax.swing.JComponent.addNotify(Unknown Source)
+ at java.awt.Container.addNotify(Unknown Source)
+ at javax.swing.JComponent.addNotify(Unknown Source)
+ at java.awt.Container.addNotify(Unknown Source)
+ at javax.swing.JComponent.addNotify(Unknown Source)
+ at java.awt.Container.addNotify(Unknown Source)
+ at javax.swing.JComponent.addNotify(Unknown Source)
+ at javax.swing.JRootPane.addNotify(Unknown Source)
+ at java.awt.Container.addNotify(Unknown Source)
+ at java.awt.Window.addNotify(Unknown Source)
+ at java.awt.Frame.addNotify(Unknown Source)
+ at org.eclipse.wb.internal.swing.model.component.top.WindowTopBoundsSupport.apply(WindowTopBoundsSupport.java:65)
+ at org.eclipse.wb.core.model.AbstractComponentInfo.refresh_afterCreate(AbstractComponentInfo.java:241)
+ at org.eclipse.wb.core.model.ObjectInfo.refreshCreate0(ObjectInfo.java:552)
+ at org.eclipse.wb.core.model.ObjectInfo.access$0(ObjectInfo.java:546)
+ at org.eclipse.wb.core.model.ObjectInfo$7$1.run(ObjectInfo.java:527)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:145)
+ at org.eclipse.wb.core.model.ObjectInfo$7.run(ObjectInfo.java:525)
+ at org.eclipse.wb.internal.swing.utils.SwingUtils$2.run(SwingUtils.java:76)
+ at java.awt.event.InvocationEvent.dispatch(Unknown Source)
+ at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
+ at java.awt.EventQueue.access$500(Unknown Source)
+ at java.awt.EventQueue$3.run(Unknown Source)
+ at java.awt.EventQueue$3.run(Unknown Source)
+ at java.security.AccessController.doPrivileged(Native Method)
+ at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
+ at java.awt.EventQueue.dispatchEvent(Unknown Source)
+ at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
+ at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
+ at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
+ at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
+ at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
+ at java.awt.EventDispatchThread.run(Unknown Source)
+
+!ENTRY org.eclipse.ui 4 0 2015-02-09 17:43:15.657
+!MESSAGE Unhandled event loop exception
!STACK 0
-java.lang.NullPointerException
- at java.util.TreeMap.getEntry(Unknown Source)
- at java.util.TreeMap.get(Unknown Source)
- at org.eclipse.wb.internal.core.model.property.PropertyManager.getCategoryForced(PropertyManager.java:61)
- at org.eclipse.wb.internal.core.model.property.category.PropertyCategoryProviders$2.getCategory(PropertyCategoryProviders.java:43)
- at org.eclipse.wb.internal.core.model.property.category.PropertyCategoryProviders$3.getCategory(PropertyCategoryProviders.java:66)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.getCategory(PropertyTable.java:1284)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.access$3(PropertyTable.java:1283)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.getSubProperties(PropertyTable.java:1484)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.prepareChildren(PropertyTable.java:1469)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.isShowComplex(PropertyTable.java:1335)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.drawProperty(PropertyTable.java:1217)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.drawContent(PropertyTable.java:1103)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.handlePaint(PropertyTable.java:1046)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.access$6(PropertyTable.java:1005)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$3.handleEvent(PropertyTable.java:163)
+java.lang.reflect.UndeclaredThrowableException
+ at com.sun.proxy.$Proxy14.mouseUp(Unknown Source)
+ at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:220)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
- at org.eclipse.swt.widgets.Composite.WM_PAINT(Composite.java:1564)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4585)
- at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:4989)
- at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
- at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2546)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3756)
+ at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
+ at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
+Caused by: java.lang.reflect.InvocationTargetException
+ at sun.reflect.GeneratedMethodAccessor276.invoke(Unknown Source)
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
+ at java.lang.reflect.Method.invoke(Unknown Source)
+ at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
+ ... 28 more
+Caused by: org.eclipse.core.runtime.AssertionFailedException: null argument:
+ at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:85)
+ at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:73)
+ at org.eclipse.wb.internal.gef.core.AbstractEditPartViewer.setSelection(AbstractEditPartViewer.java:249)
+ at org.eclipse.wb.gef.core.tools.PasteTool.selectAddedObjects(PasteTool.java:78)
+ at org.eclipse.wb.gef.core.tools.AbstractCreationTool.handleButtonUp(AbstractCreationTool.java:63)
+ at org.eclipse.wb.gef.core.tools.Tool.mouseUp(Tool.java:395)
+ at org.eclipse.wb.internal.gef.core.EditDomain.mouseUp(EditDomain.java:255)
+ at org.eclipse.wb.internal.gef.graphical.EditEventManager.mouseUp(EditEventManager.java:149)
+ ... 32 more
+!SESSION 2015-02-10 09:29:52.589 -----------------------------------------------
+eclipse.buildId=M20130204-1200
+java.version=1.8.0_31
+java.vendor=Oracle Corporation
+BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
+Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
+Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
+
+!ENTRY org.eclipse.ui 4 4 2015-02-10 09:30:03.370
+!MESSAGE Could not create action delegate for id: org.eclipse.jdt.debug.ui.actions.ManageBreakpointRulerAction
-!ENTRY org.eclipse.wb.core 4 4 2014-12-19 14:38:06.152
-!MESSAGE Designer [1.5.2.r42x201302112024.201412191226]: java.lang.NullPointerException
+!ENTRY org.eclipse.equinox.registry 4 1 2015-02-10 09:30:03.424
+!MESSAGE Plug-in org.eclipse.wb.core.java was unable to load class org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate.
!STACK 0
-java.lang.NullPointerException
- at java.util.TreeMap.getEntry(Unknown Source)
- at java.util.TreeMap.get(Unknown Source)
- at org.eclipse.wb.internal.core.model.property.PropertyManager.getCategoryForced(PropertyManager.java:61)
- at org.eclipse.wb.internal.core.model.property.category.PropertyCategoryProviders$2.getCategory(PropertyCategoryProviders.java:43)
- at org.eclipse.wb.internal.core.model.property.category.PropertyCategoryProviders$3.getCategory(PropertyCategoryProviders.java:66)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.getCategory(PropertyTable.java:1284)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.access$3(PropertyTable.java:1283)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.getSubProperties(PropertyTable.java:1484)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.prepareChildren(PropertyTable.java:1469)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.isShowComplex(PropertyTable.java:1335)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.drawProperty(PropertyTable.java:1217)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.drawContent(PropertyTable.java:1103)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.handlePaint(PropertyTable.java:1046)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.access$6(PropertyTable.java:1005)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$3.handleEvent(PropertyTable.java:163)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
- at org.eclipse.swt.widgets.Composite.WM_PAINT(Composite.java:1564)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4585)
- at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:4989)
- at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
- at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2546)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3756)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
+java.lang.ClassNotFoundException: org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
+ at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
+ at java.lang.ClassLoader.loadClass(Unknown Source)
+ at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
+ at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
+ at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
+ at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
+ at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
+ at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
+ at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
+ at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:265)
+ at org.eclipse.ui.internal.PluginAction.createDelegate(PluginAction.java:122)
+ at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:275)
+ at org.eclipse.ui.internal.PluginAction.<init>(PluginAction.java:112)
+ at org.eclipse.ui.internal.PartPluginAction.<init>(PartPluginAction.java:29)
+ at org.eclipse.ui.internal.EditorPluginAction.<init>(EditorPluginAction.java:32)
+ at org.eclipse.ui.internal.ActionDescriptor.createAction(ActionDescriptor.java:262)
+ at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:176)
+ at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:103)
+ at org.eclipse.ui.internal.EditorActionBuilder.createActionDescriptor(EditorActionBuilder.java:41)
+ at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:161)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElementChildren(RegistryReader.java:133)
+ at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readExtension(RegistryReader.java:155)
+ at org.eclipse.ui.internal.registry.RegistryReader.readRegistry(RegistryReader.java:176)
+ at org.eclipse.ui.internal.PluginActionBuilder.readContributions(PluginActionBuilder.java:115)
+ at org.eclipse.ui.internal.EditorActionBuilder.readActionExtensions(EditorActionBuilder.java:58)
+ at org.eclipse.ui.internal.EditorReference.createEditorActionBars(EditorReference.java:446)
+ at org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:356)
+ at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:301)
+ at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+ at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
+ at java.lang.reflect.Method.invoke(Unknown Source)
+ at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:861)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:841)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:113)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:321)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:242)
+ at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:161)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
+ at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:141)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1115)
+ at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:98)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$6.run(PartRenderingEngine.java:520)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:505)
+ at org.eclipse.e4.ui.workbench.renderers.swt.ElementReferenceRenderer.createWidget(ElementReferenceRenderer.java:74)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveRenderer.processContents(PerspectiveRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.showTab(PerspectiveStackRenderer.java:103)
+ at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:98)
+ at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.postProcess(PerspectiveStackRenderer.java:77)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.workbench.renderers.swt.WBWRenderer.processContents(WBWRenderer.java:644)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:987)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-!ENTRY org.eclipse.wb.core 4 4 2014-12-19 14:38:33.938
-!MESSAGE Designer [1.5.2.r42x201302112024.201412191226]: java.lang.NullPointerException
-!STACK 0
-java.lang.NullPointerException
- at java.util.TreeMap.getEntry(Unknown Source)
- at java.util.TreeMap.get(Unknown Source)
- at org.eclipse.wb.internal.core.model.property.PropertyManager.getCategoryForced(PropertyManager.java:61)
- at org.eclipse.wb.internal.core.model.property.category.PropertyCategoryProviders$2.getCategory(PropertyCategoryProviders.java:43)
- at org.eclipse.wb.internal.core.model.property.category.PropertyCategoryProviders$3.getCategory(PropertyCategoryProviders.java:66)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.getCategory(PropertyTable.java:1284)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.access$3(PropertyTable.java:1283)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.getSubProperties(PropertyTable.java:1484)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.prepareChildren(PropertyTable.java:1469)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.isShowComplex(PropertyTable.java:1335)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.drawProperty(PropertyTable.java:1217)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.drawContent(PropertyTable.java:1103)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.handlePaint(PropertyTable.java:1046)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.access$6(PropertyTable.java:1005)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$3.handleEvent(PropertyTable.java:163)
+!ENTRY org.eclipse.egit.ui 2 0 2015-02-10 09:30:11.938
+!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
+Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
+The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
+this system level configuration. The Git installation location can be configured on the
+Team > Git > Configuration preference page's 'System Settings' tab.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
+
+!ENTRY org.eclipse.egit.ui 2 0 2015-02-10 09:30:11.940
+!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
+user global configuration and to define the default location to store repositories: 'C:\Users\raisaro'. If this is
+not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
+EGit might behave differently since they see different configuration options.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
+
+!ENTRY org.eclipse.wb.core 4 4 2015-02-10 10:37:49.543
+!MESSAGE Designer [1.5.2.r42x201302112024.201502101037]: 313 (Exception during 'super' constructor evaluation). JFrame() {} java.lang.NullPointerException
+ at java.beans.MethodRef.get(Unknown Source)
+ at java.beans.PropertyDescriptor.getWriteMethod(Unknown Source)
+!STACK 0
+org.eclipse.wb.internal.core.utils.exception.DesignerException: 313 (Exception during 'super' constructor evaluation). JFrame() {} java.lang.NullPointerException
+ at java.beans.MethodRef.get(Unknown Source)
+ at java.beans.PropertyDescriptor.getWriteMethod(Unknown Source)
+ at org.eclipse.wb.internal.core.model.creation.ThisCreationSupport.create(ThisCreationSupport.java:275)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluateJavaInfoUsingCreationSupport(JavaInfoEvaluationHelper.java:642)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.addJavaInfo(JavaInfoParser.java:1261)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:253)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$9(JavaInfoParser.java:238)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:153)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:1)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:159)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:151)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:534)
+ at org.eclipse.wb.internal.core.editor.DesignPage.access$9(DesignPage.java:522)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8$1.run(DesignPage.java:449)
+ at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
+ at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
+ at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8.run(DesignPage.java:446)
+ at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
+ at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
+ at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF_withProgress(DesignPage.java:465)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:415)
+ at org.eclipse.wb.internal.core.editor.UndoManager.refreshDesignerEditor(UndoManager.java:381)
+ at org.eclipse.wb.internal.core.editor.UndoManager.activate(UndoManager.java:90)
+ at org.eclipse.wb.internal.core.editor.DesignPage.handleActiveState_True(DesignPage.java:263)
+ at org.eclipse.wb.internal.core.editor.DesignPage.handleActiveState(DesignPage.java:241)
+ at org.eclipse.wb.internal.core.editor.multi.DefaultMultiMode.showPage(DefaultMultiMode.java:125)
+ at org.eclipse.wb.internal.core.editor.multi.DefaultMultiMode$1.widgetSelected(DefaultMultiMode.java:63)
+ at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
- at org.eclipse.swt.widgets.Composite.WM_PAINT(Composite.java:1564)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4585)
- at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:4989)
- at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
- at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2546)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3756)
+ at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:774)
+ at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3028)
+ at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1749)
+ at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:278)
+ at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
+ at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
+ at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
+ at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
+Caused by: java.lang.NullPointerException
+ at java.beans.MethodRef.get(Unknown Source)
+ at java.beans.PropertyDescriptor.getWriteMethod(Unknown Source)
+ at org.eclipse.wb.internal.core.model.JavaInfoUtils.addExposedChildred_Method(JavaInfoUtils.java:447)
+ at org.eclipse.wb.internal.core.model.JavaInfoUtils.addExposedChildren(JavaInfoUtils.java:429)
+ at org.eclipse.wb.internal.swing.model.component.ComponentInfo.createExposedChildren(ComponentInfo.java:109)
+ at org.eclipse.wb.internal.swing.model.component.ContainerInfo.createExposedChildren(ContainerInfo.java:143)
+ at org.eclipse.wb.core.model.JavaInfo.initialize(JavaInfo.java:419)
+ at org.eclipse.wb.internal.swing.model.component.ContainerInfo.initialize(ContainerInfo.java:114)
+ at org.eclipse.wb.core.model.JavaInfo.setObject(JavaInfo.java:1267)
+ at org.eclipse.wb.internal.core.model.creation.ThisCreationSupport.create(ThisCreationSupport.java:269)
+ ... 61 more
-!ENTRY org.eclipse.wb.core 4 4 2014-12-19 14:47:17.424
-!MESSAGE Designer [1.5.2.r42x201302112024.201412191226]: java.lang.NullPointerException
+!ENTRY org.eclipse.wb.core 4 4 2015-02-10 10:37:51.802
+!MESSAGE Designer [1.5.2.r42x201302112024.201502101037]: new javax.swing.JPanel()
!STACK 0
-java.lang.NullPointerException
- at java.util.TreeMap.getEntry(Unknown Source)
- at java.util.TreeMap.get(Unknown Source)
- at org.eclipse.wb.internal.core.model.property.PropertyManager.getCategoryForced(PropertyManager.java:61)
- at org.eclipse.wb.internal.core.model.property.category.PropertyCategoryProviders$2.getCategory(PropertyCategoryProviders.java:43)
- at org.eclipse.wb.internal.core.model.property.category.PropertyCategoryProviders$3.getCategory(PropertyCategoryProviders.java:66)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.getCategory(PropertyTable.java:1284)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.access$3(PropertyTable.java:1283)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.getSubProperties(PropertyTable.java:1484)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.prepareChildren(PropertyTable.java:1469)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.isShowComplex(PropertyTable.java:1335)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.drawProperty(PropertyTable.java:1217)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.drawContent(PropertyTable.java:1103)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.handlePaint(PropertyTable.java:1046)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.access$6(PropertyTable.java:1005)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$3.handleEvent(PropertyTable.java:163)
+java.lang.Error: new javax.swing.JPanel()
+ at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate(AstEvaluationEngine.java:71)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluateExpression(JavaInfoEvaluationHelper.java:630)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluate(JavaInfoEvaluationHelper.java:502)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.evaluateNode(JavaInfoParser.java:1309)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$1(JavaInfoParser.java:1300)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor$3.run(JavaInfoParser.java:602)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runRethrow(ExecutionUtils.java:119)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor.postVisit(JavaInfoParser.java:592)
+ at sun.reflect.GeneratedMethodAccessor35.invoke(Unknown Source)
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
+ at java.lang.reflect.Method.invoke(Unknown Source)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:399)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$16fd4f51.postVisit(<generated>)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2517)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.Assignment.accept0(Assignment.java:312)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.access$1(ExecutionFlowUtils.java:235)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.endVisit(ExecutionFlowUtils.java:442)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:391)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$16fd4f51.endVisit(<generated>)
+ at org.eclipse.jdt.core.dom.MethodInvocation.accept0(MethodInvocation.java:247)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:343)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:228)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:191)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parseRootMethods(JavaInfoParser.java:312)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:268)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$9(JavaInfoParser.java:238)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:153)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:1)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:159)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:151)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:534)
+ at org.eclipse.wb.internal.core.editor.DesignPage.access$9(DesignPage.java:522)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8$1.run(DesignPage.java:449)
+ at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
+ at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
+ at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8.run(DesignPage.java:446)
+ at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
+ at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
+ at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF_withProgress(DesignPage.java:465)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:415)
+ at org.eclipse.wb.internal.core.editor.UndoManager.refreshDesignerEditor(UndoManager.java:381)
+ at org.eclipse.wb.internal.core.editor.DesignPage.refreshGEF(DesignPage.java:392)
+ at org.eclipse.wb.internal.core.editor.actions.RefreshAction.run(RefreshAction.java:46)
+ at org.eclipse.wb.internal.core.editor.actions.DesignPageAction.run(DesignPageAction.java:34)
+ at org.eclipse.wb.internal.core.editor.errors.JavaExceptionComposite.doRefresh(JavaExceptionComposite.java:87)
+ at org.eclipse.wb.internal.core.editor.errors.ExceptionComposite$3.widgetSelected(ExceptionComposite.java:129)
+ at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
- at org.eclipse.swt.widgets.Composite.WM_PAINT(Composite.java:1564)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4585)
- at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:4989)
- at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
- at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2546)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3756)
+ at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
+ at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
+Caused by: java.lang.NullPointerException
+ at java.beans.MethodRef.get(Unknown Source)
+ at java.beans.PropertyDescriptor.getWriteMethod(Unknown Source)
+ at org.eclipse.wb.internal.core.model.JavaInfoUtils.addExposedChildred_Method(JavaInfoUtils.java:447)
+ at org.eclipse.wb.internal.core.model.JavaInfoUtils.addExposedChildren(JavaInfoUtils.java:429)
+ at org.eclipse.wb.internal.swing.model.component.ComponentInfo.createExposedChildren(ComponentInfo.java:109)
+ at org.eclipse.wb.internal.swing.model.component.ContainerInfo.createExposedChildren(ContainerInfo.java:143)
+ at org.eclipse.wb.core.model.JavaInfo.initialize(JavaInfo.java:419)
+ at org.eclipse.wb.internal.swing.model.component.ContainerInfo.initialize(ContainerInfo.java:114)
+ at org.eclipse.wb.core.model.JavaInfo.setObject(JavaInfo.java:1267)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper$3.evaluationSuccessful(JavaInfoEvaluationHelper.java:271)
+ at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate0(AstEvaluationEngine.java:179)
+ at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate(AstEvaluationEngine.java:61)
+ ... 96 more
-!ENTRY org.eclipse.wb.core 4 4 2014-12-19 14:47:25.792
-!MESSAGE Designer [1.5.2.r42x201302112024.201412191226]: java.lang.NullPointerException
+!ENTRY org.eclipse.wb.core 4 4 2015-02-10 10:37:52.804
+!MESSAGE Designer [1.5.2.r42x201302112024.201502101037]: new javax.swing.JPanel()
!STACK 0
-java.lang.NullPointerException
- at java.util.TreeMap.getEntry(Unknown Source)
- at java.util.TreeMap.get(Unknown Source)
- at org.eclipse.wb.internal.core.model.property.PropertyManager.getCategoryForced(PropertyManager.java:61)
- at org.eclipse.wb.internal.core.model.property.category.PropertyCategoryProviders$2.getCategory(PropertyCategoryProviders.java:43)
- at org.eclipse.wb.internal.core.model.property.category.PropertyCategoryProviders$3.getCategory(PropertyCategoryProviders.java:66)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.getCategory(PropertyTable.java:1284)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.access$3(PropertyTable.java:1283)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.getSubProperties(PropertyTable.java:1484)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.prepareChildren(PropertyTable.java:1469)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.isShowComplex(PropertyTable.java:1335)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.drawProperty(PropertyTable.java:1217)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.drawContent(PropertyTable.java:1103)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.handlePaint(PropertyTable.java:1046)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.access$6(PropertyTable.java:1005)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$3.handleEvent(PropertyTable.java:163)
+java.lang.Error: new javax.swing.JPanel()
+ at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate(AstEvaluationEngine.java:71)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluateExpression(JavaInfoEvaluationHelper.java:630)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluate(JavaInfoEvaluationHelper.java:502)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.evaluateNode(JavaInfoParser.java:1309)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$1(JavaInfoParser.java:1300)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor$3.run(JavaInfoParser.java:602)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runRethrow(ExecutionUtils.java:119)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor.postVisit(JavaInfoParser.java:592)
+ at sun.reflect.GeneratedMethodAccessor35.invoke(Unknown Source)
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
+ at java.lang.reflect.Method.invoke(Unknown Source)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:399)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$16fd4f51.postVisit(<generated>)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2517)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.Assignment.accept0(Assignment.java:312)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.access$1(ExecutionFlowUtils.java:235)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.endVisit(ExecutionFlowUtils.java:442)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:391)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$16fd4f51.endVisit(<generated>)
+ at org.eclipse.jdt.core.dom.MethodInvocation.accept0(MethodInvocation.java:247)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:343)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:228)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:191)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parseRootMethods(JavaInfoParser.java:312)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:268)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$9(JavaInfoParser.java:238)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:153)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:1)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:159)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:151)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:534)
+ at org.eclipse.wb.internal.core.editor.DesignPage.access$9(DesignPage.java:522)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8$1.run(DesignPage.java:449)
+ at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
+ at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
+ at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8.run(DesignPage.java:446)
+ at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
+ at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
+ at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF_withProgress(DesignPage.java:465)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:415)
+ at org.eclipse.wb.internal.core.editor.UndoManager.refreshDesignerEditor(UndoManager.java:381)
+ at org.eclipse.wb.internal.core.editor.DesignPage.refreshGEF(DesignPage.java:392)
+ at org.eclipse.wb.internal.core.editor.actions.RefreshAction.run(RefreshAction.java:46)
+ at org.eclipse.wb.internal.core.editor.actions.DesignPageAction.run(DesignPageAction.java:34)
+ at org.eclipse.wb.internal.core.editor.errors.JavaExceptionComposite.doRefresh(JavaExceptionComposite.java:87)
+ at org.eclipse.wb.internal.core.editor.errors.ExceptionComposite$3.widgetSelected(ExceptionComposite.java:129)
+ at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
- at org.eclipse.swt.widgets.Composite.WM_PAINT(Composite.java:1564)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4585)
- at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:4989)
- at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
- at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2546)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3756)
+ at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
+ at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
+Caused by: java.lang.NullPointerException
+ at java.beans.MethodRef.get(Unknown Source)
+ at java.beans.PropertyDescriptor.getReadMethod(Unknown Source)
+ at org.eclipse.wb.internal.core.model.JavaInfoUtils.addExposedChildred_Method(JavaInfoUtils.java:449)
+ at org.eclipse.wb.internal.core.model.JavaInfoUtils.addExposedChildren(JavaInfoUtils.java:429)
+ at org.eclipse.wb.internal.swing.model.component.ComponentInfo.createExposedChildren(ComponentInfo.java:109)
+ at org.eclipse.wb.internal.swing.model.component.ContainerInfo.createExposedChildren(ContainerInfo.java:143)
+ at org.eclipse.wb.core.model.JavaInfo.initialize(JavaInfo.java:419)
+ at org.eclipse.wb.internal.swing.model.component.ContainerInfo.initialize(ContainerInfo.java:114)
+ at org.eclipse.wb.core.model.JavaInfo.setObject(JavaInfo.java:1267)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper$3.evaluationSuccessful(JavaInfoEvaluationHelper.java:271)
+ at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate0(AstEvaluationEngine.java:179)
+ at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate(AstEvaluationEngine.java:61)
+ ... 96 more
-!ENTRY org.eclipse.wb.core 4 4 2014-12-19 14:47:32.104
-!MESSAGE Designer [1.5.2.r42x201302112024.201412191226]: java.lang.NullPointerException
+!ENTRY org.eclipse.wb.core 4 4 2015-02-10 10:37:53.697
+!MESSAGE Designer [1.5.2.r42x201302112024.201502101037]: new javax.swing.JComboBox<String>()
!STACK 0
-java.lang.NullPointerException
- at java.util.TreeMap.getEntry(Unknown Source)
- at java.util.TreeMap.get(Unknown Source)
- at org.eclipse.wb.internal.core.model.property.PropertyManager.getCategoryForced(PropertyManager.java:61)
- at org.eclipse.wb.internal.core.model.property.category.PropertyCategoryProviders$2.getCategory(PropertyCategoryProviders.java:43)
- at org.eclipse.wb.internal.core.model.property.category.PropertyCategoryProviders$3.getCategory(PropertyCategoryProviders.java:66)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.getCategory(PropertyTable.java:1284)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.access$3(PropertyTable.java:1283)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.getSubProperties(PropertyTable.java:1484)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.prepareChildren(PropertyTable.java:1469)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.isShowComplex(PropertyTable.java:1335)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.drawProperty(PropertyTable.java:1217)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.drawContent(PropertyTable.java:1103)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.handlePaint(PropertyTable.java:1046)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.access$6(PropertyTable.java:1005)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$3.handleEvent(PropertyTable.java:163)
+java.lang.Error: new javax.swing.JComboBox<String>()
+ at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate(AstEvaluationEngine.java:71)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluateExpression(JavaInfoEvaluationHelper.java:630)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluate(JavaInfoEvaluationHelper.java:502)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.evaluateNode(JavaInfoParser.java:1309)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$1(JavaInfoParser.java:1300)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor$3.run(JavaInfoParser.java:602)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runRethrow(ExecutionUtils.java:119)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor.postVisit(JavaInfoParser.java:592)
+ at sun.reflect.GeneratedMethodAccessor35.invoke(Unknown Source)
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
+ at java.lang.reflect.Method.invoke(Unknown Source)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:399)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$16fd4f51.postVisit(<generated>)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2517)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.Assignment.accept0(Assignment.java:312)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.access$1(ExecutionFlowUtils.java:235)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.endVisit(ExecutionFlowUtils.java:442)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:391)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$16fd4f51.endVisit(<generated>)
+ at org.eclipse.jdt.core.dom.MethodInvocation.accept0(MethodInvocation.java:247)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:343)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:228)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:191)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parseRootMethods(JavaInfoParser.java:312)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:268)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$9(JavaInfoParser.java:238)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:153)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:1)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:159)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:151)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:534)
+ at org.eclipse.wb.internal.core.editor.DesignPage.access$9(DesignPage.java:522)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8$1.run(DesignPage.java:449)
+ at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
+ at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
+ at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8.run(DesignPage.java:446)
+ at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
+ at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
+ at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF_withProgress(DesignPage.java:465)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:415)
+ at org.eclipse.wb.internal.core.editor.UndoManager.refreshDesignerEditor(UndoManager.java:381)
+ at org.eclipse.wb.internal.core.editor.DesignPage.refreshGEF(DesignPage.java:392)
+ at org.eclipse.wb.internal.core.editor.actions.RefreshAction.run(RefreshAction.java:46)
+ at org.eclipse.wb.internal.core.editor.actions.DesignPageAction.run(DesignPageAction.java:34)
+ at org.eclipse.wb.internal.core.editor.errors.JavaExceptionComposite.doRefresh(JavaExceptionComposite.java:87)
+ at org.eclipse.wb.internal.core.editor.errors.ExceptionComposite$3.widgetSelected(ExceptionComposite.java:129)
+ at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
- at org.eclipse.swt.widgets.Composite.WM_PAINT(Composite.java:1564)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4585)
- at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:4989)
- at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
- at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2546)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3756)
+ at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
+ at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
+Caused by: java.lang.NullPointerException
+ at java.beans.MethodRef.get(Unknown Source)
+ at java.beans.PropertyDescriptor.getWriteMethod(Unknown Source)
+ at org.eclipse.wb.internal.core.model.JavaInfoUtils.addExposedChildred_Method(JavaInfoUtils.java:447)
+ at org.eclipse.wb.internal.core.model.JavaInfoUtils.addExposedChildren(JavaInfoUtils.java:429)
+ at org.eclipse.wb.internal.swing.model.component.ComponentInfo.createExposedChildren(ComponentInfo.java:109)
+ at org.eclipse.wb.internal.swing.model.component.ContainerInfo.createExposedChildren(ContainerInfo.java:143)
+ at org.eclipse.wb.core.model.JavaInfo.initialize(JavaInfo.java:419)
+ at org.eclipse.wb.internal.swing.model.component.ContainerInfo.initialize(ContainerInfo.java:114)
+ at org.eclipse.wb.core.model.JavaInfo.setObject(JavaInfo.java:1267)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper$3.evaluationSuccessful(JavaInfoEvaluationHelper.java:271)
+ at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate0(AstEvaluationEngine.java:179)
+ at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate(AstEvaluationEngine.java:61)
+ ... 96 more
-!ENTRY org.eclipse.wb.core 4 4 2014-12-19 14:47:51.203
-!MESSAGE Designer [1.5.2.r42x201302112024.201412191226]: java.lang.NullPointerException
+!ENTRY org.eclipse.wb.core 4 4 2015-02-10 10:37:54.525
+!MESSAGE Designer [1.5.2.r42x201302112024.201502101037]: new javax.swing.JComboBox<String>()
!STACK 0
-java.lang.NullPointerException
- at java.util.TreeMap.getEntry(Unknown Source)
- at java.util.TreeMap.get(Unknown Source)
- at org.eclipse.wb.internal.core.model.property.PropertyManager.getCategoryForced(PropertyManager.java:61)
- at org.eclipse.wb.internal.core.model.property.category.PropertyCategoryProviders$2.getCategory(PropertyCategoryProviders.java:43)
- at org.eclipse.wb.internal.core.model.property.category.PropertyCategoryProviders$3.getCategory(PropertyCategoryProviders.java:66)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.getCategory(PropertyTable.java:1284)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.access$3(PropertyTable.java:1283)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.getSubProperties(PropertyTable.java:1484)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.prepareChildren(PropertyTable.java:1469)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.isShowComplex(PropertyTable.java:1335)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.drawProperty(PropertyTable.java:1217)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.drawContent(PropertyTable.java:1103)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.handlePaint(PropertyTable.java:1046)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.access$6(PropertyTable.java:1005)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$3.handleEvent(PropertyTable.java:163)
+java.lang.Error: new javax.swing.JComboBox<String>()
+ at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate(AstEvaluationEngine.java:71)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluateExpression(JavaInfoEvaluationHelper.java:630)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluate(JavaInfoEvaluationHelper.java:502)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.evaluateNode(JavaInfoParser.java:1309)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$1(JavaInfoParser.java:1300)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor$3.run(JavaInfoParser.java:602)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runRethrow(ExecutionUtils.java:119)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor.postVisit(JavaInfoParser.java:592)
+ at sun.reflect.GeneratedMethodAccessor35.invoke(Unknown Source)
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
+ at java.lang.reflect.Method.invoke(Unknown Source)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:399)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$16fd4f51.postVisit(<generated>)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2517)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.Assignment.accept0(Assignment.java:312)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.access$1(ExecutionFlowUtils.java:235)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.endVisit(ExecutionFlowUtils.java:442)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:391)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$16fd4f51.endVisit(<generated>)
+ at org.eclipse.jdt.core.dom.MethodInvocation.accept0(MethodInvocation.java:247)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:343)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:228)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:191)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parseRootMethods(JavaInfoParser.java:312)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:268)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$9(JavaInfoParser.java:238)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:153)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:1)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:159)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:151)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:534)
+ at org.eclipse.wb.internal.core.editor.DesignPage.access$9(DesignPage.java:522)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8$1.run(DesignPage.java:449)
+ at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
+ at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
+ at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8.run(DesignPage.java:446)
+ at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
+ at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
+ at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF_withProgress(DesignPage.java:465)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:415)
+ at org.eclipse.wb.internal.core.editor.UndoManager.refreshDesignerEditor(UndoManager.java:381)
+ at org.eclipse.wb.internal.core.editor.DesignPage.refreshGEF(DesignPage.java:392)
+ at org.eclipse.wb.internal.core.editor.actions.RefreshAction.run(RefreshAction.java:46)
+ at org.eclipse.wb.internal.core.editor.actions.DesignPageAction.run(DesignPageAction.java:34)
+ at org.eclipse.wb.internal.core.editor.errors.JavaExceptionComposite.doRefresh(JavaExceptionComposite.java:87)
+ at org.eclipse.wb.internal.core.editor.errors.ExceptionComposite$3.widgetSelected(ExceptionComposite.java:129)
+ at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
- at org.eclipse.swt.widgets.Composite.WM_PAINT(Composite.java:1564)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4585)
- at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:4989)
- at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
- at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2546)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3756)
+ at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
+ at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
+Caused by: java.lang.NullPointerException
+ at java.beans.MethodRef.get(Unknown Source)
+ at java.beans.PropertyDescriptor.getReadMethod(Unknown Source)
+ at org.eclipse.wb.internal.core.model.JavaInfoUtils.addExposedChildred_Method(JavaInfoUtils.java:449)
+ at org.eclipse.wb.internal.core.model.JavaInfoUtils.addExposedChildren(JavaInfoUtils.java:429)
+ at org.eclipse.wb.internal.swing.model.component.ComponentInfo.createExposedChildren(ComponentInfo.java:109)
+ at org.eclipse.wb.internal.swing.model.component.ContainerInfo.createExposedChildren(ContainerInfo.java:143)
+ at org.eclipse.wb.core.model.JavaInfo.initialize(JavaInfo.java:419)
+ at org.eclipse.wb.internal.swing.model.component.ContainerInfo.initialize(ContainerInfo.java:114)
+ at org.eclipse.wb.core.model.JavaInfo.setObject(JavaInfo.java:1267)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper$3.evaluationSuccessful(JavaInfoEvaluationHelper.java:271)
+ at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate0(AstEvaluationEngine.java:179)
+ at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate(AstEvaluationEngine.java:61)
+ ... 96 more
+
+!ENTRY org.eclipse.ui 2 2 2015-02-10 10:37:57.735
+!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
+!SESSION 2015-02-10 10:37:59.345 -----------------------------------------------
+eclipse.buildId=M20130204-1200
+java.version=1.8.0_31
+java.vendor=Oracle Corporation
+BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
+Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
+Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
-!ENTRY org.eclipse.wb.core 4 4 2014-12-19 14:47:59.358
-!MESSAGE Designer [1.5.2.r42x201302112024.201412191226]: java.lang.NullPointerException
+!ENTRY org.eclipse.ui 4 4 2015-02-10 10:38:05.982
+!MESSAGE Could not create action delegate for id: org.eclipse.jdt.debug.ui.actions.ManageBreakpointRulerAction
+
+!ENTRY org.eclipse.equinox.registry 4 1 2015-02-10 10:38:05.993
+!MESSAGE Plug-in org.eclipse.wb.core.java was unable to load class org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate.
!STACK 0
-java.lang.NullPointerException
- at java.util.TreeMap.getEntry(Unknown Source)
- at java.util.TreeMap.get(Unknown Source)
- at org.eclipse.wb.internal.core.model.property.PropertyManager.getCategoryForced(PropertyManager.java:61)
- at org.eclipse.wb.internal.core.model.property.category.PropertyCategoryProviders$2.getCategory(PropertyCategoryProviders.java:43)
- at org.eclipse.wb.internal.core.model.property.category.PropertyCategoryProviders$3.getCategory(PropertyCategoryProviders.java:66)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.getCategory(PropertyTable.java:1284)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.access$3(PropertyTable.java:1283)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.getSubProperties(PropertyTable.java:1484)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.prepareChildren(PropertyTable.java:1469)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.isShowComplex(PropertyTable.java:1335)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.drawProperty(PropertyTable.java:1217)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.drawContent(PropertyTable.java:1103)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.handlePaint(PropertyTable.java:1046)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.access$6(PropertyTable.java:1005)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$3.handleEvent(PropertyTable.java:163)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
- at org.eclipse.swt.widgets.Composite.WM_PAINT(Composite.java:1564)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4585)
- at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:4989)
- at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
- at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2546)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3756)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
+java.lang.ClassNotFoundException: org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
+ at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
+ at java.lang.ClassLoader.loadClass(Unknown Source)
+ at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
+ at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
+ at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
+ at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
+ at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
+ at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
+ at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
+ at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:265)
+ at org.eclipse.ui.internal.PluginAction.createDelegate(PluginAction.java:122)
+ at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:275)
+ at org.eclipse.ui.internal.PluginAction.<init>(PluginAction.java:112)
+ at org.eclipse.ui.internal.PartPluginAction.<init>(PartPluginAction.java:29)
+ at org.eclipse.ui.internal.EditorPluginAction.<init>(EditorPluginAction.java:32)
+ at org.eclipse.ui.internal.ActionDescriptor.createAction(ActionDescriptor.java:262)
+ at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:176)
+ at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:103)
+ at org.eclipse.ui.internal.EditorActionBuilder.createActionDescriptor(EditorActionBuilder.java:41)
+ at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:161)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElementChildren(RegistryReader.java:133)
+ at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readExtension(RegistryReader.java:155)
+ at org.eclipse.ui.internal.registry.RegistryReader.readRegistry(RegistryReader.java:176)
+ at org.eclipse.ui.internal.PluginActionBuilder.readContributions(PluginActionBuilder.java:115)
+ at org.eclipse.ui.internal.EditorActionBuilder.readActionExtensions(EditorActionBuilder.java:58)
+ at org.eclipse.ui.internal.EditorReference.createEditorActionBars(EditorReference.java:446)
+ at org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:356)
+ at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:301)
+ at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+ at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
+ at java.lang.reflect.Method.invoke(Unknown Source)
+ at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:861)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:841)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:113)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:321)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:242)
+ at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:161)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
+ at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:141)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1115)
+ at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:98)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$6.run(PartRenderingEngine.java:520)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:505)
+ at org.eclipse.e4.ui.workbench.renderers.swt.ElementReferenceRenderer.createWidget(ElementReferenceRenderer.java:74)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveRenderer.processContents(PerspectiveRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.showTab(PerspectiveStackRenderer.java:103)
+ at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:98)
+ at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.postProcess(PerspectiveStackRenderer.java:77)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.workbench.renderers.swt.WBWRenderer.processContents(WBWRenderer.java:644)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:987)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-!ENTRY org.eclipse.wb.core 4 4 2014-12-19 14:48:48.309
-!MESSAGE Designer [1.5.2.r42x201302112024.201412191226]: java.lang.NullPointerException
+!ENTRY org.eclipse.egit.ui 2 0 2015-02-10 10:38:11.298
+!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
+Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
+The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
+this system level configuration. The Git installation location can be configured on the
+Team > Git > Configuration preference page's 'System Settings' tab.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
+
+!ENTRY org.eclipse.egit.ui 2 0 2015-02-10 10:38:11.300
+!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
+user global configuration and to define the default location to store repositories: 'C:\Users\raisaro'. If this is
+not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
+EGit might behave differently since they see different configuration options.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
+
+!ENTRY org.eclipse.wb.core 4 4 2015-02-10 10:56:49.600
+!MESSAGE Designer [1.5.2.r42x201302112024.201502101056]: java.lang.reflect.InvocationTargetException
!STACK 0
-java.lang.NullPointerException
- at java.util.TreeMap.getEntry(Unknown Source)
- at java.util.TreeMap.get(Unknown Source)
- at org.eclipse.wb.internal.core.model.property.PropertyManager.getCategoryForced(PropertyManager.java:61)
- at org.eclipse.wb.internal.core.model.property.category.PropertyCategoryProviders$2.getCategory(PropertyCategoryProviders.java:43)
- at org.eclipse.wb.internal.core.model.property.category.PropertyCategoryProviders$3.getCategory(PropertyCategoryProviders.java:66)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.getCategory(PropertyTable.java:1284)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.access$3(PropertyTable.java:1283)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.getSubProperties(PropertyTable.java:1484)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.prepareChildren(PropertyTable.java:1469)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.isShowComplex(PropertyTable.java:1335)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.drawProperty(PropertyTable.java:1217)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.drawContent(PropertyTable.java:1103)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.handlePaint(PropertyTable.java:1046)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.access$6(PropertyTable.java:1005)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$3.handleEvent(PropertyTable.java:163)
+java.lang.reflect.InvocationTargetException
+ at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+ at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
+ at java.lang.reflect.Method.invoke(Unknown Source)
+ at org.eclipse.wb.internal.core.model.generic.FlowContainerConfigurable.tryDuckTyping(FlowContainerConfigurable.java:116)
+ at org.eclipse.wb.internal.core.model.generic.FlowContainerConfigurable.command_CREATE(FlowContainerConfigurable.java:79)
+ at org.eclipse.wb.internal.core.gefTree.policy.generic.FlowContainerLayoutEditPolicy.command_CREATE(FlowContainerLayoutEditPolicy.java:71)
+ at org.eclipse.wb.core.gefTree.policy.ObjectLayoutEditPolicy$1.executeEdit(ObjectLayoutEditPolicy.java:54)
+ at org.eclipse.wb.core.gef.command.EditCommand$1.run(EditCommand.java:52)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.run(ExecutionUtils.java:324)
+ at org.eclipse.wb.core.gef.command.EditCommand.execute(EditCommand.java:50)
+ at org.eclipse.wb.internal.gef.core.EditDomain.executeCommand(EditDomain.java:59)
+ at org.eclipse.wb.gef.core.tools.Tool.executeCommand(Tool.java:209)
+ at org.eclipse.wb.gef.core.tools.AbstractCreationTool.handleButtonUp(AbstractCreationTool.java:62)
+ at org.eclipse.wb.gef.core.tools.Tool.mouseUp(Tool.java:395)
+ at org.eclipse.wb.internal.gef.core.EditDomain.mouseUp(EditDomain.java:255)
+ at org.eclipse.wb.internal.gef.tree.TreeEventManager.mouseUp(TreeEventManager.java:120)
+ at sun.reflect.GeneratedMethodAccessor262.invoke(Unknown Source)
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
+ at java.lang.reflect.Method.invoke(Unknown Source)
+ at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
+ at com.sun.proxy.$Proxy13.mouseUp(Unknown Source)
+ at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:220)
+ at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
+ at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
+ at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
+ at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.waitEventLoop(ExecutionUtils.java:71)
+ at org.eclipse.wb.internal.swing.utils.SwingUtils.invokeLaterAndWait(SwingUtils.java:168)
+ at org.eclipse.wb.internal.swing.utils.SwingUtils.runLaterAndWait(SwingUtils.java:73)
+ at org.eclipse.wb.internal.swing.model.component.ComponentInfo.execRefreshOperation(ComponentInfo.java:119)
+ at org.eclipse.wb.core.model.ObjectInfo.refresh(ObjectInfo.java:482)
+ at org.eclipse.wb.internal.core.editor.structure.components.ComponentsTreePage$5.run(ComponentsTreePage.java:154)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runLog(ExecutionUtils.java:106)
+ at org.eclipse.wb.internal.core.editor.structure.components.ComponentsTreePage.selectGraphicalViewer(ComponentsTreePage.java:136)
+ at org.eclipse.wb.internal.core.editor.structure.components.ComponentsTreePage.access$0(ComponentsTreePage.java:133)
+ at org.eclipse.wb.internal.core.editor.structure.components.ComponentsTreePage$1.selectionChanged(ComponentsTreePage.java:109)
+ at org.eclipse.wb.internal.gef.core.AbstractEditPartViewer.fireSelectionChanged(AbstractEditPartViewer.java:202)
+ at org.eclipse.wb.internal.gef.core.AbstractEditPartViewer.setSelection(AbstractEditPartViewer.java:262)
+ at org.eclipse.wb.internal.gef.core.AbstractEditPartViewer.setSelection(AbstractEditPartViewer.java:193)
+ at org.eclipse.wb.internal.gef.tree.TreeViewer$1.widgetSelected(TreeViewer.java:180)
+ at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
+ at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
+ at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
+ at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
+ at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
+ at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
+ at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
+ at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
+ at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
+ at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
+ at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
+ at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
+ at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
+ at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
+ at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
+ at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
+ at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
+ at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+ at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
+ at java.lang.reflect.Method.invoke(Unknown Source)
+ at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
+ at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
+ at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
+ at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
+Caused by: org.eclipse.wb.internal.core.utils.check.AssertionFailedException: Execution flow problem. setIconImage(Toolkit.getDefaultToolkit().getImage("res/shcs_logo2_icon.png"));
+ expected, but {
+ setIconImage(Toolkit.getDefaultToolkit().getImage("res/shcs_logo2_icon.png"));
+ frame=this;
+ this.props=props;
+ this.connectorClientDB=new DBconnectorClient(props.getDbMsAccess());
+ survey_submitted=false;
+ close_trials=0;
+ try {
+ initComponents();
+ viewer=new Viewer(jScrollPane2,null);
+ viewer.setupViewer();
+ System.out.println("#of questions: " + ids.size());
+ JButton btnSubmitQuestionnaire=new JButton("Submit Questionnaire");
+ btnSubmitQuestionnaire.setFont(new Font("Tahoma",Font.BOLD,12));
+ btnSubmitQuestionnaire.addActionListener(new ActionListener(){
+ public void actionPerformed( ActionEvent arg0){
+ submitButtonActionPerformed(arg0);
+ }
+ }
+);
+ JButton btnResetQuestionnaire=new JButton("Save as PDF");
+ btnResetQuestionnaire.addActionListener(new ActionListener(){
+ public void actionPerformed( ActionEvent arg0){
+ savePDFButtonActionPerformed(arg0);
+ }
+ }
+);
+ btnResetQuestionnaire.setFont(new Font("Tahoma",Font.BOLD,12));
+ JPanel panel_button=new JPanel();
+ panel_button.setLayout(new BoxLayout(panel_button,BoxLayout.X_AXIS));
+ lblNewLabel_3=new JLabel("");
+ lblNewLabel_3.setIcon(new ImageIcon("res/location_icon.png"));
+ panel_button.add(lblNewLabel_3);
+ comboBox=new JComboBox<String>();
+ comboBox.setFont(new Font("Tahoma",Font.BOLD,12));
+ comboBox.setModel(new DefaultComboBoxModel<String>(new String[]{"Select Location"}));
+ for ( Integer id_loc : locations.keySet()) {
+ comboBox.addItem(locations.get(id_loc));
+ }
+ panel_button.add(comboBox);
+ rigidArea=Box.createRigidArea(new Dimension(10,0));
+ panel_button.add(rigidArea);
+ lblNewLabel_1=new JLabel("");
+ lblNewLabel_1.setIcon(new ImageIcon("res/submit.png"));
+ panel_button.add(lblNewLabel_1);
+ panel_button.add(btnSubmitQuestionnaire);
+ panel_button.add(Box.createRigidArea(new Dimension(10,0)));
+ lblNewLabel_2=new JLabel("");
+ lblNewLabel_2.setIcon(new ImageIcon("res/pdf.png"));
+ panel_button.add(lblNewLabel_2);
+ panel_button.add(btnResetQuestionnaire);
+ panel_button.setPreferredSize(new Dimension(211,35));
+ panel_button.validate();
+ splitPane=new JSplitPane();
+ splitPane.setOneTouchExpandable(true);
+ splitPane.setResizeWeight(0.4);
+ splitPane.setOrientation(JSplitPane.VERTICAL_SPLIT);
+ GroupLayout gl_panel=new GroupLayout(panel);
+ gl_panel.setHorizontalGroup(gl_panel.createParallelGroup(Alignment.LEADING).addGroup(gl_panel.createSequentialGroup().addGap(165).addComponent(panel_button,GroupLayout.DEFAULT_SIZE,586,Short.MAX_VALUE).addGap(242)).addGroup(gl_panel.createSequentialGroup().addContainerGap().addComponent(splitPane,GroupLayout.DEFAULT_SIZE,876,Short.MAX_VALUE).addContainerGap()));
+ gl_panel.setVerticalGroup(gl_panel.createParallelGroup(Alignment.TRAILING).addGroup(gl_panel.createSequentialGroup().addContainerGap().addComponent(splitPane,GroupLayout.DEFAULT_SIZE,600,Short.MAX_VALUE).addPreferredGap(ComponentPlacement.UNRELATED).addComponent(panel_button,GroupLayout.PREFERRED_SIZE,27,GroupLayout.PREFERRED_SIZE).addGap(11)));
+ panel_1=new JPanel();
+ panel_1.setMinimumSize(new Dimension(10,0));
+ panel_1.setBorder(new LineBorder(new Color(0,0,0),1,true));
+ panel_1.setBackground(SystemColor.menu);
+ splitPane.setLeftComponent(panel_1);
+ label_1=new JLabel("");
+ label_1.setIcon(new ImageIcon("C:\\Users\\raisaro\\workspace\\yussef\\project\\PPPClient\\res\\shcs_logo2_medium.gif"));
+ label_2=new JLabel("");
+ label_2.setIcon(new ImageIcon("C:\\Users\\raisaro\\workspace\\yussef\\project\\PPPClient\\res\\EPFL_logo.png"));
+ label_3=new JLabel("");
+ label_3.setIcon(new ImageIcon("C:\\Users\\raisaro\\workspace\\yussef\\project\\PPPClient\\res\\chuv_logo.png"));
+ label_4=new JLabel("Dear Doctor,");
+ label_4.setFont(new Font("Tahoma",Font.BOLD,14));
+ scrollPane=new JScrollPane();
+ scrollPane.setBorder(null);
+ GroupLayout gl_panel_1=new GroupLayout(panel_1);
+ gl_panel_1.setHorizontalGroup(gl_panel_1.createParallelGroup(Alignment.LEADING).addGroup(gl_panel_1.createSequentialGroup().addGap(25).addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING).addComponent(label_3).addComponent(label_2).addComponent(label_1,GroupLayout.PREFERRED_SIZE,122,GroupLayout.PREFERRED_SIZE)).addGap(10).addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING).addGroup(gl_panel_1.createSequentialGroup().addGap(10).addComponent(label_4)).addGroup(gl_panel_1.createSequentialGroup().addPreferredGap(ComponentPlacement.RELATED).addComponent(scrollPane,GroupLayout.DEFAULT_SIZE,802,Short.MAX_VALUE))).addContainerGap()));
+ gl_panel_1.setVerticalGroup(gl_panel_1.createParallelGroup(Alignment.LEADING).addGroup(gl_panel_1.createSequentialGroup().addContainerGap().addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING).addGroup(gl_panel_1.createSequentialGroup().addComponent(label_4).addPreferredGap(ComponentPlacement.UNRELATED).addComponent(scrollPane,GroupLayout.DEFAULT_SIZE,283,Short.MAX_VALUE)).addGroup(gl_panel_1.createSequentialGroup().addGap(9).addComponent(label_1,GroupLayout.PREFERRED_SIZE,96,GroupLayout.PREFERRED_SIZE).addGap(18).addComponent(label_2).addGap(28).addComponent(label_3))).addContainerGap()));
+ introduction=new JTextPane();
+ introduction.setBackground(SystemColor.control);
+ introduction.setContentType("text/html");
+ introduction.setText("You are receiving a pharmacogenetics report based on the genome of your patient. Because of its highly sensitive nature, the genetic information you are provided with is processed in a privacy-preserving way. In particular, to protect patients\u2019 genomic privacy, their genetic and clinical data are stored encrypted at the SHCS data center, and securely analyzed through a sophisticated algorithm designed and developed at EPFL [1, 2]. The actual clinical and genetic information is never revealed. Only the authorized users, such as you, can get some processed information, for example, the interpreted final result of a pharmacogenetics risk test.\r\nThis mechanism protects the data against insiders or hackers trying to illegally access patients\u2019 medical information, while still allowing authorized users to obtain the information they need.\r\n<br><br>\r\n<b>To help us better understanding the importance of genomic privacy in the medical domain, and the impact of privacy-enhancing technologies in daily clinical practice, please complete the following survey. Answers are on a scale from 1 (Strongly Disagree) to 5 (Strongly Agree).</b>\r\n<font size=\"2\">\r\n<br><br>\r\nNote: this work is part of Project #693, funded by the Swiss HIV Cohort. PIs: Prof. A. Telenti, formerly at CHUV, and Prof. J.-P. Hubaux, at EPFL.\r\n<br><br>\r\n[1] J. L. Raisaro, E. Ayday, P. J. McLaren, J.-P. Hubaux, and A. Telenti. Privacy-Preserving HIV Pharmacogenetics: A Real Use Case of Genomic Data Protection. GenoPri 2014<br>\r\n[2] E. Ayday, J. L. Raisaro, J. Rougemont, and J.-P. Hubaux. Protecting and Evaluating Genomic Privacy in Medical Tests and Personalized Medicine. WPES 2013\r\n</font>");
+ scrollPane.setViewportView(introduction);
+ panel_1.setLayout(gl_panel_1);
+ jScrollPane4=new JScrollPane();
+ jScrollPane4.setBorder(new LineBorder(new Color(0,0,0),1,true));
+ splitPane.setRightComponent(jScrollPane4);
+ jScrollPane4.setViewportView(panel_2);
+ javax.swing.SwingUtilities.invokeLater(new Runnable(){
+ public void run(){
+ jScrollPane4.getVerticalScrollBar().setValue(0);
+ }
+ }
+);
+ introduction.setCaretPosition(0);
+ panel.setLayout(gl_panel);
+ HashMap<String,ArrayList<TestName>> testsRelevantByGroup=connectorClientDB.getRelevantTestsByGroup();
+ ArrayList<String> groups=new ArrayList<String>(testsRelevantByGroup.keySet());
+ testsByName=new HashMap<String,TestName>();
+ for ( String group : groups) {
+ for ( TestName test : testsRelevantByGroup.get(group)) {
+ testsByName.put(test.getName(),test);
+ }
+ }
+ DefaultMutableTreeNode root=new DefaultMutableTreeNode("All");
+ for ( String group : groups) {
+ DefaultMutableTreeNode child=new DefaultMutableTreeNode(group);
+ root.add(child);
+ for ( TestName test : testsRelevantByGroup.get(group)) {
+ DefaultMutableTreeNode grandChild=new DefaultMutableTreeNode(test.getName());
+ child.add(grandChild);
+ }
+ }
+ jTree=new JTree(root);
+ jTree.setFont(new Font("Tahoma",Font.PLAIN,11));
+ for (int i=0; i < jTree.getRowCount(); i++) {
+ jTree.expandRow(i);
+ }
+ jScrollPane3.setViewportView(jTree);
+ jScrollPane3.setViewportView(jTree);
+ patients=connectorClientDB.getPatients();
+ for ( Integer patientId : patients) {
+ jComboBox1.addItem(patientId.toString());
+ }
+ }
+ catch ( SQLException ex) {
+ Logger.getLogger(CopyOfGUI.class.getName()).log(Level.SEVERE,null,ex);
+ ex.printStackTrace();
+ }
+}
+ found.
+ at org.eclipse.wb.internal.core.utils.check.Assert.fail(Assert.java:225)
+ at org.eclipse.wb.internal.core.utils.check.Assert.isTrue(Assert.java:291)
+ at org.eclipse.wb.core.eval.ExecutionFlowDescription.leaveStatement(ExecutionFlowDescription.java:152)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:317)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:228)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:191)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.prepareAssignmentInformation(ExecutionFlowUtils.java:784)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.getVariableCachedValue(ExecutionFlowUtils.java:753)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.getDeclaration(ExecutionFlowUtils.java:658)
+ at org.eclipse.wb.internal.core.model.variable.AbstractNamedVariableSupport.rememberDeclaration(AbstractNamedVariableSupport.java:175)
+ at org.eclipse.wb.internal.core.model.variable.AbstractSimpleVariableSupport.add_setVariableAndInitializer(AbstractSimpleVariableSupport.java:307)
+ at org.eclipse.wb.internal.core.model.variable.FieldUniqueVariableSupport.add_setVariableStatement(FieldUniqueVariableSupport.java:247)
+ at org.eclipse.wb.internal.core.model.generation.statement.AbstractInsideStatementGenerator.add(AbstractInsideStatementGenerator.java:83)
+ at org.eclipse.wb.internal.core.model.generation.statement.flat.FlatStatementGenerator.add(FlatStatementGenerator.java:66)
+ at org.eclipse.wb.internal.core.model.JavaInfoUtils.add(JavaInfoUtils.java:1386)
+ at org.eclipse.wb.internal.core.model.JavaInfoUtils.add(JavaInfoUtils.java:1289)
+ at org.eclipse.wb.internal.core.model.JavaInfoUtils.add(JavaInfoUtils.java:1225)
+ at org.eclipse.wb.internal.swing.model.component.JTabbedPaneInfo.command_CREATE(JTabbedPaneInfo.java:336)
+ ... 68 more
+Root exception:
+org.eclipse.wb.internal.core.utils.check.AssertionFailedException: Execution flow problem. setIconImage(Toolkit.getDefaultToolkit().getImage("res/shcs_logo2_icon.png"));
+ expected, but {
+ setIconImage(Toolkit.getDefaultToolkit().getImage("res/shcs_logo2_icon.png"));
+ frame=this;
+ this.props=props;
+ this.connectorClientDB=new DBconnectorClient(props.getDbMsAccess());
+ survey_submitted=false;
+ close_trials=0;
+ try {
+ initComponents();
+ viewer=new Viewer(jScrollPane2,null);
+ viewer.setupViewer();
+ System.out.println("#of questions: " + ids.size());
+ JButton btnSubmitQuestionnaire=new JButton("Submit Questionnaire");
+ btnSubmitQuestionnaire.setFont(new Font("Tahoma",Font.BOLD,12));
+ btnSubmitQuestionnaire.addActionListener(new ActionListener(){
+ public void actionPerformed( ActionEvent arg0){
+ submitButtonActionPerformed(arg0);
+ }
+ }
+);
+ JButton btnResetQuestionnaire=new JButton("Save as PDF");
+ btnResetQuestionnaire.addActionListener(new ActionListener(){
+ public void actionPerformed( ActionEvent arg0){
+ savePDFButtonActionPerformed(arg0);
+ }
+ }
+);
+ btnResetQuestionnaire.setFont(new Font("Tahoma",Font.BOLD,12));
+ JPanel panel_button=new JPanel();
+ panel_button.setLayout(new BoxLayout(panel_button,BoxLayout.X_AXIS));
+ lblNewLabel_3=new JLabel("");
+ lblNewLabel_3.setIcon(new ImageIcon("res/location_icon.png"));
+ panel_button.add(lblNewLabel_3);
+ comboBox=new JComboBox<String>();
+ comboBox.setFont(new Font("Tahoma",Font.BOLD,12));
+ comboBox.setModel(new DefaultComboBoxModel<String>(new String[]{"Select Location"}));
+ for ( Integer id_loc : locations.keySet()) {
+ comboBox.addItem(locations.get(id_loc));
+ }
+ panel_button.add(comboBox);
+ rigidArea=Box.createRigidArea(new Dimension(10,0));
+ panel_button.add(rigidArea);
+ lblNewLabel_1=new JLabel("");
+ lblNewLabel_1.setIcon(new ImageIcon("res/submit.png"));
+ panel_button.add(lblNewLabel_1);
+ panel_button.add(btnSubmitQuestionnaire);
+ panel_button.add(Box.createRigidArea(new Dimension(10,0)));
+ lblNewLabel_2=new JLabel("");
+ lblNewLabel_2.setIcon(new ImageIcon("res/pdf.png"));
+ panel_button.add(lblNewLabel_2);
+ panel_button.add(btnResetQuestionnaire);
+ panel_button.setPreferredSize(new Dimension(211,35));
+ panel_button.validate();
+ splitPane=new JSplitPane();
+ splitPane.setOneTouchExpandable(true);
+ splitPane.setResizeWeight(0.4);
+ splitPane.setOrientation(JSplitPane.VERTICAL_SPLIT);
+ GroupLayout gl_panel=new GroupLayout(panel);
+ gl_panel.setHorizontalGroup(gl_panel.createParallelGroup(Alignment.LEADING).addGroup(gl_panel.createSequentialGroup().addGap(165).addComponent(panel_button,GroupLayout.DEFAULT_SIZE,586,Short.MAX_VALUE).addGap(242)).addGroup(gl_panel.createSequentialGroup().addContainerGap().addComponent(splitPane,GroupLayout.DEFAULT_SIZE,876,Short.MAX_VALUE).addContainerGap()));
+ gl_panel.setVerticalGroup(gl_panel.createParallelGroup(Alignment.TRAILING).addGroup(gl_panel.createSequentialGroup().addContainerGap().addComponent(splitPane,GroupLayout.DEFAULT_SIZE,600,Short.MAX_VALUE).addPreferredGap(ComponentPlacement.UNRELATED).addComponent(panel_button,GroupLayout.PREFERRED_SIZE,27,GroupLayout.PREFERRED_SIZE).addGap(11)));
+ panel_1=new JPanel();
+ panel_1.setMinimumSize(new Dimension(10,0));
+ panel_1.setBorder(new LineBorder(new Color(0,0,0),1,true));
+ panel_1.setBackground(SystemColor.menu);
+ splitPane.setLeftComponent(panel_1);
+ label_1=new JLabel("");
+ label_1.setIcon(new ImageIcon("C:\\Users\\raisaro\\workspace\\yussef\\project\\PPPClient\\res\\shcs_logo2_medium.gif"));
+ label_2=new JLabel("");
+ label_2.setIcon(new ImageIcon("C:\\Users\\raisaro\\workspace\\yussef\\project\\PPPClient\\res\\EPFL_logo.png"));
+ label_3=new JLabel("");
+ label_3.setIcon(new ImageIcon("C:\\Users\\raisaro\\workspace\\yussef\\project\\PPPClient\\res\\chuv_logo.png"));
+ label_4=new JLabel("Dear Doctor,");
+ label_4.setFont(new Font("Tahoma",Font.BOLD,14));
+ scrollPane=new JScrollPane();
+ scrollPane.setBorder(null);
+ GroupLayout gl_panel_1=new GroupLayout(panel_1);
+ gl_panel_1.setHorizontalGroup(gl_panel_1.createParallelGroup(Alignment.LEADING).addGroup(gl_panel_1.createSequentialGroup().addGap(25).addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING).addComponent(label_3).addComponent(label_2).addComponent(label_1,GroupLayout.PREFERRED_SIZE,122,GroupLayout.PREFERRED_SIZE)).addGap(10).addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING).addGroup(gl_panel_1.createSequentialGroup().addGap(10).addComponent(label_4)).addGroup(gl_panel_1.createSequentialGroup().addPreferredGap(ComponentPlacement.RELATED).addComponent(scrollPane,GroupLayout.DEFAULT_SIZE,802,Short.MAX_VALUE))).addContainerGap()));
+ gl_panel_1.setVerticalGroup(gl_panel_1.createParallelGroup(Alignment.LEADING).addGroup(gl_panel_1.createSequentialGroup().addContainerGap().addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING).addGroup(gl_panel_1.createSequentialGroup().addComponent(label_4).addPreferredGap(ComponentPlacement.UNRELATED).addComponent(scrollPane,GroupLayout.DEFAULT_SIZE,283,Short.MAX_VALUE)).addGroup(gl_panel_1.createSequentialGroup().addGap(9).addComponent(label_1,GroupLayout.PREFERRED_SIZE,96,GroupLayout.PREFERRED_SIZE).addGap(18).addComponent(label_2).addGap(28).addComponent(label_3))).addContainerGap()));
+ introduction=new JTextPane();
+ introduction.setBackground(SystemColor.control);
+ introduction.setContentType("text/html");
+ introduction.setText("You are receiving a pharmacogenetics report based on the genome of your patient. Because of its highly sensitive nature, the genetic information you are provided with is processed in a privacy-preserving way. In particular, to protect patients\u2019 genomic privacy, their genetic and clinical data are stored encrypted at the SHCS data center, and securely analyzed through a sophisticated algorithm designed and developed at EPFL [1, 2]. The actual clinical and genetic information is never revealed. Only the authorized users, such as you, can get some processed information, for example, the interpreted final result of a pharmacogenetics risk test.\r\nThis mechanism protects the data against insiders or hackers trying to illegally access patients\u2019 medical information, while still allowing authorized users to obtain the information they need.\r\n<br><br>\r\n<b>To help us better understanding the importance of genomic privacy in the medical domain, and the impact of privacy-enhancing technologies in daily clinical practice, please complete the following survey. Answers are on a scale from 1 (Strongly Disagree) to 5 (Strongly Agree).</b>\r\n<font size=\"2\">\r\n<br><br>\r\nNote: this work is part of Project #693, funded by the Swiss HIV Cohort. PIs: Prof. A. Telenti, formerly at CHUV, and Prof. J.-P. Hubaux, at EPFL.\r\n<br><br>\r\n[1] J. L. Raisaro, E. Ayday, P. J. McLaren, J.-P. Hubaux, and A. Telenti. Privacy-Preserving HIV Pharmacogenetics: A Real Use Case of Genomic Data Protection. GenoPri 2014<br>\r\n[2] E. Ayday, J. L. Raisaro, J. Rougemont, and J.-P. Hubaux. Protecting and Evaluating Genomic Privacy in Medical Tests and Personalized Medicine. WPES 2013\r\n</font>");
+ scrollPane.setViewportView(introduction);
+ panel_1.setLayout(gl_panel_1);
+ jScrollPane4=new JScrollPane();
+ jScrollPane4.setBorder(new LineBorder(new Color(0,0,0),1,true));
+ splitPane.setRightComponent(jScrollPane4);
+ jScrollPane4.setViewportView(panel_2);
+ javax.swing.SwingUtilities.invokeLater(new Runnable(){
+ public void run(){
+ jScrollPane4.getVerticalScrollBar().setValue(0);
+ }
+ }
+);
+ introduction.setCaretPosition(0);
+ panel.setLayout(gl_panel);
+ HashMap<String,ArrayList<TestName>> testsRelevantByGroup=connectorClientDB.getRelevantTestsByGroup();
+ ArrayList<String> groups=new ArrayList<String>(testsRelevantByGroup.keySet());
+ testsByName=new HashMap<String,TestName>();
+ for ( String group : groups) {
+ for ( TestName test : testsRelevantByGroup.get(group)) {
+ testsByName.put(test.getName(),test);
+ }
+ }
+ DefaultMutableTreeNode root=new DefaultMutableTreeNode("All");
+ for ( String group : groups) {
+ DefaultMutableTreeNode child=new DefaultMutableTreeNode(group);
+ root.add(child);
+ for ( TestName test : testsRelevantByGroup.get(group)) {
+ DefaultMutableTreeNode grandChild=new DefaultMutableTreeNode(test.getName());
+ child.add(grandChild);
+ }
+ }
+ jTree=new JTree(root);
+ jTree.setFont(new Font("Tahoma",Font.PLAIN,11));
+ for (int i=0; i < jTree.getRowCount(); i++) {
+ jTree.expandRow(i);
+ }
+ jScrollPane3.setViewportView(jTree);
+ jScrollPane3.setViewportView(jTree);
+ patients=connectorClientDB.getPatients();
+ for ( Integer patientId : patients) {
+ jComboBox1.addItem(patientId.toString());
+ }
+ }
+ catch ( SQLException ex) {
+ Logger.getLogger(CopyOfGUI.class.getName()).log(Level.SEVERE,null,ex);
+ ex.printStackTrace();
+ }
+}
+ found.
+ at org.eclipse.wb.internal.core.utils.check.Assert.fail(Assert.java:225)
+ at org.eclipse.wb.internal.core.utils.check.Assert.isTrue(Assert.java:291)
+ at org.eclipse.wb.core.eval.ExecutionFlowDescription.leaveStatement(ExecutionFlowDescription.java:152)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:317)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:228)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:191)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.prepareAssignmentInformation(ExecutionFlowUtils.java:784)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.getVariableCachedValue(ExecutionFlowUtils.java:753)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.getDeclaration(ExecutionFlowUtils.java:658)
+ at org.eclipse.wb.internal.core.model.variable.AbstractNamedVariableSupport.rememberDeclaration(AbstractNamedVariableSupport.java:175)
+ at org.eclipse.wb.internal.core.model.variable.AbstractSimpleVariableSupport.add_setVariableAndInitializer(AbstractSimpleVariableSupport.java:307)
+ at org.eclipse.wb.internal.core.model.variable.FieldUniqueVariableSupport.add_setVariableStatement(FieldUniqueVariableSupport.java:247)
+ at org.eclipse.wb.internal.core.model.generation.statement.AbstractInsideStatementGenerator.add(AbstractInsideStatementGenerator.java:83)
+ at org.eclipse.wb.internal.core.model.generation.statement.flat.FlatStatementGenerator.add(FlatStatementGenerator.java:66)
+ at org.eclipse.wb.internal.core.model.JavaInfoUtils.add(JavaInfoUtils.java:1386)
+ at org.eclipse.wb.internal.core.model.JavaInfoUtils.add(JavaInfoUtils.java:1289)
+ at org.eclipse.wb.internal.core.model.JavaInfoUtils.add(JavaInfoUtils.java:1225)
+ at org.eclipse.wb.internal.swing.model.component.JTabbedPaneInfo.command_CREATE(JTabbedPaneInfo.java:336)
+ at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+ at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
+ at java.lang.reflect.Method.invoke(Unknown Source)
+ at org.eclipse.wb.internal.core.model.generic.FlowContainerConfigurable.tryDuckTyping(FlowContainerConfigurable.java:116)
+ at org.eclipse.wb.internal.core.model.generic.FlowContainerConfigurable.command_CREATE(FlowContainerConfigurable.java:79)
+ at org.eclipse.wb.internal.core.gefTree.policy.generic.FlowContainerLayoutEditPolicy.command_CREATE(FlowContainerLayoutEditPolicy.java:71)
+ at org.eclipse.wb.core.gefTree.policy.ObjectLayoutEditPolicy$1.executeEdit(ObjectLayoutEditPolicy.java:54)
+ at org.eclipse.wb.core.gef.command.EditCommand$1.run(EditCommand.java:52)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.run(ExecutionUtils.java:324)
+ at org.eclipse.wb.core.gef.command.EditCommand.execute(EditCommand.java:50)
+ at org.eclipse.wb.internal.gef.core.EditDomain.executeCommand(EditDomain.java:59)
+ at org.eclipse.wb.gef.core.tools.Tool.executeCommand(Tool.java:209)
+ at org.eclipse.wb.gef.core.tools.AbstractCreationTool.handleButtonUp(AbstractCreationTool.java:62)
+ at org.eclipse.wb.gef.core.tools.Tool.mouseUp(Tool.java:395)
+ at org.eclipse.wb.internal.gef.core.EditDomain.mouseUp(EditDomain.java:255)
+ at org.eclipse.wb.internal.gef.tree.TreeEventManager.mouseUp(TreeEventManager.java:120)
+ at sun.reflect.GeneratedMethodAccessor262.invoke(Unknown Source)
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
+ at java.lang.reflect.Method.invoke(Unknown Source)
+ at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
+ at com.sun.proxy.$Proxy13.mouseUp(Unknown Source)
+ at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:220)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
- at org.eclipse.swt.widgets.Composite.WM_PAINT(Composite.java:1564)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4585)
- at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:4989)
- at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
- at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2546)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3756)
+ at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
+ at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.waitEventLoop(ExecutionUtils.java:71)
+ at org.eclipse.wb.internal.swing.utils.SwingUtils.invokeLaterAndWait(SwingUtils.java:168)
+ at org.eclipse.wb.internal.swing.utils.SwingUtils.runLaterAndWait(SwingUtils.java:73)
+ at org.eclipse.wb.internal.swing.model.component.ComponentInfo.execRefreshOperation(ComponentInfo.java:119)
+ at org.eclipse.wb.core.model.ObjectInfo.refresh(ObjectInfo.java:482)
+ at org.eclipse.wb.internal.core.editor.structure.components.ComponentsTreePage$5.run(ComponentsTreePage.java:154)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runLog(ExecutionUtils.java:106)
+ at org.eclipse.wb.internal.core.editor.structure.components.ComponentsTreePage.selectGraphicalViewer(ComponentsTreePage.java:136)
+ at org.eclipse.wb.internal.core.editor.structure.components.ComponentsTreePage.access$0(ComponentsTreePage.java:133)
+ at org.eclipse.wb.internal.core.editor.structure.components.ComponentsTreePage$1.selectionChanged(ComponentsTreePage.java:109)
+ at org.eclipse.wb.internal.gef.core.AbstractEditPartViewer.fireSelectionChanged(AbstractEditPartViewer.java:202)
+ at org.eclipse.wb.internal.gef.core.AbstractEditPartViewer.setSelection(AbstractEditPartViewer.java:262)
+ at org.eclipse.wb.internal.gef.core.AbstractEditPartViewer.setSelection(AbstractEditPartViewer.java:193)
+ at org.eclipse.wb.internal.gef.tree.TreeViewer$1.widgetSelected(TreeViewer.java:180)
+ at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
+ at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
+ at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
+ at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
+ at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-!ENTRY org.eclipse.wb.core 4 4 2014-12-19 14:48:56.827
-!MESSAGE Designer [1.5.2.r42x201302112024.201412191226]: java.lang.NullPointerException
+!ENTRY org.eclipse.wb.core 4 4 2015-02-10 10:56:49.688
+!MESSAGE Designer [1.5.2.r42x201302112024.201502101056]: component not found in tabbed pane
!STACK 0
-java.lang.NullPointerException
- at java.util.TreeMap.getEntry(Unknown Source)
- at java.util.TreeMap.get(Unknown Source)
- at org.eclipse.wb.internal.core.model.property.PropertyManager.getCategoryForced(PropertyManager.java:61)
- at org.eclipse.wb.internal.core.model.property.category.PropertyCategoryProviders$2.getCategory(PropertyCategoryProviders.java:43)
- at org.eclipse.wb.internal.core.model.property.category.PropertyCategoryProviders$3.getCategory(PropertyCategoryProviders.java:66)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.getCategory(PropertyTable.java:1284)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.access$3(PropertyTable.java:1283)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.getSubProperties(PropertyTable.java:1484)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.prepareChildren(PropertyTable.java:1469)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.isShowComplex(PropertyTable.java:1335)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.drawProperty(PropertyTable.java:1217)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.drawContent(PropertyTable.java:1103)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.handlePaint(PropertyTable.java:1046)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.access$6(PropertyTable.java:1005)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$3.handleEvent(PropertyTable.java:163)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
- at org.eclipse.swt.widgets.Composite.WM_PAINT(Composite.java:1564)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4585)
- at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:4989)
- at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
- at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2546)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3756)
+java.lang.IllegalArgumentException: component not found in tabbed pane
+ at javax.swing.JTabbedPane.setSelectedComponent(Unknown Source)
+ at org.eclipse.wb.internal.swing.model.component.JTabbedPaneInfo.refresh_afterCreate(JTabbedPaneInfo.java:156)
+ at org.eclipse.wb.core.model.ObjectInfo.refresh_afterCreate(ObjectInfo.java:621)
+ at org.eclipse.wb.core.model.JavaInfo.refresh_afterCreate(JavaInfo.java:1226)
+ at org.eclipse.wb.core.model.AbstractComponentInfo.refresh_afterCreate(AbstractComponentInfo.java:238)
+ at org.eclipse.wb.core.model.ObjectInfo.refresh_afterCreate(ObjectInfo.java:621)
+ at org.eclipse.wb.core.model.JavaInfo.refresh_afterCreate(JavaInfo.java:1226)
+ at org.eclipse.wb.core.model.AbstractComponentInfo.refresh_afterCreate(AbstractComponentInfo.java:238)
+ at org.eclipse.wb.core.model.ObjectInfo.refreshCreate0(ObjectInfo.java:552)
+ at org.eclipse.wb.core.model.ObjectInfo.access$0(ObjectInfo.java:546)
+ at org.eclipse.wb.core.model.ObjectInfo$5$1.run(ObjectInfo.java:486)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:145)
+ at org.eclipse.wb.core.model.ObjectInfo$5.run(ObjectInfo.java:484)
+ at org.eclipse.wb.internal.swing.utils.SwingUtils$2.run(SwingUtils.java:76)
+ at java.awt.event.InvocationEvent.dispatch(Unknown Source)
+ at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
+ at java.awt.EventQueue.access$500(Unknown Source)
+ at java.awt.EventQueue$3.run(Unknown Source)
+ at java.awt.EventQueue$3.run(Unknown Source)
+ at java.security.AccessController.doPrivileged(Native Method)
+ at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
+ at java.awt.EventQueue.dispatchEvent(Unknown Source)
+ at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
+ at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
+ at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
+ at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
+ at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
+ at java.awt.EventDispatchThread.run(Unknown Source)
+
+!ENTRY org.eclipse.wb.core 4 4 2015-02-10 10:56:51.831
+!MESSAGE Designer [1.5.2.r42x201302112024.201502101056]: 313 (Exception during 'super' constructor evaluation). JFrame() {} java.lang.NullPointerException
+ at java.beans.MethodRef.get(Unknown Source)
+ at java.beans.PropertyDescriptor.getWriteMethod(Unknown Source)
+!STACK 0
+org.eclipse.wb.internal.core.utils.exception.DesignerException: 313 (Exception during 'super' constructor evaluation). JFrame() {} java.lang.NullPointerException
+ at java.beans.MethodRef.get(Unknown Source)
+ at java.beans.PropertyDescriptor.getWriteMethod(Unknown Source)
+ at org.eclipse.wb.internal.core.model.creation.ThisCreationSupport.create(ThisCreationSupport.java:275)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluateJavaInfoUsingCreationSupport(JavaInfoEvaluationHelper.java:642)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.addJavaInfo(JavaInfoParser.java:1261)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:253)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$9(JavaInfoParser.java:238)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:153)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:1)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:159)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:151)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:534)
+ at org.eclipse.wb.internal.core.editor.DesignPage.access$9(DesignPage.java:522)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8$1.run(DesignPage.java:449)
+ at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
+ at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
+ at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8.run(DesignPage.java:446)
+ at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
+ at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
+ at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF_withProgress(DesignPage.java:465)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:415)
+ at org.eclipse.wb.internal.core.editor.UndoManager.refreshDesignerEditor(UndoManager.java:381)
+ at org.eclipse.wb.internal.core.editor.UndoManager$6.run(UndoManager.java:330)
+ at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
+ at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
+ at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4144)
+ at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
+Caused by: java.lang.NullPointerException
+ at java.beans.MethodRef.get(Unknown Source)
+ at java.beans.PropertyDescriptor.getWriteMethod(Unknown Source)
+ at org.eclipse.wb.internal.core.model.JavaInfoUtils.addExposedChildred_Method(JavaInfoUtils.java:447)
+ at org.eclipse.wb.internal.core.model.JavaInfoUtils.addExposedChildren(JavaInfoUtils.java:429)
+ at org.eclipse.wb.internal.swing.model.component.ComponentInfo.createExposedChildren(ComponentInfo.java:109)
+ at org.eclipse.wb.internal.swing.model.component.ContainerInfo.createExposedChildren(ContainerInfo.java:143)
+ at org.eclipse.wb.core.model.JavaInfo.initialize(JavaInfo.java:419)
+ at org.eclipse.wb.internal.swing.model.component.ContainerInfo.initialize(ContainerInfo.java:114)
+ at org.eclipse.wb.core.model.JavaInfo.setObject(JavaInfo.java:1267)
+ at org.eclipse.wb.internal.core.model.creation.ThisCreationSupport.create(ThisCreationSupport.java:269)
+ ... 48 more
+
+!ENTRY org.eclipse.ui 2 2 2015-02-10 11:10:50.879
+!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
+!SESSION 2015-02-10 11:10:52.552 -----------------------------------------------
+eclipse.buildId=M20130204-1200
+java.version=1.8.0_31
+java.vendor=Oracle Corporation
+BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
+Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
+Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
+
+!ENTRY org.eclipse.ui 4 4 2015-02-10 11:10:59.253
+!MESSAGE Could not create action delegate for id: org.eclipse.jdt.debug.ui.actions.ManageBreakpointRulerAction
-!ENTRY org.eclipse.wb.core 4 4 2014-12-19 14:49:02.370
-!MESSAGE Designer [1.5.2.r42x201302112024.201412191226]: java.lang.NullPointerException
+!ENTRY org.eclipse.equinox.registry 4 1 2015-02-10 11:10:59.260
+!MESSAGE Plug-in org.eclipse.wb.core.java was unable to load class org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate.
!STACK 0
-java.lang.NullPointerException
- at java.util.TreeMap.getEntry(Unknown Source)
- at java.util.TreeMap.get(Unknown Source)
- at org.eclipse.wb.internal.core.model.property.PropertyManager.getCategoryForced(PropertyManager.java:61)
- at org.eclipse.wb.internal.core.model.property.category.PropertyCategoryProviders$2.getCategory(PropertyCategoryProviders.java:43)
- at org.eclipse.wb.internal.core.model.property.category.PropertyCategoryProviders$3.getCategory(PropertyCategoryProviders.java:66)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.getCategory(PropertyTable.java:1284)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.access$3(PropertyTable.java:1283)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.getSubProperties(PropertyTable.java:1484)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.prepareChildren(PropertyTable.java:1469)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.isShowComplex(PropertyTable.java:1335)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.drawProperty(PropertyTable.java:1217)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.drawContent(PropertyTable.java:1103)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.handlePaint(PropertyTable.java:1046)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.access$6(PropertyTable.java:1005)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$3.handleEvent(PropertyTable.java:163)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
- at org.eclipse.swt.widgets.Composite.WM_PAINT(Composite.java:1564)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4585)
- at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:4989)
- at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
- at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2546)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3756)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
+java.lang.ClassNotFoundException: org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
+ at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
+ at java.lang.ClassLoader.loadClass(Unknown Source)
+ at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
+ at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
+ at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
+ at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
+ at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
+ at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
+ at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
+ at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:265)
+ at org.eclipse.ui.internal.PluginAction.createDelegate(PluginAction.java:122)
+ at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:275)
+ at org.eclipse.ui.internal.PluginAction.<init>(PluginAction.java:112)
+ at org.eclipse.ui.internal.PartPluginAction.<init>(PartPluginAction.java:29)
+ at org.eclipse.ui.internal.EditorPluginAction.<init>(EditorPluginAction.java:32)
+ at org.eclipse.ui.internal.ActionDescriptor.createAction(ActionDescriptor.java:262)
+ at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:176)
+ at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:103)
+ at org.eclipse.ui.internal.EditorActionBuilder.createActionDescriptor(EditorActionBuilder.java:41)
+ at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:161)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElementChildren(RegistryReader.java:133)
+ at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readExtension(RegistryReader.java:155)
+ at org.eclipse.ui.internal.registry.RegistryReader.readRegistry(RegistryReader.java:176)
+ at org.eclipse.ui.internal.PluginActionBuilder.readContributions(PluginActionBuilder.java:115)
+ at org.eclipse.ui.internal.EditorActionBuilder.readActionExtensions(EditorActionBuilder.java:58)
+ at org.eclipse.ui.internal.EditorReference.createEditorActionBars(EditorReference.java:446)
+ at org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:356)
+ at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:301)
+ at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+ at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
+ at java.lang.reflect.Method.invoke(Unknown Source)
+ at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:861)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:841)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:113)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:321)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:242)
+ at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:161)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
+ at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:141)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1115)
+ at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:98)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$6.run(PartRenderingEngine.java:520)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:505)
+ at org.eclipse.e4.ui.workbench.renderers.swt.ElementReferenceRenderer.createWidget(ElementReferenceRenderer.java:74)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveRenderer.processContents(PerspectiveRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.showTab(PerspectiveStackRenderer.java:103)
+ at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:98)
+ at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.postProcess(PerspectiveStackRenderer.java:77)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.workbench.renderers.swt.WBWRenderer.processContents(WBWRenderer.java:644)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:987)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-!ENTRY org.eclipse.wb.core 4 4 2014-12-19 14:49:10.769
-!MESSAGE Designer [1.5.2.r42x201302112024.201412191226]: java.lang.NullPointerException
-!STACK 0
-java.lang.NullPointerException
- at java.util.TreeMap.getEntry(Unknown Source)
- at java.util.TreeMap.get(Unknown Source)
- at org.eclipse.wb.internal.core.model.property.PropertyManager.getCategoryForced(PropertyManager.java:61)
- at org.eclipse.wb.internal.core.model.property.category.PropertyCategoryProviders$2.getCategory(PropertyCategoryProviders.java:43)
- at org.eclipse.wb.internal.core.model.property.category.PropertyCategoryProviders$3.getCategory(PropertyCategoryProviders.java:66)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.getCategory(PropertyTable.java:1284)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.access$3(PropertyTable.java:1283)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.getSubProperties(PropertyTable.java:1484)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.prepareChildren(PropertyTable.java:1469)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$PropertyInfo.isShowComplex(PropertyTable.java:1335)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.drawProperty(PropertyTable.java:1217)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.drawContent(PropertyTable.java:1103)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.handlePaint(PropertyTable.java:1046)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable.access$6(PropertyTable.java:1005)
- at org.eclipse.wb.internal.core.model.property.table.PropertyTable$3.handleEvent(PropertyTable.java:163)
+!ENTRY org.eclipse.egit.ui 2 0 2015-02-10 11:11:05.116
+!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
+Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
+The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
+this system level configuration. The Git installation location can be configured on the
+Team > Git > Configuration preference page's 'System Settings' tab.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
+
+!ENTRY org.eclipse.egit.ui 2 0 2015-02-10 11:11:05.118
+!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
+user global configuration and to define the default location to store repositories: 'C:\Users\raisaro'. If this is
+not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
+EGit might behave differently since they see different configuration options.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
+
+!ENTRY org.eclipse.ui 2 2 2015-02-10 11:44:41.972
+!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
+
+!ENTRY org.eclipse.wb.core 4 4 2015-02-10 11:45:06.736
+!MESSAGE Designer [1.5.2.r42x201302112024.201502101145]: [Working copy] CopyOfGUI.java [in ui [in src [in PPPClient]]] does not exist
+!STACK 1
+Java Model Exception: Java Model Status [[Working copy] CopyOfGUI.java [in ui [in src [in PPPClient]]] does not exist]
+ at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException(JavaElement.java:495)
+ at org.eclipse.jdt.internal.core.Openable.getUnderlyingResource(Openable.java:343)
+ at org.eclipse.jdt.internal.core.CompilationUnit.getUnderlyingResource(CompilationUnit.java:930)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.prepareParseContext(JavaInfoParser.java:1164)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:242)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$9(JavaInfoParser.java:238)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:153)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:1)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:159)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:151)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:534)
+ at org.eclipse.wb.internal.core.editor.DesignPage.access$9(DesignPage.java:522)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8$1.run(DesignPage.java:449)
+ at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
+ at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
+ at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8.run(DesignPage.java:446)
+ at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
+ at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
+ at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF_withProgress(DesignPage.java:465)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:415)
+ at org.eclipse.wb.internal.core.editor.UndoManager.refreshDesignerEditor(UndoManager.java:381)
+ at org.eclipse.wb.internal.core.editor.UndoManager$6.run(UndoManager.java:330)
+ at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
+ at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
+ at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4144)
+ at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
+ at org.eclipse.jface.operation.ModalContext$ModalContextThread.block(ModalContext.java:173)
+ at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:388)
+ at org.eclipse.ltk.internal.ui.refactoring.RefactoringWizardDialog2.run(RefactoringWizardDialog2.java:331)
+ at org.eclipse.ltk.ui.refactoring.RefactoringWizard.internalPerformFinish(RefactoringWizard.java:637)
+ at org.eclipse.ltk.ui.refactoring.UserInputWizardPage.performFinish(UserInputWizardPage.java:153)
+ at org.eclipse.jdt.internal.ui.refactoring.reorg.RenameTypeWizardInputPage.performFinish(RenameTypeWizardInputPage.java:150)
+ at org.eclipse.ltk.ui.refactoring.RefactoringWizard.performFinish(RefactoringWizard.java:710)
+ at org.eclipse.ltk.internal.ui.refactoring.RefactoringWizardDialog2.okPressed(RefactoringWizardDialog2.java:455)
+ at org.eclipse.jface.dialogs.Dialog.buttonPressed(Dialog.java:472)
+ at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
+ at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
- at org.eclipse.swt.widgets.Composite.WM_PAINT(Composite.java:1564)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4585)
- at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:4989)
- at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
- at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2546)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3756)
+ at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
+ at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
+ at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
+ at org.eclipse.jface.window.Window.open(Window.java:801)
+ at org.eclipse.ltk.ui.refactoring.RefactoringWizardOpenOperation$1.run(RefactoringWizardOpenOperation.java:187)
+ at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
+ at org.eclipse.ltk.ui.refactoring.RefactoringWizardOpenOperation.run(RefactoringWizardOpenOperation.java:202)
+ at org.eclipse.ltk.ui.refactoring.RefactoringWizardOpenOperation.run(RefactoringWizardOpenOperation.java:122)
+ at org.eclipse.jdt.internal.ui.refactoring.actions.RefactoringStarter.activate(RefactoringStarter.java:38)
+ at org.eclipse.jdt.internal.ui.refactoring.UserInterfaceStarter.activate(UserInterfaceStarter.java:62)
+ at org.eclipse.jdt.internal.ui.refactoring.reorg.RenameUserInterfaceStarter.activate(RenameUserInterfaceStarter.java:32)
+ at org.eclipse.jdt.ui.refactoring.RenameSupport.openDialog(RenameSupport.java:160)
+ at org.eclipse.jdt.ui.refactoring.RenameSupport.openDialog(RenameSupport.java:116)
+ at org.eclipse.jdt.internal.corext.refactoring.RefactoringExecutionStarter.startRenameRefactoring(RefactoringExecutionStarter.java:438)
+ at org.eclipse.jdt.internal.ui.refactoring.actions.RenameJavaElementAction.run(RenameJavaElementAction.java:214)
+ at org.eclipse.jdt.internal.ui.refactoring.actions.RenameJavaElementAction.run(RenameJavaElementAction.java:105)
+ at org.eclipse.jdt.ui.actions.RenameAction.run(RenameAction.java:110)
+ at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:275)
+ at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:251)
+ at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
+ at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
+ at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
+ at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
+ at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
+ at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
+ at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
+ at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-
-!ENTRY org.eclipse.ui 2 2 2014-12-19 14:57:20.834
-!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
-!SESSION 2015-01-08 09:16:53.391 -----------------------------------------------
+!SUBENTRY 1 org.eclipse.jdt.core 4 969 2015-02-10 11:45:06.736
+!MESSAGE [Working copy] CopyOfGUI.java [in ui [in src [in PPPClient]]] does not exist
+!SESSION 2015-02-10 11:54:47.086 -----------------------------------------------
eclipse.buildId=M20130204-1200
-java.version=1.7.0_45
+java.version=1.8.0_31
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
-!ENTRY org.eclipse.ui 4 4 2015-01-08 09:17:02.934
+!ENTRY org.eclipse.ui 4 4 2015-02-10 11:54:53.641
!MESSAGE Could not create action delegate for id: org.eclipse.jdt.debug.ui.actions.ManageBreakpointRulerAction
-!ENTRY org.eclipse.equinox.registry 4 1 2015-01-08 09:17:03.035
+!ENTRY org.eclipse.equinox.registry 4 1 2015-02-10 11:54:53.641
!MESSAGE Plug-in org.eclipse.wb.core.java was unable to load class org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate.
!STACK 0
java.lang.ClassNotFoundException: org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:265)
at org.eclipse.ui.internal.PluginAction.createDelegate(PluginAction.java:122)
at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:275)
at org.eclipse.ui.internal.PluginAction.<init>(PluginAction.java:112)
at org.eclipse.ui.internal.PartPluginAction.<init>(PartPluginAction.java:29)
at org.eclipse.ui.internal.EditorPluginAction.<init>(EditorPluginAction.java:32)
at org.eclipse.ui.internal.ActionDescriptor.createAction(ActionDescriptor.java:262)
at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:176)
at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:103)
at org.eclipse.ui.internal.EditorActionBuilder.createActionDescriptor(EditorActionBuilder.java:41)
at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:161)
at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
at org.eclipse.ui.internal.registry.RegistryReader.readElementChildren(RegistryReader.java:133)
at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:144)
at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
at org.eclipse.ui.internal.registry.RegistryReader.readExtension(RegistryReader.java:155)
at org.eclipse.ui.internal.registry.RegistryReader.readRegistry(RegistryReader.java:176)
at org.eclipse.ui.internal.PluginActionBuilder.readContributions(PluginActionBuilder.java:115)
at org.eclipse.ui.internal.EditorActionBuilder.readActionExtensions(EditorActionBuilder.java:58)
at org.eclipse.ui.internal.EditorReference.createEditorActionBars(EditorReference.java:446)
at org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:356)
at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:301)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:861)
at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:841)
at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:113)
at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:321)
at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:242)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:161)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:141)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1115)
at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:98)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$6.run(PartRenderingEngine.java:520)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:505)
at org.eclipse.e4.ui.workbench.renderers.swt.ElementReferenceRenderer.createWidget(ElementReferenceRenderer.java:74)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveRenderer.processContents(PerspectiveRenderer.java:59)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.showTab(PerspectiveStackRenderer.java:103)
at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:98)
at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.postProcess(PerspectiveStackRenderer.java:77)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
at org.eclipse.e4.ui.workbench.renderers.swt.WBWRenderer.processContents(WBWRenderer.java:644)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:987)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
diff --git a/.metadata/.log b/.metadata/.log
index ec33db9..be76f5b 100644
--- a/.metadata/.log
+++ b/.metadata/.log
@@ -1,4578 +1,2246 @@
-!SESSION 2015-01-08 09:16:53.391 -----------------------------------------------
+!SESSION 2015-02-10 11:54:47.086 -----------------------------------------------
eclipse.buildId=M20130204-1200
-java.version=1.7.0_45
+java.version=1.8.0_31
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
This is a continuation of log file C:\Users\raisaro\workspace\yussef\.metadata\.bak_0.log
-Created Time: 2015-01-08 09:17:08.649
-
-!ENTRY org.eclipse.egit.ui 2 0 2015-01-08 09:17:08.649
-!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
-Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
-The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
-this system level configuration. The Git installation location can be configured on the
-Team > Git > Configuration preference page's 'System Settings' tab.
-This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-
-!ENTRY org.eclipse.egit.ui 2 0 2015-01-08 09:17:08.659
-!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
-user global configuration and to define the default location to store repositories: 'C:\Users\raisaro'. If this is
-not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
-EGit might behave differently since they see different configuration options.
-This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-
-!ENTRY org.eclipse.ui 2 2 2015-01-08 09:18:34.574
-!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
-!SESSION 2015-01-08 10:49:27.724 -----------------------------------------------
-eclipse.buildId=M20130204-1200
-java.version=1.7.0_45
-java.vendor=Oracle Corporation
-BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
-Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
-Command-line arguments: -data C:\Users\raisaro\workspace\yussef -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
-
-!ENTRY org.eclipse.egit.ui 2 0 2015-01-08 10:49:36.376
-!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
-Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
-The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
-this system level configuration. The Git installation location can be configured on the
-Team > Git > Configuration preference page's 'System Settings' tab.
-This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-
-!ENTRY org.eclipse.egit.ui 2 0 2015-01-08 10:49:36.386
-!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
-user global configuration and to define the default location to store repositories: 'C:\Users\raisaro'. If this is
-not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
-EGit might behave differently since they see different configuration options.
-This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-
-!ENTRY org.eclipse.ui 2 2 2015-01-08 10:53:40.807
-!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
-!SESSION 2015-01-08 14:12:53.962 -----------------------------------------------
-eclipse.buildId=M20130204-1200
-java.version=1.7.0_45
-java.vendor=Oracle Corporation
-BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
-Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
-Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
-
-!ENTRY org.eclipse.egit.ui 2 0 2015-01-08 14:13:04.539
-!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
-Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
-The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
-this system level configuration. The Git installation location can be configured on the
-Team > Git > Configuration preference page's 'System Settings' tab.
-This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-
-!ENTRY org.eclipse.egit.ui 2 0 2015-01-08 14:13:04.539
-!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
-user global configuration and to define the default location to store repositories: 'C:\Users\raisaro'. If this is
-not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
-EGit might behave differently since they see different configuration options.
-This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-
-!ENTRY org.eclipse.ui 2 2 2015-01-08 14:13:22.543
-!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
-!SESSION 2015-01-08 15:45:43.788 -----------------------------------------------
-eclipse.buildId=M20130204-1200
-java.version=1.7.0_45
-java.vendor=Oracle Corporation
-BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
-Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
-Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
-
-!ENTRY org.eclipse.egit.ui 2 0 2015-01-08 15:45:52.092
-!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
-Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
-The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
-this system level configuration. The Git installation location can be configured on the
-Team > Git > Configuration preference page's 'System Settings' tab.
-This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-
-!ENTRY org.eclipse.egit.ui 2 0 2015-01-08 15:45:52.092
-!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
-user global configuration and to define the default location to store repositories: 'C:\Users\raisaro'. If this is
-not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
-EGit might behave differently since they see different configuration options.
-This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-
-!ENTRY org.eclipse.ui 2 2 2015-01-08 17:05:07.044
-!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
-!SESSION 2015-01-09 13:29:51.250 -----------------------------------------------
-eclipse.buildId=M20130204-1200
-java.version=1.7.0_45
-java.vendor=Oracle Corporation
-BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
-Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
-Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
-
-!ENTRY org.eclipse.egit.ui 2 0 2015-01-09 13:30:03.162
-!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
-Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
-The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
-this system level configuration. The Git installation location can be configured on the
-Team > Git > Configuration preference page's 'System Settings' tab.
-This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-
-!ENTRY org.eclipse.egit.ui 2 0 2015-01-09 13:30:03.162
-!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
-user global configuration and to define the default location to store repositories: 'C:\Users\raisaro'. If this is
-not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
-EGit might behave differently since they see different configuration options.
-This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-
-!ENTRY org.eclipse.ui 2 2 2015-01-09 13:30:08.329
-!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
-!SESSION 2015-01-09 14:03:28.900 -----------------------------------------------
-eclipse.buildId=M20130204-1200
-java.version=1.7.0_45
-java.vendor=Oracle Corporation
-BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
-Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
-Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
-
-!ENTRY org.eclipse.egit.ui 2 0 2015-01-09 14:03:37.574
-!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
-Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
-The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
-this system level configuration. The Git installation location can be configured on the
-Team > Git > Configuration preference page's 'System Settings' tab.
-This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-
-!ENTRY org.eclipse.egit.ui 2 0 2015-01-09 14:03:37.589
-!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
-user global configuration and to define the default location to store repositories: 'C:\Users\raisaro'. If this is
-not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
-EGit might behave differently since they see different configuration options.
-This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-
-!ENTRY org.eclipse.ui 2 2 2015-01-09 14:03:42.413
-!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
-!SESSION 2015-01-22 17:04:11.333 -----------------------------------------------
-eclipse.buildId=M20130204-1200
-java.version=1.7.0_45
-java.vendor=Oracle Corporation
-BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
-Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
-Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
+Created Time: 2015-02-10 11:54:58.250
-!ENTRY org.eclipse.egit.ui 2 0 2015-01-22 17:04:24.913
+!ENTRY org.eclipse.egit.ui 2 0 2015-02-10 11:54:58.250
!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
this system level configuration. The Git installation location can be configured on the
Team > Git > Configuration preference page's 'System Settings' tab.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-!ENTRY org.eclipse.egit.ui 2 0 2015-01-22 17:04:24.926
+!ENTRY org.eclipse.egit.ui 2 0 2015-02-10 11:54:58.250
!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
user global configuration and to define the default location to store repositories: 'C:\Users\raisaro'. If this is
not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
EGit might behave differently since they see different configuration options.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-!ENTRY org.eclipse.ui 2 2 2015-01-22 17:13:04.912
+!ENTRY org.eclipse.ui 2 2 2015-02-10 11:57:51.855
!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
-!SESSION 2015-01-26 09:55:36.746 -----------------------------------------------
+!SESSION 2015-02-10 12:03:06.631 -----------------------------------------------
eclipse.buildId=M20130204-1200
-java.version=1.7.0_45
+java.version=1.8.0_31
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
-!ENTRY org.eclipse.egit.ui 2 0 2015-01-26 09:55:50.384
-!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
-Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
-The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
-this system level configuration. The Git installation location can be configured on the
-Team > Git > Configuration preference page's 'System Settings' tab.
-This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-
-!ENTRY org.eclipse.egit.ui 2 0 2015-01-26 09:55:50.387
-!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
-user global configuration and to define the default location to store repositories: 'C:\Users\raisaro'. If this is
-not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
-EGit might behave differently since they see different configuration options.
-This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-
-!ENTRY org.eclipse.ui 2 2 2015-01-26 10:12:04.629
-!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
-
-!ENTRY org.eclipse.ui 4 4 2015-01-26 10:12:07.562
+!ENTRY org.eclipse.ui 4 4 2015-02-10 12:03:13.338
!MESSAGE Could not create action delegate for id: org.eclipse.jdt.debug.ui.actions.ManageBreakpointRulerAction
-!ENTRY org.eclipse.equinox.registry 4 1 2015-01-26 10:12:07.563
+!ENTRY org.eclipse.equinox.registry 4 1 2015-02-10 12:03:13.338
!MESSAGE Plug-in org.eclipse.wb.core.java was unable to load class org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate.
!STACK 0
java.lang.ClassNotFoundException: org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:265)
at org.eclipse.ui.internal.PluginAction.createDelegate(PluginAction.java:122)
at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:275)
at org.eclipse.ui.internal.PluginAction.<init>(PluginAction.java:112)
at org.eclipse.ui.internal.PartPluginAction.<init>(PartPluginAction.java:29)
at org.eclipse.ui.internal.EditorPluginAction.<init>(EditorPluginAction.java:32)
at org.eclipse.ui.internal.ActionDescriptor.createAction(ActionDescriptor.java:262)
at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:176)
at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:103)
at org.eclipse.ui.internal.EditorActionBuilder.createActionDescriptor(EditorActionBuilder.java:41)
at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:161)
at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
at org.eclipse.ui.internal.registry.RegistryReader.readElementChildren(RegistryReader.java:133)
at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:144)
at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
at org.eclipse.ui.internal.registry.RegistryReader.readExtension(RegistryReader.java:155)
at org.eclipse.ui.internal.registry.RegistryReader.readRegistry(RegistryReader.java:176)
at org.eclipse.ui.internal.PluginActionBuilder.readContributions(PluginActionBuilder.java:115)
at org.eclipse.ui.internal.EditorActionBuilder.readActionExtensions(EditorActionBuilder.java:58)
at org.eclipse.ui.internal.EditorReference.createEditorActionBars(EditorReference.java:446)
at org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:356)
at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:301)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:861)
at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:841)
at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:113)
at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:321)
at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:242)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:161)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:141)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1115)
- at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer$1.handleEvent(LazyStackRenderer.java:67)
- at org.eclipse.e4.ui.services.internal.events.UIEventHandler$1.run(UIEventHandler.java:41)
- at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
- at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
- at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
- at org.eclipse.e4.ui.internal.workbench.swt.E4Application$1.syncExec(E4Application.java:187)
- at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:38)
- at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:197)
- at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:197)
- at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)
- at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
- at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
- at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:135)
- at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:78)
- at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:39)
- at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:80)
- at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:58)
- at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:374)
- at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement(ElementContainerImpl.java:171)
- at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.showElementInWindow(ModelServiceImpl.java:422)
- at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.bringToTop(ModelServiceImpl.java:389)
- at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.delegateBringToTop(PartServiceImpl.java:606)
- at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.bringToTop(PartServiceImpl.java:332)
- at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.showPart(PartServiceImpl.java:1029)
- at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:3047)
- at org.eclipse.ui.internal.WorkbenchPage.access$22(WorkbenchPage.java:2969)
- at org.eclipse.ui.internal.WorkbenchPage$8.run(WorkbenchPage.java:2951)
- at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
- at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2947)
- at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2911)
- at org.eclipse.ui.actions.OpenWithMenu.openEditor(OpenWithMenu.java:338)
- at org.eclipse.ui.actions.OpenWithMenu$2.handleEvent(OpenWithMenu.java:180)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
+ at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:98)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$6.run(PartRenderingEngine.java:520)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:505)
+ at org.eclipse.e4.ui.workbench.renderers.swt.ElementReferenceRenderer.createWidget(ElementReferenceRenderer.java:74)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveRenderer.processContents(PerspectiveRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.showTab(PerspectiveStackRenderer.java:103)
+ at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:98)
+ at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.postProcess(PerspectiveStackRenderer.java:77)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.workbench.renderers.swt.WBWRenderer.processContents(WBWRenderer.java:644)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:987)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-!ENTRY org.eclipse.ui 4 4 2015-01-26 10:13:51.865
+!ENTRY org.eclipse.egit.ui 2 0 2015-02-10 12:03:18.765
+!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
+Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
+The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
+this system level configuration. The Git installation location can be configured on the
+Team > Git > Configuration preference page's 'System Settings' tab.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
+
+!ENTRY org.eclipse.egit.ui 2 0 2015-02-10 12:03:18.765
+!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
+user global configuration and to define the default location to store repositories: 'C:\Users\raisaro'. If this is
+not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
+EGit might behave differently since they see different configuration options.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
+
+!ENTRY org.eclipse.ui 2 2 2015-02-10 12:06:07.336
+!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
+!SESSION 2015-02-19 13:29:28.443 -----------------------------------------------
+eclipse.buildId=M20130204-1200
+java.version=1.8.0_31
+java.vendor=Oracle Corporation
+BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
+Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
+Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
+
+!ENTRY org.eclipse.ui 4 4 2015-02-19 13:29:40.725
!MESSAGE Could not create action delegate for id: org.eclipse.jdt.debug.ui.actions.ManageBreakpointRulerAction
-!ENTRY org.eclipse.equinox.registry 4 1 2015-01-26 10:13:51.866
+!ENTRY org.eclipse.equinox.registry 4 1 2015-02-19 13:29:40.733
!MESSAGE Plug-in org.eclipse.wb.core.java was unable to load class org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate.
!STACK 0
java.lang.ClassNotFoundException: org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:265)
at org.eclipse.ui.internal.PluginAction.createDelegate(PluginAction.java:122)
at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:275)
at org.eclipse.ui.internal.PluginAction.<init>(PluginAction.java:112)
at org.eclipse.ui.internal.PartPluginAction.<init>(PartPluginAction.java:29)
at org.eclipse.ui.internal.EditorPluginAction.<init>(EditorPluginAction.java:32)
at org.eclipse.ui.internal.ActionDescriptor.createAction(ActionDescriptor.java:262)
at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:176)
at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:103)
at org.eclipse.ui.internal.EditorActionBuilder.createActionDescriptor(EditorActionBuilder.java:41)
at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:161)
at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
at org.eclipse.ui.internal.registry.RegistryReader.readElementChildren(RegistryReader.java:133)
at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:144)
at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
at org.eclipse.ui.internal.registry.RegistryReader.readExtension(RegistryReader.java:155)
at org.eclipse.ui.internal.registry.RegistryReader.readRegistry(RegistryReader.java:176)
at org.eclipse.ui.internal.PluginActionBuilder.readContributions(PluginActionBuilder.java:115)
at org.eclipse.ui.internal.EditorActionBuilder.readActionExtensions(EditorActionBuilder.java:58)
at org.eclipse.ui.internal.EditorReference.createEditorActionBars(EditorReference.java:446)
at org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:356)
at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:301)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:861)
at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:841)
at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:113)
at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:321)
at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:242)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:161)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:141)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
- at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.createElement(PartServiceImpl.java:1071)
- at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.showPart(PartServiceImpl.java:1033)
- at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:464)
- at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:269)
- at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2999)
- at org.eclipse.ui.internal.WorkbenchPage.access$22(WorkbenchPage.java:2969)
- at org.eclipse.ui.internal.WorkbenchPage$8.run(WorkbenchPage.java:2951)
- at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
- at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2947)
- at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2911)
- at org.eclipse.ui.actions.OpenWithMenu.openEditor(OpenWithMenu.java:338)
- at org.eclipse.ui.actions.OpenWithMenu$2.handleEvent(OpenWithMenu.java:180)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-!SESSION 2015-01-27 10:29:50.689 -----------------------------------------------
-eclipse.buildId=M20130204-1200
-java.version=1.7.0_45
-java.vendor=Oracle Corporation
-BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
-Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
-Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
-
-!ENTRY org.eclipse.egit.ui 2 0 2015-01-27 10:30:03.566
-!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
-Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
-The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
-this system level configuration. The Git installation location can be configured on the
-Team > Git > Configuration preference page's 'System Settings' tab.
-This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-
-!ENTRY org.eclipse.egit.ui 2 0 2015-01-27 10:30:03.568
-!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
-user global configuration and to define the default location to store repositories: 'C:\Users\raisaro'. If this is
-not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
-EGit might behave differently since they see different configuration options.
-This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-
-!ENTRY org.eclipse.ui 4 4 2015-01-27 10:34:23.351
-!MESSAGE Could not create action delegate for id: org.eclipse.jdt.debug.ui.actions.ManageBreakpointRulerAction
-
-!ENTRY org.eclipse.equinox.registry 4 1 2015-01-27 10:34:23.352
-!MESSAGE Plug-in org.eclipse.wb.core.java was unable to load class org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate.
-!STACK 0
-java.lang.ClassNotFoundException: org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate
- at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
- at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
- at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
- at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
- at java.lang.ClassLoader.loadClass(Unknown Source)
- at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
- at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
- at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
- at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
- at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
- at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
- at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
- at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:265)
- at org.eclipse.ui.internal.PluginAction.createDelegate(PluginAction.java:122)
- at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:275)
- at org.eclipse.ui.internal.PluginAction.<init>(PluginAction.java:112)
- at org.eclipse.ui.internal.PartPluginAction.<init>(PartPluginAction.java:29)
- at org.eclipse.ui.internal.EditorPluginAction.<init>(EditorPluginAction.java:32)
- at org.eclipse.ui.internal.ActionDescriptor.createAction(ActionDescriptor.java:262)
- at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:176)
- at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:103)
- at org.eclipse.ui.internal.EditorActionBuilder.createActionDescriptor(EditorActionBuilder.java:41)
- at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:161)
- at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
- at org.eclipse.ui.internal.registry.RegistryReader.readElementChildren(RegistryReader.java:133)
- at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:144)
- at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
- at org.eclipse.ui.internal.registry.RegistryReader.readExtension(RegistryReader.java:155)
- at org.eclipse.ui.internal.registry.RegistryReader.readRegistry(RegistryReader.java:176)
- at org.eclipse.ui.internal.PluginActionBuilder.readContributions(PluginActionBuilder.java:115)
- at org.eclipse.ui.internal.EditorActionBuilder.readActionExtensions(EditorActionBuilder.java:58)
- at org.eclipse.ui.internal.EditorReference.createEditorActionBars(EditorReference.java:446)
- at org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:356)
- at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:301)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
- at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:861)
- at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:841)
- at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:113)
- at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:321)
- at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:242)
- at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:161)
- at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
- at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
- at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
- at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:141)
+ at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1115)
+ at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:98)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$6.run(PartRenderingEngine.java:520)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:505)
+ at org.eclipse.e4.ui.workbench.renderers.swt.ElementReferenceRenderer.createWidget(ElementReferenceRenderer.java:74)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
- at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.createElement(PartServiceImpl.java:1071)
- at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.showPart(PartServiceImpl.java:1033)
- at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:464)
- at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:269)
- at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2999)
- at org.eclipse.ui.internal.WorkbenchPage.access$22(WorkbenchPage.java:2969)
- at org.eclipse.ui.internal.WorkbenchPage$8.run(WorkbenchPage.java:2951)
- at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
- at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2947)
- at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2911)
- at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2902)
- at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:373)
- at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:179)
- at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:249)
- at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:228)
- at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:275)
- at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:251)
- at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup.handleOpen(PackageExplorerActionGroup.java:376)
- at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$4.open(PackageExplorerPart.java:538)
- at org.eclipse.ui.OpenAndLinkWithEditorHelper$InternalListener.open(OpenAndLinkWithEditorHelper.java:48)
- at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:866)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
- at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
- at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
- at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:864)
- at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1152)
- at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1256)
- at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:275)
- at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:269)
- at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:309)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveRenderer.processContents(PerspectiveRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.showTab(PerspectiveStackRenderer.java:103)
+ at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:98)
+ at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.postProcess(PerspectiveStackRenderer.java:77)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.workbench.renderers.swt.WBWRenderer.processContents(WBWRenderer.java:644)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:987)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-!ENTRY org.eclipse.ui 2 2 2015-01-27 10:34:37.938
-!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
+!ENTRY org.eclipse.egit.ui 2 0 2015-02-19 13:29:49.877
+!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
+Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
+The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
+this system level configuration. The Git installation location can be configured on the
+Team > Git > Configuration preference page's 'System Settings' tab.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
+
+!ENTRY org.eclipse.egit.ui 2 0 2015-02-19 13:29:49.879
+!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
+user global configuration and to define the default location to store repositories: 'C:\Users\raisaro'. If this is
+not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
+EGit might behave differently since they see different configuration options.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-!ENTRY org.eclipse.e4.ui.workbench 4 0 2015-01-27 10:41:34.708
-!MESSAGE Error setting focus to : org.eclipse.e4.ui.model.application.ui.basic.impl.PartImpl Buttons.java
+!ENTRY org.eclipse.wb.core 4 4 2015-02-19 17:10:35.592
+!MESSAGE Designer [1.5.2.r42x201302112024.201502191710]: java.lang.NullPointerException
!STACK 0
-org.eclipse.swt.SWTException: Widget is disposed
- at org.eclipse.swt.SWT.error(SWT.java:4361)
- at org.eclipse.swt.SWT.error(SWT.java:4276)
- at org.eclipse.swt.SWT.error(SWT.java:4247)
- at org.eclipse.swt.widgets.Widget.error(Widget.java:468)
- at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:340)
- at org.eclipse.swt.widgets.Control.setFocus(Control.java:3301)
- at org.eclipse.swt.widgets.Composite.setFocus(Composite.java:1038)
- at org.eclipse.swt.widgets.Composite.setFocus(Composite.java:1038)
- at org.eclipse.ui.texteditor.StatusTextEditor.setFocus(StatusTextEditor.java:120)
- at org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.setFocus(JavaEditor.java:2389)
- at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.delegateSetFocus(CompatibilityPart.java:189)
- at sun.reflect.GeneratedMethodAccessor258.invoke(Unknown Source)
+java.lang.NullPointerException
+ at java.beans.MethodRef.get(Unknown Source)
+ at java.beans.PropertyDescriptor.getWriteMethod(Unknown Source)
+ at org.eclipse.wb.internal.core.model.JavaInfoUtils.addExposedChildred_Method(JavaInfoUtils.java:447)
+ at org.eclipse.wb.internal.core.model.JavaInfoUtils.addExposedChildren(JavaInfoUtils.java:429)
+ at org.eclipse.wb.internal.swing.model.component.ComponentInfo.createExposedChildren(ComponentInfo.java:109)
+ at org.eclipse.wb.internal.swing.model.component.ContainerInfo.createExposedChildren(ContainerInfo.java:143)
+ at org.eclipse.wb.core.model.JavaInfo.initialize(JavaInfo.java:419)
+ at org.eclipse.wb.internal.swing.model.component.ContainerInfo.initialize(ContainerInfo.java:114)
+ at org.eclipse.wb.core.model.JavaInfo.setObject(JavaInfo.java:1267)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper$3.evaluationSuccessful(JavaInfoEvaluationHelper.java:271)
+ at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate0(AstEvaluationEngine.java:179)
+ at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate(AstEvaluationEngine.java:61)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluateExpression(JavaInfoEvaluationHelper.java:630)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluate(JavaInfoEvaluationHelper.java:502)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.evaluateNode(JavaInfoParser.java:1309)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$1(JavaInfoParser.java:1300)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor$3.run(JavaInfoParser.java:602)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runRethrow(ExecutionUtils.java:119)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor.postVisit(JavaInfoParser.java:592)
+ at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
- at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:231)
- at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:237)
- at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:208)
- at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:106)
- at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer$2.setFocus(ContributedPartRenderer.java:101)
- at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer$9.mouseUp(StackRenderer.java:942)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:220)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:399)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$9336e59e.postVisit(<generated>)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2517)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.VariableDeclarationFragment.accept0(VariableDeclarationFragment.java:225)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2585)
+ at org.eclipse.jdt.core.dom.VariableDeclarationStatement.accept0(VariableDeclarationStatement.java:273)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:228)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:191)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parseRootMethods(JavaInfoParser.java:312)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$10(JavaInfoParser.java:307)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$2.runObject(JavaInfoParser.java:166)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$2.runObject(JavaInfoParser.java:1)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:159)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:164)
+ at org.eclipse.wb.internal.core.model.util.live.AbstractLiveManager.parse(AbstractLiveManager.java:191)
+ at org.eclipse.wb.internal.swing.model.component.live.SwingLiveManager.createLiveComponent(SwingLiveManager.java:56)
+ at org.eclipse.wb.internal.core.model.util.live.AbstractLiveManager.createCacheEntryEx(AbstractLiveManager.java:103)
+ at org.eclipse.wb.internal.core.model.util.live.AbstractLiveManager.createCacheEntry(AbstractLiveManager.java:82)
+ at org.eclipse.wb.internal.core.model.util.live.AbstractLiveManager.getCachedEntry(AbstractLiveManager.java:264)
+ at org.eclipse.wb.internal.core.model.util.live.AbstractLiveManager.getCachedEntry(AbstractLiveManager.java:245)
+ at org.eclipse.wb.internal.swing.model.component.live.SwingLiveManager.getImage(SwingLiveManager.java:131)
+ at org.eclipse.wb.internal.swing.model.component.ComponentInfo.getLiveImage(ComponentInfo.java:259)
+ at org.eclipse.wb.core.model.AbstractComponentInfo.getImage(AbstractComponentInfo.java:165)
+ at org.eclipse.wb.internal.layout.group.gef.GroupLayoutEditPolicy2.showCreationFeedback(GroupLayoutEditPolicy2.java:169)
+ at org.eclipse.wb.internal.layout.group.gef.GroupLayoutEditPolicy2.showLayoutTargetFeedback(GroupLayoutEditPolicy2.java:135)
+ at org.eclipse.wb.gef.graphical.policies.LayoutEditPolicy.showTargetFeedback(LayoutEditPolicy.java:210)
+ at org.eclipse.wb.gef.core.EditPart.showTargetFeedback(EditPart.java:827)
+ at org.eclipse.wb.gef.core.tools.TargetingTool.showTargetFeedback(TargetingTool.java:242)
+ at org.eclipse.wb.gef.core.tools.TargetingTool.handleEnteredEditPart(TargetingTool.java:99)
+ at org.eclipse.wb.gef.core.tools.TargetingTool.setTargetEditPart(TargetingTool.java:76)
+ at org.eclipse.wb.gef.core.tools.TargetingTool.updateTargetUnderMouse(TargetingTool.java:177)
+ at org.eclipse.wb.gef.core.tools.AbstractCreationTool.handleMove(AbstractCreationTool.java:73)
+ at org.eclipse.wb.gef.core.tools.Tool.mouseMove(Tool.java:426)
+ at org.eclipse.wb.internal.gef.core.EditDomain.mouseMove(EditDomain.java:266)
+ at org.eclipse.wb.internal.gef.graphical.EditEventManager.mouseMove(EditEventManager.java:170)
+ at sun.reflect.GeneratedMethodAccessor153.invoke(Unknown Source)
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
+ at java.lang.reflect.Method.invoke(Unknown Source)
+ at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
+ at com.sun.proxy.$Proxy14.mouseMove(Unknown Source)
+ at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-!ENTRY org.eclipse.ui 4 4 2015-01-27 15:24:51.587
-!MESSAGE Could not create action delegate for id: org.eclipse.jdt.debug.ui.actions.ManageBreakpointRulerAction
+!ENTRY org.eclipse.wb.core 4 4 2015-02-19 17:10:37.358
+!MESSAGE Designer [1.5.2.r42x201302112024.201502191710]: 313 (Exception during 'super' constructor evaluation). JFrame() {} java.lang.NullPointerException
+ at java.beans.MethodRef.get(Unknown Source)
+ at java.beans.PropertyDescriptor.getWriteMethod(Unknown Source)
+!STACK 0
+org.eclipse.wb.internal.core.utils.exception.DesignerException: 313 (Exception during 'super' constructor evaluation). JFrame() {} java.lang.NullPointerException
+ at java.beans.MethodRef.get(Unknown Source)
+ at java.beans.PropertyDescriptor.getWriteMethod(Unknown Source)
+ at org.eclipse.wb.internal.core.model.creation.ThisCreationSupport.create(ThisCreationSupport.java:275)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluateJavaInfoUsingCreationSupport(JavaInfoEvaluationHelper.java:642)
+ at org.eclipse.wb.core.model.JavaInfo.refresh_create(JavaInfo.java:1176)
+ at org.eclipse.wb.core.model.ObjectInfo.refreshCreate0(ObjectInfo.java:550)
+ at org.eclipse.wb.core.model.ObjectInfo.access$0(ObjectInfo.java:546)
+ at org.eclipse.wb.core.model.ObjectInfo$5$1.run(ObjectInfo.java:486)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:145)
+ at org.eclipse.wb.core.model.ObjectInfo$5.run(ObjectInfo.java:484)
+ at org.eclipse.wb.internal.swing.utils.SwingUtils$2.run(SwingUtils.java:76)
+ at java.awt.event.InvocationEvent.dispatch(Unknown Source)
+ at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
+ at java.awt.EventQueue.access$500(Unknown Source)
+ at java.awt.EventQueue$3.run(Unknown Source)
+ at java.awt.EventQueue$3.run(Unknown Source)
+ at java.security.AccessController.doPrivileged(Native Method)
+ at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
+ at java.awt.EventQueue.dispatchEvent(Unknown Source)
+ at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
+ at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
+ at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
+ at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
+ at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
+ at java.awt.EventDispatchThread.run(Unknown Source)
+Caused by: java.lang.NullPointerException
+ at java.beans.MethodRef.get(Unknown Source)
+ at java.beans.PropertyDescriptor.getWriteMethod(Unknown Source)
+ at org.eclipse.wb.internal.core.model.JavaInfoUtils.addExposedChildred_Method(JavaInfoUtils.java:447)
+ at org.eclipse.wb.internal.core.model.JavaInfoUtils.addExposedChildren(JavaInfoUtils.java:429)
+ at org.eclipse.wb.internal.swing.model.component.ComponentInfo.createExposedChildren(ComponentInfo.java:109)
+ at org.eclipse.wb.internal.swing.model.component.ContainerInfo.createExposedChildren(ContainerInfo.java:143)
+ at org.eclipse.wb.internal.core.model.creation.ThisCreationSupport.duringParsing_createExposedChildren(ThisCreationSupport.java:701)
+ at org.eclipse.wb.internal.core.model.creation.ThisCreationSupport.create(ThisCreationSupport.java:270)
+ ... 22 more
-!ENTRY org.eclipse.equinox.registry 4 1 2015-01-27 15:24:51.587
-!MESSAGE Plug-in org.eclipse.wb.core.java was unable to load class org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate.
+!ENTRY org.eclipse.wb.core 4 4 2015-02-19 17:10:40.598
+!MESSAGE Designer [1.5.2.r42x201302112024.201502191710]: new javax.swing.JPanel()
!STACK 0
-java.lang.ClassNotFoundException: org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate
- at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
- at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
- at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
- at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
- at java.lang.ClassLoader.loadClass(Unknown Source)
- at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
- at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
- at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
- at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
- at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
- at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
- at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
- at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:265)
- at org.eclipse.ui.internal.PluginAction.createDelegate(PluginAction.java:122)
- at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:275)
- at org.eclipse.ui.internal.PluginAction.<init>(PluginAction.java:112)
- at org.eclipse.ui.internal.PartPluginAction.<init>(PartPluginAction.java:29)
- at org.eclipse.ui.internal.EditorPluginAction.<init>(EditorPluginAction.java:32)
- at org.eclipse.ui.internal.ActionDescriptor.createAction(ActionDescriptor.java:262)
- at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:176)
- at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:103)
- at org.eclipse.ui.internal.EditorActionBuilder.createActionDescriptor(EditorActionBuilder.java:41)
- at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:161)
- at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
- at org.eclipse.ui.internal.registry.RegistryReader.readElementChildren(RegistryReader.java:133)
- at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:144)
- at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
- at org.eclipse.ui.internal.registry.RegistryReader.readExtension(RegistryReader.java:155)
- at org.eclipse.ui.internal.registry.RegistryReader.readRegistry(RegistryReader.java:176)
- at org.eclipse.ui.internal.PluginActionBuilder.readContributions(PluginActionBuilder.java:115)
- at org.eclipse.ui.internal.EditorActionBuilder.readActionExtensions(EditorActionBuilder.java:58)
- at org.eclipse.ui.internal.EditorReference.createEditorActionBars(EditorReference.java:446)
- at org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:356)
- at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:301)
- at sun.reflect.GeneratedMethodAccessor261.invoke(Unknown Source)
+java.lang.Error: new javax.swing.JPanel()
+ at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate(AstEvaluationEngine.java:71)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluateExpression(JavaInfoEvaluationHelper.java:630)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluate(JavaInfoEvaluationHelper.java:502)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.evaluateNode(JavaInfoParser.java:1309)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$1(JavaInfoParser.java:1300)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor$3.run(JavaInfoParser.java:602)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runRethrow(ExecutionUtils.java:119)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor.postVisit(JavaInfoParser.java:592)
+ at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
- at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:861)
- at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:841)
- at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:113)
- at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:321)
- at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:242)
- at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:161)
- at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
- at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
- at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
- at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:141)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
- at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1115)
- at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer$1.handleEvent(LazyStackRenderer.java:67)
- at org.eclipse.e4.ui.services.internal.events.UIEventHandler$1.run(UIEventHandler.java:41)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:399)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$9336e59e.postVisit(<generated>)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2517)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.Assignment.accept0(Assignment.java:312)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.access$1(ExecutionFlowUtils.java:235)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.endVisit(ExecutionFlowUtils.java:442)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:391)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$9336e59e.endVisit(<generated>)
+ at org.eclipse.jdt.core.dom.MethodInvocation.accept0(MethodInvocation.java:247)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:343)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:228)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:191)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parseRootMethods(JavaInfoParser.java:312)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:268)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$9(JavaInfoParser.java:238)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:153)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:1)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:159)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:151)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:534)
+ at org.eclipse.wb.internal.core.editor.DesignPage.access$9(DesignPage.java:522)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8$1.run(DesignPage.java:449)
at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
- at org.eclipse.e4.ui.internal.workbench.swt.E4Application$1.syncExec(E4Application.java:187)
- at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:38)
- at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:197)
- at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:197)
- at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)
- at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
- at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
- at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:135)
- at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:78)
- at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:39)
- at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:80)
- at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:58)
- at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:374)
- at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement(ElementContainerImpl.java:171)
- at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.showElementInWindow(ModelServiceImpl.java:422)
- at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.bringToTop(ModelServiceImpl.java:389)
- at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.delegateBringToTop(PartServiceImpl.java:606)
- at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.bringToTop(PartServiceImpl.java:332)
- at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.showPart(PartServiceImpl.java:1029)
- at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:3047)
- at org.eclipse.ui.internal.WorkbenchPage.access$22(WorkbenchPage.java:2969)
- at org.eclipse.ui.internal.WorkbenchPage$8.run(WorkbenchPage.java:2951)
- at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
- at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2947)
- at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2911)
- at org.eclipse.ui.actions.OpenWithMenu.openEditor(OpenWithMenu.java:338)
- at org.eclipse.ui.actions.OpenWithMenu$2.handleEvent(OpenWithMenu.java:180)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8.run(DesignPage.java:446)
+ at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
+ at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
+ at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF_withProgress(DesignPage.java:465)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:415)
+ at org.eclipse.wb.internal.core.editor.UndoManager.refreshDesignerEditor(UndoManager.java:381)
+ at org.eclipse.wb.internal.core.editor.UndoManager$6.run(UndoManager.java:330)
+ at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
+ at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
+ at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4144)
+ at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
+Caused by: java.lang.NullPointerException
+ at java.beans.MethodRef.get(Unknown Source)
+ at java.beans.PropertyDescriptor.getReadMethod(Unknown Source)
+ at org.eclipse.wb.internal.core.model.JavaInfoUtils.addExposedChildred_Method(JavaInfoUtils.java:449)
+ at org.eclipse.wb.internal.core.model.JavaInfoUtils.addExposedChildren(JavaInfoUtils.java:429)
+ at org.eclipse.wb.internal.swing.model.component.ComponentInfo.createExposedChildren(ComponentInfo.java:109)
+ at org.eclipse.wb.internal.swing.model.component.ContainerInfo.createExposedChildren(ContainerInfo.java:143)
+ at org.eclipse.wb.core.model.JavaInfo.initialize(JavaInfo.java:419)
+ at org.eclipse.wb.internal.swing.model.component.ContainerInfo.initialize(ContainerInfo.java:114)
+ at org.eclipse.wb.core.model.JavaInfo.setObject(JavaInfo.java:1267)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper$3.evaluationSuccessful(JavaInfoEvaluationHelper.java:271)
+ at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate0(AstEvaluationEngine.java:179)
+ at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate(AstEvaluationEngine.java:61)
+ ... 91 more
-!ENTRY org.eclipse.e4.ui.workbench 4 0 2015-01-27 16:49:18.773
-!MESSAGE
+!ENTRY org.eclipse.wb.core 4 4 2015-02-19 17:10:49.370
+!MESSAGE Designer [1.5.2.r42x201302112024.201502191710]: new javax.swing.JComboBox<String>()
!STACK 0
-org.eclipse.e4.core.di.InjectionException: org.eclipse.core.commands.NotHandledException: There is no handler to execute for command org.eclipse.ui.edit.paste
- at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:63)
- at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:231)
- at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:212)
- at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:131)
- at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:171)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.executeCommand(KeyBindingDispatcher.java:277)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.press(KeyBindingDispatcher.java:496)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.processKeyEvent(KeyBindingDispatcher.java:547)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.filterKeySequenceBindings(KeyBindingDispatcher.java:368)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.access$0(KeyBindingDispatcher.java:314)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher$KeyDownFilter.handleEvent(KeyBindingDispatcher.java:83)
+java.lang.Error: new javax.swing.JComboBox<String>()
+ at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate(AstEvaluationEngine.java:71)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluateExpression(JavaInfoEvaluationHelper.java:630)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluate(JavaInfoEvaluationHelper.java:502)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.evaluateNode(JavaInfoParser.java:1309)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$1(JavaInfoParser.java:1300)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor$3.run(JavaInfoParser.java:602)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runRethrow(ExecutionUtils.java:119)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor.postVisit(JavaInfoParser.java:592)
+ at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
+ at java.lang.reflect.Method.invoke(Unknown Source)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:399)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$9336e59e.postVisit(<generated>)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2517)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.Assignment.accept0(Assignment.java:312)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.access$1(ExecutionFlowUtils.java:235)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.endVisit(ExecutionFlowUtils.java:442)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:391)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$9336e59e.endVisit(<generated>)
+ at org.eclipse.jdt.core.dom.MethodInvocation.accept0(MethodInvocation.java:247)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:343)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:228)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:191)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parseRootMethods(JavaInfoParser.java:312)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:268)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$9(JavaInfoParser.java:238)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:153)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:1)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:159)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:151)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:534)
+ at org.eclipse.wb.internal.core.editor.DesignPage.access$9(DesignPage.java:522)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8$1.run(DesignPage.java:449)
+ at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
+ at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
+ at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8.run(DesignPage.java:446)
+ at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
+ at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
+ at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF_withProgress(DesignPage.java:465)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:415)
+ at org.eclipse.wb.internal.core.editor.UndoManager.refreshDesignerEditor(UndoManager.java:381)
+ at org.eclipse.wb.internal.core.editor.UndoManager.activate(UndoManager.java:90)
+ at org.eclipse.wb.internal.core.editor.DesignPage.handleActiveState_True(DesignPage.java:263)
+ at org.eclipse.wb.internal.core.editor.DesignPage.handleActiveState(DesignPage.java:241)
+ at org.eclipse.wb.internal.core.editor.multi.DefaultMultiMode.showPage(DefaultMultiMode.java:125)
+ at org.eclipse.wb.internal.core.editor.multi.DefaultMultiMode$1.widgetSelected(DefaultMultiMode.java:63)
+ at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1262)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1052)
+ at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
- at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1104)
- at org.eclipse.swt.widgets.Text.sendKeyEvent(Text.java:1704)
- at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1100)
- at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1521)
- at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:4640)
- at org.eclipse.swt.widgets.Text.WM_CHAR(Text.java:2584)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4528)
- at org.eclipse.swt.widgets.Text.windowProc(Text.java:2570)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:4976)
- at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
- at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2546)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3756)
+ at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:774)
+ at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3028)
+ at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1749)
+ at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:278)
+ at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
+ at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
+ at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
+ at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: org.eclipse.core.commands.NotHandledException: There is no handler to execute for command org.eclipse.ui.edit.paste
- at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:84)
- at sun.reflect.GeneratedMethodAccessor259.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
- ... 49 more
-
-!ENTRY org.eclipse.ui 4 4 2015-01-27 17:52:52.015
-!MESSAGE Could not create action delegate for id: org.eclipse.jdt.debug.ui.actions.ManageBreakpointRulerAction
+Caused by: java.lang.NullPointerException
-!ENTRY org.eclipse.equinox.registry 4 1 2015-01-27 17:52:52.016
-!MESSAGE Plug-in org.eclipse.wb.core.java was unable to load class org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate.
+!ENTRY org.eclipse.wb.core 4 4 2015-02-19 17:10:51.289
+!MESSAGE Designer [1.5.2.r42x201302112024.201502191710]: new javax.swing.JComboBox<String>()
!STACK 0
-java.lang.ClassNotFoundException: org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate
- at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
- at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
- at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
- at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
- at java.lang.ClassLoader.loadClass(Unknown Source)
- at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
- at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
- at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
- at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
- at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
- at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
- at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
- at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:265)
- at org.eclipse.ui.internal.PluginAction.createDelegate(PluginAction.java:122)
- at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:275)
- at org.eclipse.ui.internal.PluginAction.<init>(PluginAction.java:112)
- at org.eclipse.ui.internal.PartPluginAction.<init>(PartPluginAction.java:29)
- at org.eclipse.ui.internal.EditorPluginAction.<init>(EditorPluginAction.java:32)
- at org.eclipse.ui.internal.ActionDescriptor.createAction(ActionDescriptor.java:262)
- at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:176)
- at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:103)
- at org.eclipse.ui.internal.EditorActionBuilder.createActionDescriptor(EditorActionBuilder.java:41)
- at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:161)
- at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
- at org.eclipse.ui.internal.registry.RegistryReader.readElementChildren(RegistryReader.java:133)
- at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:144)
- at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
- at org.eclipse.ui.internal.registry.RegistryReader.readExtension(RegistryReader.java:155)
- at org.eclipse.ui.internal.registry.RegistryReader.readRegistry(RegistryReader.java:176)
- at org.eclipse.ui.internal.PluginActionBuilder.readContributions(PluginActionBuilder.java:115)
- at org.eclipse.ui.internal.EditorActionBuilder.readActionExtensions(EditorActionBuilder.java:58)
- at org.eclipse.ui.internal.EditorReference.createEditorActionBars(EditorReference.java:446)
- at org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:356)
- at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:301)
- at sun.reflect.GeneratedMethodAccessor261.invoke(Unknown Source)
+java.lang.Error: new javax.swing.JComboBox<String>()
+ at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate(AstEvaluationEngine.java:71)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluateExpression(JavaInfoEvaluationHelper.java:630)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluate(JavaInfoEvaluationHelper.java:502)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.evaluateNode(JavaInfoParser.java:1309)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$1(JavaInfoParser.java:1300)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor$3.run(JavaInfoParser.java:602)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runRethrow(ExecutionUtils.java:119)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor.postVisit(JavaInfoParser.java:592)
+ at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
- at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:861)
- at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:841)
- at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:113)
- at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:321)
- at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:242)
- at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:161)
- at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
- at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
- at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
- at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:141)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
- at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1115)
- at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer$1.handleEvent(LazyStackRenderer.java:67)
- at org.eclipse.e4.ui.services.internal.events.UIEventHandler$1.run(UIEventHandler.java:41)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:399)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$9336e59e.postVisit(<generated>)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2517)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.Assignment.accept0(Assignment.java:312)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.access$1(ExecutionFlowUtils.java:235)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.endVisit(ExecutionFlowUtils.java:442)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:391)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$9336e59e.endVisit(<generated>)
+ at org.eclipse.jdt.core.dom.MethodInvocation.accept0(MethodInvocation.java:247)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:343)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:228)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:191)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parseRootMethods(JavaInfoParser.java:312)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:268)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$9(JavaInfoParser.java:238)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:153)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:1)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:159)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:151)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:534)
+ at org.eclipse.wb.internal.core.editor.DesignPage.access$9(DesignPage.java:522)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8$1.run(DesignPage.java:449)
at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
- at org.eclipse.e4.ui.internal.workbench.swt.E4Application$1.syncExec(E4Application.java:187)
- at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:38)
- at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:197)
- at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:197)
- at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)
- at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
- at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
- at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:135)
- at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:78)
- at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:39)
- at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:80)
- at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:58)
- at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:374)
- at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement(ElementContainerImpl.java:171)
- at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.showElementInWindow(ModelServiceImpl.java:422)
- at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.bringToTop(ModelServiceImpl.java:389)
- at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.delegateBringToTop(PartServiceImpl.java:606)
- at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.bringToTop(PartServiceImpl.java:332)
- at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.showPart(PartServiceImpl.java:1029)
- at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:3047)
- at org.eclipse.ui.internal.WorkbenchPage.access$22(WorkbenchPage.java:2969)
- at org.eclipse.ui.internal.WorkbenchPage$8.run(WorkbenchPage.java:2951)
- at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
- at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2947)
- at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2911)
- at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2902)
- at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:373)
- at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:179)
- at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:249)
- at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:228)
- at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:275)
- at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:251)
- at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup.handleOpen(PackageExplorerActionGroup.java:376)
- at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$4.open(PackageExplorerPart.java:538)
- at org.eclipse.ui.OpenAndLinkWithEditorHelper$InternalListener.open(OpenAndLinkWithEditorHelper.java:48)
- at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:866)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
- at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
- at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
- at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:864)
- at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1152)
- at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1256)
- at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:275)
- at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:269)
- at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:309)
+ at org.eclipse.wb.internal.core.editor.DesignPage$8.run(DesignPage.java:446)
+ at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
+ at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
+ at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF_withProgress(DesignPage.java:465)
+ at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:415)
+ at org.eclipse.wb.internal.core.editor.UndoManager.refreshDesignerEditor(UndoManager.java:381)
+ at org.eclipse.wb.internal.core.editor.DesignPage.refreshGEF(DesignPage.java:392)
+ at org.eclipse.wb.internal.core.editor.actions.RefreshAction.run(RefreshAction.java:46)
+ at org.eclipse.wb.internal.core.editor.actions.DesignPageAction.run(DesignPageAction.java:34)
+ at org.eclipse.wb.internal.core.editor.errors.JavaExceptionComposite.doRefresh(JavaExceptionComposite.java:87)
+ at org.eclipse.wb.internal.core.editor.errors.ExceptionComposite$3.widgetSelected(ExceptionComposite.java:129)
+ at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-!SESSION 2015-01-28 09:13:42.159 -----------------------------------------------
-eclipse.buildId=M20130204-1200
-java.version=1.7.0_45
-java.vendor=Oracle Corporation
-BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
-Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
-Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
-
-!ENTRY org.eclipse.ui 4 4 2015-01-28 09:13:55.172
-!MESSAGE Could not create action delegate for id: org.eclipse.jdt.debug.ui.actions.ManageBreakpointRulerAction
+Caused by: java.lang.NullPointerException
-!ENTRY org.eclipse.equinox.registry 4 1 2015-01-28 09:13:55.177
-!MESSAGE Plug-in org.eclipse.wb.core.java was unable to load class org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate.
+!ENTRY org.eclipse.wb.core 4 4 2015-02-19 17:10:52.503
+!MESSAGE Designer [1.5.2.r42x201302112024.201502191710]: new javax.swing.JLabel()
!STACK 0
-java.lang.ClassNotFoundException: org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate
- at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
- at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
- at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
- at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
- at java.lang.ClassLoader.loadClass(Unknown Source)
- at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
- at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
- at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
- at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
- at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
- at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
- at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
- at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:265)
- at org.eclipse.ui.internal.PluginAction.createDelegate(PluginAction.java:122)
- at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:275)
- at org.eclipse.ui.internal.PluginAction.<init>(PluginAction.java:112)
- at org.eclipse.ui.internal.PartPluginAction.<init>(PartPluginAction.java:29)
- at org.eclipse.ui.internal.EditorPluginAction.<init>(EditorPluginAction.java:32)
- at org.eclipse.ui.internal.ActionDescriptor.createAction(ActionDescriptor.java:262)
- at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:176)
- at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:103)
- at org.eclipse.ui.internal.EditorActionBuilder.createActionDescriptor(EditorActionBuilder.java:41)
- at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:161)
- at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
- at org.eclipse.ui.internal.registry.RegistryReader.readElementChildren(RegistryReader.java:133)
- at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:144)
- at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
- at org.eclipse.ui.internal.registry.RegistryReader.readExtension(RegistryReader.java:155)
- at org.eclipse.ui.internal.registry.RegistryReader.readRegistry(RegistryReader.java:176)
- at org.eclipse.ui.internal.PluginActionBuilder.readContributions(PluginActionBuilder.java:115)
- at org.eclipse.ui.internal.EditorActionBuilder.readActionExtensions(EditorActionBuilder.java:58)
- at org.eclipse.ui.internal.EditorReference.createEditorActionBars(EditorReference.java:446)
- at org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:356)
- at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:301)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
- at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:861)
- at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:841)
- at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:113)
- at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:321)
- at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:242)
- at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:161)
- at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
- at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
- at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
- at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:141)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
- at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1115)
- at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:98)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
- at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$6.run(PartRenderingEngine.java:520)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:505)
- at org.eclipse.e4.ui.workbench.renderers.swt.ElementReferenceRenderer.createWidget(ElementReferenceRenderer.java:74)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
- at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
- at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
- at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
- at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
- at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveRenderer.processContents(PerspectiveRenderer.java:59)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
- at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.showTab(PerspectiveStackRenderer.java:103)
- at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:98)
- at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.postProcess(PerspectiveStackRenderer.java:77)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
- at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
- at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
- at org.eclipse.e4.ui.workbench.renderers.swt.WBWRenderer.processContents(WBWRenderer.java:644)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:987)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
+java.lang.Error: new javax.swing.JLabel()
+ at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate(AstEvaluationEngine.java:71)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluateExpression(JavaInfoEvaluationHelper.java:630)
+ at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluate(JavaInfoEvaluationHelper.java:502)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.evaluateNode(JavaInfoParser.java:1309)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$1(JavaInfoParser.java:1300)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor$3.run(JavaInfoParser.java:602)
+ at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runRethrow(ExecutionUtils.java:119)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor.postVisit(JavaInfoParser.java:592)
+ at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-
-!ENTRY org.eclipse.egit.ui 2 0 2015-01-28 09:14:01.689
-!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
-Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
-The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
-this system level configuration. The Git installation location can be configured on the
-Team > Git > Configuration preference page's 'System Settings' tab.
-This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-
-!ENTRY org.eclipse.egit.ui 2 0 2015-01-28 09:14:01.689
-!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
-user global configuration and to define the default location to store repositories: 'C:\Users\raisaro'. If this is
-not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
-EGit might behave differently since they see different configuration options.
-This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-
-!ENTRY org.eclipse.ui 2 2 2015-01-28 09:56:26.460
-!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
-
-!ENTRY org.eclipse.wb.core 4 4 2015-01-28 10:52:25.419
-!MESSAGE Designer [1.5.2.r42x201302112024.201501281052]: component not found in tabbed pane
-!STACK 0
-java.lang.IllegalArgumentException: component not found in tabbed pane
- at javax.swing.JTabbedPane.setSelectedComponent(Unknown Source)
- at org.eclipse.wb.internal.swing.model.component.JTabbedPaneInfo.refresh_afterCreate(JTabbedPaneInfo.java:156)
- at org.eclipse.wb.core.model.ObjectInfo.refresh_afterCreate(ObjectInfo.java:621)
- at org.eclipse.wb.core.model.JavaInfo.refresh_afterCreate(JavaInfo.java:1226)
- at org.eclipse.wb.core.model.AbstractComponentInfo.refresh_afterCreate(AbstractComponentInfo.java:238)
- at org.eclipse.wb.core.model.ObjectInfo.refresh_afterCreate(ObjectInfo.java:621)
- at org.eclipse.wb.core.model.JavaInfo.refresh_afterCreate(JavaInfo.java:1226)
- at org.eclipse.wb.core.model.AbstractComponentInfo.refresh_afterCreate(AbstractComponentInfo.java:238)
- at org.eclipse.wb.core.model.ObjectInfo.refreshCreate0(ObjectInfo.java:552)
- at org.eclipse.wb.core.model.ObjectInfo.access$0(ObjectInfo.java:546)
- at org.eclipse.wb.core.model.ObjectInfo$5$1.run(ObjectInfo.java:486)
- at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:145)
- at org.eclipse.wb.core.model.ObjectInfo$5.run(ObjectInfo.java:484)
- at org.eclipse.wb.internal.swing.utils.SwingUtils$2.run(SwingUtils.java:76)
- at java.awt.event.InvocationEvent.dispatch(Unknown Source)
- at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
- at java.awt.EventQueue.access$200(Unknown Source)
- at java.awt.EventQueue$3.run(Unknown Source)
- at java.awt.EventQueue$3.run(Unknown Source)
- at java.security.AccessController.doPrivileged(Native Method)
- at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
- at java.awt.EventQueue.dispatchEvent(Unknown Source)
- at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
- at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
- at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
- at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
- at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
- at java.awt.EventDispatchThread.run(Unknown Source)
-
-!ENTRY org.eclipse.ui 4 4 2015-01-28 11:58:16.773
-!MESSAGE Could not create action delegate for id: org.eclipse.jdt.debug.ui.actions.ManageBreakpointRulerAction
-
-!ENTRY org.eclipse.equinox.registry 4 1 2015-01-28 11:58:16.775
-!MESSAGE Plug-in org.eclipse.wb.core.java was unable to load class org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate.
-!STACK 0
-java.lang.ClassNotFoundException: org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate
- at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
- at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
- at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
- at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
- at java.lang.ClassLoader.loadClass(Unknown Source)
- at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
- at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
- at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
- at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
- at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
- at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
- at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
- at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:265)
- at org.eclipse.ui.internal.PluginAction.createDelegate(PluginAction.java:122)
- at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:275)
- at org.eclipse.ui.internal.PluginAction.<init>(PluginAction.java:112)
- at org.eclipse.ui.internal.PartPluginAction.<init>(PartPluginAction.java:29)
- at org.eclipse.ui.internal.EditorPluginAction.<init>(EditorPluginAction.java:32)
- at org.eclipse.ui.internal.ActionDescriptor.createAction(ActionDescriptor.java:262)
- at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:176)
- at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:103)
- at org.eclipse.ui.internal.EditorActionBuilder.createActionDescriptor(EditorActionBuilder.java:41)
- at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:161)
- at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
- at org.eclipse.ui.internal.registry.RegistryReader.readElementChildren(RegistryReader.java:133)
- at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:144)
- at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
- at org.eclipse.ui.internal.registry.RegistryReader.readExtension(RegistryReader.java:155)
- at org.eclipse.ui.internal.registry.RegistryReader.readRegistry(RegistryReader.java:176)
- at org.eclipse.ui.internal.PluginActionBuilder.readContributions(PluginActionBuilder.java:115)
- at org.eclipse.ui.internal.EditorActionBuilder.readActionExtensions(EditorActionBuilder.java:58)
- at org.eclipse.ui.internal.EditorReference.createEditorActionBars(EditorReference.java:446)
- at org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:356)
- at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:301)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
- at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:861)
- at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:841)
- at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:113)
- at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:321)
- at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:242)
- at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:161)
- at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
- at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
- at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
- at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:141)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
- at org.eclipse.e4.ui.internal.workbench.PartServiceImpl$1.handleEvent(PartServiceImpl.java:92)
- at org.eclipse.e4.ui.services.internal.events.UIEventHandler$1.run(UIEventHandler.java:41)
- at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
- at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
- at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
- at org.eclipse.e4.ui.internal.workbench.swt.E4Application$1.syncExec(E4Application.java:187)
- at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:38)
- at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:197)
- at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:197)
- at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)
- at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
- at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
- at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:135)
- at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:78)
- at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:39)
- at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:80)
- at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:58)
- at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:374)
- at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement(ElementContainerImpl.java:171)
- at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.showElementInWindow(ModelServiceImpl.java:422)
- at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.bringToTop(ModelServiceImpl.java:389)
- at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.delegateBringToTop(PartServiceImpl.java:606)
- at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.bringToTop(PartServiceImpl.java:332)
- at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.showPart(PartServiceImpl.java:1029)
- at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:3047)
- at org.eclipse.ui.internal.WorkbenchPage.access$22(WorkbenchPage.java:2969)
- at org.eclipse.ui.internal.WorkbenchPage$8.run(WorkbenchPage.java:2951)
- at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
- at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2947)
- at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2911)
- at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2902)
- at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:373)
- at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:179)
- at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:249)
- at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:228)
- at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:275)
- at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:251)
- at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup.handleOpen(PackageExplorerActionGroup.java:376)
- at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$4.open(PackageExplorerPart.java:538)
- at org.eclipse.ui.OpenAndLinkWithEditorHelper$InternalListener.open(OpenAndLinkWithEditorHelper.java:48)
- at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:866)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
- at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
- at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
- at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:864)
- at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1152)
- at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1256)
- at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:275)
- at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:269)
- at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:309)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-!SESSION 2015-01-29 09:17:23.995 -----------------------------------------------
-eclipse.buildId=M20130204-1200
-java.version=1.7.0_45
-java.vendor=Oracle Corporation
-BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
-Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
-Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
-
-!ENTRY org.eclipse.egit.ui 2 0 2015-01-29 09:17:38.753
-!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
-Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
-The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
-this system level configuration. The Git installation location can be configured on the
-Team > Git > Configuration preference page's 'System Settings' tab.
-This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-
-!ENTRY org.eclipse.egit.ui 2 0 2015-01-29 09:17:38.754
-!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
-user global configuration and to define the default location to store repositories: 'C:\Users\raisaro'. If this is
-not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
-EGit might behave differently since they see different configuration options.
-This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-
-!ENTRY org.eclipse.ui 4 4 2015-01-29 10:23:51.355
-!MESSAGE Could not create action delegate for id: org.eclipse.jdt.debug.ui.actions.ManageBreakpointRulerAction
-
-!ENTRY org.eclipse.equinox.registry 4 1 2015-01-29 10:23:51.356
-!MESSAGE Plug-in org.eclipse.wb.core.java was unable to load class org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate.
-!STACK 0
-java.lang.ClassNotFoundException: org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate
- at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
- at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
- at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
- at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
- at java.lang.ClassLoader.loadClass(Unknown Source)
- at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
- at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
- at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
- at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
- at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
- at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
- at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
- at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:265)
- at org.eclipse.ui.internal.PluginAction.createDelegate(PluginAction.java:122)
- at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:275)
- at org.eclipse.ui.internal.PluginAction.<init>(PluginAction.java:112)
- at org.eclipse.ui.internal.PartPluginAction.<init>(PartPluginAction.java:29)
- at org.eclipse.ui.internal.EditorPluginAction.<init>(EditorPluginAction.java:32)
- at org.eclipse.ui.internal.ActionDescriptor.createAction(ActionDescriptor.java:262)
- at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:176)
- at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:103)
- at org.eclipse.ui.internal.EditorActionBuilder.createActionDescriptor(EditorActionBuilder.java:41)
- at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:161)
- at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
- at org.eclipse.ui.internal.registry.RegistryReader.readElementChildren(RegistryReader.java:133)
- at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:144)
- at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
- at org.eclipse.ui.internal.registry.RegistryReader.readExtension(RegistryReader.java:155)
- at org.eclipse.ui.internal.registry.RegistryReader.readRegistry(RegistryReader.java:176)
- at org.eclipse.ui.internal.PluginActionBuilder.readContributions(PluginActionBuilder.java:115)
- at org.eclipse.ui.internal.EditorActionBuilder.readActionExtensions(EditorActionBuilder.java:58)
- at org.eclipse.ui.internal.EditorReference.createEditorActionBars(EditorReference.java:446)
- at org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:356)
- at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:301)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
- at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:861)
- at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:841)
- at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:113)
- at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:321)
- at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:242)
- at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:161)
- at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
- at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
- at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
- at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:141)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
- at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1115)
- at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer$1.handleEvent(LazyStackRenderer.java:67)
- at org.eclipse.e4.ui.services.internal.events.UIEventHandler$1.run(UIEventHandler.java:41)
- at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
- at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
- at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
- at org.eclipse.e4.ui.internal.workbench.swt.E4Application$1.syncExec(E4Application.java:187)
- at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:38)
- at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:197)
- at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:197)
- at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)
- at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
- at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
- at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:135)
- at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:78)
- at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:39)
- at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:80)
- at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:58)
- at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:374)
- at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement(ElementContainerImpl.java:171)
- at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer$8.widgetSelected(StackRenderer.java:911)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
- at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:774)
- at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3028)
- at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1749)
- at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:278)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-
-!ENTRY org.eclipse.ui 2 2 2015-01-29 11:45:55.717
-!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
-!SESSION 2015-01-29 14:30:09.015 -----------------------------------------------
-eclipse.buildId=M20130204-1200
-java.version=1.7.0_45
-java.vendor=Oracle Corporation
-BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
-Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
-Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
-
-!ENTRY org.eclipse.core.resources 2 10035 2015-01-29 14:30:11.462
-!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.
-
-!ENTRY org.eclipse.egit.ui 2 0 2015-01-29 14:30:20.586
-!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
-Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
-The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
-this system level configuration. The Git installation location can be configured on the
-Team > Git > Configuration preference page's 'System Settings' tab.
-This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-
-!ENTRY org.eclipse.egit.ui 2 0 2015-01-29 14:30:20.587
-!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
-user global configuration and to define the default location to store repositories: 'C:\Users\raisaro'. If this is
-not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
-EGit might behave differently since they see different configuration options.
-This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-
-!ENTRY org.eclipse.ui 4 4 2015-01-29 14:30:22.164
-!MESSAGE Could not create action delegate for id: org.eclipse.jdt.debug.ui.actions.ManageBreakpointRulerAction
-
-!ENTRY org.eclipse.equinox.registry 4 1 2015-01-29 14:30:22.164
-!MESSAGE Plug-in org.eclipse.wb.core.java was unable to load class org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate.
-!STACK 0
-java.lang.ClassNotFoundException: org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate
- at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
- at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
- at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
- at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
- at java.lang.ClassLoader.loadClass(Unknown Source)
- at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
- at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
- at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
- at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
- at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
- at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
- at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
- at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:265)
- at org.eclipse.ui.internal.PluginAction.createDelegate(PluginAction.java:122)
- at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:275)
- at org.eclipse.ui.internal.PluginAction.<init>(PluginAction.java:112)
- at org.eclipse.ui.internal.PartPluginAction.<init>(PartPluginAction.java:29)
- at org.eclipse.ui.internal.EditorPluginAction.<init>(EditorPluginAction.java:32)
- at org.eclipse.ui.internal.ActionDescriptor.createAction(ActionDescriptor.java:262)
- at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:176)
- at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:103)
- at org.eclipse.ui.internal.EditorActionBuilder.createActionDescriptor(EditorActionBuilder.java:41)
- at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:161)
- at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
- at org.eclipse.ui.internal.registry.RegistryReader.readElementChildren(RegistryReader.java:133)
- at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:144)
- at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
- at org.eclipse.ui.internal.registry.RegistryReader.readExtension(RegistryReader.java:155)
- at org.eclipse.ui.internal.registry.RegistryReader.readRegistry(RegistryReader.java:176)
- at org.eclipse.ui.internal.PluginActionBuilder.readContributions(PluginActionBuilder.java:115)
- at org.eclipse.ui.internal.EditorActionBuilder.readActionExtensions(EditorActionBuilder.java:58)
- at org.eclipse.ui.internal.EditorReference.createEditorActionBars(EditorReference.java:446)
- at org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:356)
- at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:301)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
- at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:861)
- at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:841)
- at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:113)
- at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:321)
- at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:242)
- at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:161)
- at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
- at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
- at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
- at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:141)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
- at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1115)
- at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer$1.handleEvent(LazyStackRenderer.java:67)
- at org.eclipse.e4.ui.services.internal.events.UIEventHandler$1.run(UIEventHandler.java:41)
- at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
- at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
- at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
- at org.eclipse.e4.ui.internal.workbench.swt.E4Application$1.syncExec(E4Application.java:187)
- at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:38)
- at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:197)
- at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:197)
- at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)
- at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
- at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
- at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:135)
- at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:78)
- at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:39)
- at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:80)
- at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:58)
- at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:374)
- at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement(ElementContainerImpl.java:171)
- at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer$8.widgetSelected(StackRenderer.java:911)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
- at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:774)
- at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3028)
- at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1749)
- at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:278)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-
-!ENTRY org.eclipse.wb.core 4 4 2015-01-29 15:50:14.365
-!MESSAGE Designer [1.5.2.r42x201302112024.201501291550]: java.lang.NullPointerException
-!STACK 0
-java.lang.NullPointerException
- at org.eclipse.wb.gef.core.EditPart.getViewer(EditPart.java:539)
- at org.eclipse.wb.internal.core.gef.part.DesignRootEditPart$1.getFigureCanvas(DesignRootEditPart.java:78)
- at org.eclipse.wb.internal.core.gef.part.DesignRootEditPart$1.refreshed(DesignRootEditPart.java:72)
- at sun.reflect.GeneratedMethodAccessor134.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.core.model.broadcast.BroadcastSupport$1.intercept(BroadcastSupport.java:208)
- at org.eclipse.wb.core.model.broadcast.ObjectEventListener$$EnhancerByCGLIB$$4559a102.refreshed(<generated>)
- at org.eclipse.wb.core.model.ObjectInfo.refresh(ObjectInfo.java:504)
- at org.eclipse.wb.core.model.ObjectInfo.endEdit(ObjectInfo.java:446)
- at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.run(ExecutionUtils.java:325)
- at org.eclipse.wb.core.gef.command.EditCommand.execute(EditCommand.java:50)
- at org.eclipse.wb.internal.gef.core.EditDomain.executeCommand(EditDomain.java:59)
- at org.eclipse.wb.gef.core.tools.Tool.executeCommand(Tool.java:209)
- at org.eclipse.wb.gef.core.tools.DragEditPartTracker.handleButtonUp(DragEditPartTracker.java:74)
- at org.eclipse.wb.gef.core.tools.Tool.mouseUp(Tool.java:395)
- at org.eclipse.wb.gef.graphical.tools.SelectionTool.mouseUp(SelectionTool.java:250)
- at org.eclipse.wb.gef.graphical.tools.SelectionTool.handleViewerExited(SelectionTool.java:182)
- at org.eclipse.wb.gef.core.tools.Tool.viewerExited(Tool.java:466)
- at org.eclipse.wb.internal.gef.core.EditDomain.viewerExited(EditDomain.java:301)
- at org.eclipse.wb.internal.gef.graphical.EditEventManager.mouseExit(EditEventManager.java:190)
- at sun.reflect.GeneratedMethodAccessor173.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.internal.draw2d.EventManager$8.invoke(EventManager.java:325)
- at com.sun.proxy.$Proxy15.mouseExit(Unknown Source)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:204)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.waitEventLoop(ExecutionUtils.java:71)
- at org.eclipse.wb.internal.swing.utils.SwingUtils.invokeLaterAndWait(SwingUtils.java:168)
- at org.eclipse.wb.internal.swing.utils.SwingUtils.runLaterAndWait(SwingUtils.java:73)
- at org.eclipse.wb.internal.swing.model.component.ComponentInfo.execRefreshOperation(ComponentInfo.java:119)
- at org.eclipse.wb.core.model.ObjectInfo.refresh(ObjectInfo.java:492)
- at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:580)
- at org.eclipse.wb.internal.core.editor.DesignPage.access$9(DesignPage.java:522)
- at org.eclipse.wb.internal.core.editor.DesignPage$8$1.run(DesignPage.java:449)
- at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
- at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
- at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
- at org.eclipse.wb.internal.core.editor.DesignPage$8.run(DesignPage.java:446)
- at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
- at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
- at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
- at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF_withProgress(DesignPage.java:465)
- at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:415)
- at org.eclipse.wb.internal.core.editor.UndoManager.refreshDesignerEditor(UndoManager.java:381)
- at org.eclipse.wb.internal.core.editor.UndoManager$6.run(UndoManager.java:330)
- at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
- at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
- at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4144)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-
-!ENTRY org.eclipse.wb.core 4 4 2015-01-29 15:50:14.602
-!MESSAGE Designer [1.5.2.r42x201302112024.201501291550]: java.lang.NullPointerException
-!STACK 0
-java.lang.NullPointerException
- at org.eclipse.wb.internal.swing.java6.model.SwingVisualMapper.getComponentPreferredSize(SwingVisualMapper.java:85)
- at org.netbeans.modules.form.layoutdesign.LayoutDesigner.imposeCurrentComponentSize(LayoutDesigner.java:3554)
- at org.netbeans.modules.form.layoutdesign.LayoutDesigner.imposeCurrentContainerSize(LayoutDesigner.java:3460)
- at org.netbeans.modules.form.layoutdesign.LayoutDesigner.updatePositions(LayoutDesigner.java:128)
- at org.netbeans.modules.form.layoutdesign.LayoutDesigner.updateCurrentState(LayoutDesigner.java:78)
- at org.eclipse.wb.internal.layout.group.model.GroupLayoutSupport$3.refreshed(GroupLayoutSupport.java:154)
- at sun.reflect.GeneratedMethodAccessor134.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.core.model.broadcast.BroadcastSupport$1.intercept(BroadcastSupport.java:208)
- at org.eclipse.wb.core.model.broadcast.ObjectEventListener$$EnhancerByCGLIB$$4559a102.refreshed(<generated>)
- at org.eclipse.wb.core.model.ObjectInfo.refresh(ObjectInfo.java:504)
- at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:580)
- at org.eclipse.wb.internal.core.editor.DesignPage.access$9(DesignPage.java:522)
- at org.eclipse.wb.internal.core.editor.DesignPage$8$1.run(DesignPage.java:449)
- at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
- at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
- at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
- at org.eclipse.wb.internal.core.editor.DesignPage$8.run(DesignPage.java:446)
- at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
- at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
- at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
- at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF_withProgress(DesignPage.java:465)
- at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:415)
- at org.eclipse.wb.internal.core.editor.UndoManager.refreshDesignerEditor(UndoManager.java:381)
- at org.eclipse.wb.internal.core.editor.UndoManager$6.run(UndoManager.java:330)
- at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
- at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
- at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4144)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-
-!ENTRY org.eclipse.ui 2 2 2015-01-29 15:51:20.075
-!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
-!SESSION 2015-01-29 15:52:55.452 -----------------------------------------------
-eclipse.buildId=M20130204-1200
-java.version=1.7.0_45
-java.vendor=Oracle Corporation
-BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
-Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
-Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
-
-!ENTRY org.eclipse.ui 4 4 2015-01-29 15:53:17.539
-!MESSAGE Could not create action delegate for id: org.eclipse.jdt.debug.ui.actions.ManageBreakpointRulerAction
-
-!ENTRY org.eclipse.equinox.registry 4 1 2015-01-29 15:53:17.555
-!MESSAGE Plug-in org.eclipse.wb.core.java was unable to load class org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate.
-!STACK 0
-java.lang.ClassNotFoundException: org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate
- at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
- at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
- at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
- at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
- at java.lang.ClassLoader.loadClass(Unknown Source)
- at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
- at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
- at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
- at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
- at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
- at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
- at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
- at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:265)
- at org.eclipse.ui.internal.PluginAction.createDelegate(PluginAction.java:122)
- at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:275)
- at org.eclipse.ui.internal.PluginAction.<init>(PluginAction.java:112)
- at org.eclipse.ui.internal.PartPluginAction.<init>(PartPluginAction.java:29)
- at org.eclipse.ui.internal.EditorPluginAction.<init>(EditorPluginAction.java:32)
- at org.eclipse.ui.internal.ActionDescriptor.createAction(ActionDescriptor.java:262)
- at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:176)
- at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:103)
- at org.eclipse.ui.internal.EditorActionBuilder.createActionDescriptor(EditorActionBuilder.java:41)
- at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:161)
- at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
- at org.eclipse.ui.internal.registry.RegistryReader.readElementChildren(RegistryReader.java:133)
- at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:144)
- at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
- at org.eclipse.ui.internal.registry.RegistryReader.readExtension(RegistryReader.java:155)
- at org.eclipse.ui.internal.registry.RegistryReader.readRegistry(RegistryReader.java:176)
- at org.eclipse.ui.internal.PluginActionBuilder.readContributions(PluginActionBuilder.java:115)
- at org.eclipse.ui.internal.EditorActionBuilder.readActionExtensions(EditorActionBuilder.java:58)
- at org.eclipse.ui.internal.EditorReference.createEditorActionBars(EditorReference.java:446)
- at org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:356)
- at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:301)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
- at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:861)
- at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:841)
- at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:113)
- at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:321)
- at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:242)
- at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:161)
- at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
- at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
- at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
- at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:141)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
- at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1115)
- at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:98)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
- at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$6.run(PartRenderingEngine.java:520)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:505)
- at org.eclipse.e4.ui.workbench.renderers.swt.ElementReferenceRenderer.createWidget(ElementReferenceRenderer.java:74)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
- at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
- at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
- at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
- at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
- at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveRenderer.processContents(PerspectiveRenderer.java:59)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
- at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.showTab(PerspectiveStackRenderer.java:103)
- at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:98)
- at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.postProcess(PerspectiveStackRenderer.java:77)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
- at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
- at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
- at org.eclipse.e4.ui.workbench.renderers.swt.WBWRenderer.processContents(WBWRenderer.java:644)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:987)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-
-!ENTRY org.eclipse.egit.ui 2 0 2015-01-29 15:53:26.050
-!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
-Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
-The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
-this system level configuration. The Git installation location can be configured on the
-Team > Git > Configuration preference page's 'System Settings' tab.
-This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-
-!ENTRY org.eclipse.egit.ui 2 0 2015-01-29 15:53:26.052
-!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
-user global configuration and to define the default location to store repositories: 'C:\Users\raisaro'. If this is
-not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
-EGit might behave differently since they see different configuration options.
-This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-
-!ENTRY org.eclipse.wb.core 4 4 2015-01-29 16:08:15.307
-!MESSAGE Designer [1.5.2.r42x201302112024.201501291608]: new GroupLayout(panel)
-!STACK 0
-java.lang.Error: new GroupLayout(panel)
- at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate(AstEvaluationEngine.java:71)
- at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluateExpression(JavaInfoEvaluationHelper.java:630)
- at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluate(JavaInfoEvaluationHelper.java:502)
- at org.eclipse.wb.core.model.JavaInfo$8.postVisit(JavaInfo.java:1123)
- at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:399)
- at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$3090b6af.postVisit(<generated>)
- at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2517)
- at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
- at org.eclipse.jdt.core.dom.VariableDeclarationFragment.accept0(VariableDeclarationFragment.java:225)
- at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
- at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2585)
- at org.eclipse.jdt.core.dom.VariableDeclarationStatement.accept0(VariableDeclarationStatement.java:273)
- at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
- at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
- at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
- at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
- at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
- at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
- at org.eclipse.wb.core.eval.ExecutionFlowUtils.access$1(ExecutionFlowUtils.java:235)
- at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.endVisit(ExecutionFlowUtils.java:442)
- at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:391)
- at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$3090b6af.endVisit(<generated>)
- at org.eclipse.jdt.core.dom.MethodInvocation.accept0(MethodInvocation.java:247)
- at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
- at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
- at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
- at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
- at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
- at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
- at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
- at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
- at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:343)
- at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
- at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
- at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
- at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
- at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:228)
- at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:191)
- at org.eclipse.wb.core.model.JavaInfo.refresh_create(JavaInfo.java:1179)
- at org.eclipse.wb.core.model.ObjectInfo.refreshCreate0(ObjectInfo.java:550)
- at org.eclipse.wb.core.model.ObjectInfo.access$0(ObjectInfo.java:546)
- at org.eclipse.wb.core.model.ObjectInfo$5$1.run(ObjectInfo.java:486)
- at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:145)
- at org.eclipse.wb.core.model.ObjectInfo$5.run(ObjectInfo.java:484)
- at org.eclipse.wb.internal.swing.utils.SwingUtils$2.run(SwingUtils.java:76)
- at java.awt.event.InvocationEvent.dispatch(Unknown Source)
- at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
- at java.awt.EventQueue.access$200(Unknown Source)
- at java.awt.EventQueue$3.run(Unknown Source)
- at java.awt.EventQueue$3.run(Unknown Source)
- at java.security.AccessController.doPrivileged(Native Method)
- at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
- at java.awt.EventQueue.dispatchEvent(Unknown Source)
- at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
- at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
- at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
- at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
- at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
- at java.awt.EventDispatchThread.run(Unknown Source)
-Caused by: org.eclipse.wb.internal.core.utils.exception.DesignerException: 307 (Exception during constructor evaluation). new GroupLayout(panel) GroupLayout(Container) {<null>} java.lang.IllegalArgumentException: Container must be non-null
- at javax.swing.GroupLayout.<init>(Unknown Source)
- at org.eclipse.wb.internal.core.eval.evaluators.InvocationEvaluator.createConstructorProblemException(InvocationEvaluator.java:593)
- at org.eclipse.wb.internal.core.eval.evaluators.InvocationEvaluator.evaluate(InvocationEvaluator.java:268)
- at org.eclipse.wb.internal.core.eval.evaluators.InvocationEvaluator.evaluate(InvocationEvaluator.java:81)
- at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate0(AstEvaluationEngine.java:177)
- at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate(AstEvaluationEngine.java:61)
- ... 61 more
-Caused by: java.lang.IllegalArgumentException: Container must be non-null
- at javax.swing.GroupLayout.<init>(Unknown Source)
- at sun.reflect.GeneratedConstructorAccessor33.newInstance(Unknown Source)
- at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
- at java.lang.reflect.Constructor.newInstance(Unknown Source)
- at org.eclipse.wb.internal.core.eval.evaluators.InvocationEvaluator.evaluate(InvocationEvaluator.java:262)
- ... 64 more
-
-!ENTRY org.eclipse.ui 2 2 2015-01-29 17:43:17.155
-!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
-!SESSION 2015-01-30 09:29:03.474 -----------------------------------------------
-eclipse.buildId=M20130204-1200
-java.version=1.7.0_45
-java.vendor=Oracle Corporation
-BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
-Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
-Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
-
-!ENTRY org.eclipse.ui 4 4 2015-01-30 09:29:21.865
-!MESSAGE Could not create action delegate for id: org.eclipse.jdt.debug.ui.actions.ManageBreakpointRulerAction
-
-!ENTRY org.eclipse.equinox.registry 4 1 2015-01-30 09:29:21.877
-!MESSAGE Plug-in org.eclipse.wb.core.java was unable to load class org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate.
-!STACK 0
-java.lang.ClassNotFoundException: org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate
- at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
- at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
- at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
- at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
- at java.lang.ClassLoader.loadClass(Unknown Source)
- at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
- at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
- at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
- at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
- at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
- at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
- at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
- at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:265)
- at org.eclipse.ui.internal.PluginAction.createDelegate(PluginAction.java:122)
- at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:275)
- at org.eclipse.ui.internal.PluginAction.<init>(PluginAction.java:112)
- at org.eclipse.ui.internal.PartPluginAction.<init>(PartPluginAction.java:29)
- at org.eclipse.ui.internal.EditorPluginAction.<init>(EditorPluginAction.java:32)
- at org.eclipse.ui.internal.ActionDescriptor.createAction(ActionDescriptor.java:262)
- at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:176)
- at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:103)
- at org.eclipse.ui.internal.EditorActionBuilder.createActionDescriptor(EditorActionBuilder.java:41)
- at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:161)
- at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
- at org.eclipse.ui.internal.registry.RegistryReader.readElementChildren(RegistryReader.java:133)
- at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:144)
- at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
- at org.eclipse.ui.internal.registry.RegistryReader.readExtension(RegistryReader.java:155)
- at org.eclipse.ui.internal.registry.RegistryReader.readRegistry(RegistryReader.java:176)
- at org.eclipse.ui.internal.PluginActionBuilder.readContributions(PluginActionBuilder.java:115)
- at org.eclipse.ui.internal.EditorActionBuilder.readActionExtensions(EditorActionBuilder.java:58)
- at org.eclipse.ui.internal.EditorReference.createEditorActionBars(EditorReference.java:446)
- at org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:356)
- at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:301)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
- at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:861)
- at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:841)
- at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:113)
- at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:321)
- at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:242)
- at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:161)
- at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
- at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
- at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
- at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:141)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
- at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1115)
- at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:98)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
- at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
- at org.eclipse.e4.ui.workbench.renderers.swt.WBWRenderer.processContents(WBWRenderer.java:644)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$6.run(PartRenderingEngine.java:520)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:505)
- at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveRenderer.processContents(PerspectiveRenderer.java:67)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
- at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.showTab(PerspectiveStackRenderer.java:103)
- at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:98)
- at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.postProcess(PerspectiveStackRenderer.java:77)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
- at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
- at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
- at org.eclipse.e4.ui.workbench.renderers.swt.WBWRenderer.processContents(WBWRenderer.java:644)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:987)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-
-!ENTRY org.eclipse.egit.ui 2 0 2015-01-30 09:29:28.121
-!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
-Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
-The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
-this system level configuration. The Git installation location can be configured on the
-Team > Git > Configuration preference page's 'System Settings' tab.
-This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-
-!ENTRY org.eclipse.egit.ui 2 0 2015-01-30 09:29:28.123
-!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
-user global configuration and to define the default location to store repositories: 'C:\Users\raisaro'. If this is
-not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
-EGit might behave differently since they see different configuration options.
-This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-
-!ENTRY org.eclipse.ui 4 4 2015-01-30 09:31:39.543
-!MESSAGE Could not create action delegate for id: org.eclipse.jdt.debug.ui.actions.ManageBreakpointRulerAction
-
-!ENTRY org.eclipse.equinox.registry 4 1 2015-01-30 09:31:39.544
-!MESSAGE Plug-in org.eclipse.wb.core.java was unable to load class org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate.
-!STACK 0
-java.lang.ClassNotFoundException: org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate
- at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
- at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
- at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
- at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
- at java.lang.ClassLoader.loadClass(Unknown Source)
- at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
- at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
- at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
- at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
- at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
- at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
- at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
- at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:265)
- at org.eclipse.ui.internal.PluginAction.createDelegate(PluginAction.java:122)
- at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:275)
- at org.eclipse.ui.internal.PluginAction.<init>(PluginAction.java:112)
- at org.eclipse.ui.internal.PartPluginAction.<init>(PartPluginAction.java:29)
- at org.eclipse.ui.internal.EditorPluginAction.<init>(EditorPluginAction.java:32)
- at org.eclipse.ui.internal.ActionDescriptor.createAction(ActionDescriptor.java:262)
- at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:176)
- at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:103)
- at org.eclipse.ui.internal.EditorActionBuilder.createActionDescriptor(EditorActionBuilder.java:41)
- at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:161)
- at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
- at org.eclipse.ui.internal.registry.RegistryReader.readElementChildren(RegistryReader.java:133)
- at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:144)
- at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
- at org.eclipse.ui.internal.registry.RegistryReader.readExtension(RegistryReader.java:155)
- at org.eclipse.ui.internal.registry.RegistryReader.readRegistry(RegistryReader.java:176)
- at org.eclipse.ui.internal.PluginActionBuilder.readContributions(PluginActionBuilder.java:115)
- at org.eclipse.ui.internal.EditorActionBuilder.readActionExtensions(EditorActionBuilder.java:58)
- at org.eclipse.ui.internal.EditorReference.createEditorActionBars(EditorReference.java:446)
- at org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:356)
- at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:301)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
- at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:861)
- at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:841)
- at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:113)
- at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:321)
- at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:242)
- at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:161)
- at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
- at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
- at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
- at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:141)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
- at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1115)
- at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer$1.handleEvent(LazyStackRenderer.java:67)
- at org.eclipse.e4.ui.services.internal.events.UIEventHandler$1.run(UIEventHandler.java:41)
- at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
- at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
- at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
- at org.eclipse.e4.ui.internal.workbench.swt.E4Application$1.syncExec(E4Application.java:187)
- at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:38)
- at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:197)
- at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:197)
- at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)
- at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
- at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
- at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:135)
- at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:78)
- at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:39)
- at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:80)
- at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:58)
- at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:374)
- at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement(ElementContainerImpl.java:171)
- at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer$8.widgetSelected(StackRenderer.java:911)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
- at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:774)
- at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3028)
- at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1749)
- at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:278)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-
-!ENTRY org.eclipse.wb.core 4 4 2015-01-30 09:49:10.256
-!MESSAGE Designer [1.5.2.r42x201302112024.201501300949]: java.lang.NullPointerException
-!STACK 0
-java.lang.NullPointerException
- at org.eclipse.wb.internal.swing.model.layout.LayoutInfo.storeLayoutDataDefault(LayoutInfo.java:397)
- at org.eclipse.wb.internal.swing.model.layout.BoxLayoutInfo.storeLayoutData(BoxLayoutInfo.java:143)
- at org.eclipse.wb.internal.swing.model.layout.LayoutInfo.onDelete(LayoutInfo.java:213)
- at org.eclipse.wb.internal.swing.model.layout.LayoutInfo$1.before(LayoutInfo.java:89)
- at sun.reflect.GeneratedMethodAccessor203.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.core.model.broadcast.BroadcastSupport$1.intercept(BroadcastSupport.java:208)
- at org.eclipse.wb.core.model.broadcast.ObjectInfoDelete$$EnhancerByCGLIB$$7eb8a89a.before(<generated>)
- at org.eclipse.wb.core.model.JavaInfo$7.run(JavaInfo.java:790)
- at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.run(ExecutionUtils.java:324)
- at org.eclipse.wb.core.model.JavaInfo.delete(JavaInfo.java:784)
- at org.eclipse.wb.internal.core.model.JavaInfoUtils.deleteJavaInfo(JavaInfoUtils.java:2036)
- at org.eclipse.wb.internal.core.model.creation.ConstructorCreationSupport.delete(ConstructorCreationSupport.java:418)
- at org.eclipse.wb.core.model.JavaInfo$7.run(JavaInfo.java:796)
- at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.run(ExecutionUtils.java:324)
- at org.eclipse.wb.core.model.JavaInfo.delete(JavaInfo.java:784)
- at org.eclipse.wb.core.model.AbstractComponentInfo.delete(AbstractComponentInfo.java:215)
- at org.eclipse.wb.internal.core.editor.actions.DeleteAction$2.executeEdit(DeleteAction.java:123)
- at org.eclipse.wb.core.gef.command.EditCommand$1.run(EditCommand.java:52)
- at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.run(ExecutionUtils.java:324)
- at org.eclipse.wb.core.gef.command.EditCommand.execute(EditCommand.java:50)
- at org.eclipse.wb.internal.gef.core.CompoundCommand.execute(CompoundCommand.java:89)
- at org.eclipse.wb.core.gef.command.CompoundEditCommand.access$0(CompoundEditCommand.java:1)
- at org.eclipse.wb.core.gef.command.CompoundEditCommand$1.run(CompoundEditCommand.java:47)
- at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.run(ExecutionUtils.java:324)
- at org.eclipse.wb.core.gef.command.CompoundEditCommand.execute(CompoundEditCommand.java:45)
- at org.eclipse.wb.internal.gef.core.EditDomain.executeCommand(EditDomain.java:59)
- at org.eclipse.wb.internal.core.editor.actions.DeleteAction.run(DeleteAction.java:64)
- at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
- at org.eclipse.jface.commands.ActionHandler.execute(ActionHandler.java:119)
- at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:76)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
- at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:231)
- at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:212)
- at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:131)
- at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:171)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.executeCommand(KeyBindingDispatcher.java:277)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.press(KeyBindingDispatcher.java:496)
- at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.processKeyEvent(KeyBindingDispatcher.java:547)
- at org.eclipse.e4.ui.bindings.keys.OutOfOrderListener.handleEvent(OutOfOrderListener.java:60)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
- at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1104)
- at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1100)
- at org.eclipse.swt.widgets.Widget.wmKeyDown(Widget.java:1823)
- at org.eclipse.swt.widgets.Control.WM_KEYDOWN(Control.java:4892)
- at org.eclipse.swt.widgets.Tree.WM_KEYDOWN(Tree.java:6109)
- at org.eclipse.swt.widgets.Control.windowProc(Control.java:4560)
- at org.eclipse.swt.widgets.Tree.windowProc(Tree.java:5977)
- at org.eclipse.swt.widgets.Display.windowProc(Display.java:4976)
- at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
- at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2546)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3756)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-
-!ENTRY org.eclipse.ui 2 2 2015-01-30 10:00:56.273
-!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
-
-!ENTRY org.eclipse.wb.core 4 4 2015-01-30 10:06:22.702
-!MESSAGE Designer [1.5.2.r42x201302112024.201501300949]: java.lang.NullPointerException
-!STACK 0
-java.lang.NullPointerException
- at org.eclipse.wb.internal.swing.model.layout.LayoutInfo.storeLayoutDataDefault(LayoutInfo.java:397)
- at org.eclipse.wb.internal.swing.model.layout.BoxLayoutInfo.storeLayoutData(BoxLayoutInfo.java:143)
- at org.eclipse.wb.internal.swing.model.layout.LayoutInfo.onDelete(LayoutInfo.java:213)
- at org.eclipse.wb.internal.swing.model.layout.LayoutInfo$1.before(LayoutInfo.java:89)
- at sun.reflect.GeneratedMethodAccessor203.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.core.model.broadcast.BroadcastSupport$1.intercept(BroadcastSupport.java:208)
- at org.eclipse.wb.core.model.broadcast.ObjectInfoDelete$$EnhancerByCGLIB$$7eb8a89a.before(<generated>)
- at org.eclipse.wb.core.model.JavaInfo$7.run(JavaInfo.java:790)
- at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.run(ExecutionUtils.java:324)
- at org.eclipse.wb.core.model.JavaInfo.delete(JavaInfo.java:784)
- at org.eclipse.wb.internal.swing.model.component.ContainerInfo.setLayout(ContainerInfo.java:409)
- at org.eclipse.wb.internal.swing.model.component.ContainerInfo$5.runEx(ContainerInfo.java:199)
- at org.eclipse.wb.internal.core.model.util.ObjectInfoAction$1$1.run(ObjectInfoAction.java:86)
- at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.run(ExecutionUtils.java:324)
- at org.eclipse.wb.internal.core.model.util.ObjectInfoAction$1.run(ObjectInfoAction.java:84)
- at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runLog(ExecutionUtils.java:106)
- at org.eclipse.wb.internal.core.model.util.ObjectInfoAction.run(ObjectInfoAction.java:81)
- at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
- at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
- at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
- at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-
-!ENTRY org.eclipse.wb.core 4 4 2015-01-30 10:06:22.918
-!MESSAGE Designer [1.5.2.r42x201302112024.201501300949]: java.lang.NullPointerException
-!STACK 0
-java.lang.NullPointerException
- at org.eclipse.wb.internal.swing.java6.model.SwingVisualMapper.getComponentPreferredSize(SwingVisualMapper.java:85)
- at org.netbeans.modules.form.layoutdesign.LayoutDesigner.copyLayoutFromOutside(LayoutDesigner.java:1516)
- at org.eclipse.wb.internal.layout.group.model.GroupLayoutSupport.onSet(GroupLayoutSupport.java:238)
- at org.eclipse.wb.internal.swing.java6.model.GroupLayoutInfo2.onSet(GroupLayoutInfo2.java:120)
- at org.eclipse.wb.internal.swing.model.component.ContainerInfo.setLayout(ContainerInfo.java:421)
- at org.eclipse.wb.internal.swing.model.component.ContainerInfo$5.runEx(ContainerInfo.java:199)
- at org.eclipse.wb.internal.core.model.util.ObjectInfoAction$1$1.run(ObjectInfoAction.java:86)
- at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.run(ExecutionUtils.java:324)
- at org.eclipse.wb.internal.core.model.util.ObjectInfoAction$1.run(ObjectInfoAction.java:84)
- at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runLog(ExecutionUtils.java:106)
- at org.eclipse.wb.internal.core.model.util.ObjectInfoAction.run(ObjectInfoAction.java:81)
- at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
- at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
- at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
- at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-
-!ENTRY org.eclipse.wb.core 4 4 2015-01-30 10:07:13.967
-!MESSAGE Designer [1.5.2.r42x201302112024.201501300949]: java.lang.NullPointerException
-!STACK 0
-java.lang.NullPointerException
- at org.eclipse.wb.internal.swing.model.layout.LayoutInfo.storeLayoutDataDefault(LayoutInfo.java:397)
- at org.eclipse.wb.internal.swing.model.layout.BoxLayoutInfo.storeLayoutData(BoxLayoutInfo.java:143)
- at org.eclipse.wb.internal.swing.model.layout.LayoutInfo.onDelete(LayoutInfo.java:213)
- at org.eclipse.wb.internal.swing.model.layout.LayoutInfo$1.before(LayoutInfo.java:89)
- at sun.reflect.GeneratedMethodAccessor203.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.wb.core.model.broadcast.BroadcastSupport$1.intercept(BroadcastSupport.java:208)
- at org.eclipse.wb.core.model.broadcast.ObjectInfoDelete$$EnhancerByCGLIB$$7eb8a89a.before(<generated>)
- at org.eclipse.wb.core.model.JavaInfo$7.run(JavaInfo.java:790)
- at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.run(ExecutionUtils.java:324)
- at org.eclipse.wb.core.model.JavaInfo.delete(JavaInfo.java:784)
- at org.eclipse.wb.internal.swing.model.component.ContainerInfo.setLayout(ContainerInfo.java:409)
- at org.eclipse.wb.internal.swing.model.component.ContainerInfo$5.runEx(ContainerInfo.java:199)
- at org.eclipse.wb.internal.core.model.util.ObjectInfoAction$1$1.run(ObjectInfoAction.java:86)
- at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.run(ExecutionUtils.java:324)
- at org.eclipse.wb.internal.core.model.util.ObjectInfoAction$1.run(ObjectInfoAction.java:84)
- at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runLog(ExecutionUtils.java:106)
- at org.eclipse.wb.internal.core.model.util.ObjectInfoAction.run(ObjectInfoAction.java:81)
- at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
- at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
- at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
- at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-
-!ENTRY org.eclipse.wb.core 4 4 2015-01-30 10:07:14.126
-!MESSAGE Designer [1.5.2.r42x201302112024.201501300949]: java.lang.NullPointerException
-!STACK 0
-java.lang.NullPointerException
- at org.eclipse.wb.internal.swing.java6.model.SwingVisualMapper.getComponentPreferredSize(SwingVisualMapper.java:85)
- at org.netbeans.modules.form.layoutdesign.LayoutDesigner.copyLayoutFromOutside(LayoutDesigner.java:1516)
- at org.eclipse.wb.internal.layout.group.model.GroupLayoutSupport.onSet(GroupLayoutSupport.java:238)
- at org.eclipse.wb.internal.swing.java6.model.GroupLayoutInfo2.onSet(GroupLayoutInfo2.java:120)
- at org.eclipse.wb.internal.swing.model.component.ContainerInfo.setLayout(ContainerInfo.java:421)
- at org.eclipse.wb.internal.swing.model.component.ContainerInfo$5.runEx(ContainerInfo.java:199)
- at org.eclipse.wb.internal.core.model.util.ObjectInfoAction$1$1.run(ObjectInfoAction.java:86)
- at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.run(ExecutionUtils.java:324)
- at org.eclipse.wb.internal.core.model.util.ObjectInfoAction$1.run(ObjectInfoAction.java:84)
- at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runLog(ExecutionUtils.java:106)
- at org.eclipse.wb.internal.core.model.util.ObjectInfoAction.run(ObjectInfoAction.java:81)
- at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
- at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
- at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
- at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-!SESSION 2015-01-30 16:47:48.623 -----------------------------------------------
-eclipse.buildId=M20130204-1200
-java.version=1.7.0_45
-java.vendor=Oracle Corporation
-BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
-Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
-Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
-
-!ENTRY org.eclipse.ui 4 4 2015-01-30 16:47:56.948
-!MESSAGE Could not create action delegate for id: org.eclipse.jdt.debug.ui.actions.ManageBreakpointRulerAction
-
-!ENTRY org.eclipse.equinox.registry 4 1 2015-01-30 16:47:56.953
-!MESSAGE Plug-in org.eclipse.wb.core.java was unable to load class org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate.
-!STACK 0
-java.lang.ClassNotFoundException: org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate
- at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
- at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
- at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
- at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
- at java.lang.ClassLoader.loadClass(Unknown Source)
- at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
- at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
- at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
- at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
- at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
- at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
- at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
- at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:265)
- at org.eclipse.ui.internal.PluginAction.createDelegate(PluginAction.java:122)
- at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:275)
- at org.eclipse.ui.internal.PluginAction.<init>(PluginAction.java:112)
- at org.eclipse.ui.internal.PartPluginAction.<init>(PartPluginAction.java:29)
- at org.eclipse.ui.internal.EditorPluginAction.<init>(EditorPluginAction.java:32)
- at org.eclipse.ui.internal.ActionDescriptor.createAction(ActionDescriptor.java:262)
- at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:176)
- at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:103)
- at org.eclipse.ui.internal.EditorActionBuilder.createActionDescriptor(EditorActionBuilder.java:41)
- at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:161)
- at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
- at org.eclipse.ui.internal.registry.RegistryReader.readElementChildren(RegistryReader.java:133)
- at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:144)
- at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
- at org.eclipse.ui.internal.registry.RegistryReader.readExtension(RegistryReader.java:155)
- at org.eclipse.ui.internal.registry.RegistryReader.readRegistry(RegistryReader.java:176)
- at org.eclipse.ui.internal.PluginActionBuilder.readContributions(PluginActionBuilder.java:115)
- at org.eclipse.ui.internal.EditorActionBuilder.readActionExtensions(EditorActionBuilder.java:58)
- at org.eclipse.ui.internal.EditorReference.createEditorActionBars(EditorReference.java:446)
- at org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:356)
- at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:301)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
- at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:861)
- at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:841)
- at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:113)
- at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:321)
- at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:242)
- at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:161)
- at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
- at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
- at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
- at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:141)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
- at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1115)
- at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:98)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
- at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$6.run(PartRenderingEngine.java:520)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:505)
- at org.eclipse.e4.ui.workbench.renderers.swt.ElementReferenceRenderer.createWidget(ElementReferenceRenderer.java:74)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
- at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
- at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
- at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
- at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
- at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveRenderer.processContents(PerspectiveRenderer.java:59)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
- at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.showTab(PerspectiveStackRenderer.java:103)
- at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:98)
- at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.postProcess(PerspectiveStackRenderer.java:77)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
- at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
- at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
- at org.eclipse.e4.ui.workbench.renderers.swt.WBWRenderer.processContents(WBWRenderer.java:644)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:987)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-
-!ENTRY org.eclipse.egit.ui 2 0 2015-01-30 16:48:02.993
-!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
-Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
-The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
-this system level configuration. The Git installation location can be configured on the
-Team > Git > Configuration preference page's 'System Settings' tab.
-This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-
-!ENTRY org.eclipse.egit.ui 2 0 2015-01-30 16:48:02.995
-!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
-user global configuration and to define the default location to store repositories: 'C:\Users\raisaro'. If this is
-not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
-EGit might behave differently since they see different configuration options.
-This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-
-!ENTRY org.eclipse.ui 2 2 2015-01-30 16:48:30.112
-!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
-!SESSION 2015-02-02 14:57:56.450 -----------------------------------------------
-eclipse.buildId=M20130204-1200
-java.version=1.7.0_45
-java.vendor=Oracle Corporation
-BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
-Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
-Command-line arguments: -data C:\Users\raisaro\workspace\yussef -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
-
-!ENTRY org.eclipse.ui 4 4 2015-02-02 14:58:01.582
-!MESSAGE Could not create action delegate for id: org.eclipse.jdt.debug.ui.actions.ManageBreakpointRulerAction
-
-!ENTRY org.eclipse.equinox.registry 4 1 2015-02-02 14:58:01.598
-!MESSAGE Plug-in org.eclipse.wb.core.java was unable to load class org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate.
-!STACK 0
-java.lang.ClassNotFoundException: org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate
- at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
- at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
- at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
- at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
- at java.lang.ClassLoader.loadClass(Unknown Source)
- at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
- at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
- at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
- at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
- at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
- at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
- at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
- at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:265)
- at org.eclipse.ui.internal.PluginAction.createDelegate(PluginAction.java:122)
- at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:275)
- at org.eclipse.ui.internal.PluginAction.<init>(PluginAction.java:112)
- at org.eclipse.ui.internal.PartPluginAction.<init>(PartPluginAction.java:29)
- at org.eclipse.ui.internal.EditorPluginAction.<init>(EditorPluginAction.java:32)
- at org.eclipse.ui.internal.ActionDescriptor.createAction(ActionDescriptor.java:262)
- at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:176)
- at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:103)
- at org.eclipse.ui.internal.EditorActionBuilder.createActionDescriptor(EditorActionBuilder.java:41)
- at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:161)
- at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
- at org.eclipse.ui.internal.registry.RegistryReader.readElementChildren(RegistryReader.java:133)
- at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:144)
- at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
- at org.eclipse.ui.internal.registry.RegistryReader.readExtension(RegistryReader.java:155)
- at org.eclipse.ui.internal.registry.RegistryReader.readRegistry(RegistryReader.java:176)
- at org.eclipse.ui.internal.PluginActionBuilder.readContributions(PluginActionBuilder.java:115)
- at org.eclipse.ui.internal.EditorActionBuilder.readActionExtensions(EditorActionBuilder.java:58)
- at org.eclipse.ui.internal.EditorReference.createEditorActionBars(EditorReference.java:446)
- at org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:356)
- at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:301)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
- at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:861)
- at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:841)
- at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:113)
- at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:321)
- at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:242)
- at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:161)
- at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
- at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
- at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
- at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:141)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
- at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1115)
- at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:98)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
- at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$6.run(PartRenderingEngine.java:520)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:505)
- at org.eclipse.e4.ui.workbench.renderers.swt.ElementReferenceRenderer.createWidget(ElementReferenceRenderer.java:74)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
- at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
- at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
- at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
- at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
- at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveRenderer.processContents(PerspectiveRenderer.java:59)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
- at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.showTab(PerspectiveStackRenderer.java:103)
- at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:98)
- at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.postProcess(PerspectiveStackRenderer.java:77)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
- at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
- at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
- at org.eclipse.e4.ui.workbench.renderers.swt.WBWRenderer.processContents(WBWRenderer.java:644)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:987)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-
-!ENTRY org.eclipse.egit.ui 2 0 2015-02-02 14:58:07.994
-!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
-Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
-The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
-this system level configuration. The Git installation location can be configured on the
-Team > Git > Configuration preference page's 'System Settings' tab.
-This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-
-!ENTRY org.eclipse.egit.ui 2 0 2015-02-02 14:58:07.994
-!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
-user global configuration and to define the default location to store repositories: 'C:\Users\raisaro'. If this is
-not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
-EGit might behave differently since they see different configuration options.
-This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-
-!ENTRY org.eclipse.ui 2 2 2015-02-02 15:01:21.247
-!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
-!SESSION 2015-02-02 16:32:29.139 -----------------------------------------------
-eclipse.buildId=M20130204-1200
-java.version=1.7.0_45
-java.vendor=Oracle Corporation
-BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
-Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
-Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
-
-!ENTRY org.eclipse.ui 4 4 2015-02-02 16:32:38.574
-!MESSAGE Could not create action delegate for id: org.eclipse.jdt.debug.ui.actions.ManageBreakpointRulerAction
-
-!ENTRY org.eclipse.equinox.registry 4 1 2015-02-02 16:32:38.574
-!MESSAGE Plug-in org.eclipse.wb.core.java was unable to load class org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate.
-!STACK 0
-java.lang.ClassNotFoundException: org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate
- at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
- at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
- at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
- at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
- at java.lang.ClassLoader.loadClass(Unknown Source)
- at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
- at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
- at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
- at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
- at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
- at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
- at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
- at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:265)
- at org.eclipse.ui.internal.PluginAction.createDelegate(PluginAction.java:122)
- at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:275)
- at org.eclipse.ui.internal.PluginAction.<init>(PluginAction.java:112)
- at org.eclipse.ui.internal.PartPluginAction.<init>(PartPluginAction.java:29)
- at org.eclipse.ui.internal.EditorPluginAction.<init>(EditorPluginAction.java:32)
- at org.eclipse.ui.internal.ActionDescriptor.createAction(ActionDescriptor.java:262)
- at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:176)
- at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:103)
- at org.eclipse.ui.internal.EditorActionBuilder.createActionDescriptor(EditorActionBuilder.java:41)
- at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:161)
- at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
- at org.eclipse.ui.internal.registry.RegistryReader.readElementChildren(RegistryReader.java:133)
- at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:144)
- at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
- at org.eclipse.ui.internal.registry.RegistryReader.readExtension(RegistryReader.java:155)
- at org.eclipse.ui.internal.registry.RegistryReader.readRegistry(RegistryReader.java:176)
- at org.eclipse.ui.internal.PluginActionBuilder.readContributions(PluginActionBuilder.java:115)
- at org.eclipse.ui.internal.EditorActionBuilder.readActionExtensions(EditorActionBuilder.java:58)
- at org.eclipse.ui.internal.EditorReference.createEditorActionBars(EditorReference.java:446)
- at org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:356)
- at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:301)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
- at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:861)
- at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:841)
- at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:113)
- at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:321)
- at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:242)
- at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:161)
- at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
- at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
- at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
- at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:141)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
- at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1115)
- at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:98)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
- at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$6.run(PartRenderingEngine.java:520)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:505)
- at org.eclipse.e4.ui.workbench.renderers.swt.ElementReferenceRenderer.createWidget(ElementReferenceRenderer.java:74)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
- at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
- at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
- at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
- at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
- at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveRenderer.processContents(PerspectiveRenderer.java:59)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
- at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.showTab(PerspectiveStackRenderer.java:103)
- at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:98)
- at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.postProcess(PerspectiveStackRenderer.java:77)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
- at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
- at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
- at org.eclipse.e4.ui.workbench.renderers.swt.WBWRenderer.processContents(WBWRenderer.java:644)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:987)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-
-!ENTRY org.eclipse.egit.ui 2 0 2015-02-02 16:32:44.253
-!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
-Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
-The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
-this system level configuration. The Git installation location can be configured on the
-Team > Git > Configuration preference page's 'System Settings' tab.
-This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-
-!ENTRY org.eclipse.egit.ui 2 0 2015-02-02 16:32:44.253
-!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
-user global configuration and to define the default location to store repositories: 'C:\Users\raisaro'. If this is
-not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
-EGit might behave differently since they see different configuration options.
-This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-
-!ENTRY org.eclipse.ui 2 2 2015-02-02 17:29:18.264
-!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
-!SESSION 2015-02-04 09:38:59.904 -----------------------------------------------
-eclipse.buildId=M20130204-1200
-java.version=1.8.0_31
-java.vendor=Oracle Corporation
-BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
-Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
-Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
-
-!ENTRY org.eclipse.egit.ui 2 0 2015-02-04 09:39:15.491
-!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
-Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
-The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
-this system level configuration. The Git installation location can be configured on the
-Team > Git > Configuration preference page's 'System Settings' tab.
-This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-
-!ENTRY org.eclipse.egit.ui 2 0 2015-02-04 09:39:15.491
-!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
-user global configuration and to define the default location to store repositories: 'C:\Users\raisaro'. If this is
-not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
-EGit might behave differently since they see different configuration options.
-This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-
-!ENTRY org.eclipse.ui 4 4 2015-02-04 09:43:55.139
-!MESSAGE Could not create action delegate for id: org.eclipse.jdt.debug.ui.actions.ManageBreakpointRulerAction
-
-!ENTRY org.eclipse.equinox.registry 4 1 2015-02-04 09:43:55.139
-!MESSAGE Plug-in org.eclipse.wb.core.java was unable to load class org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate.
-!STACK 0
-java.lang.ClassNotFoundException: org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate
- at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
- at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
- at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
- at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
- at java.lang.ClassLoader.loadClass(Unknown Source)
- at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
- at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
- at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
- at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
- at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
- at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
- at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
- at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:265)
- at org.eclipse.ui.internal.PluginAction.createDelegate(PluginAction.java:122)
- at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:275)
- at org.eclipse.ui.internal.PluginAction.<init>(PluginAction.java:112)
- at org.eclipse.ui.internal.PartPluginAction.<init>(PartPluginAction.java:29)
- at org.eclipse.ui.internal.EditorPluginAction.<init>(EditorPluginAction.java:32)
- at org.eclipse.ui.internal.ActionDescriptor.createAction(ActionDescriptor.java:262)
- at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:176)
- at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:103)
- at org.eclipse.ui.internal.EditorActionBuilder.createActionDescriptor(EditorActionBuilder.java:41)
- at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:161)
- at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
- at org.eclipse.ui.internal.registry.RegistryReader.readElementChildren(RegistryReader.java:133)
- at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:144)
- at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
- at org.eclipse.ui.internal.registry.RegistryReader.readExtension(RegistryReader.java:155)
- at org.eclipse.ui.internal.registry.RegistryReader.readRegistry(RegistryReader.java:176)
- at org.eclipse.ui.internal.PluginActionBuilder.readContributions(PluginActionBuilder.java:115)
- at org.eclipse.ui.internal.EditorActionBuilder.readActionExtensions(EditorActionBuilder.java:58)
- at org.eclipse.ui.internal.EditorReference.createEditorActionBars(EditorReference.java:446)
- at org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:356)
- at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:301)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
- at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:861)
- at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:841)
- at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:113)
- at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:321)
- at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:242)
- at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:161)
- at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
- at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
- at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
- at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:141)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
- at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.createElement(PartServiceImpl.java:1071)
- at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.showPart(PartServiceImpl.java:1033)
- at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:464)
- at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:269)
- at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2999)
- at org.eclipse.ui.internal.WorkbenchPage.access$22(WorkbenchPage.java:2969)
- at org.eclipse.ui.internal.WorkbenchPage$8.run(WorkbenchPage.java:2951)
- at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
- at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2947)
- at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2911)
- at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2902)
- at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:373)
- at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:179)
- at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:249)
- at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:228)
- at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:275)
- at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:251)
- at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup.handleOpen(PackageExplorerActionGroup.java:376)
- at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$4.open(PackageExplorerPart.java:538)
- at org.eclipse.ui.OpenAndLinkWithEditorHelper$InternalListener.open(OpenAndLinkWithEditorHelper.java:48)
- at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:866)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
- at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
- at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
- at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:864)
- at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1152)
- at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1256)
- at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:275)
- at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:269)
- at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:309)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-
-!ENTRY org.eclipse.wb.core 4 4 2015-02-04 11:02:16.960
-!MESSAGE Designer [1.5.2.r42x201302112024.201502041102]: 313 (Exception during 'super' constructor evaluation). JFrame() {} java.lang.NullPointerException
- at java.beans.MethodRef.get(Unknown Source)
- at java.beans.PropertyDescriptor.getWriteMethod(Unknown Source)
-!STACK 0
-org.eclipse.wb.internal.core.utils.exception.DesignerException: 313 (Exception during 'super' constructor evaluation). JFrame() {} java.lang.NullPointerException
- at java.beans.MethodRef.get(Unknown Source)
- at java.beans.PropertyDescriptor.getWriteMethod(Unknown Source)
- at org.eclipse.wb.internal.core.model.creation.ThisCreationSupport.create(ThisCreationSupport.java:275)
- at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluateJavaInfoUsingCreationSupport(JavaInfoEvaluationHelper.java:642)
- at org.eclipse.wb.internal.core.parser.JavaInfoParser.addJavaInfo(JavaInfoParser.java:1261)
- at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:253)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:399)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$9336e59e.postVisit(<generated>)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2517)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.Assignment.accept0(Assignment.java:312)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.access$1(ExecutionFlowUtils.java:235)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.endVisit(ExecutionFlowUtils.java:442)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:391)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$9336e59e.endVisit(<generated>)
+ at org.eclipse.jdt.core.dom.MethodInvocation.accept0(MethodInvocation.java:247)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
+ at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
+ at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:343)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:228)
+ at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:191)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parseRootMethods(JavaInfoParser.java:312)
+ at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:268)
at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$9(JavaInfoParser.java:238)
at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:153)
at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:1)
at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:159)
at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:151)
at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:534)
at org.eclipse.wb.internal.core.editor.DesignPage.access$9(DesignPage.java:522)
at org.eclipse.wb.internal.core.editor.DesignPage$8$1.run(DesignPage.java:449)
at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
at org.eclipse.wb.internal.core.editor.DesignPage$8.run(DesignPage.java:446)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF_withProgress(DesignPage.java:465)
at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:415)
at org.eclipse.wb.internal.core.editor.UndoManager.refreshDesignerEditor(UndoManager.java:381)
- at org.eclipse.wb.internal.core.editor.UndoManager.activate(UndoManager.java:90)
- at org.eclipse.wb.internal.core.editor.DesignPage.handleActiveState_True(DesignPage.java:263)
- at org.eclipse.wb.internal.core.editor.DesignPage.handleActiveState(DesignPage.java:241)
- at org.eclipse.wb.internal.core.editor.multi.DefaultMultiMode.showPage(DefaultMultiMode.java:125)
- at org.eclipse.wb.internal.core.editor.multi.DefaultMultiMode$1.widgetSelected(DefaultMultiMode.java:63)
+ at org.eclipse.wb.internal.core.editor.DesignPage.refreshGEF(DesignPage.java:392)
+ at org.eclipse.wb.internal.core.editor.actions.RefreshAction.run(RefreshAction.java:46)
+ at org.eclipse.wb.internal.core.editor.actions.DesignPageAction.run(DesignPageAction.java:34)
+ at org.eclipse.wb.internal.core.editor.errors.JavaExceptionComposite.doRefresh(JavaExceptionComposite.java:87)
+ at org.eclipse.wb.internal.core.editor.errors.ExceptionComposite$3.widgetSelected(ExceptionComposite.java:129)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
- at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:774)
- at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3028)
- at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1749)
- at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:278)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
Caused by: java.lang.NullPointerException
- at java.beans.MethodRef.get(Unknown Source)
- at java.beans.PropertyDescriptor.getWriteMethod(Unknown Source)
- at org.eclipse.wb.internal.core.model.JavaInfoUtils.addExposedChildred_Method(JavaInfoUtils.java:447)
- at org.eclipse.wb.internal.core.model.JavaInfoUtils.addExposedChildren(JavaInfoUtils.java:429)
- at org.eclipse.wb.internal.swing.model.component.ComponentInfo.createExposedChildren(ComponentInfo.java:109)
- at org.eclipse.wb.internal.swing.model.component.ContainerInfo.createExposedChildren(ContainerInfo.java:143)
- at org.eclipse.wb.core.model.JavaInfo.initialize(JavaInfo.java:419)
- at org.eclipse.wb.internal.swing.model.component.ContainerInfo.initialize(ContainerInfo.java:114)
- at org.eclipse.wb.core.model.JavaInfo.setObject(JavaInfo.java:1267)
- at org.eclipse.wb.internal.core.model.creation.ThisCreationSupport.create(ThisCreationSupport.java:269)
- ... 61 more
-!ENTRY org.eclipse.wb.core 4 4 2015-02-04 11:02:23.182
-!MESSAGE Designer [1.5.2.r42x201302112024.201502041102]: new javax.swing.JPanel()
+!ENTRY org.eclipse.wb.core 4 4 2015-02-19 17:10:53.484
+!MESSAGE Designer [1.5.2.r42x201302112024.201502191710]: new javax.swing.JLabel()
!STACK 0
-java.lang.Error: new javax.swing.JPanel()
+java.lang.Error: new javax.swing.JLabel()
at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate(AstEvaluationEngine.java:71)
at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluateExpression(JavaInfoEvaluationHelper.java:630)
at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluate(JavaInfoEvaluationHelper.java:502)
at org.eclipse.wb.internal.core.parser.JavaInfoParser.evaluateNode(JavaInfoParser.java:1309)
at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$1(JavaInfoParser.java:1300)
at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor$3.run(JavaInfoParser.java:602)
at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runRethrow(ExecutionUtils.java:119)
at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor.postVisit(JavaInfoParser.java:592)
- at sun.reflect.GeneratedMethodAccessor35.invoke(Unknown Source)
+ at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:399)
- at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$1f153325.postVisit(<generated>)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$9336e59e.postVisit(<generated>)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2517)
at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
at org.eclipse.jdt.core.dom.Assignment.accept0(Assignment.java:312)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.access$1(ExecutionFlowUtils.java:235)
at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.endVisit(ExecutionFlowUtils.java:442)
at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:391)
- at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$1f153325.endVisit(<generated>)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$9336e59e.endVisit(<generated>)
at org.eclipse.jdt.core.dom.MethodInvocation.accept0(MethodInvocation.java:247)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:343)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:228)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:191)
at org.eclipse.wb.internal.core.parser.JavaInfoParser.parseRootMethods(JavaInfoParser.java:312)
at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:268)
at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$9(JavaInfoParser.java:238)
at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:153)
at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:1)
at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:159)
at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:151)
at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:534)
at org.eclipse.wb.internal.core.editor.DesignPage.access$9(DesignPage.java:522)
at org.eclipse.wb.internal.core.editor.DesignPage$8$1.run(DesignPage.java:449)
at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
at org.eclipse.wb.internal.core.editor.DesignPage$8.run(DesignPage.java:446)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF_withProgress(DesignPage.java:465)
at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:415)
at org.eclipse.wb.internal.core.editor.UndoManager.refreshDesignerEditor(UndoManager.java:381)
at org.eclipse.wb.internal.core.editor.DesignPage.refreshGEF(DesignPage.java:392)
at org.eclipse.wb.internal.core.editor.actions.RefreshAction.run(RefreshAction.java:46)
at org.eclipse.wb.internal.core.editor.actions.DesignPageAction.run(DesignPageAction.java:34)
at org.eclipse.wb.internal.core.editor.errors.JavaExceptionComposite.doRefresh(JavaExceptionComposite.java:87)
at org.eclipse.wb.internal.core.editor.errors.ExceptionComposite$3.widgetSelected(ExceptionComposite.java:129)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
Caused by: java.lang.NullPointerException
- at java.beans.MethodRef.get(Unknown Source)
- at java.beans.PropertyDescriptor.getWriteMethod(Unknown Source)
- at org.eclipse.wb.internal.core.model.JavaInfoUtils.addExposedChildred_Method(JavaInfoUtils.java:447)
- at org.eclipse.wb.internal.core.model.JavaInfoUtils.addExposedChildren(JavaInfoUtils.java:429)
- at org.eclipse.wb.internal.swing.model.component.ComponentInfo.createExposedChildren(ComponentInfo.java:109)
- at org.eclipse.wb.internal.swing.model.component.ContainerInfo.createExposedChildren(ContainerInfo.java:143)
- at org.eclipse.wb.core.model.JavaInfo.initialize(JavaInfo.java:419)
- at org.eclipse.wb.internal.swing.model.component.ContainerInfo.initialize(ContainerInfo.java:114)
- at org.eclipse.wb.core.model.JavaInfo.setObject(JavaInfo.java:1267)
- at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper$3.evaluationSuccessful(JavaInfoEvaluationHelper.java:271)
- at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate0(AstEvaluationEngine.java:179)
- at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate(AstEvaluationEngine.java:61)
- ... 96 more
-!ENTRY org.eclipse.wb.core 4 4 2015-02-04 11:02:24.190
-!MESSAGE Designer [1.5.2.r42x201302112024.201502041102]: new javax.swing.JPanel()
+!ENTRY org.eclipse.wb.core 4 4 2015-02-19 17:10:54.495
+!MESSAGE Designer [1.5.2.r42x201302112024.201502191710]: new javax.swing.JScrollPane()
!STACK 0
-java.lang.Error: new javax.swing.JPanel()
+java.lang.Error: new javax.swing.JScrollPane()
at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate(AstEvaluationEngine.java:71)
at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluateExpression(JavaInfoEvaluationHelper.java:630)
at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluate(JavaInfoEvaluationHelper.java:502)
at org.eclipse.wb.internal.core.parser.JavaInfoParser.evaluateNode(JavaInfoParser.java:1309)
at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$1(JavaInfoParser.java:1300)
at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor$3.run(JavaInfoParser.java:602)
at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runRethrow(ExecutionUtils.java:119)
at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor.postVisit(JavaInfoParser.java:592)
- at sun.reflect.GeneratedMethodAccessor35.invoke(Unknown Source)
+ at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:399)
- at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$1f153325.postVisit(<generated>)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$9336e59e.postVisit(<generated>)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2517)
at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
at org.eclipse.jdt.core.dom.Assignment.accept0(Assignment.java:312)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.access$1(ExecutionFlowUtils.java:235)
at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.endVisit(ExecutionFlowUtils.java:442)
at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:391)
- at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$1f153325.endVisit(<generated>)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$9336e59e.endVisit(<generated>)
at org.eclipse.jdt.core.dom.MethodInvocation.accept0(MethodInvocation.java:247)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:343)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:228)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:191)
at org.eclipse.wb.internal.core.parser.JavaInfoParser.parseRootMethods(JavaInfoParser.java:312)
at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:268)
at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$9(JavaInfoParser.java:238)
at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:153)
at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:1)
at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:159)
at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:151)
at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:534)
at org.eclipse.wb.internal.core.editor.DesignPage.access$9(DesignPage.java:522)
at org.eclipse.wb.internal.core.editor.DesignPage$8$1.run(DesignPage.java:449)
at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
at org.eclipse.wb.internal.core.editor.DesignPage$8.run(DesignPage.java:446)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF_withProgress(DesignPage.java:465)
at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:415)
at org.eclipse.wb.internal.core.editor.UndoManager.refreshDesignerEditor(UndoManager.java:381)
at org.eclipse.wb.internal.core.editor.DesignPage.refreshGEF(DesignPage.java:392)
at org.eclipse.wb.internal.core.editor.actions.RefreshAction.run(RefreshAction.java:46)
at org.eclipse.wb.internal.core.editor.actions.DesignPageAction.run(DesignPageAction.java:34)
at org.eclipse.wb.internal.core.editor.errors.JavaExceptionComposite.doRefresh(JavaExceptionComposite.java:87)
at org.eclipse.wb.internal.core.editor.errors.ExceptionComposite$3.widgetSelected(ExceptionComposite.java:129)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
Caused by: java.lang.NullPointerException
- at java.beans.MethodRef.get(Unknown Source)
- at java.beans.PropertyDescriptor.getReadMethod(Unknown Source)
- at org.eclipse.wb.internal.core.model.JavaInfoUtils.addExposedChildred_Method(JavaInfoUtils.java:449)
- at org.eclipse.wb.internal.core.model.JavaInfoUtils.addExposedChildren(JavaInfoUtils.java:429)
- at org.eclipse.wb.internal.swing.model.component.ComponentInfo.createExposedChildren(ComponentInfo.java:109)
- at org.eclipse.wb.internal.swing.model.component.ContainerInfo.createExposedChildren(ContainerInfo.java:143)
- at org.eclipse.wb.core.model.JavaInfo.initialize(JavaInfo.java:419)
- at org.eclipse.wb.internal.swing.model.component.ContainerInfo.initialize(ContainerInfo.java:114)
- at org.eclipse.wb.core.model.JavaInfo.setObject(JavaInfo.java:1267)
- at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper$3.evaluationSuccessful(JavaInfoEvaluationHelper.java:271)
- at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate0(AstEvaluationEngine.java:179)
- at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate(AstEvaluationEngine.java:61)
- ... 96 more
-!ENTRY org.eclipse.wb.core 4 4 2015-02-04 11:04:30.079
-!MESSAGE Designer [1.5.2.r42x201302112024.201502041102]: new javax.swing.JLabel()
+!ENTRY org.eclipse.wb.core 4 4 2015-02-19 17:10:55.441
+!MESSAGE Designer [1.5.2.r42x201302112024.201502191710]: new javax.swing.JScrollPane()
!STACK 0
-java.lang.Error: new javax.swing.JLabel()
+java.lang.Error: new javax.swing.JScrollPane()
at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate(AstEvaluationEngine.java:71)
at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluateExpression(JavaInfoEvaluationHelper.java:630)
at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluate(JavaInfoEvaluationHelper.java:502)
at org.eclipse.wb.internal.core.parser.JavaInfoParser.evaluateNode(JavaInfoParser.java:1309)
at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$1(JavaInfoParser.java:1300)
at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor$3.run(JavaInfoParser.java:602)
at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runRethrow(ExecutionUtils.java:119)
at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor.postVisit(JavaInfoParser.java:592)
- at sun.reflect.GeneratedMethodAccessor35.invoke(Unknown Source)
+ at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:399)
- at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$1f153325.postVisit(<generated>)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$9336e59e.postVisit(<generated>)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2517)
at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
at org.eclipse.jdt.core.dom.Assignment.accept0(Assignment.java:312)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.access$1(ExecutionFlowUtils.java:235)
at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.endVisit(ExecutionFlowUtils.java:442)
at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:391)
- at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$1f153325.endVisit(<generated>)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$9336e59e.endVisit(<generated>)
at org.eclipse.jdt.core.dom.MethodInvocation.accept0(MethodInvocation.java:247)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:343)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:228)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:191)
at org.eclipse.wb.internal.core.parser.JavaInfoParser.parseRootMethods(JavaInfoParser.java:312)
at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:268)
at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$9(JavaInfoParser.java:238)
at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:153)
at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:1)
at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:159)
at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:151)
at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:534)
at org.eclipse.wb.internal.core.editor.DesignPage.access$9(DesignPage.java:522)
at org.eclipse.wb.internal.core.editor.DesignPage$8$1.run(DesignPage.java:449)
at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
at org.eclipse.wb.internal.core.editor.DesignPage$8.run(DesignPage.java:446)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF_withProgress(DesignPage.java:465)
at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:415)
at org.eclipse.wb.internal.core.editor.UndoManager.refreshDesignerEditor(UndoManager.java:381)
- at org.eclipse.wb.internal.core.editor.UndoManager.activate(UndoManager.java:90)
- at org.eclipse.wb.internal.core.editor.DesignPage.handleActiveState_True(DesignPage.java:263)
- at org.eclipse.wb.internal.core.editor.DesignPage.handleActiveState(DesignPage.java:241)
- at org.eclipse.wb.internal.core.editor.multi.DefaultMultiMode.showPage(DefaultMultiMode.java:125)
- at org.eclipse.wb.internal.core.editor.multi.DefaultMultiMode$1.widgetSelected(DefaultMultiMode.java:63)
+ at org.eclipse.wb.internal.core.editor.DesignPage.refreshGEF(DesignPage.java:392)
+ at org.eclipse.wb.internal.core.editor.actions.RefreshAction.run(RefreshAction.java:46)
+ at org.eclipse.wb.internal.core.editor.actions.DesignPageAction.run(DesignPageAction.java:34)
+ at org.eclipse.wb.internal.core.editor.errors.JavaExceptionComposite.doRefresh(JavaExceptionComposite.java:87)
+ at org.eclipse.wb.internal.core.editor.errors.ExceptionComposite$3.widgetSelected(ExceptionComposite.java:129)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
- at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:774)
- at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3028)
- at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1749)
- at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:278)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
Caused by: java.lang.NullPointerException
- at java.beans.MethodRef.get(Unknown Source)
- at java.beans.PropertyDescriptor.getWriteMethod(Unknown Source)
- at org.eclipse.wb.internal.core.model.JavaInfoUtils.addExposedChildred_Method(JavaInfoUtils.java:447)
- at org.eclipse.wb.internal.core.model.JavaInfoUtils.addExposedChildren(JavaInfoUtils.java:429)
- at org.eclipse.wb.internal.swing.model.component.ComponentInfo.createExposedChildren(ComponentInfo.java:109)
- at org.eclipse.wb.internal.swing.model.component.ContainerInfo.createExposedChildren(ContainerInfo.java:143)
- at org.eclipse.wb.core.model.JavaInfo.initialize(JavaInfo.java:419)
- at org.eclipse.wb.internal.swing.model.component.ContainerInfo.initialize(ContainerInfo.java:114)
- at org.eclipse.wb.core.model.JavaInfo.setObject(JavaInfo.java:1267)
- at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper$3.evaluationSuccessful(JavaInfoEvaluationHelper.java:271)
- at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate0(AstEvaluationEngine.java:179)
- at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate(AstEvaluationEngine.java:61)
- ... 104 more
-!ENTRY org.eclipse.wb.core 4 4 2015-02-04 11:04:47.986
-!MESSAGE Designer [1.5.2.r42x201302112024.201502041102]: new javax.swing.JLabel()
+!ENTRY org.eclipse.wb.core 4 4 2015-02-19 17:10:56.395
+!MESSAGE Designer [1.5.2.r42x201302112024.201502191710]: new javax.swing.JMenuBar()
!STACK 0
-java.lang.Error: new javax.swing.JLabel()
+java.lang.Error: new javax.swing.JMenuBar()
at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate(AstEvaluationEngine.java:71)
at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluateExpression(JavaInfoEvaluationHelper.java:630)
at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluate(JavaInfoEvaluationHelper.java:502)
at org.eclipse.wb.internal.core.parser.JavaInfoParser.evaluateNode(JavaInfoParser.java:1309)
at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$1(JavaInfoParser.java:1300)
at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor$3.run(JavaInfoParser.java:602)
at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runRethrow(ExecutionUtils.java:119)
at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor.postVisit(JavaInfoParser.java:592)
- at sun.reflect.GeneratedMethodAccessor35.invoke(Unknown Source)
+ at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:399)
- at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$1f153325.postVisit(<generated>)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$9336e59e.postVisit(<generated>)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2517)
at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
at org.eclipse.jdt.core.dom.Assignment.accept0(Assignment.java:312)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.access$1(ExecutionFlowUtils.java:235)
at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.endVisit(ExecutionFlowUtils.java:442)
at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:391)
- at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$1f153325.endVisit(<generated>)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$9336e59e.endVisit(<generated>)
at org.eclipse.jdt.core.dom.MethodInvocation.accept0(MethodInvocation.java:247)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:343)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:228)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:191)
at org.eclipse.wb.internal.core.parser.JavaInfoParser.parseRootMethods(JavaInfoParser.java:312)
at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:268)
at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$9(JavaInfoParser.java:238)
at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:153)
at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:1)
at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:159)
at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:151)
at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:534)
at org.eclipse.wb.internal.core.editor.DesignPage.access$9(DesignPage.java:522)
at org.eclipse.wb.internal.core.editor.DesignPage$8$1.run(DesignPage.java:449)
at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
at org.eclipse.wb.internal.core.editor.DesignPage$8.run(DesignPage.java:446)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF_withProgress(DesignPage.java:465)
at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:415)
at org.eclipse.wb.internal.core.editor.UndoManager.refreshDesignerEditor(UndoManager.java:381)
- at org.eclipse.wb.internal.core.editor.UndoManager.activate(UndoManager.java:90)
- at org.eclipse.wb.internal.core.editor.DesignPage.handleActiveState_True(DesignPage.java:263)
- at org.eclipse.wb.internal.core.editor.DesignPage.handleActiveState(DesignPage.java:241)
- at org.eclipse.wb.internal.core.editor.multi.DefaultMultiMode.showPage(DefaultMultiMode.java:125)
- at org.eclipse.wb.internal.core.editor.multi.DefaultMultiMode$1.widgetSelected(DefaultMultiMode.java:63)
+ at org.eclipse.wb.internal.core.editor.DesignPage.refreshGEF(DesignPage.java:392)
+ at org.eclipse.wb.internal.core.editor.actions.RefreshAction.run(RefreshAction.java:46)
+ at org.eclipse.wb.internal.core.editor.actions.DesignPageAction.run(DesignPageAction.java:34)
+ at org.eclipse.wb.internal.core.editor.errors.JavaExceptionComposite.doRefresh(JavaExceptionComposite.java:87)
+ at org.eclipse.wb.internal.core.editor.errors.ExceptionComposite$3.widgetSelected(ExceptionComposite.java:129)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
- at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:774)
- at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3028)
- at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1749)
- at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:278)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
Caused by: java.lang.NullPointerException
- at java.beans.MethodRef.get(Unknown Source)
- at java.beans.PropertyDescriptor.getReadMethod(Unknown Source)
- at org.eclipse.wb.internal.core.model.JavaInfoUtils.addExposedChildred_Method(JavaInfoUtils.java:449)
- at org.eclipse.wb.internal.core.model.JavaInfoUtils.addExposedChildren(JavaInfoUtils.java:429)
- at org.eclipse.wb.internal.swing.model.component.ComponentInfo.createExposedChildren(ComponentInfo.java:109)
- at org.eclipse.wb.internal.swing.model.component.ContainerInfo.createExposedChildren(ContainerInfo.java:143)
- at org.eclipse.wb.core.model.JavaInfo.initialize(JavaInfo.java:419)
- at org.eclipse.wb.internal.swing.model.component.ContainerInfo.initialize(ContainerInfo.java:114)
- at org.eclipse.wb.core.model.JavaInfo.setObject(JavaInfo.java:1267)
- at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper$3.evaluationSuccessful(JavaInfoEvaluationHelper.java:271)
- at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate0(AstEvaluationEngine.java:179)
- at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate(AstEvaluationEngine.java:61)
- ... 104 more
-!ENTRY org.eclipse.wb.core 4 4 2015-02-04 11:05:14.564
-!MESSAGE Designer [1.5.2.r42x201302112024.201502041102]: new javax.swing.JComboBox<String>()
+!ENTRY org.eclipse.wb.core 4 4 2015-02-19 17:10:57.238
+!MESSAGE Designer [1.5.2.r42x201302112024.201502191710]: new javax.swing.JMenuBar()
!STACK 0
-java.lang.Error: new javax.swing.JComboBox<String>()
+java.lang.Error: new javax.swing.JMenuBar()
at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate(AstEvaluationEngine.java:71)
at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluateExpression(JavaInfoEvaluationHelper.java:630)
at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluate(JavaInfoEvaluationHelper.java:502)
at org.eclipse.wb.internal.core.parser.JavaInfoParser.evaluateNode(JavaInfoParser.java:1309)
at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$1(JavaInfoParser.java:1300)
at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor$3.run(JavaInfoParser.java:602)
at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runRethrow(ExecutionUtils.java:119)
at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor.postVisit(JavaInfoParser.java:592)
- at sun.reflect.GeneratedMethodAccessor35.invoke(Unknown Source)
+ at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:399)
- at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$1f153325.postVisit(<generated>)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$9336e59e.postVisit(<generated>)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2517)
at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
at org.eclipse.jdt.core.dom.Assignment.accept0(Assignment.java:312)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.access$1(ExecutionFlowUtils.java:235)
at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.endVisit(ExecutionFlowUtils.java:442)
at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:391)
- at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$1f153325.endVisit(<generated>)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$9336e59e.endVisit(<generated>)
at org.eclipse.jdt.core.dom.MethodInvocation.accept0(MethodInvocation.java:247)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:343)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:228)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:191)
at org.eclipse.wb.internal.core.parser.JavaInfoParser.parseRootMethods(JavaInfoParser.java:312)
at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:268)
at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$9(JavaInfoParser.java:238)
at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:153)
at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:1)
at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:159)
at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:151)
at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:534)
at org.eclipse.wb.internal.core.editor.DesignPage.access$9(DesignPage.java:522)
at org.eclipse.wb.internal.core.editor.DesignPage$8$1.run(DesignPage.java:449)
at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
at org.eclipse.wb.internal.core.editor.DesignPage$8.run(DesignPage.java:446)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF_withProgress(DesignPage.java:465)
at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:415)
at org.eclipse.wb.internal.core.editor.UndoManager.refreshDesignerEditor(UndoManager.java:381)
at org.eclipse.wb.internal.core.editor.DesignPage.refreshGEF(DesignPage.java:392)
at org.eclipse.wb.internal.core.editor.actions.RefreshAction.run(RefreshAction.java:46)
at org.eclipse.wb.internal.core.editor.actions.DesignPageAction.run(DesignPageAction.java:34)
at org.eclipse.wb.internal.core.editor.errors.JavaExceptionComposite.doRefresh(JavaExceptionComposite.java:87)
at org.eclipse.wb.internal.core.editor.errors.ExceptionComposite$3.widgetSelected(ExceptionComposite.java:129)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
Caused by: java.lang.NullPointerException
- at java.beans.MethodRef.get(Unknown Source)
- at java.beans.PropertyDescriptor.getWriteMethod(Unknown Source)
- at org.eclipse.wb.internal.core.model.JavaInfoUtils.addExposedChildred_Method(JavaInfoUtils.java:447)
- at org.eclipse.wb.internal.core.model.JavaInfoUtils.addExposedChildren(JavaInfoUtils.java:429)
- at org.eclipse.wb.internal.swing.model.component.ComponentInfo.createExposedChildren(ComponentInfo.java:109)
- at org.eclipse.wb.internal.swing.model.component.ContainerInfo.createExposedChildren(ContainerInfo.java:143)
- at org.eclipse.wb.core.model.JavaInfo.initialize(JavaInfo.java:419)
- at org.eclipse.wb.internal.swing.model.component.ContainerInfo.initialize(ContainerInfo.java:114)
- at org.eclipse.wb.core.model.JavaInfo.setObject(JavaInfo.java:1267)
- at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper$3.evaluationSuccessful(JavaInfoEvaluationHelper.java:271)
- at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate0(AstEvaluationEngine.java:179)
- at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate(AstEvaluationEngine.java:61)
- ... 96 more
-!ENTRY org.eclipse.wb.core 4 4 2015-02-04 11:05:15.630
-!MESSAGE Designer [1.5.2.r42x201302112024.201502041102]: new javax.swing.JComboBox<String>()
+!ENTRY org.eclipse.wb.core 4 4 2015-02-19 17:10:58.082
+!MESSAGE Designer [1.5.2.r42x201302112024.201502191710]: new javax.swing.JMenu()
!STACK 0
-java.lang.Error: new javax.swing.JComboBox<String>()
+java.lang.Error: new javax.swing.JMenu()
at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate(AstEvaluationEngine.java:71)
at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluateExpression(JavaInfoEvaluationHelper.java:630)
at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluate(JavaInfoEvaluationHelper.java:502)
at org.eclipse.wb.internal.core.parser.JavaInfoParser.evaluateNode(JavaInfoParser.java:1309)
at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$1(JavaInfoParser.java:1300)
at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor$3.run(JavaInfoParser.java:602)
at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runRethrow(ExecutionUtils.java:119)
at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor.postVisit(JavaInfoParser.java:592)
- at sun.reflect.GeneratedMethodAccessor35.invoke(Unknown Source)
+ at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:399)
- at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$1f153325.postVisit(<generated>)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$9336e59e.postVisit(<generated>)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2517)
at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
at org.eclipse.jdt.core.dom.Assignment.accept0(Assignment.java:312)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.access$1(ExecutionFlowUtils.java:235)
at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.endVisit(ExecutionFlowUtils.java:442)
at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:391)
- at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$1f153325.endVisit(<generated>)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$9336e59e.endVisit(<generated>)
at org.eclipse.jdt.core.dom.MethodInvocation.accept0(MethodInvocation.java:247)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:343)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:228)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:191)
at org.eclipse.wb.internal.core.parser.JavaInfoParser.parseRootMethods(JavaInfoParser.java:312)
at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:268)
at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$9(JavaInfoParser.java:238)
at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:153)
at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:1)
at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:159)
at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:151)
at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:534)
at org.eclipse.wb.internal.core.editor.DesignPage.access$9(DesignPage.java:522)
at org.eclipse.wb.internal.core.editor.DesignPage$8$1.run(DesignPage.java:449)
at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
at org.eclipse.wb.internal.core.editor.DesignPage$8.run(DesignPage.java:446)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF_withProgress(DesignPage.java:465)
at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:415)
at org.eclipse.wb.internal.core.editor.UndoManager.refreshDesignerEditor(UndoManager.java:381)
at org.eclipse.wb.internal.core.editor.DesignPage.refreshGEF(DesignPage.java:392)
at org.eclipse.wb.internal.core.editor.actions.RefreshAction.run(RefreshAction.java:46)
at org.eclipse.wb.internal.core.editor.actions.DesignPageAction.run(DesignPageAction.java:34)
at org.eclipse.wb.internal.core.editor.errors.JavaExceptionComposite.doRefresh(JavaExceptionComposite.java:87)
at org.eclipse.wb.internal.core.editor.errors.ExceptionComposite$3.widgetSelected(ExceptionComposite.java:129)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
Caused by: java.lang.NullPointerException
- at java.beans.MethodRef.get(Unknown Source)
- at java.beans.PropertyDescriptor.getReadMethod(Unknown Source)
- at org.eclipse.wb.internal.core.model.JavaInfoUtils.addExposedChildred_Method(JavaInfoUtils.java:449)
- at org.eclipse.wb.internal.core.model.JavaInfoUtils.addExposedChildren(JavaInfoUtils.java:429)
- at org.eclipse.wb.internal.swing.model.component.ComponentInfo.createExposedChildren(ComponentInfo.java:109)
- at org.eclipse.wb.internal.swing.model.component.ContainerInfo.createExposedChildren(ContainerInfo.java:143)
- at org.eclipse.wb.core.model.JavaInfo.initialize(JavaInfo.java:419)
- at org.eclipse.wb.internal.swing.model.component.ContainerInfo.initialize(ContainerInfo.java:114)
- at org.eclipse.wb.core.model.JavaInfo.setObject(JavaInfo.java:1267)
- at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper$3.evaluationSuccessful(JavaInfoEvaluationHelper.java:271)
- at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate0(AstEvaluationEngine.java:179)
- at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate(AstEvaluationEngine.java:61)
- ... 96 more
-!ENTRY org.eclipse.wb.core 4 4 2015-02-04 11:05:16.246
-!MESSAGE Designer [1.5.2.r42x201302112024.201502041102]: new javax.swing.JScrollPane()
+!ENTRY org.eclipse.wb.core 4 4 2015-02-19 17:10:58.814
+!MESSAGE Designer [1.5.2.r42x201302112024.201502191710]: new javax.swing.JMenu()
!STACK 0
-java.lang.Error: new javax.swing.JScrollPane()
+java.lang.Error: new javax.swing.JMenu()
at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate(AstEvaluationEngine.java:71)
at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluateExpression(JavaInfoEvaluationHelper.java:630)
at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper.evaluate(JavaInfoEvaluationHelper.java:502)
at org.eclipse.wb.internal.core.parser.JavaInfoParser.evaluateNode(JavaInfoParser.java:1309)
at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$1(JavaInfoParser.java:1300)
at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor$3.run(JavaInfoParser.java:602)
at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runRethrow(ExecutionUtils.java:119)
at org.eclipse.wb.internal.core.parser.JavaInfoParser$ExecutionFlowParseVisitor.postVisit(JavaInfoParser.java:592)
- at sun.reflect.GeneratedMethodAccessor35.invoke(Unknown Source)
+ at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:399)
- at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$1f153325.postVisit(<generated>)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$9336e59e.postVisit(<generated>)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2517)
at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
at org.eclipse.jdt.core.dom.Assignment.accept0(Assignment.java:312)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.access$1(ExecutionFlowUtils.java:235)
at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.endVisit(ExecutionFlowUtils.java:442)
at org.eclipse.wb.core.eval.ExecutionFlowUtils$1.intercept(ExecutionFlowUtils.java:391)
- at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$1f153325.endVisit(<generated>)
+ at org.eclipse.jdt.core.dom.ASTVisitor$$EnhancerByCGLIB$$9336e59e.endVisit(<generated>)
at org.eclipse.jdt.core.dom.MethodInvocation.accept0(MethodInvocation.java:247)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2562)
at org.eclipse.jdt.core.dom.ExpressionStatement.accept0(ExpressionStatement.java:144)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2514)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:354)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:343)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement0(ExecutionFlowUtils.java:336)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visitStatement(ExecutionFlowUtils.java:315)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:247)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:228)
at org.eclipse.wb.core.eval.ExecutionFlowUtils.visit(ExecutionFlowUtils.java:191)
at org.eclipse.wb.internal.core.parser.JavaInfoParser.parseRootMethods(JavaInfoParser.java:312)
at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:268)
at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$9(JavaInfoParser.java:238)
at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:153)
at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:1)
at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:159)
at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:151)
at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:534)
at org.eclipse.wb.internal.core.editor.DesignPage.access$9(DesignPage.java:522)
at org.eclipse.wb.internal.core.editor.DesignPage$8$1.run(DesignPage.java:449)
at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
at org.eclipse.wb.internal.core.editor.DesignPage$8.run(DesignPage.java:446)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF_withProgress(DesignPage.java:465)
at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:415)
at org.eclipse.wb.internal.core.editor.UndoManager.refreshDesignerEditor(UndoManager.java:381)
at org.eclipse.wb.internal.core.editor.DesignPage.refreshGEF(DesignPage.java:392)
at org.eclipse.wb.internal.core.editor.actions.RefreshAction.run(RefreshAction.java:46)
at org.eclipse.wb.internal.core.editor.actions.DesignPageAction.run(DesignPageAction.java:34)
at org.eclipse.wb.internal.core.editor.errors.JavaExceptionComposite.doRefresh(JavaExceptionComposite.java:87)
at org.eclipse.wb.internal.core.editor.errors.ExceptionComposite$3.widgetSelected(ExceptionComposite.java:129)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-Caused by: java.lang.NullPointerException
- at java.beans.MethodRef.get(Unknown Source)
- at java.beans.PropertyDescriptor.getWriteMethod(Unknown Source)
- at org.eclipse.wb.internal.core.model.JavaInfoUtils.addExposedChildred_Method(JavaInfoUtils.java:447)
- at org.eclipse.wb.internal.core.model.JavaInfoUtils.addExposedChildren(JavaInfoUtils.java:429)
- at org.eclipse.wb.internal.swing.model.component.ComponentInfo.createExposedChildren(ComponentInfo.java:109)
- at org.eclipse.wb.internal.swing.model.component.ContainerInfo.createExposedChildren(ContainerInfo.java:143)
- at org.eclipse.wb.core.model.JavaInfo.initialize(JavaInfo.java:419)
- at org.eclipse.wb.internal.swing.model.component.ContainerInfo.initialize(ContainerInfo.java:114)
- at org.eclipse.wb.core.model.JavaInfo.setObject(JavaInfo.java:1267)
- at org.eclipse.wb.internal.core.model.JavaInfoEvaluationHelper$3.evaluationSuccessful(JavaInfoEvaluationHelper.java:271)
- at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate0(AstEvaluationEngine.java:179)
- at org.eclipse.wb.core.eval.AstEvaluationEngine.evaluate(AstEvaluationEngine.java:61)
- ... 96 more
+Caused by: java.lang.NullPointerException
+
+!ENTRY org.eclipse.ui 2 2 2015-02-19 17:11:02.881
+!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
+!SESSION 2015-02-19 17:11:07.438 -----------------------------------------------
+eclipse.buildId=M20130204-1200
+java.version=1.8.0_31
+java.vendor=Oracle Corporation
+BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
+Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
+Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
+
+!ENTRY org.eclipse.ui 4 4 2015-02-19 17:11:14.429
+!MESSAGE Could not create action delegate for id: org.eclipse.jdt.debug.ui.actions.ManageBreakpointRulerAction
+
+!ENTRY org.eclipse.equinox.registry 4 1 2015-02-19 17:11:14.435
+!MESSAGE Plug-in org.eclipse.wb.core.java was unable to load class org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate.
+!STACK 0
+java.lang.ClassNotFoundException: org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
+ at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
+ at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
+ at java.lang.ClassLoader.loadClass(Unknown Source)
+ at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
+ at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
+ at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
+ at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
+ at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
+ at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
+ at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
+ at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:265)
+ at org.eclipse.ui.internal.PluginAction.createDelegate(PluginAction.java:122)
+ at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:275)
+ at org.eclipse.ui.internal.PluginAction.<init>(PluginAction.java:112)
+ at org.eclipse.ui.internal.PartPluginAction.<init>(PartPluginAction.java:29)
+ at org.eclipse.ui.internal.EditorPluginAction.<init>(EditorPluginAction.java:32)
+ at org.eclipse.ui.internal.ActionDescriptor.createAction(ActionDescriptor.java:262)
+ at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:176)
+ at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:103)
+ at org.eclipse.ui.internal.EditorActionBuilder.createActionDescriptor(EditorActionBuilder.java:41)
+ at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:161)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElementChildren(RegistryReader.java:133)
+ at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
+ at org.eclipse.ui.internal.registry.RegistryReader.readExtension(RegistryReader.java:155)
+ at org.eclipse.ui.internal.registry.RegistryReader.readRegistry(RegistryReader.java:176)
+ at org.eclipse.ui.internal.PluginActionBuilder.readContributions(PluginActionBuilder.java:115)
+ at org.eclipse.ui.internal.EditorActionBuilder.readActionExtensions(EditorActionBuilder.java:58)
+ at org.eclipse.ui.internal.EditorReference.createEditorActionBars(EditorReference.java:446)
+ at org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:356)
+ at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:301)
+ at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+ at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
+ at java.lang.reflect.Method.invoke(Unknown Source)
+ at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:861)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:841)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:113)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:321)
+ at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:242)
+ at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:161)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
+ at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
+ at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:141)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1115)
+ at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:98)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$6.run(PartRenderingEngine.java:520)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:505)
+ at org.eclipse.e4.ui.workbench.renderers.swt.ElementReferenceRenderer.createWidget(ElementReferenceRenderer.java:74)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveRenderer.processContents(PerspectiveRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.showTab(PerspectiveStackRenderer.java:103)
+ at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:98)
+ at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.postProcess(PerspectiveStackRenderer.java:77)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.workbench.renderers.swt.WBWRenderer.processContents(WBWRenderer.java:644)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:987)
+ at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
+ at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
+ at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
+ at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
+ at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
+ at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
+ at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
+ at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
+ at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
+ at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
+ at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
+ at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
+ at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+ at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
+ at java.lang.reflect.Method.invoke(Unknown Source)
+ at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
+ at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
+ at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
+ at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
+
+!ENTRY org.eclipse.egit.ui 2 0 2015-02-19 17:11:20.304
+!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
+Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
+The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
+this system level configuration. The Git installation location can be configured on the
+Team > Git > Configuration preference page's 'System Settings' tab.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-!ENTRY org.eclipse.ui 2 2 2015-02-04 12:05:39.790
+!ENTRY org.eclipse.egit.ui 2 0 2015-02-19 17:11:20.306
+!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
+user global configuration and to define the default location to store repositories: 'C:\Users\raisaro'. If this is
+not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
+EGit might behave differently since they see different configuration options.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
+
+!ENTRY org.eclipse.ui 2 2 2015-02-19 17:42:26.738
!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
-!SESSION 2015-02-04 12:21:31.183 -----------------------------------------------
+!SESSION 2015-02-19 17:42:46.733 -----------------------------------------------
eclipse.buildId=M20130204-1200
java.version=1.8.0_31
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
-!ENTRY org.eclipse.ui 4 4 2015-02-04 12:21:39.358
+!ENTRY org.eclipse.ui 4 4 2015-02-19 17:42:53.375
!MESSAGE Could not create action delegate for id: org.eclipse.jdt.debug.ui.actions.ManageBreakpointRulerAction
-!ENTRY org.eclipse.equinox.registry 4 1 2015-02-04 12:21:39.367
+!ENTRY org.eclipse.equinox.registry 4 1 2015-02-19 17:42:53.381
!MESSAGE Plug-in org.eclipse.wb.core.java was unable to load class org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate.
!STACK 0
java.lang.ClassNotFoundException: org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:265)
at org.eclipse.ui.internal.PluginAction.createDelegate(PluginAction.java:122)
at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:275)
at org.eclipse.ui.internal.PluginAction.<init>(PluginAction.java:112)
at org.eclipse.ui.internal.PartPluginAction.<init>(PartPluginAction.java:29)
at org.eclipse.ui.internal.EditorPluginAction.<init>(EditorPluginAction.java:32)
at org.eclipse.ui.internal.ActionDescriptor.createAction(ActionDescriptor.java:262)
at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:176)
at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:103)
at org.eclipse.ui.internal.EditorActionBuilder.createActionDescriptor(EditorActionBuilder.java:41)
at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:161)
at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
at org.eclipse.ui.internal.registry.RegistryReader.readElementChildren(RegistryReader.java:133)
at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:144)
at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
at org.eclipse.ui.internal.registry.RegistryReader.readExtension(RegistryReader.java:155)
at org.eclipse.ui.internal.registry.RegistryReader.readRegistry(RegistryReader.java:176)
at org.eclipse.ui.internal.PluginActionBuilder.readContributions(PluginActionBuilder.java:115)
at org.eclipse.ui.internal.EditorActionBuilder.readActionExtensions(EditorActionBuilder.java:58)
at org.eclipse.ui.internal.EditorReference.createEditorActionBars(EditorReference.java:446)
at org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:356)
at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:301)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:861)
at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:841)
at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:113)
at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:321)
at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:242)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:161)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:141)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1115)
at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:98)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$6.run(PartRenderingEngine.java:520)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:505)
at org.eclipse.e4.ui.workbench.renderers.swt.ElementReferenceRenderer.createWidget(ElementReferenceRenderer.java:74)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveRenderer.processContents(PerspectiveRenderer.java:59)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.showTab(PerspectiveStackRenderer.java:103)
at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:98)
at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.postProcess(PerspectiveStackRenderer.java:77)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
at org.eclipse.e4.ui.workbench.renderers.swt.WBWRenderer.processContents(WBWRenderer.java:644)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:987)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-!ENTRY org.eclipse.egit.ui 2 0 2015-02-04 12:21:45.809
-!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
-Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
-The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
-this system level configuration. The Git installation location can be configured on the
-Team > Git > Configuration preference page's 'System Settings' tab.
-This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-
-!ENTRY org.eclipse.egit.ui 2 0 2015-02-04 12:21:45.811
-!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
-user global configuration and to define the default location to store repositories: 'C:\Users\raisaro'. If this is
-not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
-EGit might behave differently since they see different configuration options.
-This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-
-!ENTRY org.eclipse.ui 2 2 2015-02-04 12:28:03.879
-!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
-!SESSION 2015-02-04 13:32:08.916 -----------------------------------------------
-eclipse.buildId=M20130204-1200
-java.version=1.8.0_31
-java.vendor=Oracle Corporation
-BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
-Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
-Command-line arguments: -data C:\Users\raisaro\workspace\yussef -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
-
-!ENTRY org.eclipse.egit.ui 2 0 2015-02-04 13:32:19.035
+!ENTRY org.eclipse.egit.ui 2 0 2015-02-19 17:42:58.406
!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
this system level configuration. The Git installation location can be configured on the
Team > Git > Configuration preference page's 'System Settings' tab.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-!ENTRY org.eclipse.egit.ui 2 0 2015-02-04 13:32:19.037
+!ENTRY org.eclipse.egit.ui 2 0 2015-02-19 17:42:58.407
!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
user global configuration and to define the default location to store repositories: 'C:\Users\raisaro'. If this is
not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
EGit might behave differently since they see different configuration options.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-!ENTRY org.eclipse.ui 2 2 2015-02-04 13:35:04.087
+!ENTRY org.eclipse.ui 2 2 2015-02-19 17:44:46.561
!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
-!SESSION 2015-02-04 13:35:27.296 -----------------------------------------------
+!SESSION 2015-02-20 09:40:43.524 -----------------------------------------------
eclipse.buildId=M20130204-1200
java.version=1.8.0_31
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
-!ENTRY org.eclipse.egit.ui 2 0 2015-02-04 13:35:36.825
-!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
-Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
-The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
-this system level configuration. The Git installation location can be configured on the
-Team > Git > Configuration preference page's 'System Settings' tab.
-This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-
-!ENTRY org.eclipse.egit.ui 2 0 2015-02-04 13:35:36.827
-!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
-user global configuration and to define the default location to store repositories: 'C:\Users\raisaro'. If this is
-not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
-EGit might behave differently since they see different configuration options.
-This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
-
-!ENTRY org.eclipse.ui 4 4 2015-02-04 13:40:35.652
+!ENTRY org.eclipse.ui 4 4 2015-02-20 09:40:52.621
!MESSAGE Could not create action delegate for id: org.eclipse.jdt.debug.ui.actions.ManageBreakpointRulerAction
-!ENTRY org.eclipse.equinox.registry 4 1 2015-02-04 13:40:35.654
+!ENTRY org.eclipse.equinox.registry 4 1 2015-02-20 09:40:52.621
!MESSAGE Plug-in org.eclipse.wb.core.java was unable to load class org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate.
!STACK 0
java.lang.ClassNotFoundException: org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:265)
at org.eclipse.ui.internal.PluginAction.createDelegate(PluginAction.java:122)
at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:275)
at org.eclipse.ui.internal.PluginAction.<init>(PluginAction.java:112)
at org.eclipse.ui.internal.PartPluginAction.<init>(PartPluginAction.java:29)
at org.eclipse.ui.internal.EditorPluginAction.<init>(EditorPluginAction.java:32)
at org.eclipse.ui.internal.ActionDescriptor.createAction(ActionDescriptor.java:262)
at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:176)
at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:103)
at org.eclipse.ui.internal.EditorActionBuilder.createActionDescriptor(EditorActionBuilder.java:41)
at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:161)
at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
at org.eclipse.ui.internal.registry.RegistryReader.readElementChildren(RegistryReader.java:133)
at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:144)
at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:144)
at org.eclipse.ui.internal.registry.RegistryReader.readExtension(RegistryReader.java:155)
at org.eclipse.ui.internal.registry.RegistryReader.readRegistry(RegistryReader.java:176)
at org.eclipse.ui.internal.PluginActionBuilder.readContributions(PluginActionBuilder.java:115)
at org.eclipse.ui.internal.EditorActionBuilder.readActionExtensions(EditorActionBuilder.java:58)
at org.eclipse.ui.internal.EditorReference.createEditorActionBars(EditorReference.java:446)
at org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:356)
at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:301)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:861)
at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:841)
at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:113)
at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:321)
at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:242)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:161)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:141)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1115)
- at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer$1.handleEvent(LazyStackRenderer.java:67)
- at org.eclipse.e4.ui.services.internal.events.UIEventHandler$1.run(UIEventHandler.java:41)
- at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
- at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
- at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
- at org.eclipse.e4.ui.internal.workbench.swt.E4Application$1.syncExec(E4Application.java:187)
- at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:38)
- at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:197)
- at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:197)
- at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)
- at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
- at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
- at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:135)
- at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:78)
- at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:39)
- at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:80)
- at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:58)
- at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:374)
- at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement(ElementContainerImpl.java:171)
- at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.showElementInWindow(ModelServiceImpl.java:422)
- at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.bringToTop(ModelServiceImpl.java:389)
- at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.delegateBringToTop(PartServiceImpl.java:606)
- at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.activate(PartServiceImpl.java:579)
- at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.activate(PartServiceImpl.java:549)
- at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.activate(PartServiceImpl.java:538)
- at org.eclipse.e4.ui.internal.workbench.renderers.swt.BasicPartList.gotoSelectedElement(BasicPartList.java:154)
- at org.eclipse.e4.ui.internal.workbench.renderers.swt.AbstractTableInformationControl$4.mouseUp(AbstractTableInformationControl.java:245)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:220)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
+ at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:98)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$6.run(PartRenderingEngine.java:520)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:505)
+ at org.eclipse.e4.ui.workbench.renderers.swt.ElementReferenceRenderer.createWidget(ElementReferenceRenderer.java:74)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:894)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:629)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveRenderer.processContents(PerspectiveRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.showTab(PerspectiveStackRenderer.java:103)
+ at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:98)
+ at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.postProcess(PerspectiveStackRenderer.java:77)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:645)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
+ at org.eclipse.e4.ui.workbench.renderers.swt.WBWRenderer.processContents(WBWRenderer.java:644)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:641)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:731)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:702)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:696)
+ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:681)
+ at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:987)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
-!ENTRY org.eclipse.ui 4 0 2015-02-04 13:41:15.419
-!MESSAGE Unhandled event loop exception
-!STACK 0
-java.lang.NullPointerException
- at org.eclipse.wb.internal.core.utils.ui.dialogs.ResizableDialog.close(ResizableDialog.java:203)
- at org.eclipse.jface.dialogs.Dialog.okPressed(Dialog.java:940)
- at org.eclipse.wb.internal.core.model.property.editor.string.StringPropertyDialog.okPressed(StringPropertyDialog.java:311)
- at org.eclipse.jface.dialogs.Dialog.buttonPressed(Dialog.java:472)
- at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
- at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
- at org.eclipse.jface.window.Window.open(Window.java:801)
- at org.eclipse.wb.internal.core.model.property.editor.string.StringPropertyEditor.openDialog(StringPropertyEditor.java:96)
- at org.eclipse.wb.internal.core.model.property.editor.string.StringPropertyEditor.access$0(StringPropertyEditor.java:94)
- at org.eclipse.wb.internal.core.model.property.editor.string.StringPropertyEditor$1.onClick(StringPropertyEditor.java:47)
- at org.eclipse.wb.internal.core.model.property.editor.presentation.ButtonPropertyEditorPresentationImpl$4.handleEvent(ButtonPropertyEditorPresentationImpl.java:124)
- at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
- at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
- at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
- at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
- at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
- at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
- at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
- at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
+!ENTRY org.eclipse.egit.ui 2 0 2015-02-20 09:40:59.471
+!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
+Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
+The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
+this system level configuration. The Git installation location can be configured on the
+Team > Git > Configuration preference page's 'System Settings' tab.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
+
+!ENTRY org.eclipse.egit.ui 2 0 2015-02-20 09:40:59.471
+!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
+user global configuration and to define the default location to store repositories: 'C:\Users\raisaro'. If this is
+not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
+EGit might behave differently since they see different configuration options.
+This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
+
+!ENTRY org.eclipse.ui 2 2 2015-02-20 09:41:14.167
+!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
diff --git a/.metadata/.plugins/org.eclipse.cdt.core/.log b/.metadata/.plugins/org.eclipse.cdt.core/.log
index 34997f9..196d237 100644
--- a/.metadata/.plugins/org.eclipse.cdt.core/.log
+++ b/.metadata/.plugins/org.eclipse.cdt.core/.log
@@ -1,45 +1,70 @@
*** SESSION set 25, 2014 14:52:36.57 -------------------------------------------
*** SESSION set 26, 2014 14:31:15.98 -------------------------------------------
*** SESSION set 29, 2014 09:46:26.81 -------------------------------------------
*** SESSION ott 28, 2014 09:27:16.74 -------------------------------------------
*** SESSION ott 28, 2014 10:00:33.43 -------------------------------------------
*** SESSION ott 29, 2014 15:59:06.23 -------------------------------------------
*** SESSION nov 04, 2014 13:47:53.36 -------------------------------------------
*** SESSION nov 06, 2014 14:11:51.17 -------------------------------------------
*** SESSION nov 10, 2014 14:39:14.72 -------------------------------------------
*** SESSION nov 10, 2014 16:41:43.42 -------------------------------------------
*** SESSION nov 11, 2014 09:35:46.30 -------------------------------------------
*** SESSION nov 13, 2014 22:06:51.22 -------------------------------------------
*** SESSION nov 14, 2014 09:19:12.90 -------------------------------------------
*** SESSION nov 14, 2014 09:42:28.94 -------------------------------------------
*** SESSION nov 18, 2014 09:16:39.27 -------------------------------------------
*** SESSION nov 27, 2014 14:47:09.13 -------------------------------------------
*** SESSION dic 04, 2014 14:09:45.04 -------------------------------------------
*** SESSION dic 12, 2014 10:23:19.74 -------------------------------------------
*** SESSION dic 12, 2014 17:47:57.86 -------------------------------------------
*** SESSION dic 15, 2014 09:50:38.59 -------------------------------------------
*** SESSION dic 15, 2014 11:42:48.50 -------------------------------------------
*** SESSION dic 16, 2014 09:39:18.38 -------------------------------------------
*** SESSION dic 17, 2014 12:13:10.32 -------------------------------------------
*** SESSION dic 18, 2014 09:23:23.29 -------------------------------------------
*** SESSION dic 19, 2014 09:11:26.34 -------------------------------------------
*** SESSION dic 19, 2014 12:22:22.71 -------------------------------------------
*** SESSION gen 08, 2015 09:17:08.90 -------------------------------------------
*** SESSION gen 08, 2015 10:49:36.41 -------------------------------------------
*** SESSION gen 08, 2015 14:13:04.62 -------------------------------------------
*** SESSION gen 08, 2015 15:45:52.31 -------------------------------------------
*** SESSION gen 09, 2015 13:30:04.00 -------------------------------------------
*** SESSION gen 09, 2015 14:03:37.62 -------------------------------------------
*** SESSION gen 22, 2015 17:04:25.36 -------------------------------------------
*** SESSION gen 26, 2015 09:55:50.70 -------------------------------------------
*** SESSION gen 27, 2015 10:30:03.89 -------------------------------------------
*** SESSION gen 28, 2015 09:14:02.00 -------------------------------------------
*** SESSION gen 29, 2015 14:30:21.04 -------------------------------------------
*** SESSION gen 29, 2015 15:53:26.09 -------------------------------------------
*** SESSION gen 30, 2015 09:29:28.57 -------------------------------------------
*** SESSION gen 30, 2015 16:48:03.22 -------------------------------------------
*** SESSION feb 02, 2015 14:58:08.03 -------------------------------------------
*** SESSION feb 02, 2015 16:32:44.60 -------------------------------------------
*** SESSION feb 04, 2015 09:39:13.78 -------------------------------------------
*** SESSION feb 04, 2015 12:21:45.97 -------------------------------------------
*** SESSION feb 04, 2015 13:32:19.07 -------------------------------------------
+*** SESSION feb 04, 2015 13:35:36.86 -------------------------------------------
+*** SESSION feb 04, 2015 14:00:45.88 -------------------------------------------
+*** SESSION feb 04, 2015 14:32:08.74 -------------------------------------------
+*** SESSION feb 04, 2015 14:37:35.39 -------------------------------------------
+*** SESSION feb 04, 2015 14:41:30.37 -------------------------------------------
+*** SESSION feb 04, 2015 15:10:21.61 -------------------------------------------
+*** SESSION feb 04, 2015 15:52:43.45 -------------------------------------------
+*** SESSION feb 04, 2015 16:42:33.50 -------------------------------------------
+*** SESSION feb 05, 2015 09:23:01.49 -------------------------------------------
+*** SESSION feb 05, 2015 10:32:30.32 -------------------------------------------
+*** SESSION feb 05, 2015 11:57:55.71 -------------------------------------------
+*** SESSION feb 05, 2015 15:28:49.66 -------------------------------------------
+*** SESSION feb 06, 2015 09:52:21.85 -------------------------------------------
+*** SESSION feb 06, 2015 17:52:09.72 -------------------------------------------
+*** SESSION feb 09, 2015 16:56:30.06 -------------------------------------------
+*** SESSION feb 09, 2015 17:30:01.09 -------------------------------------------
+*** SESSION feb 10, 2015 09:30:12.26 -------------------------------------------
+*** SESSION feb 10, 2015 10:38:11.34 -------------------------------------------
+*** SESSION feb 10, 2015 11:11:05.18 -------------------------------------------
+*** SESSION feb 10, 2015 11:54:58.36 -------------------------------------------
+*** SESSION feb 10, 2015 12:03:18.81 -------------------------------------------
+*** SESSION feb 19, 2015 13:29:50.16 -------------------------------------------
+*** SESSION feb 19, 2015 17:11:20.38 -------------------------------------------
+*** SESSION feb 19, 2015 17:42:58.45 -------------------------------------------
+*** SESSION feb 20, 2015 09:40:58.66 -------------------------------------------
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/1/a025e05fb2a7001417ceadf0100b5ef7 b/.metadata/.plugins/org.eclipse.core.resources/.history/1/a025e05fb2a7001417ceadf0100b5ef7
deleted file mode 100644
index dc7d257..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/1/a025e05fb2a7001417ceadf0100b5ef7
+++ /dev/null
@@ -1,96 +0,0 @@
-package testpdf;
-
-import java.io.FileOutputStream;
-import java.io.IOException;
-
-import com.itextpdf.text.DocumentException;
-import com.itextpdf.text.Rectangle;
-import com.itextpdf.text.pdf.GrayColor;
-import com.itextpdf.text.pdf.PdfAction;
-import com.itextpdf.text.pdf.PdfFormField;
-import com.itextpdf.text.pdf.PdfReader;
-import com.itextpdf.text.pdf.PdfStamper;
-import com.itextpdf.text.pdf.PushbuttonField;
-
-public class SubmitForm {
-
- /** The resulting PDF file. */
- public static final String RESULT
- = "results/part3/chapter09/submit_me.pdf";
-
- /**
- * Manipulates a PDF file src with the file dest as result
- * @param src the original PDF
- * @param dest the resulting PDF
- * @throws IOException
- * @throws DocumentException
- */
- public void manipulatePdf(String src, String dest)
- throws IOException, DocumentException {
- // create a reader
- PdfReader reader = new PdfReader(src);
- // create a stamper
- PdfStamper stamper = new PdfStamper(reader,
- new FileOutputStream(dest));
- // create a submit button that posts the form as an HTML query string
- PushbuttonField button1 = new PushbuttonField(
- stamper.getWriter(), new Rectangle(90, 660, 140, 690), "post");
- button1.setText("POST");
- button1.setBackgroundColor(new GrayColor(0.7f));
- button1.setVisibility(PushbuttonField.VISIBLE_BUT_DOES_NOT_PRINT);
- PdfFormField submit1 = button1.getField();
- submit1.setAction(PdfAction.createSubmitForm(
- "/book/request", null,
- PdfAction.SUBMIT_HTML_FORMAT | PdfAction.SUBMIT_COORDINATES));
- // add the button
- stamper.addAnnotation(submit1, 1);
- // create a submit button that posts the form as FDF
- PushbuttonField button2 = new PushbuttonField(
- stamper.getWriter(), new Rectangle(200, 660, 250, 690), "FDF");
- button2.setBackgroundColor(new GrayColor(0.7f));
- button2.setText("FDF");
- button2.setVisibility(PushbuttonField.VISIBLE_BUT_DOES_NOT_PRINT);
- PdfFormField submit2 = button2.getField();
- submit2.setAction(PdfAction.createSubmitForm(
- "/book/request", null, PdfAction.SUBMIT_EXCL_F_KEY));
- // add the button
- stamper.addAnnotation(submit2, 1);
- // create a submit button that posts the form as XFDF
- PushbuttonField button3 = new PushbuttonField(
- stamper.getWriter(), new Rectangle(310, 660, 360, 690), "XFDF");
- button3.setBackgroundColor(new GrayColor(0.7f));
- button3.setText("XFDF");
- button3.setVisibility(PushbuttonField.VISIBLE_BUT_DOES_NOT_PRINT);
- PdfFormField submit3 = button3.getField();
- submit3.setAction(PdfAction.createSubmitForm(
- "/book/request", null, PdfAction.SUBMIT_XFDF));
- // add the button
- stamper.addAnnotation(submit3, 1);
- // create a reset button
- PushbuttonField button4 = new PushbuttonField(
- stamper.getWriter(), new Rectangle(420, 660, 470, 690), "reset");
- button4.setBackgroundColor(new GrayColor(0.7f));
- button4.setText("RESET");
- button4.setVisibility(PushbuttonField.VISIBLE_BUT_DOES_NOT_PRINT);
- PdfFormField reset = button4.getField();
- reset.setAction(PdfAction.createResetForm(null, 0));
- // add the button
- stamper.addAnnotation(reset, 1);
- // close the stamper
- stamper.close();
- reader.close();
- }
-
- /**
- * Main method.
- *
- * @param args no arguments needed
- * @throws DocumentException
- * @throws IOException
- */
- public static void main(String[] args)
- throws IOException, DocumentException {
- new Subscribe().createPdf(Subscribe.FORM);
- new SubmitForm().manipulatePdf(Subscribe.FORM, RESULT);
- }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/11/90983bca79a8001419a38fd8608ce0e6 b/.metadata/.plugins/org.eclipse.core.resources/.history/11/90983bca79a8001419a38fd8608ce0e6
deleted file mode 100644
index 052bbff..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/11/90983bca79a8001419a38fd8608ce0e6
+++ /dev/null
@@ -1,138 +0,0 @@
-package io.serializer.xml;
-
-import io.serializer.ParserNamespace;
-
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.Map;
-import java.util.Set;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
-import org.jdom2.Document;
-import org.jdom2.Element;
-import org.jdom2.JDOMException;
-
-import utils.StringUtils;
-import framework.Question;
-import framework.reply.ReplySurvey;
-
-public class XMLParserSurvey extends XMLParser{
-
- private static final Logger LOGGER = Logger.getLogger(XMLParserSurvey.class.getName());
-
- public String replyToString(ReplySurvey reply) throws IOException {
- Element elemRoot = new Element(ParserNamespace.CNAME_AWR_SURVEY);
- Document doc = new Document(elemRoot);
-
- // add questions
- Element elemQuestionList = new Element(ParserNamespace.CNAME_QUESTION_LIST);
- elemQuestionList.setText(concatQuestionList(reply.getQuestions()));
- elemRoot.addContent(elemQuestionList);
-
- // add locations
- Element elemLocationList = new Element(ParserNamespace.CNAME_LOCATION_LIST);
- elemLocationList.setText(concatLocationList(reply.getLocations()));
- elemRoot.addContent(elemLocationList);
-
-
- return documentToString(doc);
- }
-
-
- public ReplySurvey stringToReply(String replyString) {
- ReplySurvey reply = null;
-
- try {
- Document doc = stringToDocument(replyString);
- Element elemRoot = doc.getRootElement();
-
- Element elemQuestionList = elemRoot.getChild(ParserNamespace.CNAME_QUESTION_LIST);
- Element elemLocationList = elemRoot.getChild(ParserNamespace.CNAME_LOCATION_LIST);
-
-
- Map<Integer, Question> questions = parseConcatQuestionList(elemQuestionList.getText());
- ArrayList<String> locations = parseConcatLocationList(elemLocationList.getText());
-
-
- reply = new ReplySurvey(questions, locations);
- } catch (JDOMException e) {
- LOGGER.log(Level.SEVERE, null, e);
- }
-
- return reply;
- }
-
- private String concatLocationList(ArrayList<String> list) {
- if (list == null || list.isEmpty()) {
- return "";
- }
-
- return StringUtils.join(SEP_EXT, list);
- }
-
- private String concatQuestionList(Map<Integer, Question> map){
- if(map == null || map.isEmpty()){
- return "";
- }
- StringBuilder sb = new StringBuilder();
- Set<Integer> ids = map.keySet();
-
- boolean first = true;
- for (Integer id : ids) {
- if (first) {
- first = false;
- } else {
- sb.append(SEP_EXT);
- }
-
- sb.append(id).append(SEP_INT_QUESTIONS).append(map.get(id).getQuestion())
- .append(SEP_INT_QUESTIONS).append(map.get(id).getType());
-
- }
-
- return sb.toString();
-
- }
-
- private ArrayList<String> parseConcatLocationList(String val) {
- if (val.equals("")) {
- return new ArrayList<String>();
- }
- ArrayList<String> list = new ArrayList<String>();
-
- String[] strings = val.split(SEP_EXT, -1);
-
- for (int i = 0; i < strings.length; i++) {
- list.add(strings[i]);
- }
-
- return list;
- }
-
- private Map<Integer, Question> parseConcatQuestionList(String val){
- if (val.equals("")) {
- return new HashMap<Integer, Question>();
- }
-
- Map<Integer, Question> map = new HashMap<Integer, Question>();
-
- String[] strings = val.split(SEP_EXT,-1);
- System.out.println(strings.length);
- for(int i = 0; i<strings.length; i++){
- if (strings[i].equals("")) map.put(null, null);
- else{
- String[] values = strings[i].split(SEP_INT_QUESTIONS);
- int id = Integer.parseInt(values[0]);
- String question = values[1];
- int type = Integer.parseInt(values[2]);
-
- map.put(id, new Question(type, question));
- }
- }
- return map;
-
- }
-
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/12/7076d9b754ac001410e2e30aa85db9d1 b/.metadata/.plugins/org.eclipse.core.resources/.history/12/7076d9b754ac001410e2e30aa85db9d1
deleted file mode 100644
index ce0c16e..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/12/7076d9b754ac001410e2e30aa85db9d1
+++ /dev/null
@@ -1,925 +0,0 @@
-package ui;
-
-import io.ClientConnection;
-import io.CommAdapter;
-import io.Questionnaire;
-
-import java.awt.BorderLayout;
-import java.awt.Color;
-import java.awt.Component;
-import java.awt.Dimension;
-import java.awt.FlowLayout;
-import java.awt.Font;
-import java.awt.SystemColor;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.awt.event.WindowAdapter;
-import java.io.File;
-import java.io.IOException;
-import java.sql.SQLException;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.LinkedList;
-import java.util.Map;
-import java.util.Set;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
-import javax.swing.Box;
-import javax.swing.BoxLayout;
-import javax.swing.ButtonGroup;
-import javax.swing.DefaultComboBoxModel;
-import javax.swing.GroupLayout;
-import javax.swing.GroupLayout.Alignment;
-import javax.swing.ImageIcon;
-import javax.swing.JButton;
-import javax.swing.JComboBox;
-import javax.swing.JDialog;
-import javax.swing.JFileChooser;
-import javax.swing.JFrame;
-import javax.swing.JLabel;
-import javax.swing.JOptionPane;
-import javax.swing.JPanel;
-import javax.swing.JRadioButton;
-import javax.swing.JScrollPane;
-import javax.swing.JSeparator;
-import javax.swing.JTabbedPane;
-import javax.swing.JTextArea;
-import javax.swing.JTextPane;
-import javax.swing.JTree;
-import javax.swing.LayoutStyle.ComponentPlacement;
-import javax.swing.SwingConstants;
-import javax.swing.border.EmptyBorder;
-import javax.swing.border.LineBorder;
-import javax.swing.tree.DefaultMutableTreeNode;
-import javax.swing.tree.TreeModel;
-import javax.swing.tree.TreePath;
-
-import org.jpedal.examples.viewer.Commands;
-import org.jpedal.examples.viewer.Viewer;
-
-import utils.ClientProperties;
-
-import com.itextpdf.text.DocumentException;
-
-import database.DBconnectorClient;
-import framework.Diagnostic;
-import framework.MedUnit;
-import framework.Question;
-import framework.reply.ReplySurvey;
-import framework.test.TestName;
-
-/**
- *
- * @author youssef, raisaro
- */
-public class GUI extends javax.swing.JFrame {
-
- private static final Logger LOGGER = Logger.getLogger(GUI.class.getName());
-
- private static final long serialVersionUID = -4582280515597700650L;
-
- // configuration
- private ClientProperties props;
-
- private JTree jTree;
- private DBconnectorClient connectorClientDB;
- private LinkedList<Integer> patients;
-
- /** List of all relevant tests */
- private HashMap<String, TestName> testsByName;
- private Viewer viewer;
- private JDialog dialog;
- private JFrame frame;
- private boolean survey_submitted;
- private int close_trials;
- private Map<Integer, ButtonGroup> buttonGroupMap;
- private Questionnaire quest;
- private Map<Integer, Question> map;
- private Set<Integer> ids;
- private Map<String,String> answers;
- private Map<Integer, String> locations;
-
-
- /**
- * Creates new form GUI
- */
- public GUI(ClientProperties props){
-
- frame = this;
- this.props = props;
- this.connectorClientDB = new DBconnectorClient(props.getDbMsAccess());
- survey_submitted = false;
- close_trials = 0;
-
-
- try {
- initComponents();
-
- viewer = new Viewer(jScrollPane2, null);
- viewer.setupViewer();
-
- // create questionnare
-
-
- System.out.println("#of questions: " + ids.size());
-
-// viewer_q = new Viewer(jScrollPane4, null);
-// viewer_q.setupViewer();
-//
-// // specify file you wish to open (JPedal handles getting the byte data)
-// String filepathReport = "outputPDF/buttons_filled.pdf";
-//
-// // open generated PDF
-// // object must be either String in full filepath, or
-// // File object which can be relative
-// Object[] input = new Object[]{ new File(filepathReport) };
-// viewer_q.executeCommand(Commands.OPENFILE, input);
-
- JButton btnSubmitQuestionnaire = new JButton("Submit Questionnaire");
- btnSubmitQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- btnSubmitQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- submitButtonActionPerformed(arg0);
- }
- });
- JButton btnResetQuestionnaire = new JButton("Save as PDF");
- btnResetQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- savePDFButtonActionPerformed(arg0);
- }
- });
- btnResetQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- JPanel panel_button = new JPanel();
- panel_button.setLayout(new BoxLayout(panel_button, BoxLayout.X_AXIS));
-
- lblNewLabel_3 = new JLabel("");
- lblNewLabel_3.setIcon(new ImageIcon("res/location_icon.png"));
- panel_button.add(lblNewLabel_3);
-
-
-
- comboBox = new JComboBox<String>();
- comboBox.setFont(new Font("Tahoma", Font.BOLD, 12));
- comboBox.setModel(new DefaultComboBoxModel<String>(new String[] {"Select Location"}));
- for(Integer id_loc : locations.keySet()){
- comboBox.addItem(locations.get(id_loc));
- }
-
-
- panel_button.add(comboBox);
-
- rigidArea = Box.createRigidArea(new Dimension(10, 0));
- panel_button.add(rigidArea);
-
- lblNewLabel_1 = new JLabel("");
- lblNewLabel_1.setIcon(new ImageIcon("res/submit.png"));
- panel_button.add(lblNewLabel_1);
- panel_button.add(btnSubmitQuestionnaire);
-
- panel_button.add(Box.createRigidArea(new Dimension(10,0)));
-
- lblNewLabel_2 = new JLabel("");
- lblNewLabel_2.setIcon(new ImageIcon("res/pdf.png"));
- panel_button.add(lblNewLabel_2);
- panel_button.add(btnResetQuestionnaire);
- panel_button.setPreferredSize(new Dimension(211, 35));
- panel_button.validate();
-
- JPanel panel_3 = new JPanel();
- GroupLayout gl_panel = new GroupLayout(panel);
- gl_panel.setHorizontalGroup(
- gl_panel.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(63)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addGap(103)
- .addComponent(panel_button, GroupLayout.DEFAULT_SIZE, 498, Short.MAX_VALUE)
- .addGap(241))
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(41)
- .addGroup(gl_panel.createParallelGroup(Alignment.TRAILING)
- .addComponent(jScrollPane4, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE)
- .addComponent(panel_1, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE))
- .addGap(32))
- );
- gl_panel.setVerticalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(22)
- .addComponent(panel_1, GroupLayout.PREFERRED_SIZE, 235, GroupLayout.PREFERRED_SIZE)
- .addGap(37)
- .addComponent(jScrollPane4, GroupLayout.DEFAULT_SIZE, 379, Short.MAX_VALUE)
- .addGap(26)
- .addGroup(gl_panel.createParallelGroup(Alignment.LEADING)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(panel_button, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE)))
- );
- panel_3.setLayout(new BoxLayout(panel_3, BoxLayout.X_AXIS));
-
-
- panel.setLayout(gl_panel);
-
-
-
-
-
-
- /////////////////////////////////////////////////////////
- // display the tests available
-
- // get the tests
- HashMap<String, ArrayList<TestName>> testsRelevantByGroup = connectorClientDB.getRelevantTestsByGroup();
- ArrayList<String> groups = new ArrayList<String>(testsRelevantByGroup.keySet());
-
- // flatten hashmap into linkedlist
-// tests = new LinkedList<>();
- testsByName = new HashMap<String, TestName>();
- for (String group : groups) {
-// tests.addAll(testsRelevantByGroup.get(group));
- for (TestName test : testsRelevantByGroup.get(group)) {
- testsByName.put(test.getName(), test);
- }
- }
-
- // define tree structure of the tests
- DefaultMutableTreeNode root = new DefaultMutableTreeNode("All");
-
- for (String group : groups) {
- DefaultMutableTreeNode child = new DefaultMutableTreeNode(group);
- root.add(child);
-
- for (TestName test : testsRelevantByGroup.get(group)) {
- DefaultMutableTreeNode grandChild = new DefaultMutableTreeNode(test.getName());
- child.add(grandChild);
- }
- }
-
- // define swing object
- jTree = new JTree(root);
-
- for(int i=0;i<jTree.getRowCount();i++){
- jTree.expandRow(i);
- }
-
- jScrollPane3.setViewportView(jTree);
-// jTree.addTreeSelectionListener(new TreeSelectionListener() {
-//
-// @Override
-// public void valueChanged(TreeSelectionEvent e) {
-// tp = jTree.getSelectionPaths();
-// }
-// });
- jScrollPane3.setViewportView(jTree);
-
- /////////////////////////////////////////////////////////
- // display the patients registered
-
- patients = connectorClientDB.getPatients();
- for (Integer patientId : patients) {
- jComboBox1.addItem(patientId.toString());
- }
-
- } catch (SQLException ex) {
- Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex);
- ex.printStackTrace();
-// } catch (IOException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
-// } catch (DocumentException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
- }
-
- }
-
- /**
- * 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() {
-
- jPanel1 = new javax.swing.JPanel();
- jLabel2 = new javax.swing.JLabel();
- jLabel1 = new javax.swing.JLabel();
- jPanel2 = new javax.swing.JPanel();
- jComboBox1 = new javax.swing.JComboBox<String>();
- jButton1 = new javax.swing.JButton();
- jButton1.setFont(new Font("Tahoma", Font.BOLD, 12));
- jLabel3 = new javax.swing.JLabel();
- jLabel4 = new javax.swing.JLabel();
- jScrollPane3 = new javax.swing.JScrollPane();
- jScrollPane2 = new javax.swing.JScrollPane();
- jMenuBar1 = new javax.swing.JMenuBar();
- jMenu1 = new javax.swing.JMenu();
- jMenuItem1 = new javax.swing.JMenuItem();
- jMenu2 = new javax.swing.JMenu();
- dialog = new JDialog();
- tabbedPane = new JTabbedPane(JTabbedPane.TOP);
-
- setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
- addWindowListener(new WindowAdapter() {
- @Override
- public void windowClosing(java.awt.event.WindowEvent windowEvent) {
- if (!survey_submitted && close_trials <= 2){
- JOptionPane.showMessageDialog(frame, "Before closing the application, please fill in and submit the questionnaire.");
- close_trials++;
- tabbedPane.setSelectedIndex(1);
- }else{
- System.exit(0);
- }
- }
- });
- setTitle("HIV Pharmacogenomics\n");
-
- jLabel2.setIcon(new javax.swing.ImageIcon("res/shcs_logo2_small.gif")); // NOI18N
-
- jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
- jLabel1.setText("HIV Pharmacogenomics | Project #693");
-
- javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
- jPanel1.setLayout(jPanel1Layout);
- jPanel1Layout.setHorizontalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap(71, Short.MAX_VALUE)
- .addComponent(jLabel1)
- .addGap(18, 18, 18)
- .addComponent(jLabel2))
- );
- jPanel1Layout.setVerticalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jLabel1)
- .addGap(11, 11, 11))
- .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)
- );
-
- jPanel2.setBackground(new java.awt.Color(255, 255, 255));
- jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
-
- jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<String>(new String[]{"Select Patient"}));
-
- jButton1.setText("Run Test");
- jButton1.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton1ActionPerformed(evt);
- }
- });
-
- JLabel lblNewLabel = new JLabel("");
- lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
- lblNewLabel.setIcon(new javax.swing.ImageIcon("res/gears.png"));
-
-
-
- javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
- jPanel2Layout.setHorizontalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addComponent(jComboBox1, 0, 248, Short.MAX_VALUE)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addGap(75)
- .addGroup(jPanel2Layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jButton1)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 75, GroupLayout.PREFERRED_SIZE))
- .addContainerGap(98, Short.MAX_VALUE))
- );
- jPanel2Layout.setVerticalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addComponent(jComboBox1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED, 223, Short.MAX_VALUE)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jButton1)
- .addGap(19))
- );
- jPanel2.setLayout(jPanel2Layout);
-
- jLabel3.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel3.setText("Select Patient");
-
- jLabel4.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel4.setText("Select Test");
-
- jScrollPane3.setBackground(new java.awt.Color(255, 255, 255));
-
- jMenu1.setText("File");
-
- jMenuItem1.setText("Exit");
- jMenu1.add(jMenuItem1);
-
- jMenuBar1.add(jMenu1);
-
- jMenu2.setText("Edit");
- jMenuBar1.add(jMenu2);
-
- setJMenuBar(jMenuBar1);
-
-
-
- javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
- layout.setHorizontalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(layout.createParallelGroup(Alignment.LEADING, false)
- .addComponent(jLabel3)
- .addComponent(jLabel4)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, 244, Short.MAX_VALUE)
- .addComponent(jScrollPane3))
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 970, Short.MAX_VALUE))
- .addContainerGap())
- );
- layout.setVerticalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel4))
- .addPreferredGap(ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addComponent(jScrollPane3, GroupLayout.PREFERRED_SIZE, 388, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jLabel3)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 785, Short.MAX_VALUE))
- .addContainerGap())
- );
-
-
- jScrollPane2.setAutoscrolls(true);
- jScrollPane3.setAutoscrolls(true);
- tabbedPane.addTab("Report", new ImageIcon("res/report_icon.gif"), jScrollPane2, null);
- tabbedPane.setBackgroundAt(0, new Color(255, 255, 255));
-
- panel = new JPanel();
- tabbedPane.addTab("Survey", new ImageIcon("res/survey_icon.png"), panel, null);
- tabbedPane.setBackgroundAt(1, new Color(255, 255, 255));
- tabbedPane.setEnabledAt(1, true);
-
- panel_1 = new JPanel();
- panel_1.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
- panel_1.setBackground(SystemColor.control);
-
- JLabel label = new JLabel("");
- label.setIcon(new ImageIcon("res/shcs_logo2_medium.gif"));
-
- lblDearDoctor = new JLabel("Dear Doctor,");
- lblDearDoctor.setFont(new Font("Tahoma", Font.BOLD, 14));
-
- JScrollPane scrollPane = new JScrollPane();
- scrollPane.setBorder(null);
- GroupLayout gl_panel_1 = new GroupLayout(panel_1);
- gl_panel_1.setHorizontalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(Alignment.LEADING, gl_panel_1.createSequentialGroup()
- .addGap(25)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addComponent(lblDearDoctor)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 661, Short.MAX_VALUE))
- .addContainerGap())
- );
- gl_panel_1.setVerticalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addContainerGap()
- .addComponent(lblDearDoctor)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 203, Short.MAX_VALUE))
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(36)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 96, GroupLayout.PREFERRED_SIZE)))
- .addContainerGap())
- );
-
- JTextPane txtpnTodayYouAre = new JTextPane();
- txtpnTodayYouAre.setBorder(null);
- txtpnTodayYouAre.setText("Today you are receiving a pharmacogenetics report based on the genome of your patient. Because of its highly sensitive nature, " +
- "the genetic information you are provided with is processed in a privacy-preserving way. In particular, to protect patients’ genomic privacy, " +
- "their genetic and clinical data is stored encrypted at the SHCS data center, and securely analyzed through a sophisticated algorithm designed and developed at EPFL [1, 2]. " +
- "The actual clinical and genetic information is never revealed. Only the authorized users, such as you, can get some processed information, for example, the final result of a " +
- "pharmacogenetics risk test.\nThis mechanism protects the data against insiders or hackers trying to illegally access patients’ medical information, while still allowing authorized " +
- "users to obtain the information they need." +
- "\n\nTo help us understanding the importance of genomic privacy in the medical domain, and the impact of privacy-enhancing technologies in daily clinical practice, please complete the following survey.");
- txtpnTodayYouAre.setFont(new Font("Tahoma", Font.PLAIN, 13));
- txtpnTodayYouAre.setEditable(false);
- txtpnTodayYouAre.setBackground(SystemColor.control);
- scrollPane.setViewportView(txtpnTodayYouAre);
- panel_1.setLayout(gl_panel_1);
- jScrollPane4 = new javax.swing.JScrollPane();
- jScrollPane4.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
- getContentPane().setLayout(layout);
-
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
- ReplySurvey replySurvey = commHandlerAdapter.callServiceSurvey();
-
- map = replySurvey.getQuestions();
- ids = map.keySet();
- locations = replySurvey.getLocations();
-
- panel_2 = new JPanel();
- panel_2.setBackground(Color.WHITE);
- panel_2.setBorder(null);
- jScrollPane4.setViewportView(panel_2);
- panel_2.setLayout(new BoxLayout(panel_2, BoxLayout.Y_AXIS));
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
-
- int type = 0;
- for(Integer id : ids){
- ButtonGroup group = new ButtonGroup();
- JRadioButton r1 = new JRadioButton("1"); r1.setActionCommand("1"); r1.setBackground(Color.WHITE);
- JRadioButton r2 = new JRadioButton("2"); r2.setActionCommand("2"); r2.setBackground(Color.WHITE);
- JRadioButton r3 = new JRadioButton("3"); r3.setActionCommand("3"); r3.setBackground(Color.WHITE);
- JRadioButton r4 = new JRadioButton("4"); r4.setActionCommand("4"); r4.setBackground(Color.WHITE);
- JRadioButton r5 = new JRadioButton("5"); r5.setActionCommand("5"); r5.setBackground(Color.WHITE);
- group.add(r1);
- group.add(r2);
- group.add(r3);
- group.add(r4);
- group.add(r5);
- JPanel radio_panel = new JPanel();
- radio_panel.setLayout((new BoxLayout(radio_panel, BoxLayout.X_AXIS)));
- radio_panel.setBackground(Color.WHITE);
- radio_panel.setAlignmentX(Component.CENTER_ALIGNMENT);
- radio_panel.add(r1);
- radio_panel.add(r2);
- radio_panel.add(r3);
- radio_panel.add(r4);
- radio_panel.add(r5);
- radio_panel.doLayout();
- radio_panel.setPreferredSize(radio_panel.getPreferredSize());
- JTextArea question = new JTextArea(id + ") " + map.get(id).getQuestion());
-
- question.setLineWrap(true);
- question.setWrapStyleWord(true);
-
-
- JPanel row_panel = new JPanel();
- row_panel.setLayout(new BoxLayout(row_panel, BoxLayout.X_AXIS));
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.add(question);
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.add(radio_panel);
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.setBackground(Color.WHITE);
-
- int type_new = map.get(id).getType();
-
- if(type_new != type){
- type = type_new;
- JLabel question_group = new JLabel();
- switch(type){
- case 1:
- question_group.setText("Clinical Utility");
- case 2:
- question_group.setText("Privacy Concerns");
- case 3:
- question_group.setText("Usability Assessment");
- }
- question_group.setAlignmentX(Component.CENTER_ALIGNMENT);
- question_group.setFont(new Font("Tahoma", Font.BOLD, 13));
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- panel_2.add(question_group);
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
-// panel_2.add(radio_panel);
- panel_2.add(new JSeparator());
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- }
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- panel_2.add(row_panel);
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
-// panel_2.add(radio_panel);
- panel_2.add(new JSeparator());
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
-// panel_2.setPreferredSize(panel_2.getPreferredSize());
- buttonGroupMap.put(id, group);
-
- }
-
-
-
- this.setSize(new Dimension(1300, 865));
-// pack();
- }// </editor-fold>//GEN-END:initComponents
-
-
- private void submitButtonActionPerformed(java.awt.event.ActionEvent evt){
-
- try{
- answers = new HashMap<String, String>();
- StringBuilder sb = new StringBuilder();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- sb.append(q).append(",");
- sb.append(bg.getSelection().getActionCommand()).append(";");
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- String answer = sb.toString();
- Integer id_loc = null;
- for(Integer i: locations.keySet()){
- if(locations.get(i).equals(comboBox.getSelectedItem().toString()))
- id_loc = i;
- }
-
- String id_p;
- if(jComboBox1.getSelectedItem().toString().equals("Select Patient"))
- id_p = "0";
- else
- id_p = jComboBox1.getSelectedItem().toString();
-
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
-
- String reply = commHandlerAdapter.callServiceSurveyAnswer(answer, id_loc.toString(), id_p);
-
- if(reply.equals("1")){
- survey_submitted = true;
-
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Congrats! Your aswers have been sent to the SHCS datacenter.",
- "Information Message",
- JOptionPane.INFORMATION_MESSAGE);
- }
- else{
- throw new IOException();
- }
-
-
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "The SHCS datacenter does not respond. Please save the survey and send it to jean.raisaro@epfl.ch.",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
- private void savePDFButtonActionPerformed(java.awt.event.ActionEvent evt){
- try {
-
- answers = new HashMap<String, String>();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- JFileChooser chooser = new JFileChooser();
- // Note: source for ExampleFileFilter can be found in FileChooserDemo,
- // under the demo/jfc directory in the JDK.
-
- int returnVal = chooser.showSaveDialog(this);
- System.out.println(returnVal);
- if(returnVal == JFileChooser.APPROVE_OPTION) {
- System.out.println("You chose to open this file: " +
- chooser.getSelectedFile().getPath());
- quest = new Questionnaire(chooser.getSelectedFile().getPath() + ".pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }else{
- quest = new Questionnaire("outputPDF/survey.pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }
-
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (DocumentException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (NullPointerException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
-
- private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
-
- JPanel contentPanel = new JPanel();
-
- dialog.setBounds(100, 100, 410, 80);
- dialog.getContentPane().setLayout(new BorderLayout());
- contentPanel.setLayout(new FlowLayout());
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- dialog.getContentPane().add(contentPanel, BorderLayout.CENTER);
- {
- JLabel label = new JLabel("Please wait...The overall computation can take few seconds");
- label.setHorizontalAlignment(SwingConstants.CENTER);
- label.setFont(new Font("Tahoma", Font.PLAIN, 12));
- contentPanel.add(label);
- }
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
- dialog.getContentPane().add(buttonPane, BorderLayout.SOUTH);
- }
- dialog.setLocationRelativeTo(this);
- dialog.setVisible(true);
-
- GUIWorker gw = new GUIWorker(this, props);
- Thread t = new Thread(gw);
- t.start();
-
- }
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JButton jButton1;
- private javax.swing.JComboBox<String> jComboBox1;
- private javax.swing.JLabel jLabel1;
- private javax.swing.JLabel jLabel2;
- private javax.swing.JLabel jLabel3;
- private javax.swing.JLabel jLabel4;
- private javax.swing.JMenu jMenu1;
- private javax.swing.JMenu jMenu2;
- private javax.swing.JMenuBar jMenuBar1;
- private javax.swing.JMenuItem jMenuItem1;
- private javax.swing.JPanel jPanel1;
- private javax.swing.JPanel jPanel2;
- private javax.swing.JScrollPane jScrollPane3;
- private javax.swing.JTabbedPane tabbedPane;
- private javax.swing.JScrollPane jScrollPane2;
- private javax.swing.JScrollPane jScrollPane4;
- private JPanel panel;
- private JPanel panel_1;
- private JPanel panel_2;
- private JLabel lblDearDoctor;
- private JLabel lblNewLabel_1;
- private JLabel lblNewLabel_2;
- private JLabel lblNewLabel_3;
- private JComboBox<String> comboBox;
- private Component rigidArea;
-
- // End of variables declaration//GEN-END:variables
-
-
- class GUIWorker implements Runnable{
-
- private JFrame mainFrame;
- private ClientProperties props;
- private MedUnit mu;
-
- public GUIWorker(GUI gui, ClientProperties props) {
- mainFrame = gui;
-
- this.props = props;
- this.mu = new MedUnit(props, 0);
- }
-
- @Override
- public void run() {
-
- try{
- int patientId = Integer.parseInt((String) jComboBox1.getSelectedItem());
-
- // convert selected tests to test identifiers
- ArrayList<TestName> selectedTests = new ArrayList<TestName>();
- for (String currentName : getSelectedTests()) {
- TestName currentTest = testsByName.get(currentName);
-
- if (currentTest == null) {
- throw new IllegalStateException("Trying to run unknown test: " + currentTest);
- }
-
- selectedTests.add(currentTest);
- }
-
- // run tests
- Diagnostic diagnostic = mu.runTests(patientId, selectedTests);
-
- // warn for tests with missing material
- warnFailedTests(diagnostic, selectedTests);
-
- // create report
- mu.createReport(patientId, selectedTests, diagnostic);
-
- dialog.setVisible(false);
-
- // specify file you wish to open (JPedal handles getting the byte data)
- String filepathReport = props.getPathPDF() + patientId + ".pdf";
-
- // open generated PDF
- // object must be either String in full filepath, or
- // File object which can be relative
- Object[] input = new Object[]{ new File(filepathReport) };
- viewer.executeCommand(Commands.OPENFILE, input);
-
- // display CAD result as bar plot
- if (diagnostic.hasCAD()) {
- System.out.println("CAD = " + diagnostic.getResultCAD());
- BarPlotFrame frame = new BarPlotFrame(diagnostic.getResultCAD(), patientId);
- frame.setVisible(true);
- frame.setAlwaysOnTop(true);
- }
-
-
- } catch (SQLException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Please select a patient.");
- }
-
- }
-
- private void warnFailedTests(Diagnostic diagnostic, ArrayList<TestName> selectedTests) {
- ArrayList<Integer> failedTests = diagnostic.getInvalidTests();
-
- if (!failedTests.isEmpty()) {
- String msg = "Could not complete tests: ";
- boolean first = true;
- for (TestName testName : selectedTests) {
- if (failedTests.contains(testName.getId())) {
- if (first) {
- first = false;
- } else {
- msg += ", ";
- }
- msg += testName.getName();
- }
- }
- displayError(msg);
- }
-
- }
-
- private void displayError(String msg) {
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- mainFrame,
- msg,
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
-
- private ArrayList<String> getSelectedTests() {
- ArrayList<String> tests = new ArrayList<String>();
-
- for (TreePath treePath : jTree.getSelectionPaths()) {
- tests.addAll(getChildrenTests(jTree.getModel(), treePath.getLastPathComponent()));
- }
-
- return tests;
- }
-
- private ArrayList<String> getChildrenTests(TreeModel model, Object node) {
- ArrayList<String> tests = new ArrayList<String>();
-
- if (model.isLeaf(node)) { // leaf
- DefaultMutableTreeNode leaf = (DefaultMutableTreeNode) node;
- tests.add(leaf.toString());
- }
- else { // iterate over children
- for (int i = 0; i < model.getChildCount(node); i++) {
- tests.addAll(getChildrenTests(model, model.getChild(node, i)));
- }
- }
-
- return tests;
- }
-
- }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/3c/903e1a136cac00141cc3aa66275e9c24 b/.metadata/.plugins/org.eclipse.core.resources/.history/13/804578e952b80014199a8682e9990d0e
similarity index 75%
rename from .metadata/.plugins/org.eclipse.core.resources/.history/3c/903e1a136cac00141cc3aa66275e9c24
rename to .metadata/.plugins/org.eclipse.core.resources/.history/13/804578e952b80014199a8682e9990d0e
index b27b059..9b3d33c 100644
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/3c/903e1a136cac00141cc3aa66275e9c24
+++ b/.metadata/.plugins/org.eclipse.core.resources/.history/13/804578e952b80014199a8682e9990d0e
@@ -1,922 +1,938 @@
package ui;
import io.ClientConnection;
import io.CommAdapter;
import io.Questionnaire;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Font;
import java.awt.SystemColor;
+import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowAdapter;
import java.io.File;
import java.io.IOException;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.Map;
import java.util.Set;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.Box;
import javax.swing.BoxLayout;
import javax.swing.ButtonGroup;
import javax.swing.DefaultComboBoxModel;
import javax.swing.GroupLayout;
import javax.swing.GroupLayout.Alignment;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JDialog;
import javax.swing.JFileChooser;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JRadioButton;
import javax.swing.JScrollPane;
import javax.swing.JSeparator;
import javax.swing.JTabbedPane;
import javax.swing.JTextArea;
import javax.swing.JTextPane;
import javax.swing.JTree;
import javax.swing.LayoutStyle.ComponentPlacement;
import javax.swing.SwingConstants;
import javax.swing.border.EmptyBorder;
import javax.swing.border.LineBorder;
import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.tree.TreeModel;
import javax.swing.tree.TreePath;
import org.jpedal.examples.viewer.Commands;
import org.jpedal.examples.viewer.Viewer;
import utils.ClientProperties;
import com.itextpdf.text.DocumentException;
import database.DBconnectorClient;
import framework.Diagnostic;
import framework.MedUnit;
import framework.Question;
import framework.reply.ReplySurvey;
import framework.test.TestName;
+import javax.swing.JSplitPane;
+import java.awt.event.MouseAdapter;
+import java.awt.event.MouseEvent;
/**
*
- * @author youssef, raisaro
+ * @author raisaro
*/
public class GUI extends javax.swing.JFrame {
private static final Logger LOGGER = Logger.getLogger(GUI.class.getName());
private static final long serialVersionUID = -4582280515597700650L;
// configuration
private ClientProperties props;
private JTree jTree;
private DBconnectorClient connectorClientDB;
private LinkedList<Integer> patients;
/** List of all relevant tests */
private HashMap<String, TestName> testsByName;
private Viewer viewer;
private JDialog dialog;
private JFrame frame;
private boolean survey_submitted;
private int close_trials;
private Map<Integer, ButtonGroup> buttonGroupMap;
private Questionnaire quest;
private Map<Integer, Question> map;
private Set<Integer> ids;
private Map<String,String> answers;
private Map<Integer, String> locations;
+ private JButton btnSubmitQuestionnaire;
/**
* Creates new form GUI
*/
public GUI(ClientProperties props){
+ setLocationByPlatform(true);
+ setIconImage(Toolkit.getDefaultToolkit().getImage("res/shcs_logo2_icon.png"));
frame = this;
this.props = props;
this.connectorClientDB = new DBconnectorClient(props.getDbMsAccess());
survey_submitted = false;
close_trials = 0;
try {
initComponents();
viewer = new Viewer(jScrollPane2, null);
viewer.setupViewer();
- // create questionnare
-
+ // create questionnare
+
System.out.println("#of questions: " + ids.size());
-// viewer_q = new Viewer(jScrollPane4, null);
-// viewer_q.setupViewer();
-//
-// // specify file you wish to open (JPedal handles getting the byte data)
-// String filepathReport = "outputPDF/buttons_filled.pdf";
-//
-// // open generated PDF
-// // object must be either String in full filepath, or
-// // File object which can be relative
-// Object[] input = new Object[]{ new File(filepathReport) };
-// viewer_q.executeCommand(Commands.OPENFILE, input);
-
- JButton btnSubmitQuestionnaire = new JButton("Submit Questionnaire");
+
+ btnSubmitQuestionnaire = new JButton("Submit Questionnaire");
btnSubmitQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
btnSubmitQuestionnaire.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
submitButtonActionPerformed(arg0);
}
});
JButton btnResetQuestionnaire = new JButton("Save as PDF");
btnResetQuestionnaire.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
savePDFButtonActionPerformed(arg0);
}
});
btnResetQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
JPanel panel_button = new JPanel();
panel_button.setLayout(new BoxLayout(panel_button, BoxLayout.X_AXIS));
lblNewLabel_3 = new JLabel("");
lblNewLabel_3.setIcon(new ImageIcon("res/location_icon.png"));
panel_button.add(lblNewLabel_3);
comboBox = new JComboBox<String>();
comboBox.setFont(new Font("Tahoma", Font.BOLD, 12));
comboBox.setModel(new DefaultComboBoxModel<String>(new String[] {"Select Location"}));
for(Integer id_loc : locations.keySet()){
comboBox.addItem(locations.get(id_loc));
}
panel_button.add(comboBox);
rigidArea = Box.createRigidArea(new Dimension(10, 0));
panel_button.add(rigidArea);
lblNewLabel_1 = new JLabel("");
lblNewLabel_1.setIcon(new ImageIcon("res/submit.png"));
panel_button.add(lblNewLabel_1);
panel_button.add(btnSubmitQuestionnaire);
panel_button.add(Box.createRigidArea(new Dimension(10,0)));
lblNewLabel_2 = new JLabel("");
lblNewLabel_2.setIcon(new ImageIcon("res/pdf.png"));
panel_button.add(lblNewLabel_2);
panel_button.add(btnResetQuestionnaire);
panel_button.setPreferredSize(new Dimension(211, 35));
panel_button.validate();
- JPanel panel_3 = new JPanel();
+ splitPane = new JSplitPane();
+ splitPane.setOneTouchExpandable(true);
+ splitPane.setResizeWeight(0.52);
+ splitPane.setOrientation(JSplitPane.VERTICAL_SPLIT);
+
GroupLayout gl_panel = new GroupLayout(panel);
gl_panel.setHorizontalGroup(
- gl_panel.createParallelGroup(Alignment.TRAILING)
+ gl_panel.createParallelGroup(Alignment.LEADING)
.addGroup(gl_panel.createSequentialGroup()
- .addGap(63)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addGap(103)
- .addComponent(panel_button, GroupLayout.DEFAULT_SIZE, 498, Short.MAX_VALUE)
- .addGap(241))
+ .addGap(165)
+ .addComponent(panel_button, GroupLayout.DEFAULT_SIZE, 421, Short.MAX_VALUE)
+ .addGap(242))
.addGroup(gl_panel.createSequentialGroup()
- .addGap(41)
- .addGroup(gl_panel.createParallelGroup(Alignment.TRAILING)
- .addComponent(jScrollPane4, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE)
- .addComponent(panel_1, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE))
- .addGap(32))
+ .addContainerGap()
+ .addComponent(splitPane, GroupLayout.DEFAULT_SIZE, 738, Short.MAX_VALUE)
+ .addGap(80))
);
gl_panel.setVerticalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
+ gl_panel.createParallelGroup(Alignment.TRAILING)
.addGroup(gl_panel.createSequentialGroup()
- .addGap(22)
- .addComponent(panel_1, GroupLayout.PREFERRED_SIZE, 235, GroupLayout.PREFERRED_SIZE)
- .addGap(37)
- .addComponent(jScrollPane4, GroupLayout.DEFAULT_SIZE, 379, Short.MAX_VALUE)
- .addGap(26)
- .addGroup(gl_panel.createParallelGroup(Alignment.LEADING)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(panel_button, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE)))
+ .addContainerGap()
+ .addComponent(splitPane, GroupLayout.DEFAULT_SIZE, 603, Short.MAX_VALUE)
+ .addPreferredGap(ComponentPlacement.RELATED)
+ .addComponent(panel_button, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE)
+ .addGap(11))
+ );
+
+ panel_1 = new JPanel();
+ panel_1.setMinimumSize(new Dimension(10, 0));
+ panel_1.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
+ panel_1.setBackground(SystemColor.menu);
+ splitPane.setLeftComponent(panel_1);
+
+ label_1 = new JLabel("");
+ label_1.setIcon(new ImageIcon("res/shcs_logo2_medium.gif"));
+
+ label_2 = new JLabel("");
+ label_2.setIcon(new ImageIcon("res/EPFL_logo.png"));
+
+ label_3 = new JLabel("");
+ label_3.setIcon(new ImageIcon("res/chuv_logo.png"));
+
+ label_4 = new JLabel("Dear Doctor,");
+ label_4.setFont(new Font("Tahoma", Font.BOLD, 14));
+
+ scrollPane = new JScrollPane();
+ scrollPane.setBorder(null);
+ GroupLayout gl_panel_1 = new GroupLayout(panel_1);
+ gl_panel_1.setHorizontalGroup(
+ gl_panel_1.createParallelGroup(Alignment.LEADING)
+ .addGroup(gl_panel_1.createSequentialGroup()
+ .addGap(25)
+ .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
+ .addComponent(label_3)
+ .addComponent(label_2)
+ .addComponent(label_1, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE))
+ .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
+ .addGroup(gl_panel_1.createSequentialGroup()
+ .addGap(20)
+ .addComponent(label_4)
+ .addGap(109))
+ .addGroup(gl_panel_1.createSequentialGroup()
+ .addGap(10)
+ .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 557, Short.MAX_VALUE)
+ .addContainerGap())))
+ );
+ gl_panel_1.setVerticalGroup(
+ gl_panel_1.createParallelGroup(Alignment.LEADING)
+ .addGroup(gl_panel_1.createSequentialGroup()
+ .addContainerGap()
+ .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
+ .addGroup(gl_panel_1.createSequentialGroup()
+ .addComponent(label_4)
+ .addPreferredGap(ComponentPlacement.UNRELATED)
+ .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 416, Short.MAX_VALUE))
+ .addGroup(gl_panel_1.createSequentialGroup()
+ .addGap(9)
+ .addComponent(label_1, GroupLayout.PREFERRED_SIZE, 96, GroupLayout.PREFERRED_SIZE)
+ .addGap(18)
+ .addComponent(label_2)
+ .addGap(28)
+ .addComponent(label_3)))
+ .addContainerGap(114, GroupLayout.PREFERRED_SIZE))
);
- panel_3.setLayout(new BoxLayout(panel_3, BoxLayout.X_AXIS));
+
+ introduction = new JTextPane();
+ introduction.setBackground(SystemColor.control);
+ introduction.setContentType("text/html");
+ introduction.setText("You are receiving a pharmacogenetics report based on the genome of your patient. Because of its highly sensitive nature, the genetic information you are provided with is processed in a privacy-preserving way. In particular, to protect patients\u2019 genomic privacy, their genetic and clinical data are stored encrypted at the SHCS data center, and securely analyzed through a sophisticated algorithm designed and developed at EPFL [1, 2]. The actual clinical and genetic information is never revealed. Only the authorized users, such as you, can get some processed information, for example, the interpreted final result of a pharmacogenetics risk test.\r\nThis mechanism protects the data against insiders or hackers trying to illegally access patients\u2019 medical information, while still allowing authorized users to obtain the information they need.\r\n<br><br>\r\n<b>To help us better understanding the importance of genomic privacy in the medical domain, and the impact of privacy-enhancing technologies in daily clinical practice, please complete the following survey. Answers are on a scale from 1 (Strongly Disagree) to 5 (Strongly Agree).</b>\r\n<font size=\"2\">\r\n<br><br>\r\nNote: this work is part of Project #693, funded by the Swiss HIV Cohort. PIs: Prof. A. Telenti, formerly at CHUV, and Prof. J.-P. Hubaux, at EPFL.\r\n<br><br>\r\n[1] J. L. Raisaro, E. Ayday, P. J. McLaren, J.-P. Hubaux, and A. Telenti. Privacy-Preserving HIV Pharmacogenetics: A Real Use Case of Genomic Data Protection. GenoPri 2014<br>\r\n[2] E. Ayday, J. L. Raisaro, J. Rougemont, and J.-P. Hubaux. Protecting and Evaluating Genomic Privacy in Medical Tests and Personalized Medicine. WPES 2013\r\n</font>");
+ scrollPane.setViewportView(introduction);
+ panel_1.setLayout(gl_panel_1);
+
+ jScrollPane4 = new JScrollPane();
+ jScrollPane4.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
+ splitPane.setRightComponent(jScrollPane4);
+
+
+ jScrollPane4.setViewportView(panel_2);
+ javax.swing.SwingUtilities.invokeLater(new Runnable() {
+ public void run() {
+ jScrollPane4.getVerticalScrollBar().setValue(0);
+ }
+ });
+ introduction.setCaretPosition(0);
panel.setLayout(gl_panel);
/////////////////////////////////////////////////////////
// display the tests available
// get the tests
HashMap<String, ArrayList<TestName>> testsRelevantByGroup = connectorClientDB.getRelevantTestsByGroup();
ArrayList<String> groups = new ArrayList<String>(testsRelevantByGroup.keySet());
// flatten hashmap into linkedlist
// tests = new LinkedList<>();
testsByName = new HashMap<String, TestName>();
for (String group : groups) {
// tests.addAll(testsRelevantByGroup.get(group));
for (TestName test : testsRelevantByGroup.get(group)) {
testsByName.put(test.getName(), test);
}
}
// define tree structure of the tests
DefaultMutableTreeNode root = new DefaultMutableTreeNode("All");
for (String group : groups) {
DefaultMutableTreeNode child = new DefaultMutableTreeNode(group);
root.add(child);
for (TestName test : testsRelevantByGroup.get(group)) {
DefaultMutableTreeNode grandChild = new DefaultMutableTreeNode(test.getName());
child.add(grandChild);
}
}
// define swing object
jTree = new JTree(root);
+ jTree.setFont(new Font("Tahoma", Font.PLAIN, 11));
for(int i=0;i<jTree.getRowCount();i++){
jTree.expandRow(i);
}
jScrollPane3.setViewportView(jTree);
// jTree.addTreeSelectionListener(new TreeSelectionListener() {
//
// @Override
// public void valueChanged(TreeSelectionEvent e) {
// tp = jTree.getSelectionPaths();
// }
// });
jScrollPane3.setViewportView(jTree);
/////////////////////////////////////////////////////////
// display the patients registered
patients = connectorClientDB.getPatients();
for (Integer patientId : patients) {
jComboBox1.addItem(patientId.toString());
}
} catch (SQLException ex) {
Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex);
ex.printStackTrace();
// } catch (IOException e) {
// // TODO Auto-generated catch block
// e.printStackTrace();
// } catch (DocumentException e) {
// // TODO Auto-generated catch block
// e.printStackTrace();
}
}
/**
* 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() {
-
- jPanel1 = new javax.swing.JPanel();
- jLabel2 = new javax.swing.JLabel();
- jLabel1 = new javax.swing.JLabel();
jPanel2 = new javax.swing.JPanel();
jComboBox1 = new javax.swing.JComboBox<String>();
+ jComboBox1.setFont(new Font("Tahoma", Font.BOLD, 12));
jButton1 = new javax.swing.JButton();
jButton1.setFont(new Font("Tahoma", Font.BOLD, 12));
jLabel3 = new javax.swing.JLabel();
jLabel4 = new javax.swing.JLabel();
jScrollPane3 = new javax.swing.JScrollPane();
jScrollPane2 = new javax.swing.JScrollPane();
+ jScrollPane2.setMinimumSize(new Dimension(5, 5));
jMenuBar1 = new javax.swing.JMenuBar();
jMenu1 = new javax.swing.JMenu();
jMenuItem1 = new javax.swing.JMenuItem();
jMenu2 = new javax.swing.JMenu();
dialog = new JDialog();
tabbedPane = new JTabbedPane(JTabbedPane.TOP);
+ tabbedPane.setFont(new Font("Tahoma", Font.BOLD, 12));
setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
addWindowListener(new WindowAdapter() {
@Override
public void windowClosing(java.awt.event.WindowEvent windowEvent) {
if (!survey_submitted && close_trials <= 2){
JOptionPane.showMessageDialog(frame, "Before closing the application, please fill in and submit the questionnaire.");
close_trials++;
tabbedPane.setSelectedIndex(1);
}else{
System.exit(0);
}
}
});
- setTitle("HIV Pharmacogenomics\n");
-
- jLabel2.setIcon(new javax.swing.ImageIcon("res/shcs_logo2_small.gif")); // NOI18N
-
- jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
- jLabel1.setText("HIV Pharmacogenomics | Project #693");
-
- javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
- jPanel1.setLayout(jPanel1Layout);
- jPanel1Layout.setHorizontalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap(71, Short.MAX_VALUE)
- .addComponent(jLabel1)
- .addGap(18, 18, 18)
- .addComponent(jLabel2))
- );
- jPanel1Layout.setVerticalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jLabel1)
- .addGap(11, 11, 11))
- .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)
- );
+ setTitle("Privacy-Preserving HIV Pharmacogenomics\r\n");
jPanel2.setBackground(new java.awt.Color(255, 255, 255));
jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<String>(new String[]{"Select Patient"}));
jButton1.setText("Run Test");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});
JLabel lblNewLabel = new JLabel("");
lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
lblNewLabel.setIcon(new javax.swing.ImageIcon("res/gears.png"));
javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
jPanel2Layout.setHorizontalGroup(
jPanel2Layout.createParallelGroup(Alignment.LEADING)
.addComponent(jComboBox1, 0, 248, Short.MAX_VALUE)
.addGroup(jPanel2Layout.createSequentialGroup()
.addGap(75)
.addGroup(jPanel2Layout.createParallelGroup(Alignment.TRAILING)
.addComponent(jButton1)
.addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 75, GroupLayout.PREFERRED_SIZE))
.addContainerGap(98, Short.MAX_VALUE))
);
jPanel2Layout.setVerticalGroup(
jPanel2Layout.createParallelGroup(Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addComponent(jComboBox1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
.addPreferredGap(ComponentPlacement.RELATED, 223, Short.MAX_VALUE)
.addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE)
.addPreferredGap(ComponentPlacement.RELATED)
.addComponent(jButton1)
.addGap(19))
);
jPanel2.setLayout(jPanel2Layout);
jLabel3.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
jLabel3.setText("Select Patient");
jLabel4.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
jLabel4.setText("Select Test");
jScrollPane3.setBackground(new java.awt.Color(255, 255, 255));
jMenu1.setText("File");
jMenuItem1.setText("Exit");
jMenu1.add(jMenuItem1);
jMenuBar1.add(jMenu1);
jMenu2.setText("Edit");
jMenuBar1.add(jMenu2);
setJMenuBar(jMenuBar1);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
layout.setHorizontalGroup(
layout.createParallelGroup(Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addGroup(layout.createParallelGroup(Alignment.LEADING, false)
- .addComponent(jLabel3)
.addComponent(jLabel4)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, 244, Short.MAX_VALUE)
- .addComponent(jScrollPane3))
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 970, Short.MAX_VALUE))
- .addContainerGap())
+ .addComponent(jLabel3)
+ .addComponent(jScrollPane3, GroupLayout.DEFAULT_SIZE, 234, Short.MAX_VALUE)
+ .addComponent(jPanel2, 0, 0, Short.MAX_VALUE))
+ .addPreferredGap(ComponentPlacement.RELATED)
+ .addComponent(tabbedPane, GroupLayout.PREFERRED_SIZE, 751, Short.MAX_VALUE)
+ .addGap(19))
);
layout.setVerticalGroup(
- layout.createParallelGroup(Alignment.LEADING)
+ layout.createParallelGroup(Alignment.TRAILING)
.addGroup(layout.createSequentialGroup()
+ .addContainerGap()
.addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel4))
- .addPreferredGap(ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(Alignment.LEADING)
+ .addComponent(tabbedPane, Alignment.LEADING, GroupLayout.PREFERRED_SIZE, 687, Short.MAX_VALUE)
.addGroup(layout.createSequentialGroup()
- .addComponent(jScrollPane3, GroupLayout.PREFERRED_SIZE, 388, GroupLayout.PREFERRED_SIZE)
+ .addComponent(jLabel4)
+ .addPreferredGap(ComponentPlacement.RELATED)
+ .addComponent(jScrollPane3, GroupLayout.PREFERRED_SIZE, 356, GroupLayout.PREFERRED_SIZE)
.addPreferredGap(ComponentPlacement.RELATED)
.addComponent(jLabel3)
.addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 785, Short.MAX_VALUE))
+ .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, 283, Short.MAX_VALUE)))
.addContainerGap())
);
jScrollPane2.setAutoscrolls(true);
jScrollPane3.setAutoscrolls(true);
tabbedPane.addTab("Report", new ImageIcon("res/report_icon.gif"), jScrollPane2, null);
tabbedPane.setBackgroundAt(0, new Color(255, 255, 255));
panel = new JPanel();
+ panel.setPreferredSize(new Dimension(0, 0));
tabbedPane.addTab("Survey", new ImageIcon("res/survey_icon.png"), panel, null);
tabbedPane.setBackgroundAt(1, new Color(255, 255, 255));
tabbedPane.setEnabledAt(1, true);
-
- panel_1 = new JPanel();
- panel_1.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
- panel_1.setBackground(SystemColor.control);
-
- JLabel label = new JLabel("");
- label.setIcon(new ImageIcon("res/shcs_logo2_medium.gif"));
-
- lblDearDoctor = new JLabel("Dear Doctor,");
- lblDearDoctor.setFont(new Font("Tahoma", Font.BOLD, 14));
-
- JScrollPane scrollPane = new JScrollPane();
- scrollPane.setBorder(null);
- GroupLayout gl_panel_1 = new GroupLayout(panel_1);
- gl_panel_1.setHorizontalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(Alignment.LEADING, gl_panel_1.createSequentialGroup()
- .addGap(25)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addComponent(lblDearDoctor)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 661, Short.MAX_VALUE))
- .addContainerGap())
- );
- gl_panel_1.setVerticalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addContainerGap()
- .addComponent(lblDearDoctor)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 203, Short.MAX_VALUE))
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(36)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 96, GroupLayout.PREFERRED_SIZE)))
- .addContainerGap())
- );
-
- JTextPane txtpnTodayYouAre = new JTextPane();
- txtpnTodayYouAre.setContentType("text/html");
- txtpnTodayYouAre.setBorder(null);
- txtpnTodayYouAre.setText("<font face=\"Tahoma\" size=\"4\" >Today you are receiving a pharmacogenetics report based on the genome of your patient. Because of its highly sensitive nature, the genetic information you are provided with is processed in a privacy-preserving way. In particular, to protect patients\u2019 genomic privacy, their genetic and clinical data is stored encrypted at the SHCS data center, and securely analyzed through a sophisticated algorithm designed and developed at <a href=\"http://www.epfl.ch/index.en.html\">EPFL</a>. <br>The actual clinical and genetic information is never revealed. Only the authorized users, such as you, can get some processed information, for example, the final result of a pharmacogenetics risk test.\r\nThis mechanism protects the data against insiders or hackers trying to illegally access patients\u2019 medical information, while still allowing authorized users to obtain the information they need.\r\n<br><br>\r\nTo help us understanding the importance of genomic privacy in the medical domain, and the impact of privacy-enhancing technologies in daily clinical practice, please complete the following survey.</font>");
- txtpnTodayYouAre.setFont(new Font("Tahoma", Font.PLAIN, 13));
- txtpnTodayYouAre.setEditable(false);
- txtpnTodayYouAre.setBackground(SystemColor.control);
- scrollPane.setViewportView(txtpnTodayYouAre);
- panel_1.setLayout(gl_panel_1);
- jScrollPane4 = new javax.swing.JScrollPane();
- jScrollPane4.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
getContentPane().setLayout(layout);
buttonGroupMap = new HashMap<Integer, ButtonGroup>();
ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
CommAdapter commHandlerAdapter = new CommAdapter(connection);
ReplySurvey replySurvey = commHandlerAdapter.callServiceSurvey();
map = replySurvey.getQuestions();
ids = map.keySet();
locations = replySurvey.getLocations();
+ buttonGroupMap = new HashMap<Integer, ButtonGroup>();
+
panel_2 = new JPanel();
- panel_2.setBackground(Color.WHITE);
+ panel_2.addMouseListener(new MouseAdapter() {
+ @Override
+ public void mouseClicked(MouseEvent arg0) {
+ splitPane.setDividerLocation(0.0);
+ }
+ });
panel_2.setBorder(null);
- jScrollPane4.setViewportView(panel_2);
+ panel_2.setBackground(Color.WHITE);
panel_2.setLayout(new BoxLayout(panel_2, BoxLayout.Y_AXIS));
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
-
+ //dynamic question generation
int type = 0;
for(Integer id : ids){
ButtonGroup group = new ButtonGroup();
- JRadioButton r1 = new JRadioButton("1"); r1.setActionCommand("1"); r1.setBackground(Color.WHITE);
- JRadioButton r2 = new JRadioButton("2"); r2.setActionCommand("2"); r2.setBackground(Color.WHITE);
- JRadioButton r3 = new JRadioButton("3"); r3.setActionCommand("3"); r3.setBackground(Color.WHITE);
- JRadioButton r4 = new JRadioButton("4"); r4.setActionCommand("4"); r4.setBackground(Color.WHITE);
- JRadioButton r5 = new JRadioButton("5"); r5.setActionCommand("5"); r5.setBackground(Color.WHITE);
+ JRadioButton r1 = new JRadioButton("1"); r1.setActionCommand("1"); r1.setBackground(Color.WHITE);
+ JRadioButton r2 = new JRadioButton("2"); r2.setActionCommand("2"); r2.setBackground(Color.WHITE);
+ JRadioButton r3 = new JRadioButton("3"); r3.setActionCommand("3"); r3.setBackground(Color.WHITE);
+ JRadioButton r4 = new JRadioButton("4"); r4.setActionCommand("4"); r4.setBackground(Color.WHITE);
+ JRadioButton r5 = new JRadioButton("5"); r5.setActionCommand("5"); r5.setBackground(Color.WHITE);
group.add(r1);
group.add(r2);
group.add(r3);
group.add(r4);
group.add(r5);
JPanel radio_panel = new JPanel();
radio_panel.setLayout((new BoxLayout(radio_panel, BoxLayout.X_AXIS)));
radio_panel.setBackground(Color.WHITE);
radio_panel.setAlignmentX(Component.CENTER_ALIGNMENT);
radio_panel.add(r1);
radio_panel.add(r2);
radio_panel.add(r3);
radio_panel.add(r4);
radio_panel.add(r5);
radio_panel.doLayout();
radio_panel.setPreferredSize(radio_panel.getPreferredSize());
JTextArea question = new JTextArea(id + ") " + map.get(id).getQuestion());
question.setEditable(false);
question.setLineWrap(true);
question.setWrapStyleWord(true);
question.setFont(new Font("Tahoma", Font.PLAIN, 13));
JPanel row_panel = new JPanel();
row_panel.setLayout(new BoxLayout(row_panel, BoxLayout.X_AXIS));
row_panel.add(Box.createRigidArea(new Dimension(20,0)));
row_panel.add(question);
row_panel.add(Box.createRigidArea(new Dimension(20,0)));
row_panel.add(radio_panel);
row_panel.add(Box.createRigidArea(new Dimension(20,0)));
row_panel.setBackground(Color.WHITE);
int type_new = map.get(id).getType();
if(type_new != type){
type = type_new;
JLabel question_group = new JLabel("");
switch(type){
case 1:
question_group.setText("Clinical Utility");
break;
case 2:
question_group.setText("Privacy Concerns");
break;
case 3:
question_group.setText("Usability Assessment");
break;
}
question_group.setAlignmentX(Component.CENTER_ALIGNMENT);
question_group.setFont(new Font("Tahoma", Font.BOLD, 13));
+ panel_2.add(new JSeparator());
panel_2.add(Box.createRigidArea(new Dimension(0,5)));
panel_2.add(question_group);
panel_2.add(Box.createRigidArea(new Dimension(0,5)));
panel_2.add(new JSeparator());
panel_2.add(Box.createRigidArea(new Dimension(0,5)));
}
panel_2.add(Box.createRigidArea(new Dimension(0,5)));
panel_2.add(row_panel);
panel_2.add(Box.createRigidArea(new Dimension(0,5)));
// panel_2.add(radio_panel);
- panel_2.add(new JSeparator());
+// panel_2.add(new JSeparator());
panel_2.add(Box.createRigidArea(new Dimension(0,5)));
// panel_2.setPreferredSize(panel_2.getPreferredSize());
buttonGroupMap.put(id, group);
}
+
+ JComboBox<String> ageBox = new JComboBox<String>();
+ ageBox.setFont(new Font("Tahoma", Font.BOLD, 12));
+ ageBox.setModel(new DefaultComboBoxModel<String>(new String[] {"Select Age"}));
+ panel_2.add(ageBox);
+
-
- this.setSize(new Dimension(1300, 865));
-// pack();
+ this.setSize(new Dimension(1118, 768));
+// this.pack();
}// </editor-fold>//GEN-END:initComponents
private void submitButtonActionPerformed(java.awt.event.ActionEvent evt){
try{
answers = new HashMap<String, String>();
StringBuilder sb = new StringBuilder();
Set<Integer> questions_id = buttonGroupMap.keySet();
for(Integer q: questions_id){
ButtonGroup bg = buttonGroupMap.get(q);
sb.append(q).append(",");
sb.append(bg.getSelection().getActionCommand()).append(";");
answers.put(q.toString(),bg.getSelection().getActionCommand());
}
String answer = sb.toString();
Integer id_loc = null;
for(Integer i: locations.keySet()){
if(locations.get(i).equals(comboBox.getSelectedItem().toString()))
id_loc = i;
}
String id_p;
if(jComboBox1.getSelectedItem().toString().equals("Select Patient"))
id_p = "0";
else
id_p = jComboBox1.getSelectedItem().toString();
ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
CommAdapter commHandlerAdapter = new CommAdapter(connection);
String reply = commHandlerAdapter.callServiceSurveyAnswer(answer, id_loc.toString(), id_p);
if(reply.equals("1")){
survey_submitted = true;
dialog.setVisible(false);
JOptionPane.showMessageDialog(
this,
"Congrats! Your aswers have been sent to the SHCS datacenter.",
"Information Message",
JOptionPane.INFORMATION_MESSAGE);
+ btnSubmitQuestionnaire.setEnabled(false);
}
else{
throw new IOException();
}
} catch (NullPointerException e){
LOGGER.log(Level.SEVERE, null, e);
dialog.setVisible(false);
JOptionPane.showMessageDialog(
this,
"Please respond to all the questions!",
"Error Message",
JOptionPane.ERROR_MESSAGE);
} catch (IOException e) {
LOGGER.log(Level.SEVERE, null, e);
dialog.setVisible(false);
JOptionPane.showMessageDialog(
this,
"The SHCS datacenter does not respond. Please save the survey and send it to jean.raisaro@epfl.ch.",
"Error Message",
JOptionPane.ERROR_MESSAGE);
}
}
private void savePDFButtonActionPerformed(java.awt.event.ActionEvent evt){
try {
answers = new HashMap<String, String>();
Set<Integer> questions_id = buttonGroupMap.keySet();
for(Integer q: questions_id){
ButtonGroup bg = buttonGroupMap.get(q);
answers.put(q.toString(),bg.getSelection().getActionCommand());
}
JFileChooser chooser = new JFileChooser();
// Note: source for ExampleFileFilter can be found in FileChooserDemo,
// under the demo/jfc directory in the JDK.
int returnVal = chooser.showSaveDialog(this);
System.out.println(returnVal);
if(returnVal == JFileChooser.APPROVE_OPTION) {
System.out.println("You chose to open this file: " +
chooser.getSelectedFile().getPath());
quest = new Questionnaire(chooser.getSelectedFile().getPath() + ".pdf");
quest.createPdf(map, ids);
quest.writeAnswers(answers);
survey_submitted = true;
}else{
quest = new Questionnaire("outputPDF/survey.pdf");
quest.createPdf(map, ids);
quest.writeAnswers(answers);
survey_submitted = true;
}
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (DocumentException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (NullPointerException e) {
LOGGER.log(Level.SEVERE, null, e);
dialog.setVisible(false);
JOptionPane.showMessageDialog(
this,
"Please respond to all the questions!",
"Error Message",
JOptionPane.ERROR_MESSAGE);
}
}
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
JPanel contentPanel = new JPanel();
- dialog.setBounds(100, 100, 410, 80);
+ dialog.setBounds(100, 100, 420, 100);
dialog.getContentPane().setLayout(new BorderLayout());
contentPanel.setLayout(new FlowLayout());
contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
dialog.getContentPane().add(contentPanel, BorderLayout.CENTER);
{
- JLabel label = new JLabel("Please wait...The overall computation can take few seconds");
+ JLabel label = new JLabel("Please wait...The overall computation can take some seconds!");
+ JLabel label2 = new JLabel("Cryptographic operations are being performed at the SHCS...");
label.setHorizontalAlignment(SwingConstants.CENTER);
- label.setFont(new Font("Tahoma", Font.PLAIN, 12));
+ label.setFont(new Font("Tahoma", Font.BOLD, 12));
+ label2.setHorizontalAlignment(SwingConstants.CENTER);
+ label2.setFont(new Font("Tahoma", Font.PLAIN, 12));
contentPanel.add(label);
+ contentPanel.add(label2);
}
{
JPanel buttonPane = new JPanel();
buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
dialog.getContentPane().add(buttonPane, BorderLayout.SOUTH);
}
dialog.setLocationRelativeTo(this);
dialog.setVisible(true);
GUIWorker gw = new GUIWorker(this, props);
Thread t = new Thread(gw);
t.start();
}
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JButton jButton1;
private javax.swing.JComboBox<String> jComboBox1;
- private javax.swing.JLabel jLabel1;
- private javax.swing.JLabel jLabel2;
private javax.swing.JLabel jLabel3;
private javax.swing.JLabel jLabel4;
private javax.swing.JMenu jMenu1;
private javax.swing.JMenu jMenu2;
private javax.swing.JMenuBar jMenuBar1;
private javax.swing.JMenuItem jMenuItem1;
- private javax.swing.JPanel jPanel1;
private javax.swing.JPanel jPanel2;
private javax.swing.JScrollPane jScrollPane3;
private javax.swing.JTabbedPane tabbedPane;
private javax.swing.JScrollPane jScrollPane2;
- private javax.swing.JScrollPane jScrollPane4;
private JPanel panel;
- private JPanel panel_1;
- private JPanel panel_2;
- private JLabel lblDearDoctor;
private JLabel lblNewLabel_1;
private JLabel lblNewLabel_2;
private JLabel lblNewLabel_3;
private JComboBox<String> comboBox;
private Component rigidArea;
+ private JSplitPane splitPane;
+ private JPanel panel_1;
+ private JLabel label_1;
+ private JLabel label_2;
+ private JLabel label_3;
+ private JLabel label_4;
+ private JScrollPane scrollPane;
+ private JTextPane introduction;
+ private JScrollPane jScrollPane4;
+ private JPanel panel_2;
// End of variables declaration//GEN-END:variables
class GUIWorker implements Runnable{
private JFrame mainFrame;
private ClientProperties props;
private MedUnit mu;
public GUIWorker(GUI gui, ClientProperties props) {
mainFrame = gui;
this.props = props;
this.mu = new MedUnit(props, 0);
}
@Override
public void run() {
try{
int patientId = Integer.parseInt((String) jComboBox1.getSelectedItem());
// convert selected tests to test identifiers
ArrayList<TestName> selectedTests = new ArrayList<TestName>();
for (String currentName : getSelectedTests()) {
TestName currentTest = testsByName.get(currentName);
if (currentTest == null) {
throw new IllegalStateException("Trying to run unknown test: " + currentTest);
}
selectedTests.add(currentTest);
}
// run tests
Diagnostic diagnostic = mu.runTests(patientId, selectedTests);
// warn for tests with missing material
warnFailedTests(diagnostic, selectedTests);
// create report
mu.createReport(patientId, selectedTests, diagnostic);
dialog.setVisible(false);
// specify file you wish to open (JPedal handles getting the byte data)
String filepathReport = props.getPathPDF() + patientId + ".pdf";
// open generated PDF
// object must be either String in full filepath, or
// File object which can be relative
Object[] input = new Object[]{ new File(filepathReport) };
viewer.executeCommand(Commands.OPENFILE, input);
// display CAD result as bar plot
if (diagnostic.hasCAD()) {
System.out.println("CAD = " + diagnostic.getResultCAD());
BarPlotFrame frame = new BarPlotFrame(diagnostic.getResultCAD(), patientId);
frame.setVisible(true);
frame.setAlwaysOnTop(true);
}
} catch (SQLException e) {
LOGGER.log(Level.SEVERE, null, e);
displayError("Not able to connect to service. Please try again.");
} catch (IOException e) {
LOGGER.log(Level.SEVERE, null, e);
displayError("Not able to connect to service. Please try again.");
} catch (NullPointerException e){
LOGGER.log(Level.SEVERE, null, e);
- displayError("Please select a patient.");
+ displayError("Please select a patient and one or multiple tests.");
+ } catch (NumberFormatException e){
+ LOGGER.log(Level.SEVERE, null, e);
+ displayError("Please select a patient and one or multiple tests.");
}
}
private void warnFailedTests(Diagnostic diagnostic, ArrayList<TestName> selectedTests) {
ArrayList<Integer> failedTests = diagnostic.getInvalidTests();
if (!failedTests.isEmpty()) {
String msg = "Could not complete tests: ";
boolean first = true;
for (TestName testName : selectedTests) {
if (failedTests.contains(testName.getId())) {
if (first) {
first = false;
} else {
msg += ", ";
}
msg += testName.getName();
}
}
displayError(msg);
}
}
private void displayError(String msg) {
dialog.setVisible(false);
JOptionPane.showMessageDialog(
mainFrame,
msg,
"Error Message",
JOptionPane.ERROR_MESSAGE);
}
private ArrayList<String> getSelectedTests() {
ArrayList<String> tests = new ArrayList<String>();
for (TreePath treePath : jTree.getSelectionPaths()) {
tests.addAll(getChildrenTests(jTree.getModel(), treePath.getLastPathComponent()));
}
return tests;
}
private ArrayList<String> getChildrenTests(TreeModel model, Object node) {
ArrayList<String> tests = new ArrayList<String>();
if (model.isLeaf(node)) { // leaf
DefaultMutableTreeNode leaf = (DefaultMutableTreeNode) node;
tests.add(leaf.toString());
}
else { // iterate over children
for (int i = 0; i < model.getChildCount(node); i++) {
tests.addAll(getChildrenTests(model, model.getChild(node, i)));
}
}
return tests;
}
}
}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/13/e0fe7bae0ea70014162f978bbd19228b b/.metadata/.plugins/org.eclipse.core.resources/.history/13/e0fe7bae0ea70014162f978bbd19228b
deleted file mode 100644
index b19f9c4..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/13/e0fe7bae0ea70014162f978bbd19228b
+++ /dev/null
@@ -1,259 +0,0 @@
-package io;
-
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.util.Map;
-import java.util.Set;
-
-import com.itextpdf.text.BaseColor;
-import com.itextpdf.text.Document;
-import com.itextpdf.text.DocumentException;
-import com.itextpdf.text.Element;
-import com.itextpdf.text.ExceptionConverter;
-import com.itextpdf.text.Font;
-import com.itextpdf.text.Font.FontFamily;
-import com.itextpdf.text.FontFactory;
-import com.itextpdf.text.Image;
-import com.itextpdf.text.PageSize;
-import com.itextpdf.text.Paragraph;
-import com.itextpdf.text.Phrase;
-import com.itextpdf.text.Rectangle;
-import com.itextpdf.text.pdf.BaseFont;
-import com.itextpdf.text.pdf.ColumnText;
-import com.itextpdf.text.pdf.GrayColor;
-import com.itextpdf.text.pdf.PdfBorderDictionary;
-import com.itextpdf.text.pdf.PdfContentByte;
-import com.itextpdf.text.pdf.PdfFormField;
-import com.itextpdf.text.pdf.PdfPCell;
-import com.itextpdf.text.pdf.PdfPCellEvent;
-import com.itextpdf.text.pdf.PdfPTable;
-import com.itextpdf.text.pdf.PdfWriter;
-import com.itextpdf.text.pdf.RadioCheckField;
-import com.itextpdf.text.pdf.TextField;
-
-import framework.Question;
-
-public class Questionnaire implements PdfPCellEvent{
-
- /** The path output file. */
- String pathOutputFile;
-
- /** The document. */
- Document document;
-
- int tf;
-
- public Questionnaire(String path){
- pathOutputFile = path;
- document = new Document(PageSize.A4, 25, 25, 50, 50);
- }
- public Questionnaire(int tf){
- this.tf = tf;
- }
-
- /** The resulting PDF. */
- public static final String RESULT1 = "outputPDF/buttons.pdf";
- /** The resulting PDF. */
- public static final String RESULT2 = "outputPDF/buttons_filled.pdf";
- /** Path to a JavaScript resource. */
- public static final String RESOURCE = "res/buttons.js";
- /** Path to an image used as button icon. */
- public static final String IMAGE = "res/info.png";
- /** Possible values of a radio field / checkboxes */
- public static final String[] LANGUAGES = { "English", "German", "French", "Spanish", "Dutch" };
-
- /**
- * Creates a PDF document.
- * @param filename the path to the new PDF document
- * @throws DocumentException
- * @throws IOException
- */
- public void createPdf(Map<Integer, Question> map, Set<Integer> ids) throws IOException, DocumentException {
-
- @SuppressWarnings("unused")
- PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(pathOutputFile));
-
-
- document.open();
- Image logo = Image.getInstance("res/shcs_logo2.gif");
-
- logo.scalePercent(30f);
- float[] columnWidths1 = {0.2f, 0.8f};
- PdfPTable table_title = new PdfPTable(columnWidths1);
- PdfPCell c01 = new PdfPCell(logo, false);
- PdfPCell c02 = new PdfPCell(new Paragraph("HIV Pharmacogenomic report | Project #693 | Survey",
- FontFactory.getFont(FontFactory.HELVETICA, 20, Font.BOLD, BaseColor.BLACK)));
- c01.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c01.setBorder(Rectangle.NO_BORDER);
- c02.setBorder(Rectangle.NO_BORDER);
-
- table_title.addCell(c01);
- table_title.addCell(c02);
- table_title.setWidthPercentage(100);
- table_title.setSpacingBefore(0);
- table_title.setSpacingAfter(25);
- document.add(table_title);
-
-
- //----------------------------------------------------------------------------------
-
-
- PdfPTable table1 = new PdfPTable(1);
- table1.setWidthPercentage(100);
- PdfPCell c11 = new PdfPCell(new Phrase("Today you are receiving a pharmacogenetic report based on the genetic " +
- "information of your patient. Because the human genome contains extremely private and sensitive information" +
- " of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier," +
- " it must be managed with care. ",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.NORMAL, BaseColor.BLACK)));
- c11.setLeading(1.5f, 1.5f);
- c11.setPaddingBottom(8);
-
-
- table1.addCell(c11);
- table1.setSpacingAfter(10);
- document.add(table1);
-
-
- //----------------------------------------------------------------------------------
-
-// // step 4
-// // add the JavaScript
-// writer.addJavaScript(Utilities.readFileToString(RESOURCE));
-
-
-
-
- // add the radio buttons
- for(Integer id: ids){
- PdfPCell c2;
-
- PdfPTable table = new PdfPTable(1);
- table.setSpacingAfter(10);
- table.setWidthPercentage(100);
-// table.setWidths(new int[]{ 1, 2});
-
- PdfPCell c1 = new PdfPCell(new Phrase(id + ") " + map.get(id).getQuestion(),FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c1.setPaddingTop(5);
- c1.setPaddingBottom(5);
- c1.setHorizontalAlignment(Element.ALIGN_CENTER);
- c1.setBorder(Rectangle.BOX);
- table.addCell(c1);
-
- c2 = new PdfPCell(new Phrase(" 1" +
- " 2" +
- " 3" +
- " 4" +
- " 5",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c2.setHorizontalAlignment(Element.ALIGN_LEFT);
- c2.setCellEvent(new Questionnaire(id));
-// c2.setLeading(1.5f, 1.5f);
- c2.setBorderColorTop(BaseColor.WHITE);
- c2.setPaddingTop(2);
- c2.setPaddingBottom(5);
- c2.setBackgroundColor(new BaseColor(242, 242, 242));
-
- table.addCell(c2);
-
-
-
- document.add(table);
- }
-
-//
- // step 5
- document.close();
-
- }
-
- @Override
- public void cellLayout(PdfPCell cell, Rectangle position,
- PdfContentByte[] canvases) {
- PdfWriter writer = canvases[0].getPdfWriter();
- PdfFormField radiogroup = PdfFormField.createRadioButton(writer, true);
- radiogroup.setFieldName(String.valueOf(tf));
-
- float llx = position.getLeft();
- float lly = position.getBottom();
- float urx = position.getRight();
- float ury = position.getTop();
- float cell_h = cell.getHeight();
- float cell_w = cell.getWidth();
-
- Rectangle rect;
-
- for(int i=1 ; i<=5; i++){
-
-
- rect = new Rectangle(llx + (3+i)*cell_w/12, lly+cell_h/2-6, llx + (3+i)*cell_w/12+12 ,lly+cell_h/2+6);
-
- RadioCheckField radio = new RadioCheckField(writer, rect, null, String.valueOf(i));
- radio.setBorderColor(GrayColor.GRAYBLACK);
- radio.setCheckType(RadioCheckField.TYPE_SQUARE);
-// radio.setText("1");
-
-
- try {
- PdfFormField field = radio.getRadioField();
- radiogroup.addKid(field);
-
- writer.addAnnotation(radiogroup);
- }
-
- catch(IOException ioe) {
- throw new ExceptionConverter(ioe);
- }
- catch(DocumentException de) {
- throw new ExceptionConverter(de);
- }
- }
-
-
-
- }
-
-// /**
-// * Manipulates a PDF file src with the file dest as result
-// * @param src the original PDF
-// * @param dest the resulting PDF
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public void manipulatePdf(String src, String dest) throws IOException, DocumentException {
-// PdfReader reader = new PdfReader(src);
-// PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(dest));
-// AcroFields form = stamper.getAcroFields();
-// String[] radiostates = form.getAppearanceStates("language");
-// form.setField("language", radiostates[4]);
-// for (int i = 0; i < LANGUAGES.length; i++) {
-// String[] checkboxstates = form.getAppearanceStates("English");
-// form.setField(LANGUAGES[i], checkboxstates[i % 2 == 0 ? 1 : 0]);
-// }
-// stamper.close();
-// reader.close();
-//
-// PdfReader r = new PdfReader(dest);
-// AcroFields f = r.getAcroFields();
-// Set<String> fields = form.getFields().keySet();
-// for(String key: fields){
-// if(f.getFieldType(key)==AcroFields.FIELD_TYPE_RADIOBUTTON){
-// System.out.println(key);
-// System.out.println(f.getField(key));
-//
-// }
-// }
-// r.close();
-//
-// }
-//
-// /**
-// * Main method
-// * @param args no arguments needed
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public static void main(String[] args) throws IOException, DocumentException {
-// Questionnaire buttons = new Questionnaire();
-// buttons.createPdf(RESULT1);
-// buttons.manipulatePdf(RESULT1, RESULT2);
-// }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/13/f08a7c18b2a7001417ceadf0100b5ef7 b/.metadata/.plugins/org.eclipse.core.resources/.history/13/f08a7c18b2a7001417ceadf0100b5ef7
deleted file mode 100644
index 8924462..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/13/f08a7c18b2a7001417ceadf0100b5ef7
+++ /dev/null
@@ -1,5 +0,0 @@
-package testpdf;
-
-public class SubmitForm {
-
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/16/10076e0ca4a7001417ceadf0100b5ef7 b/.metadata/.plugins/org.eclipse.core.resources/.history/16/10076e0ca4a7001417ceadf0100b5ef7
deleted file mode 100644
index e69de29..0000000
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/16/80fe811c50ac001410e2e30aa85db9d1 b/.metadata/.plugins/org.eclipse.core.resources/.history/16/80fe811c50ac001410e2e30aa85db9d1
deleted file mode 100644
index 97ac198..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/16/80fe811c50ac001410e2e30aa85db9d1
+++ /dev/null
@@ -1,903 +0,0 @@
-package ui;
-
-import io.ClientConnection;
-import io.CommAdapter;
-import io.Questionnaire;
-
-import java.awt.BorderLayout;
-import java.awt.Color;
-import java.awt.Component;
-import java.awt.Dimension;
-import java.awt.FlowLayout;
-import java.awt.Font;
-import java.awt.SystemColor;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.awt.event.WindowAdapter;
-import java.io.File;
-import java.io.IOException;
-import java.sql.SQLException;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.LinkedList;
-import java.util.Map;
-import java.util.Set;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
-import javax.swing.Box;
-import javax.swing.BoxLayout;
-import javax.swing.ButtonGroup;
-import javax.swing.DefaultComboBoxModel;
-import javax.swing.GroupLayout;
-import javax.swing.GroupLayout.Alignment;
-import javax.swing.ImageIcon;
-import javax.swing.JButton;
-import javax.swing.JComboBox;
-import javax.swing.JDialog;
-import javax.swing.JFileChooser;
-import javax.swing.JFrame;
-import javax.swing.JLabel;
-import javax.swing.JOptionPane;
-import javax.swing.JPanel;
-import javax.swing.JRadioButton;
-import javax.swing.JScrollPane;
-import javax.swing.JSeparator;
-import javax.swing.JTabbedPane;
-import javax.swing.JTextArea;
-import javax.swing.JTextPane;
-import javax.swing.JTree;
-import javax.swing.LayoutStyle.ComponentPlacement;
-import javax.swing.SwingConstants;
-import javax.swing.UIManager;
-import javax.swing.border.BevelBorder;
-import javax.swing.border.EmptyBorder;
-import javax.swing.border.EtchedBorder;
-import javax.swing.tree.DefaultMutableTreeNode;
-import javax.swing.tree.TreeModel;
-import javax.swing.tree.TreePath;
-
-import org.jpedal.examples.viewer.Commands;
-import org.jpedal.examples.viewer.Viewer;
-
-import utils.ClientProperties;
-
-import com.itextpdf.text.DocumentException;
-
-import database.DBconnectorClient;
-import framework.Diagnostic;
-import framework.MedUnit;
-import framework.Question;
-import framework.reply.ReplySurvey;
-import framework.test.TestName;
-
-/**
- *
- * @author youssef, raisaro
- */
-public class GUI extends javax.swing.JFrame {
-
- private static final Logger LOGGER = Logger.getLogger(GUI.class.getName());
-
- private static final long serialVersionUID = -4582280515597700650L;
-
- // configuration
- private ClientProperties props;
-
- private JTree jTree;
- private DBconnectorClient connectorClientDB;
- private LinkedList<Integer> patients;
-
- /** List of all relevant tests */
- private HashMap<String, TestName> testsByName;
- private Viewer viewer;
- private JDialog dialog;
- private JFrame frame;
- private boolean survey_submitted;
- private int close_trials;
- private Map<Integer, ButtonGroup> buttonGroupMap;
- private Questionnaire quest;
- private Map<Integer, Question> map;
- private Set<Integer> ids;
- private Map<String,String> answers;
- private Map<Integer, String> locations;
-
-
- /**
- * Creates new form GUI
- */
- public GUI(ClientProperties props){
-
- frame = this;
- this.props = props;
- this.connectorClientDB = new DBconnectorClient(props.getDbMsAccess());
- survey_submitted = false;
- close_trials = 0;
-
-
- try {
- initComponents();
-
- viewer = new Viewer(jScrollPane2, null);
- viewer.setupViewer();
-
- // create questionnare
-
-
- System.out.println("#of questions: " + ids.size());
-
-// viewer_q = new Viewer(jScrollPane4, null);
-// viewer_q.setupViewer();
-//
-// // specify file you wish to open (JPedal handles getting the byte data)
-// String filepathReport = "outputPDF/buttons_filled.pdf";
-//
-// // open generated PDF
-// // object must be either String in full filepath, or
-// // File object which can be relative
-// Object[] input = new Object[]{ new File(filepathReport) };
-// viewer_q.executeCommand(Commands.OPENFILE, input);
-
- JButton btnSubmitQuestionnaire = new JButton("Submit Questionnaire");
- btnSubmitQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- btnSubmitQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- submitButtonActionPerformed(arg0);
- }
- });
- JButton btnResetQuestionnaire = new JButton("Save as PDF");
- btnResetQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- savePDFButtonActionPerformed(arg0);
- }
- });
- btnResetQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- JPanel panel_button = new JPanel();
- panel_button.setLayout(new BoxLayout(panel_button, BoxLayout.X_AXIS));
-
- lblNewLabel_3 = new JLabel("");
- lblNewLabel_3.setIcon(new ImageIcon("res/location_icon.png"));
- panel_button.add(lblNewLabel_3);
-
-
-
- comboBox = new JComboBox<String>();
- comboBox.setFont(new Font("Tahoma", Font.BOLD, 12));
- comboBox.setModel(new DefaultComboBoxModel<String>(new String[] {"Select Location"}));
- for(Integer id_loc : locations.keySet()){
- comboBox.addItem(locations.get(id_loc));
- }
-
-
- panel_button.add(comboBox);
-
- rigidArea = Box.createRigidArea(new Dimension(10, 0));
- panel_button.add(rigidArea);
-
- lblNewLabel_1 = new JLabel("");
- lblNewLabel_1.setIcon(new ImageIcon("res/submit.png"));
- panel_button.add(lblNewLabel_1);
- panel_button.add(btnSubmitQuestionnaire);
-
- panel_button.add(Box.createRigidArea(new Dimension(10,0)));
-
- lblNewLabel_2 = new JLabel("");
- lblNewLabel_2.setIcon(new ImageIcon("res/pdf.png"));
- panel_button.add(lblNewLabel_2);
- panel_button.add(btnResetQuestionnaire);
- panel_button.setPreferredSize(new Dimension(211, 35));
- panel_button.validate();
-
- JPanel panel_3 = new JPanel();
- GroupLayout gl_panel = new GroupLayout(panel);
- gl_panel.setHorizontalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(63)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addGap(103)
- .addComponent(panel_button, GroupLayout.DEFAULT_SIZE, 498, Short.MAX_VALUE)
- .addGap(241))
- .addGroup(Alignment.TRAILING, gl_panel.createSequentialGroup()
- .addGap(41)
- .addGroup(gl_panel.createParallelGroup(Alignment.TRAILING)
- .addComponent(panel_1, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE)
- .addComponent(jScrollPane4, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE))
- .addGap(32))
- );
- gl_panel.setVerticalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(22)
- .addComponent(panel_1, GroupLayout.PREFERRED_SIZE, 257, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jScrollPane4, GroupLayout.DEFAULT_SIZE, 384, Short.MAX_VALUE)
- .addGap(26)
- .addGroup(gl_panel.createParallelGroup(Alignment.LEADING)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(panel_button, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE)))
- );
- panel_3.setLayout(new BoxLayout(panel_3, BoxLayout.X_AXIS));
-
-
- panel.setLayout(gl_panel);
-
-
-
-
-
-
- /////////////////////////////////////////////////////////
- // display the tests available
-
- // get the tests
- HashMap<String, ArrayList<TestName>> testsRelevantByGroup = connectorClientDB.getRelevantTestsByGroup();
- ArrayList<String> groups = new ArrayList<String>(testsRelevantByGroup.keySet());
-
- // flatten hashmap into linkedlist
-// tests = new LinkedList<>();
- testsByName = new HashMap<String, TestName>();
- for (String group : groups) {
-// tests.addAll(testsRelevantByGroup.get(group));
- for (TestName test : testsRelevantByGroup.get(group)) {
- testsByName.put(test.getName(), test);
- }
- }
-
- // define tree structure of the tests
- DefaultMutableTreeNode root = new DefaultMutableTreeNode("All");
-
- for (String group : groups) {
- DefaultMutableTreeNode child = new DefaultMutableTreeNode(group);
- root.add(child);
-
- for (TestName test : testsRelevantByGroup.get(group)) {
- DefaultMutableTreeNode grandChild = new DefaultMutableTreeNode(test.getName());
- child.add(grandChild);
- }
- }
-
- // define swing object
- jTree = new JTree(root);
-
- for(int i=0;i<jTree.getRowCount();i++){
- jTree.expandRow(i);
- }
-
- jScrollPane3.setViewportView(jTree);
-// jTree.addTreeSelectionListener(new TreeSelectionListener() {
-//
-// @Override
-// public void valueChanged(TreeSelectionEvent e) {
-// tp = jTree.getSelectionPaths();
-// }
-// });
- jScrollPane3.setViewportView(jTree);
-
- /////////////////////////////////////////////////////////
- // display the patients registered
-
- patients = connectorClientDB.getPatients();
- for (Integer patientId : patients) {
- jComboBox1.addItem(patientId.toString());
- }
-
- } catch (SQLException ex) {
- Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex);
- ex.printStackTrace();
-// } catch (IOException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
-// } catch (DocumentException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
- }
-
- }
-
- /**
- * 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() {
-
- jPanel1 = new javax.swing.JPanel();
- jLabel2 = new javax.swing.JLabel();
- jLabel1 = new javax.swing.JLabel();
- jPanel2 = new javax.swing.JPanel();
- jComboBox1 = new javax.swing.JComboBox<String>();
- jButton1 = new javax.swing.JButton();
- jButton1.setFont(new Font("Tahoma", Font.BOLD, 12));
- jLabel3 = new javax.swing.JLabel();
- jLabel4 = new javax.swing.JLabel();
- jScrollPane3 = new javax.swing.JScrollPane();
- jScrollPane2 = new javax.swing.JScrollPane();
- jMenuBar1 = new javax.swing.JMenuBar();
- jMenu1 = new javax.swing.JMenu();
- jMenuItem1 = new javax.swing.JMenuItem();
- jMenu2 = new javax.swing.JMenu();
- dialog = new JDialog();
- tabbedPane = new JTabbedPane(JTabbedPane.TOP);
-
- setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
- addWindowListener(new WindowAdapter() {
- @Override
- public void windowClosing(java.awt.event.WindowEvent windowEvent) {
- if (!survey_submitted && close_trials <= 2){
- JOptionPane.showMessageDialog(frame, "Before closing the application, please fill in and submit the questionnaire.");
- close_trials++;
- tabbedPane.setSelectedIndex(1);
- }else{
- System.exit(0);
- }
- }
- });
- setTitle("HIV Pharmacogenomics\n");
-
- jLabel2.setIcon(new javax.swing.ImageIcon("res/shcs_logo2_small.gif")); // NOI18N
-
- jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
- jLabel1.setText("HIV Pharmacogenomics | Project #693");
-
- javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
- jPanel1.setLayout(jPanel1Layout);
- jPanel1Layout.setHorizontalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap(71, Short.MAX_VALUE)
- .addComponent(jLabel1)
- .addGap(18, 18, 18)
- .addComponent(jLabel2))
- );
- jPanel1Layout.setVerticalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jLabel1)
- .addGap(11, 11, 11))
- .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)
- );
-
- jPanel2.setBackground(new java.awt.Color(255, 255, 255));
- jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
-
- jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<String>(new String[]{"Select Patient"}));
-
- jButton1.setText("Run Test");
- jButton1.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton1ActionPerformed(evt);
- }
- });
-
- JLabel lblNewLabel = new JLabel("");
- lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
- lblNewLabel.setIcon(new javax.swing.ImageIcon("res/gears.png"));
-
-
-
- javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
- jPanel2Layout.setHorizontalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addComponent(jComboBox1, 0, 248, Short.MAX_VALUE)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addGap(75)
- .addGroup(jPanel2Layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jButton1)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 75, GroupLayout.PREFERRED_SIZE))
- .addContainerGap(98, Short.MAX_VALUE))
- );
- jPanel2Layout.setVerticalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addComponent(jComboBox1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED, 223, Short.MAX_VALUE)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jButton1)
- .addGap(19))
- );
- jPanel2.setLayout(jPanel2Layout);
-
- jLabel3.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel3.setText("Select Patient");
-
- jLabel4.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel4.setText("Select Test");
-
- jScrollPane3.setBackground(new java.awt.Color(255, 255, 255));
-
- jMenu1.setText("File");
-
- jMenuItem1.setText("Exit");
- jMenu1.add(jMenuItem1);
-
- jMenuBar1.add(jMenu1);
-
- jMenu2.setText("Edit");
- jMenuBar1.add(jMenu2);
-
- setJMenuBar(jMenuBar1);
-
-
-
- javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
- layout.setHorizontalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(layout.createParallelGroup(Alignment.LEADING, false)
- .addComponent(jLabel3)
- .addComponent(jLabel4)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, 244, Short.MAX_VALUE)
- .addComponent(jScrollPane3))
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 970, Short.MAX_VALUE))
- .addContainerGap())
- );
- layout.setVerticalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel4))
- .addPreferredGap(ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addComponent(jScrollPane3, GroupLayout.PREFERRED_SIZE, 388, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jLabel3)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 785, Short.MAX_VALUE))
- .addContainerGap())
- );
-
-
- jScrollPane2.setAutoscrolls(true);
- jScrollPane3.setAutoscrolls(true);
- tabbedPane.addTab("Report", new ImageIcon("res/report_icon.gif"), jScrollPane2, null);
- tabbedPane.setBackgroundAt(0, new Color(255, 255, 255));
-
- panel = new JPanel();
- tabbedPane.addTab("Survey", new ImageIcon("res/survey_icon.png"), panel, null);
- tabbedPane.setBackgroundAt(1, new Color(255, 255, 255));
- tabbedPane.setEnabledAt(1, true);
-
- panel_1 = new JPanel();
- panel_1.setBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null));
- panel_1.setBackground(UIManager.getColor("Button.background"));
-
- JLabel label = new JLabel("");
- label.setIcon(new ImageIcon("res/shcs_logo2_medium.gif"));
-
- lblDearDoctor = new JLabel("Dear Doctor,");
- lblDearDoctor.setFont(new Font("Tahoma", Font.BOLD, 14));
-
- JScrollPane scrollPane = new JScrollPane();
- scrollPane.setBorder(null);
- GroupLayout gl_panel_1 = new GroupLayout(panel_1);
- gl_panel_1.setHorizontalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(Alignment.LEADING, gl_panel_1.createSequentialGroup()
- .addGap(25)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addComponent(lblDearDoctor)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 661, Short.MAX_VALUE))
- .addContainerGap())
- );
- gl_panel_1.setVerticalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addContainerGap()
- .addComponent(lblDearDoctor)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 203, Short.MAX_VALUE))
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(36)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 96, GroupLayout.PREFERRED_SIZE)))
- .addContainerGap())
- );
-
- JTextPane txtpnTodayYouAre = new JTextPane();
- txtpnTodayYouAre.setBorder(null);
- txtpnTodayYouAre.setText("Today you are receiving a pharmacogenetics report based on the genome of your patient. Because of its highly sensitive nature, " +
- "the genetic information you are provided with is processed in a privacy-preserving way. In particular, to protect patients’ genomic privacy, " +
- "their genetic and clinical data is stored encrypted at the SHCS data center, and securely analyzed through a sophisticated algorithm designed and developed at EPFL [1, 2]. " +
- "The actual clinical and genetic information is never revealed. Only the authorized users, such as you, can get some processed information, for example, the final result of a " +
- "pharmacogenetics risk test.\nThis mechanism protects the data against insiders or hackers trying to illegally access patients’ medical information, while still allowing authorized " +
- "users to obtain the information they need." +
- "\n\nTo help us understanding the importance of genomic privacy in the medical domain, and the impact of privacy-enhancing technologies in daily clinical practice, please complete the following survey.");
- txtpnTodayYouAre.setFont(new Font("Tahoma", Font.PLAIN, 13));
- txtpnTodayYouAre.setEditable(false);
- txtpnTodayYouAre.setBackground(SystemColor.menu);
- scrollPane.setViewportView(txtpnTodayYouAre);
- panel_1.setLayout(gl_panel_1);
- jScrollPane4 = new javax.swing.JScrollPane();
- getContentPane().setLayout(layout);
-
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
- ReplySurvey replySurvey = commHandlerAdapter.callServiceSurvey();
-
- map = replySurvey.getQuestions();
- ids = map.keySet();
- locations = replySurvey.getLocations();
-
- panel_2 = new JPanel();
- panel_2.setBackground(Color.WHITE);
- panel_2.setBorder(new BevelBorder(BevelBorder.LOWERED, null, null, null, null));
- jScrollPane4.setViewportView(panel_2);
- panel_2.setLayout(new BoxLayout(panel_2, BoxLayout.Y_AXIS));
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
-
-
- for(Integer id : ids){
- ButtonGroup group = new ButtonGroup();
- JRadioButton r1 = new JRadioButton("1"); r1.setActionCommand("1"); r1.setBackground(Color.WHITE);
- JRadioButton r2 = new JRadioButton("2"); r2.setActionCommand("2"); r2.setBackground(Color.WHITE);
- JRadioButton r3 = new JRadioButton("3"); r3.setActionCommand("3"); r3.setBackground(Color.WHITE);
- JRadioButton r4 = new JRadioButton("4"); r4.setActionCommand("4"); r4.setBackground(Color.WHITE);
- JRadioButton r5 = new JRadioButton("5"); r5.setActionCommand("5"); r5.setBackground(Color.WHITE);
- group.add(r1);
- group.add(r2);
- group.add(r3);
- group.add(r4);
- group.add(r5);
- JPanel radio_panel = new JPanel();
- radio_panel.setLayout((new BoxLayout(radio_panel, BoxLayout.X_AXIS)));
- radio_panel.setBackground(Color.WHITE);
- radio_panel.setAlignmentX(Component.CENTER_ALIGNMENT);
- radio_panel.add(r1);
- radio_panel.add(r2);
- radio_panel.add(r3);
- radio_panel.add(r4);
- radio_panel.add(r5);
- radio_panel.doLayout();
- radio_panel.setPreferredSize(radio_panel.getPreferredSize());
- JTextArea question = new JTextArea(id + ") " + map.get(id).getQuestion());
- question.setLineWrap(true);
- question.setWrapStyleWord(true);
- question.setAlignmentX(Component.CENTER_ALIGNMENT);
- question.setFont(new Font("Tahoma", Font.PLAIN, 13));
-
- JPanel row_panel = new JPanel();
- row_panel.setLayout(new BoxLayout(row_panel, BoxLayout.X_AXIS));
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.add(question);
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.add(radio_panel);
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
-
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- panel_2.add(row_panel);
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
-// panel_2.add(radio_panel);
- panel_2.add(new JSeparator());
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
-// panel_2.setPreferredSize(panel_2.getPreferredSize());
- buttonGroupMap.put(id, group);
-
- }
-
-
-
- this.setSize(new Dimension(1200, 865));
-// pack();
- }// </editor-fold>//GEN-END:initComponents
-
-
- private void submitButtonActionPerformed(java.awt.event.ActionEvent evt){
-
- try{
- answers = new HashMap<String, String>();
- StringBuilder sb = new StringBuilder();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- sb.append(q).append(",");
- sb.append(bg.getSelection().getActionCommand()).append(";");
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- String answer = sb.toString();
- Integer id_loc = null;
- for(Integer i: locations.keySet()){
- if(locations.get(i).equals(comboBox.getSelectedItem().toString()))
- id_loc = i;
- }
-
- String id_p;
- if(jComboBox1.getSelectedItem().toString().equals("Select Patient"))
- id_p = "0";
- else
- id_p = jComboBox1.getSelectedItem().toString();
-
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
-
- String reply = commHandlerAdapter.callServiceSurveyAnswer(answer, id_loc.toString(), id_p);
-
- if(reply.equals("1")){
- survey_submitted = true;
-
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Congrats! Your aswers have been sent to the SHCS datacenter.",
- "Information Message",
- JOptionPane.INFORMATION_MESSAGE);
- }
- else{
- throw new IOException();
- }
-
-
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "The SHCS datacenter does not respond. Please save the survey and send it to jean.raisaro@epfl.ch.",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
- private void savePDFButtonActionPerformed(java.awt.event.ActionEvent evt){
- try {
-
- answers = new HashMap<String, String>();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- JFileChooser chooser = new JFileChooser();
- // Note: source for ExampleFileFilter can be found in FileChooserDemo,
- // under the demo/jfc directory in the JDK.
-
- int returnVal = chooser.showSaveDialog(this);
- System.out.println(returnVal);
- if(returnVal == JFileChooser.APPROVE_OPTION) {
- System.out.println("You chose to open this file: " +
- chooser.getSelectedFile().getPath());
- quest = new Questionnaire(chooser.getSelectedFile().getPath() + ".pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }else{
- quest = new Questionnaire("outputPDF/survey.pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }
-
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (DocumentException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (NullPointerException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
-
- private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
-
- JPanel contentPanel = new JPanel();
-
- dialog.setBounds(100, 100, 410, 80);
- dialog.getContentPane().setLayout(new BorderLayout());
- contentPanel.setLayout(new FlowLayout());
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- dialog.getContentPane().add(contentPanel, BorderLayout.CENTER);
- {
- JLabel label = new JLabel("Please wait...The overall computation can take few seconds");
- label.setHorizontalAlignment(SwingConstants.CENTER);
- label.setFont(new Font("Tahoma", Font.PLAIN, 12));
- contentPanel.add(label);
- }
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
- dialog.getContentPane().add(buttonPane, BorderLayout.SOUTH);
- }
- dialog.setLocationRelativeTo(this);
- dialog.setVisible(true);
-
- GUIWorker gw = new GUIWorker(this, props);
- Thread t = new Thread(gw);
- t.start();
-
- }
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JButton jButton1;
- private javax.swing.JComboBox<String> jComboBox1;
- private javax.swing.JLabel jLabel1;
- private javax.swing.JLabel jLabel2;
- private javax.swing.JLabel jLabel3;
- private javax.swing.JLabel jLabel4;
- private javax.swing.JMenu jMenu1;
- private javax.swing.JMenu jMenu2;
- private javax.swing.JMenuBar jMenuBar1;
- private javax.swing.JMenuItem jMenuItem1;
- private javax.swing.JPanel jPanel1;
- private javax.swing.JPanel jPanel2;
- private javax.swing.JScrollPane jScrollPane3;
- private javax.swing.JTabbedPane tabbedPane;
- private javax.swing.JScrollPane jScrollPane2;
- private javax.swing.JScrollPane jScrollPane4;
- private JPanel panel;
- private JPanel panel_1;
- private JPanel panel_2;
- private JLabel lblDearDoctor;
- private JLabel lblNewLabel_1;
- private JLabel lblNewLabel_2;
- private JLabel lblNewLabel_3;
- private JComboBox<String> comboBox;
- private Component rigidArea;
-
- // End of variables declaration//GEN-END:variables
-
-
- class GUIWorker implements Runnable{
-
- private JFrame mainFrame;
- private ClientProperties props;
- private MedUnit mu;
-
- public GUIWorker(GUI gui, ClientProperties props) {
- mainFrame = gui;
-
- this.props = props;
- this.mu = new MedUnit(props, 0);
- }
-
- @Override
- public void run() {
-
- try{
- int patientId = Integer.parseInt((String) jComboBox1.getSelectedItem());
-
- // convert selected tests to test identifiers
- ArrayList<TestName> selectedTests = new ArrayList<TestName>();
- for (String currentName : getSelectedTests()) {
- TestName currentTest = testsByName.get(currentName);
-
- if (currentTest == null) {
- throw new IllegalStateException("Trying to run unknown test: " + currentTest);
- }
-
- selectedTests.add(currentTest);
- }
-
- // run tests
- Diagnostic diagnostic = mu.runTests(patientId, selectedTests);
-
- // warn for tests with missing material
- warnFailedTests(diagnostic, selectedTests);
-
- // create report
- mu.createReport(patientId, selectedTests, diagnostic);
-
- dialog.setVisible(false);
-
- // specify file you wish to open (JPedal handles getting the byte data)
- String filepathReport = props.getPathPDF() + patientId + ".pdf";
-
- // open generated PDF
- // object must be either String in full filepath, or
- // File object which can be relative
- Object[] input = new Object[]{ new File(filepathReport) };
- viewer.executeCommand(Commands.OPENFILE, input);
-
- // display CAD result as bar plot
- if (diagnostic.hasCAD()) {
- System.out.println("CAD = " + diagnostic.getResultCAD());
- BarPlotFrame frame = new BarPlotFrame(diagnostic.getResultCAD(), patientId);
- frame.setVisible(true);
- frame.setAlwaysOnTop(true);
- }
-
-
- } catch (SQLException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Please select a patient.");
- }
-
- }
-
- private void warnFailedTests(Diagnostic diagnostic, ArrayList<TestName> selectedTests) {
- ArrayList<Integer> failedTests = diagnostic.getInvalidTests();
-
- if (!failedTests.isEmpty()) {
- String msg = "Could not complete tests: ";
- boolean first = true;
- for (TestName testName : selectedTests) {
- if (failedTests.contains(testName.getId())) {
- if (first) {
- first = false;
- } else {
- msg += ", ";
- }
- msg += testName.getName();
- }
- }
- displayError(msg);
- }
-
- }
-
- private void displayError(String msg) {
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- mainFrame,
- msg,
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
-
- private ArrayList<String> getSelectedTests() {
- ArrayList<String> tests = new ArrayList<String>();
-
- for (TreePath treePath : jTree.getSelectionPaths()) {
- tests.addAll(getChildrenTests(jTree.getModel(), treePath.getLastPathComponent()));
- }
-
- return tests;
- }
-
- private ArrayList<String> getChildrenTests(TreeModel model, Object node) {
- ArrayList<String> tests = new ArrayList<String>();
-
- if (model.isLeaf(node)) { // leaf
- DefaultMutableTreeNode leaf = (DefaultMutableTreeNode) node;
- tests.add(leaf.toString());
- }
- else { // iterate over children
- for (int i = 0; i < model.getChildCount(node); i++) {
- tests.addAll(getChildrenTests(model, model.getChild(node, i)));
- }
- }
-
- return tests;
- }
-
- }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/17/60efa1554eac001410e2e30aa85db9d1 b/.metadata/.plugins/org.eclipse.core.resources/.history/17/60efa1554eac001410e2e30aa85db9d1
deleted file mode 100644
index 1d7b23d..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/17/60efa1554eac001410e2e30aa85db9d1
+++ /dev/null
@@ -1,71 +0,0 @@
-package io;
-
-import io.serializer.url.URLParserDecrypt;
-import io.serializer.url.URLParserMaterial;
-import io.serializer.xml.XMLParserDecrypt;
-import io.serializer.xml.XMLParserMaterial;
-import io.serializer.xml.XMLParserSurvey;
-
-import java.util.logging.Logger;
-
-import framework.Type;
-import framework.reply.ReplyDecryption;
-import framework.reply.ReplyMaterial;
-import framework.reply.ReplySurvey;
-import framework.request.RequestDecryption;
-import framework.request.RequestMaterial;
-
-public class CommAdapter {
-
- @SuppressWarnings("unused")
- private static final Logger LOGGER = Logger.getLogger(CommAdapter.class.getName());
-
- public ClientConnection connectSPU = null;
-
- public CommAdapter(ClientConnection connectSPU) {
- this.connectSPU = connectSPU;
- }
-
- public ReplyDecryption callServiceDecrypt(RequestDecryption rqtDecrypt) {
- String requestString = URLParserDecrypt.requestToString(rqtDecrypt);
-// String replyString = "<awr_decrypt><patient>30351</patient><v_timestamp>1417188729390</v_timestamp><decrypt_val>,,,,,,,,,,,,,,,,2,AwHR3OO0/hkwgEHluLDFLtn4aaTBAwBEJjJpMegGa29ASgtyt1ha2OOyxvEvNgkIaY0xWXtTmqrqhSBKDG6J7Lps0g==,AwE/oifhonvUZDA4mqRK8K1WCkoepEuL9SidjdFXMNNZQXCMUvVN6pBUYVFgJeFX6mT2jruK8ic3y6yI14PfKl/Pvg==,AgBHs6HGF9AYNc5RlFTGv025WEaT91i/MPy+HXqhvHOrp0Ol9/aKyvv2BgAzeAdsdSEbVs2sahiyL/kbKjeUoI9tsA==,,,,,,,,,,,,,2,AgHIofEmf4aJMLBnKAY3/8WcLXUETF4y/68fzZR6hsS5btZTyI0E4ZTltDzV6hBzIT14cC4S/BMclo1aoLt5C9f+Cg==,AgDOXZAZAwO4KXslqU1wKctrVlH8CcGvpO8gGrPl3YjrY8SR3a6gStvZvjcUKXhvtDkRwSLAIkD3lFrKSXWestHSqQ==,AgG7Y5so9ZTRng2Xm3ziWx3+7zfaVLkIJ2v7g+qEUx5Vl2/udDOcg/was8W6qbKYeo/W0EGTlNXKTOdIatGVxyuoZA==,,,,,2,AgDAVy0/nE6X4iAengG9lCiYEBMtK6rAAiy7OwC7U/QSbokiEzH0RafH7rb+5L5R/ii9/3kZCcKmgOIoPzkmeloDfg==,AgHuvmLAeIFYm4ObEBO2v9xTK6tjYfdh+x4kwULBpDNlUiW4kNNaeoeziRA7nlRvcSfxPlR070N/3qzBMu3EKZ2csQ==,AgDk/CzCL4XUobuNaLsvrH5s0COMKYBqY/18YRR0d7mIsVVYrKVGF+IWnEluhbLt+BoRBdvL5UElgroyORJpiKz06w==,,,,,2,AgH0nW+2h+vcOZgPe3uR7jEHmEPi+g4izQ3OIU9An2vekwbG1liBFgTo33pEhyXhNWPhGCbSb73sJ7pt0JLL+hhWMw==,AgHG039OnpvmllkV6QBsmoMdqISrRuW2q5M3jfUp5TUbU6F/3S2FK1iSVKWgTsI291re6lz6KH5d8rWrnoCAozhIeg==,AwGjmnLUMd42F7a/tsSkeqcxoHMAXNKdvF4kOXoAxmc6ZSxaUhzkGkcgNOO8SFNiWqTKgtZCffJ7hfI0voAUX0TD1w==,,,,,2,AwHfYRjQFscHzOvVozackTaM3sybOjyd2aLc4B+WQ7KiWHoGKkzQScoDiy8hiA2cJpv8ngfitTqJRLlyegvuM+Ietw==,AwAP92OqrJFpFmdrMUUx6FeFhwVLYtAsfw3sem2RYu7ljPry+uJnvluuzTvVaFhs8BAAD8VBFs1vqrSHyQEq8Ocsmw==,AwDNXg/JA4QXA6wu30DUE7peOk1a10aHbd38iwjN1Q0DKy3BqS36+EQKg5hbwELxN2+/Yu4UA1IKWYJI0zNs6TJUtA==,,,,,2,AwBWFv3ivyQz4CGIilJ7CVtpQGOs1tnIW+0uxQyiWIO3HDjJtfxPyQ1AJWPsBQ9eYmaoKmPnN+euPCm7bP0LxBL/Tg==,AwHg7AZb5DV5OJrl0omtKx2OqckXcQEUT8pZ+Bmo9AyULgL5HOq2AVU04qhvbdy0W4OMYqxF3uBwqT6dNhFptsKEKQ==,AwG9dyMbI5EI8UCXuj5JkQRMimcT1u6zCBAfmRvANtT54yDtC8KS6VeOr7h/NP4qrf/mbl5tMaePbkkHrc6E39ntsA==,,,,,2,AwHkMyCOJm/RlYOybGhX3DchR/wSN2L3PuXKalMszgk3WOCiWSpYlP3SOPLWvJTRQaTxoN+oA5IkCTvlp02+Mduaxg==,AgHhR8HjavXjnsy+rHptc/JSI5pLFjM0RczUygxTX7vqV/yqwZ280Rq7YpXKp2GBfiZvFf0qIQoWe4vx5DBxwvHkdA==,AwEf2yisEpflVm8R2X08SCJM89apu7tUFzbpndsTIt5o9/xdoXKomMUk9REz+yrpkd+jFhlkJMQHHVMhgjiWYCEdpQ==,,,,,2,AwBaIc8ZWFm4O9QO0ofJeS9Q7tki7CAscBXRDnajEp7rmKNgrpRyyu1ezSpborwaloWR9kDKPLdYVV8SNk2V/1EudA==,AwGE8MPAnPKKXF15EyrAx1bRinwgoqYVO4Junz5IXQjGLyQpSr5NwO/hqu5E5egHte20jm380Wn2Qy6GgKNiRLy/gQ==,AwCAOjOQNdMN5uIB0POFzYS/fpxZ0Q5KfhlP5fijNmc/daO5frSrwhgcMH5lMKL4EGjBI1p6JMe3fuMqb5t1ImeTBg==,,,,,2,AgARSg2izcK6iZLFe4YkIS6yZgnt8cd9DFqpQ37gNmcccZwBI+mpsaijTUPo1GT+QUD8zC+6qr/GrzG9q+q7BPxpVw==,AwGM/jFdtoNViQXxgqeL27ZKobjsfyeuXrx8re3UfIe3c4XN16srSpcTfxEZNXDKo1Ff9fRvDVBOwdS6XU2nvo++ng==,AwAtK0eOqcVfzkdJIIkk7BORWwSDTAjtx4aEXwyZ0bla+2rIWDgXi3U5xlgnjeXJNtGsLokkvvX92BOBIw9SuCGhnw==,2,AgCWAAWTW+7jv2a2lc4pGFnumEgyH59wSDRXEYUASCVB249JBmeKFWRKNFTQlph5hTR5Rb+YHFP/qvzmwU11Hs2b0w==,AgANdxpkN+DS4De3aokNjt+e/Ou8GT+p8pUJA+6LHrDBXAddoCR8KpeXW7mESokq6BTEVQXxU3TdqavRkqaeFmpXkw==,AgDDDSEO3e8DCsm1n6dbj2PB9Z/tUzluDCt/utdSLrYFfdFY+Y5K7Vxo9F5/17CzaUbX172SGLt8TfCfuYBrtupgAg==,2,AgB1OG6bj+6kfRvLj8yjMQbl80FdZHZrRVRUfNVRwvjvvbRa5f9s9fNZ8J0a3s3hH+RyfZmGJ4Ufjh5mMiQkwiur6w==,AwBX4GFZNjUdtRdwtWgxyQz7h8Hk0ztaZeM8/e+8ll0o+RjYN+CNP8+lnXEw7wpuC4wcMX05mrjPvHOuy0hOFVNkhQ==,AgDf3el4vbMYIAFEH9WV151/uzl+gkfTQ79T8Iu4KxEVo6UJvCfqkjETlR6aXUJiqaCbSV5odMT50lURsmfgALf6AQ==,,,,,2,AgENmnviZkgQWXZ5QDgCCE2zq0IiXURTqK2UNPtEg3o64yjlrQQUd2rO/KgKolyCQcKYTVoMj7k2VeCSSVRr8KGC7w==,AwFv6ZJzhpV/Ms00QkrkNiCKVRFczn/yqnkiBFUHC1RQv3tqzzYSEUeXmDHmm0/kEBtnfgRWjHQm9zxS8Jzy7srDLQ==,AwB8aS5KA1dFLKCA1a/7Wsjhef+6kkNAB/GO9AOvRZbFW/dhl5fx04Alh+g78fwcVMX+eEIEJgSyH0jhv7kmiQh4ew==,,,,,2,AgG8fXrCra6UgP5G89TaE6PH5E0TANb/PJPbKwzdi78XEHRUmcTz6PIhYtclTmcdq5TH0IwQv+ra5ppf4qR4LtkGig==,AgEKzsmZrikmXzJywMpzkAdG9hAPlOiRY9oXKf4Sh50CL8btUItjfVJWg3ubNhotzJK+fnNlRrcMkWQEBD/aGKpf8A==,AwFi+2cGpuvVdR+pT1P9Ur8jAkzmjJK2XmUQbFpyMi5Jc9a5/fPnBWCxmTX8CH5wks0PicYC6rzZC3NEIt0EoM1Qfg==,,,,,2,AgHbTZgTAv8lLBsoX06Hkm9XPU+crlRqKl0xL8v18xeUUPY1YAvUYf2OAutmTtPRycXyzrDWSpn2h5xfk/dtq/BICg==,AwAjPydfoUhfSVFKWNI4Ox4a/psZGDIGzEEWh9HyVtAmjdNb5ctr/S6z+akiRfPlNCsVf6TdkzJ2Su6BO4sOX/SHKA==,AwBVmjn7AitCe4zQ/Fl0sYW2XqXkJxJBDviwl9jYhoq29v90n9escDsiA3Cy+1uW69MezdZBEszFdEWlX0EzbQZQ6A==,,,,,2,AwCG0RBHwHuame/1G7qtUjmwz0gkCP1tyZiEgm7aTKpsCjt7UsMirMmx/ZrNlvSzkGuVbRO97Szzr+9fo4baH1rEZA==,AwHyMK/q8FUUvoHTt7O7KJUxYz/ZHF6SntbmKfbygLVw4HWc/eFic4DXHKbEGWvrMO5b37GksqxfQHc2xlAuj8ZRIw==,AgB5x0BxqiMYxRvzlq0+/RkbOuNA7hYuMG+7D6wlMOxSskgqyfwA0MfW+AkXFqnqfqsoJRpDy15bABWhH6MIdJsPEA==,,,,,2,AwAS/nCH0pcrsllSy2duadUs1rMtL6vtz7VTUAVhn1/YYlZ068ysBi1Mdz9gJFewdyeGLnFhyg+W15rFB317nyeGHg==,AwBh6f5UVRMM5ekWqkrx6XiVOK/BL0TinjsSLna8BjkQPXU2DvGxiKPhA03/GtBdEpihEX4bVaHQhiOupTf7wh6bCQ==,AgGPDFH8Kv8hz2aUJ955nHu8NiAoTmDjqhlXuJ1T83h+O0sc2GieLhmXmpEjxjEAyxkqjb2nFxvDhi+YGs4MqI4S5A==,,,,,2,AwDqwFv6bqpM/6PTCJ/wgRALYVT+Rn54HIB2icP6ODNexaoqILBS9p1k1QENbQsBZ9LmJJwngRQXi07Q4P8br76Qfw==,AgG8yTiO8tFWZqQELBr+Zt1fKKA3bl08836nUEEpD55Sid0ZywCrWe+Va58xbMIWscISLPbBvXIdO48ZgoHsLgA7Jw==,AwCI1Ud0GJLnS86mSC58HNB91lH9kPpQbufGn+WJErGxAQubtSFBc3rnT0SNE3CbW+1MPjYBbdCgxpHjN/iQf96++w==,,,,;2,AgB9YhljgPngkwwYTBMUaMGR+rWMjvlK0tgrzkG8OT9NGNJfaaLP6AzfhWrT5oe9NRnabU25pQvDhAIGZCajDy8N2g==,AwE5Irce6LOSxfLgn4PZh1PeDPjAHb5wPTNfmQoWFY83dNQLYN44FupJaQRRUqBqyGNB0SL76GKzr8G9tKLAHOxRSQ==,BAG5iWHEhlWkvtyAlQy4bwKa1iNRzJq8WJTh2GE9oT4DeJRmO1pCHy9P+9YktDT+4RgV9s8AzOYih1LmHW14uP27HQGg1nTdHyab9/nFUe9BFxIi8xQTPG8et9++5I+gKIeWGCXBL31sBhpaMewvVhDjl2d3+7H2PUv9IY3lyIRFA6N16A==,2,AwAPIoQJqSbXFKXQAIG9J+/+/41NLX0rDINImk4eBgAnZ4V0R8YSqkHD3nd0IrEMyK7OpkCXkxTzOlwJlfEfti+vew==,AwAQ8KdMYsEOqM3eyGv/XbHnGf+TqCAG39Gz/juBcioOOJmLOFjl6oCITozJOyPusbTRXZ4eIwgQYkl12mt6saTpgQ==,BACkTO+3rRUF81w5yzZskFiIRyVxc6sdJfDFX6C+Jy5A+s/sfHskrFx2GYNklZaYztP0/B64a6v6HvFWVz8GuYj2wgHhiCL+QwLThFpaRxh8kUMSrt4VuXSIjtHwRXzhSdEbG2T6C/+CJZxIFh/ugEV9SS51l1HrLdnJDb2Kdu3QC3lRkQ==;2,AgC99VyiRLJ2kFf3oCkb+JPVV7B4tXVGI2NVT7fdKtB+gEjCcdkbS5YEXm/Sq6NAJEOKilMTFUDLYFDOe+7JHj/4pw==,AgAbT080sbKVHH9lim3tVCYS4cMz+rLownRKqtYZ7AfR8qy819R1GFywQ0kImgcdjEey5C4m0OPTwgtkO+C5uWtKfQ==,BADKYt9i0zTJeh3H8t6d8pZdncz3f28v1oWrssLZwAutkIcF3XKkPNmK3X75K3sImUSch//IIRIB1Yi5/MrZZeDrxQHhQZEg6AA8bDxgt0JdOEX2t4crzDu3gW5I8y+Ya0fZr1RmxvfMr2UxRhSsNsz949v/g+GPfsrEfDqIWTiNlJfwyg==,2,AgEPMjgCfgGRaZ/5I1hLqDoJ8nXYeTlnt9YeK4K8w+HnRAoAD09zkPcLMWajIjupe/CUFrHz00sAvs+vOPeKxGrLiQ==,AgDy7g2DcDwmIW7LtTTteHExD/cyP4BMWimEAM1RfAd/Y6P8XkmRGgglfdLJ7RGTR2YIMB1lxQ/LQUbmzyjTiiuWow==,BAHJ7oHVr/0wweyGlg4f9Dqmx8h0m35jMdrEFwVY8l/ENKpOTxG/oh9vAvo1uw39wUOn4CWGBmAFE2lsvWFW18gt+gHPFt5/9ihUFN9mtxFLT1Q3W4Uf8IdekHPMbNlxEp1wId7EH3XsAox3Eo8b3XnYpwfsAXoDwQa2wyiO5h104Ptvsg==;2,AwClCMGcHdd7rD8sYDC/GXyAtLmZ/JI4v+aOK4PXzjWJi/zvcsXT5dJUOm9bW6AAtzgOKPd0WwU3hSytJ+ATy146Uw==,AgADzN6ysOIC9GAuMF9suYNfkR027H/9OcpeVJb4HRHfZ/EOmQWSdJmJFw3F/NLUrreNnFCvuF1+1bbmHa3tvznjeA==,BADwaRJF9z3DW7HE3qhGu6Yd9d2WBfWy8opd7Mhkg7TpAQsn9oA3UcpCarn4DMSnVGG94Y3Pxsj5vlm5G7GMKiGoxAERnETH6pVgBxhtrnBU6l4vHl+X4rd8I/zheZiG0EFKJza41rmwKHTY4+42PJ8/3Y2rCanbY1RSAJEgiZR89k6nGg==,2,AgCK80PhKSC23aVKQ8uYm+79GWZiwpbV5lc8Fzcpwu8hdKGAMH4f62Y//cmrQmCIltm03PTVPMn6rMwkfoz+9M2LDQ==,AgH5aXThIKUjENFTGCGwcTRql7xIe8vR9h78KikTYkD8itQ+YBDrnx5OaNyWRjpIJHAZ2B61W2aVjZ5Rmo0d1B1Pcw==,BAAEZsEKw59QSRxN1QmWcx4X2LaK4+zBuawh+2CIRPljWyxK6XhIM6EEalr44Klce4OTK2QbxT5n3Kjnh5jNuwCOawAH/wiNrx09+HY8SZrRjCjv1+Lnicybrqg/IFDNoAGT5aguaGRIMmGOLe0QFJr0T0iW3RnYGlmSd/r6ex8+MpOgLw==</decrypt_val></awr_decrypt>";
- String replyString = connectSPU.sendReceive(Type.DECRYPT, requestString);
- System.out.println("REQUEST URL: " + requestString);
- System.out.println("REPLY: " + replyString);
- ReplyDecryption reply = (new XMLParserDecrypt()).stringToReply(replyString);
- return reply;
- }
-
- public ReplyMaterial callServiceMaterial(RequestMaterial rqtMaterial) {
- String requestString = URLParserMaterial.requestToString(rqtMaterial);
- String replyString = connectSPU.sendReceive(Type.MATERIAL, requestString);
-
- System.out.println("Material request:");
- System.out.println(replyString);
-
- ReplyMaterial reply = (new XMLParserMaterial()).stringToReply(replyString);
- return reply;
- }
-
- public ReplySurvey callServiceSurvey(){
-
-// String replyString = connectSPU.sendReceive(Type.SURVEY_Q,"");
- //4::What's your name?::1;5::Where are you from?::2;6::How old are you?::3;7::What's your name?::1;8::Where are you from?::2;9::How old are you?::3;10::What's your name?::1;11::Where are you from?::2;12::How old are you?::3;13::What's your name?::1;14::Where are you from?::2;15::How old are you?::3
- String replyString ="<awr_survey><v_questions>1::What's your name?::1;2::Where are you from?::2;3::How old are you?::3;4::What's your name?::1;5::Where are you from?::2;6::How old are you?::3;7::What's your name?::1;8::Where are you from?::2;9::How old are you?::3;10::What's your name?::1;11::Where are you from?::2;12::How old are you?::3;13::What's your name?::1;14::Where are you from?::2;15::How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?How old are you?::3;</v_questions><v_locations>50::Lausanne;60::Basel;70::Zurich</v_locations></awr_survey>";
- ReplySurvey reply = (new XMLParserSurvey()).stringToReply(replyString);
- return reply;
- }
-
- public String callServiceSurveyAnswer(String survey, String id_loc, String id_p){
-
- StringBuilder sb = new StringBuilder();
- sb.append("id_p=").append(id_p);
- sb.append("&timestamp=").append(System.currentTimeMillis());
- sb.append("&id_loc=").append(id_loc);
- sb.append("&answer=").append(survey);
- String replyString = connectSPU.sendReceive(Type.SURVEY_A, sb.toString());
- return replyString;
-
- }
-
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/18/f09cad3583a8001419a38fd8608ce0e6 b/.metadata/.plugins/org.eclipse.core.resources/.history/18/f09cad3583a8001419a38fd8608ce0e6
deleted file mode 100644
index b9bd4e8..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/18/f09cad3583a8001419a38fd8608ce0e6
+++ /dev/null
@@ -1,59 +0,0 @@
-package io;
-
-import io.serializer.url.URLParserDecrypt;
-import io.serializer.url.URLParserMaterial;
-import io.serializer.xml.XMLParserDecrypt;
-import io.serializer.xml.XMLParserMaterial;
-import io.serializer.xml.XMLParserSurvey;
-
-import java.util.logging.Logger;
-
-import framework.Type;
-import framework.reply.ReplyDecryption;
-import framework.reply.ReplyMaterial;
-import framework.reply.ReplySurvey;
-import framework.request.RequestDecryption;
-import framework.request.RequestMaterial;
-
-public class CommAdapter {
-
- @SuppressWarnings("unused")
- private static final Logger LOGGER = Logger.getLogger(CommAdapter.class.getName());
-
- public ClientConnection connectSPU = null;
-
- public CommAdapter(ClientConnection connectSPU) {
- this.connectSPU = connectSPU;
- }
-
- public ReplyDecryption callServiceDecrypt(RequestDecryption rqtDecrypt) {
- String requestString = URLParserDecrypt.requestToString(rqtDecrypt);
-// String replyString = "<awr_decrypt><patient>30351</patient><v_timestamp>1417188729390</v_timestamp><decrypt_val>,,,,,,,,,,,,,,,,2,AwHR3OO0/hkwgEHluLDFLtn4aaTBAwBEJjJpMegGa29ASgtyt1ha2OOyxvEvNgkIaY0xWXtTmqrqhSBKDG6J7Lps0g==,AwE/oifhonvUZDA4mqRK8K1WCkoepEuL9SidjdFXMNNZQXCMUvVN6pBUYVFgJeFX6mT2jruK8ic3y6yI14PfKl/Pvg==,AgBHs6HGF9AYNc5RlFTGv025WEaT91i/MPy+HXqhvHOrp0Ol9/aKyvv2BgAzeAdsdSEbVs2sahiyL/kbKjeUoI9tsA==,,,,,,,,,,,,,2,AgHIofEmf4aJMLBnKAY3/8WcLXUETF4y/68fzZR6hsS5btZTyI0E4ZTltDzV6hBzIT14cC4S/BMclo1aoLt5C9f+Cg==,AgDOXZAZAwO4KXslqU1wKctrVlH8CcGvpO8gGrPl3YjrY8SR3a6gStvZvjcUKXhvtDkRwSLAIkD3lFrKSXWestHSqQ==,AgG7Y5so9ZTRng2Xm3ziWx3+7zfaVLkIJ2v7g+qEUx5Vl2/udDOcg/was8W6qbKYeo/W0EGTlNXKTOdIatGVxyuoZA==,,,,,2,AgDAVy0/nE6X4iAengG9lCiYEBMtK6rAAiy7OwC7U/QSbokiEzH0RafH7rb+5L5R/ii9/3kZCcKmgOIoPzkmeloDfg==,AgHuvmLAeIFYm4ObEBO2v9xTK6tjYfdh+x4kwULBpDNlUiW4kNNaeoeziRA7nlRvcSfxPlR070N/3qzBMu3EKZ2csQ==,AgDk/CzCL4XUobuNaLsvrH5s0COMKYBqY/18YRR0d7mIsVVYrKVGF+IWnEluhbLt+BoRBdvL5UElgroyORJpiKz06w==,,,,,2,AgH0nW+2h+vcOZgPe3uR7jEHmEPi+g4izQ3OIU9An2vekwbG1liBFgTo33pEhyXhNWPhGCbSb73sJ7pt0JLL+hhWMw==,AgHG039OnpvmllkV6QBsmoMdqISrRuW2q5M3jfUp5TUbU6F/3S2FK1iSVKWgTsI291re6lz6KH5d8rWrnoCAozhIeg==,AwGjmnLUMd42F7a/tsSkeqcxoHMAXNKdvF4kOXoAxmc6ZSxaUhzkGkcgNOO8SFNiWqTKgtZCffJ7hfI0voAUX0TD1w==,,,,,2,AwHfYRjQFscHzOvVozackTaM3sybOjyd2aLc4B+WQ7KiWHoGKkzQScoDiy8hiA2cJpv8ngfitTqJRLlyegvuM+Ietw==,AwAP92OqrJFpFmdrMUUx6FeFhwVLYtAsfw3sem2RYu7ljPry+uJnvluuzTvVaFhs8BAAD8VBFs1vqrSHyQEq8Ocsmw==,AwDNXg/JA4QXA6wu30DUE7peOk1a10aHbd38iwjN1Q0DKy3BqS36+EQKg5hbwELxN2+/Yu4UA1IKWYJI0zNs6TJUtA==,,,,,2,AwBWFv3ivyQz4CGIilJ7CVtpQGOs1tnIW+0uxQyiWIO3HDjJtfxPyQ1AJWPsBQ9eYmaoKmPnN+euPCm7bP0LxBL/Tg==,AwHg7AZb5DV5OJrl0omtKx2OqckXcQEUT8pZ+Bmo9AyULgL5HOq2AVU04qhvbdy0W4OMYqxF3uBwqT6dNhFptsKEKQ==,AwG9dyMbI5EI8UCXuj5JkQRMimcT1u6zCBAfmRvANtT54yDtC8KS6VeOr7h/NP4qrf/mbl5tMaePbkkHrc6E39ntsA==,,,,,2,AwHkMyCOJm/RlYOybGhX3DchR/wSN2L3PuXKalMszgk3WOCiWSpYlP3SOPLWvJTRQaTxoN+oA5IkCTvlp02+Mduaxg==,AgHhR8HjavXjnsy+rHptc/JSI5pLFjM0RczUygxTX7vqV/yqwZ280Rq7YpXKp2GBfiZvFf0qIQoWe4vx5DBxwvHkdA==,AwEf2yisEpflVm8R2X08SCJM89apu7tUFzbpndsTIt5o9/xdoXKomMUk9REz+yrpkd+jFhlkJMQHHVMhgjiWYCEdpQ==,,,,,2,AwBaIc8ZWFm4O9QO0ofJeS9Q7tki7CAscBXRDnajEp7rmKNgrpRyyu1ezSpborwaloWR9kDKPLdYVV8SNk2V/1EudA==,AwGE8MPAnPKKXF15EyrAx1bRinwgoqYVO4Junz5IXQjGLyQpSr5NwO/hqu5E5egHte20jm380Wn2Qy6GgKNiRLy/gQ==,AwCAOjOQNdMN5uIB0POFzYS/fpxZ0Q5KfhlP5fijNmc/daO5frSrwhgcMH5lMKL4EGjBI1p6JMe3fuMqb5t1ImeTBg==,,,,,2,AgARSg2izcK6iZLFe4YkIS6yZgnt8cd9DFqpQ37gNmcccZwBI+mpsaijTUPo1GT+QUD8zC+6qr/GrzG9q+q7BPxpVw==,AwGM/jFdtoNViQXxgqeL27ZKobjsfyeuXrx8re3UfIe3c4XN16srSpcTfxEZNXDKo1Ff9fRvDVBOwdS6XU2nvo++ng==,AwAtK0eOqcVfzkdJIIkk7BORWwSDTAjtx4aEXwyZ0bla+2rIWDgXi3U5xlgnjeXJNtGsLokkvvX92BOBIw9SuCGhnw==,2,AgCWAAWTW+7jv2a2lc4pGFnumEgyH59wSDRXEYUASCVB249JBmeKFWRKNFTQlph5hTR5Rb+YHFP/qvzmwU11Hs2b0w==,AgANdxpkN+DS4De3aokNjt+e/Ou8GT+p8pUJA+6LHrDBXAddoCR8KpeXW7mESokq6BTEVQXxU3TdqavRkqaeFmpXkw==,AgDDDSEO3e8DCsm1n6dbj2PB9Z/tUzluDCt/utdSLrYFfdFY+Y5K7Vxo9F5/17CzaUbX172SGLt8TfCfuYBrtupgAg==,2,AgB1OG6bj+6kfRvLj8yjMQbl80FdZHZrRVRUfNVRwvjvvbRa5f9s9fNZ8J0a3s3hH+RyfZmGJ4Ufjh5mMiQkwiur6w==,AwBX4GFZNjUdtRdwtWgxyQz7h8Hk0ztaZeM8/e+8ll0o+RjYN+CNP8+lnXEw7wpuC4wcMX05mrjPvHOuy0hOFVNkhQ==,AgDf3el4vbMYIAFEH9WV151/uzl+gkfTQ79T8Iu4KxEVo6UJvCfqkjETlR6aXUJiqaCbSV5odMT50lURsmfgALf6AQ==,,,,,2,AgENmnviZkgQWXZ5QDgCCE2zq0IiXURTqK2UNPtEg3o64yjlrQQUd2rO/KgKolyCQcKYTVoMj7k2VeCSSVRr8KGC7w==,AwFv6ZJzhpV/Ms00QkrkNiCKVRFczn/yqnkiBFUHC1RQv3tqzzYSEUeXmDHmm0/kEBtnfgRWjHQm9zxS8Jzy7srDLQ==,AwB8aS5KA1dFLKCA1a/7Wsjhef+6kkNAB/GO9AOvRZbFW/dhl5fx04Alh+g78fwcVMX+eEIEJgSyH0jhv7kmiQh4ew==,,,,,2,AgG8fXrCra6UgP5G89TaE6PH5E0TANb/PJPbKwzdi78XEHRUmcTz6PIhYtclTmcdq5TH0IwQv+ra5ppf4qR4LtkGig==,AgEKzsmZrikmXzJywMpzkAdG9hAPlOiRY9oXKf4Sh50CL8btUItjfVJWg3ubNhotzJK+fnNlRrcMkWQEBD/aGKpf8A==,AwFi+2cGpuvVdR+pT1P9Ur8jAkzmjJK2XmUQbFpyMi5Jc9a5/fPnBWCxmTX8CH5wks0PicYC6rzZC3NEIt0EoM1Qfg==,,,,,2,AgHbTZgTAv8lLBsoX06Hkm9XPU+crlRqKl0xL8v18xeUUPY1YAvUYf2OAutmTtPRycXyzrDWSpn2h5xfk/dtq/BICg==,AwAjPydfoUhfSVFKWNI4Ox4a/psZGDIGzEEWh9HyVtAmjdNb5ctr/S6z+akiRfPlNCsVf6TdkzJ2Su6BO4sOX/SHKA==,AwBVmjn7AitCe4zQ/Fl0sYW2XqXkJxJBDviwl9jYhoq29v90n9escDsiA3Cy+1uW69MezdZBEszFdEWlX0EzbQZQ6A==,,,,,2,AwCG0RBHwHuame/1G7qtUjmwz0gkCP1tyZiEgm7aTKpsCjt7UsMirMmx/ZrNlvSzkGuVbRO97Szzr+9fo4baH1rEZA==,AwHyMK/q8FUUvoHTt7O7KJUxYz/ZHF6SntbmKfbygLVw4HWc/eFic4DXHKbEGWvrMO5b37GksqxfQHc2xlAuj8ZRIw==,AgB5x0BxqiMYxRvzlq0+/RkbOuNA7hYuMG+7D6wlMOxSskgqyfwA0MfW+AkXFqnqfqsoJRpDy15bABWhH6MIdJsPEA==,,,,,2,AwAS/nCH0pcrsllSy2duadUs1rMtL6vtz7VTUAVhn1/YYlZ068ysBi1Mdz9gJFewdyeGLnFhyg+W15rFB317nyeGHg==,AwBh6f5UVRMM5ekWqkrx6XiVOK/BL0TinjsSLna8BjkQPXU2DvGxiKPhA03/GtBdEpihEX4bVaHQhiOupTf7wh6bCQ==,AgGPDFH8Kv8hz2aUJ955nHu8NiAoTmDjqhlXuJ1T83h+O0sc2GieLhmXmpEjxjEAyxkqjb2nFxvDhi+YGs4MqI4S5A==,,,,,2,AwDqwFv6bqpM/6PTCJ/wgRALYVT+Rn54HIB2icP6ODNexaoqILBS9p1k1QENbQsBZ9LmJJwngRQXi07Q4P8br76Qfw==,AgG8yTiO8tFWZqQELBr+Zt1fKKA3bl08836nUEEpD55Sid0ZywCrWe+Va58xbMIWscISLPbBvXIdO48ZgoHsLgA7Jw==,AwCI1Ud0GJLnS86mSC58HNB91lH9kPpQbufGn+WJErGxAQubtSFBc3rnT0SNE3CbW+1MPjYBbdCgxpHjN/iQf96++w==,,,,;2,AgB9YhljgPngkwwYTBMUaMGR+rWMjvlK0tgrzkG8OT9NGNJfaaLP6AzfhWrT5oe9NRnabU25pQvDhAIGZCajDy8N2g==,AwE5Irce6LOSxfLgn4PZh1PeDPjAHb5wPTNfmQoWFY83dNQLYN44FupJaQRRUqBqyGNB0SL76GKzr8G9tKLAHOxRSQ==,BAG5iWHEhlWkvtyAlQy4bwKa1iNRzJq8WJTh2GE9oT4DeJRmO1pCHy9P+9YktDT+4RgV9s8AzOYih1LmHW14uP27HQGg1nTdHyab9/nFUe9BFxIi8xQTPG8et9++5I+gKIeWGCXBL31sBhpaMewvVhDjl2d3+7H2PUv9IY3lyIRFA6N16A==,2,AwAPIoQJqSbXFKXQAIG9J+/+/41NLX0rDINImk4eBgAnZ4V0R8YSqkHD3nd0IrEMyK7OpkCXkxTzOlwJlfEfti+vew==,AwAQ8KdMYsEOqM3eyGv/XbHnGf+TqCAG39Gz/juBcioOOJmLOFjl6oCITozJOyPusbTRXZ4eIwgQYkl12mt6saTpgQ==,BACkTO+3rRUF81w5yzZskFiIRyVxc6sdJfDFX6C+Jy5A+s/sfHskrFx2GYNklZaYztP0/B64a6v6HvFWVz8GuYj2wgHhiCL+QwLThFpaRxh8kUMSrt4VuXSIjtHwRXzhSdEbG2T6C/+CJZxIFh/ugEV9SS51l1HrLdnJDb2Kdu3QC3lRkQ==;2,AgC99VyiRLJ2kFf3oCkb+JPVV7B4tXVGI2NVT7fdKtB+gEjCcdkbS5YEXm/Sq6NAJEOKilMTFUDLYFDOe+7JHj/4pw==,AgAbT080sbKVHH9lim3tVCYS4cMz+rLownRKqtYZ7AfR8qy819R1GFywQ0kImgcdjEey5C4m0OPTwgtkO+C5uWtKfQ==,BADKYt9i0zTJeh3H8t6d8pZdncz3f28v1oWrssLZwAutkIcF3XKkPNmK3X75K3sImUSch//IIRIB1Yi5/MrZZeDrxQHhQZEg6AA8bDxgt0JdOEX2t4crzDu3gW5I8y+Ya0fZr1RmxvfMr2UxRhSsNsz949v/g+GPfsrEfDqIWTiNlJfwyg==,2,AgEPMjgCfgGRaZ/5I1hLqDoJ8nXYeTlnt9YeK4K8w+HnRAoAD09zkPcLMWajIjupe/CUFrHz00sAvs+vOPeKxGrLiQ==,AgDy7g2DcDwmIW7LtTTteHExD/cyP4BMWimEAM1RfAd/Y6P8XkmRGgglfdLJ7RGTR2YIMB1lxQ/LQUbmzyjTiiuWow==,BAHJ7oHVr/0wweyGlg4f9Dqmx8h0m35jMdrEFwVY8l/ENKpOTxG/oh9vAvo1uw39wUOn4CWGBmAFE2lsvWFW18gt+gHPFt5/9ihUFN9mtxFLT1Q3W4Uf8IdekHPMbNlxEp1wId7EH3XsAox3Eo8b3XnYpwfsAXoDwQa2wyiO5h104Ptvsg==;2,AwClCMGcHdd7rD8sYDC/GXyAtLmZ/JI4v+aOK4PXzjWJi/zvcsXT5dJUOm9bW6AAtzgOKPd0WwU3hSytJ+ATy146Uw==,AgADzN6ysOIC9GAuMF9suYNfkR027H/9OcpeVJb4HRHfZ/EOmQWSdJmJFw3F/NLUrreNnFCvuF1+1bbmHa3tvznjeA==,BADwaRJF9z3DW7HE3qhGu6Yd9d2WBfWy8opd7Mhkg7TpAQsn9oA3UcpCarn4DMSnVGG94Y3Pxsj5vlm5G7GMKiGoxAERnETH6pVgBxhtrnBU6l4vHl+X4rd8I/zheZiG0EFKJza41rmwKHTY4+42PJ8/3Y2rCanbY1RSAJEgiZR89k6nGg==,2,AgCK80PhKSC23aVKQ8uYm+79GWZiwpbV5lc8Fzcpwu8hdKGAMH4f62Y//cmrQmCIltm03PTVPMn6rMwkfoz+9M2LDQ==,AgH5aXThIKUjENFTGCGwcTRql7xIe8vR9h78KikTYkD8itQ+YBDrnx5OaNyWRjpIJHAZ2B61W2aVjZ5Rmo0d1B1Pcw==,BAAEZsEKw59QSRxN1QmWcx4X2LaK4+zBuawh+2CIRPljWyxK6XhIM6EEalr44Klce4OTK2QbxT5n3Kjnh5jNuwCOawAH/wiNrx09+HY8SZrRjCjv1+Lnicybrqg/IFDNoAGT5aguaGRIMmGOLe0QFJr0T0iW3RnYGlmSd/r6ex8+MpOgLw==</decrypt_val></awr_decrypt>";
- String replyString = connectSPU.sendReceive(Type.DECRYPT, requestString);
- System.out.println("REQUEST URL: " + requestString);
- System.out.println("REPLY: " + replyString);
- ReplyDecryption reply = (new XMLParserDecrypt()).stringToReply(replyString);
- return reply;
- }
-
- public ReplyMaterial callServiceMaterial(RequestMaterial rqtMaterial) {
- String requestString = URLParserMaterial.requestToString(rqtMaterial);
- String replyString = connectSPU.sendReceive(Type.MATERIAL, requestString);
-
- System.out.println("Material request:");
- System.out.println(replyString);
-
- ReplyMaterial reply = (new XMLParserMaterial()).stringToReply(replyString);
- return reply;
- }
-
- public ReplySurvey callServiceSurvey(){
-
- String replyString = connectSPU.sendReceive(Type.SURVEY_Q,"");
- //4::What's your name?::1;5::Where are you from?::2;6::How old are you?::3;7::What's your name?::1;8::Where are you from?::2;9::How old are you?::3;10::What's your name?::1;11::Where are you from?::2;12::How old are you?::3;13::What's your name?::1;14::Where are you from?::2;15::How old are you?::3
-// String replyString ="<awr_survey><v_questions>1::What's your name?::1;2::Where are you from?::2;3::How old are you?::3</v_questions><v_locations>Lausanne;Basel;Zurich</v_locations></awr_survey>";
- ReplySurvey reply = (new XMLParserSurvey()).stringToReply(replyString);
- return reply;
- }
-
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/1a/a0f03c2dc2a70014153e8739f9242ea5 b/.metadata/.plugins/org.eclipse.core.resources/.history/1a/a0f03c2dc2a70014153e8739f9242ea5
deleted file mode 100644
index c3ca62c..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/1a/a0f03c2dc2a70014153e8739f9242ea5
+++ /dev/null
@@ -1,58 +0,0 @@
-package io;
-
-import io.serializer.url.URLParserDecrypt;
-import io.serializer.url.URLParserMaterial;
-import io.serializer.xml.XMLParserDecrypt;
-import io.serializer.xml.XMLParserMaterial;
-import io.serializer.xml.XMLParserSurvey;
-
-import java.util.logging.Logger;
-
-import framework.Type;
-import framework.reply.ReplyDecryption;
-import framework.reply.ReplyMaterial;
-import framework.reply.ReplySurvey;
-import framework.request.RequestDecryption;
-import framework.request.RequestMaterial;
-
-public class CommAdapter {
-
- @SuppressWarnings("unused")
- private static final Logger LOGGER = Logger.getLogger(CommAdapter.class.getName());
-
- public ClientConnection connectSPU = null;
-
- public CommAdapter(ClientConnection connectSPU) {
- this.connectSPU = connectSPU;
- }
-
- public ReplyDecryption callServiceDecrypt(RequestDecryption rqtDecrypt) {
- String requestString = URLParserDecrypt.requestToString(rqtDecrypt);
-// String replyString = "<awr_decrypt><patient>30351</patient><v_timestamp>1417188729390</v_timestamp><decrypt_val>,,,,,,,,,,,,,,,,2,AwHR3OO0/hkwgEHluLDFLtn4aaTBAwBEJjJpMegGa29ASgtyt1ha2OOyxvEvNgkIaY0xWXtTmqrqhSBKDG6J7Lps0g==,AwE/oifhonvUZDA4mqRK8K1WCkoepEuL9SidjdFXMNNZQXCMUvVN6pBUYVFgJeFX6mT2jruK8ic3y6yI14PfKl/Pvg==,AgBHs6HGF9AYNc5RlFTGv025WEaT91i/MPy+HXqhvHOrp0Ol9/aKyvv2BgAzeAdsdSEbVs2sahiyL/kbKjeUoI9tsA==,,,,,,,,,,,,,2,AgHIofEmf4aJMLBnKAY3/8WcLXUETF4y/68fzZR6hsS5btZTyI0E4ZTltDzV6hBzIT14cC4S/BMclo1aoLt5C9f+Cg==,AgDOXZAZAwO4KXslqU1wKctrVlH8CcGvpO8gGrPl3YjrY8SR3a6gStvZvjcUKXhvtDkRwSLAIkD3lFrKSXWestHSqQ==,AgG7Y5so9ZTRng2Xm3ziWx3+7zfaVLkIJ2v7g+qEUx5Vl2/udDOcg/was8W6qbKYeo/W0EGTlNXKTOdIatGVxyuoZA==,,,,,2,AgDAVy0/nE6X4iAengG9lCiYEBMtK6rAAiy7OwC7U/QSbokiEzH0RafH7rb+5L5R/ii9/3kZCcKmgOIoPzkmeloDfg==,AgHuvmLAeIFYm4ObEBO2v9xTK6tjYfdh+x4kwULBpDNlUiW4kNNaeoeziRA7nlRvcSfxPlR070N/3qzBMu3EKZ2csQ==,AgDk/CzCL4XUobuNaLsvrH5s0COMKYBqY/18YRR0d7mIsVVYrKVGF+IWnEluhbLt+BoRBdvL5UElgroyORJpiKz06w==,,,,,2,AgH0nW+2h+vcOZgPe3uR7jEHmEPi+g4izQ3OIU9An2vekwbG1liBFgTo33pEhyXhNWPhGCbSb73sJ7pt0JLL+hhWMw==,AgHG039OnpvmllkV6QBsmoMdqISrRuW2q5M3jfUp5TUbU6F/3S2FK1iSVKWgTsI291re6lz6KH5d8rWrnoCAozhIeg==,AwGjmnLUMd42F7a/tsSkeqcxoHMAXNKdvF4kOXoAxmc6ZSxaUhzkGkcgNOO8SFNiWqTKgtZCffJ7hfI0voAUX0TD1w==,,,,,2,AwHfYRjQFscHzOvVozackTaM3sybOjyd2aLc4B+WQ7KiWHoGKkzQScoDiy8hiA2cJpv8ngfitTqJRLlyegvuM+Ietw==,AwAP92OqrJFpFmdrMUUx6FeFhwVLYtAsfw3sem2RYu7ljPry+uJnvluuzTvVaFhs8BAAD8VBFs1vqrSHyQEq8Ocsmw==,AwDNXg/JA4QXA6wu30DUE7peOk1a10aHbd38iwjN1Q0DKy3BqS36+EQKg5hbwELxN2+/Yu4UA1IKWYJI0zNs6TJUtA==,,,,,2,AwBWFv3ivyQz4CGIilJ7CVtpQGOs1tnIW+0uxQyiWIO3HDjJtfxPyQ1AJWPsBQ9eYmaoKmPnN+euPCm7bP0LxBL/Tg==,AwHg7AZb5DV5OJrl0omtKx2OqckXcQEUT8pZ+Bmo9AyULgL5HOq2AVU04qhvbdy0W4OMYqxF3uBwqT6dNhFptsKEKQ==,AwG9dyMbI5EI8UCXuj5JkQRMimcT1u6zCBAfmRvANtT54yDtC8KS6VeOr7h/NP4qrf/mbl5tMaePbkkHrc6E39ntsA==,,,,,2,AwHkMyCOJm/RlYOybGhX3DchR/wSN2L3PuXKalMszgk3WOCiWSpYlP3SOPLWvJTRQaTxoN+oA5IkCTvlp02+Mduaxg==,AgHhR8HjavXjnsy+rHptc/JSI5pLFjM0RczUygxTX7vqV/yqwZ280Rq7YpXKp2GBfiZvFf0qIQoWe4vx5DBxwvHkdA==,AwEf2yisEpflVm8R2X08SCJM89apu7tUFzbpndsTIt5o9/xdoXKomMUk9REz+yrpkd+jFhlkJMQHHVMhgjiWYCEdpQ==,,,,,2,AwBaIc8ZWFm4O9QO0ofJeS9Q7tki7CAscBXRDnajEp7rmKNgrpRyyu1ezSpborwaloWR9kDKPLdYVV8SNk2V/1EudA==,AwGE8MPAnPKKXF15EyrAx1bRinwgoqYVO4Junz5IXQjGLyQpSr5NwO/hqu5E5egHte20jm380Wn2Qy6GgKNiRLy/gQ==,AwCAOjOQNdMN5uIB0POFzYS/fpxZ0Q5KfhlP5fijNmc/daO5frSrwhgcMH5lMKL4EGjBI1p6JMe3fuMqb5t1ImeTBg==,,,,,2,AgARSg2izcK6iZLFe4YkIS6yZgnt8cd9DFqpQ37gNmcccZwBI+mpsaijTUPo1GT+QUD8zC+6qr/GrzG9q+q7BPxpVw==,AwGM/jFdtoNViQXxgqeL27ZKobjsfyeuXrx8re3UfIe3c4XN16srSpcTfxEZNXDKo1Ff9fRvDVBOwdS6XU2nvo++ng==,AwAtK0eOqcVfzkdJIIkk7BORWwSDTAjtx4aEXwyZ0bla+2rIWDgXi3U5xlgnjeXJNtGsLokkvvX92BOBIw9SuCGhnw==,2,AgCWAAWTW+7jv2a2lc4pGFnumEgyH59wSDRXEYUASCVB249JBmeKFWRKNFTQlph5hTR5Rb+YHFP/qvzmwU11Hs2b0w==,AgANdxpkN+DS4De3aokNjt+e/Ou8GT+p8pUJA+6LHrDBXAddoCR8KpeXW7mESokq6BTEVQXxU3TdqavRkqaeFmpXkw==,AgDDDSEO3e8DCsm1n6dbj2PB9Z/tUzluDCt/utdSLrYFfdFY+Y5K7Vxo9F5/17CzaUbX172SGLt8TfCfuYBrtupgAg==,2,AgB1OG6bj+6kfRvLj8yjMQbl80FdZHZrRVRUfNVRwvjvvbRa5f9s9fNZ8J0a3s3hH+RyfZmGJ4Ufjh5mMiQkwiur6w==,AwBX4GFZNjUdtRdwtWgxyQz7h8Hk0ztaZeM8/e+8ll0o+RjYN+CNP8+lnXEw7wpuC4wcMX05mrjPvHOuy0hOFVNkhQ==,AgDf3el4vbMYIAFEH9WV151/uzl+gkfTQ79T8Iu4KxEVo6UJvCfqkjETlR6aXUJiqaCbSV5odMT50lURsmfgALf6AQ==,,,,,2,AgENmnviZkgQWXZ5QDgCCE2zq0IiXURTqK2UNPtEg3o64yjlrQQUd2rO/KgKolyCQcKYTVoMj7k2VeCSSVRr8KGC7w==,AwFv6ZJzhpV/Ms00QkrkNiCKVRFczn/yqnkiBFUHC1RQv3tqzzYSEUeXmDHmm0/kEBtnfgRWjHQm9zxS8Jzy7srDLQ==,AwB8aS5KA1dFLKCA1a/7Wsjhef+6kkNAB/GO9AOvRZbFW/dhl5fx04Alh+g78fwcVMX+eEIEJgSyH0jhv7kmiQh4ew==,,,,,2,AgG8fXrCra6UgP5G89TaE6PH5E0TANb/PJPbKwzdi78XEHRUmcTz6PIhYtclTmcdq5TH0IwQv+ra5ppf4qR4LtkGig==,AgEKzsmZrikmXzJywMpzkAdG9hAPlOiRY9oXKf4Sh50CL8btUItjfVJWg3ubNhotzJK+fnNlRrcMkWQEBD/aGKpf8A==,AwFi+2cGpuvVdR+pT1P9Ur8jAkzmjJK2XmUQbFpyMi5Jc9a5/fPnBWCxmTX8CH5wks0PicYC6rzZC3NEIt0EoM1Qfg==,,,,,2,AgHbTZgTAv8lLBsoX06Hkm9XPU+crlRqKl0xL8v18xeUUPY1YAvUYf2OAutmTtPRycXyzrDWSpn2h5xfk/dtq/BICg==,AwAjPydfoUhfSVFKWNI4Ox4a/psZGDIGzEEWh9HyVtAmjdNb5ctr/S6z+akiRfPlNCsVf6TdkzJ2Su6BO4sOX/SHKA==,AwBVmjn7AitCe4zQ/Fl0sYW2XqXkJxJBDviwl9jYhoq29v90n9escDsiA3Cy+1uW69MezdZBEszFdEWlX0EzbQZQ6A==,,,,,2,AwCG0RBHwHuame/1G7qtUjmwz0gkCP1tyZiEgm7aTKpsCjt7UsMirMmx/ZrNlvSzkGuVbRO97Szzr+9fo4baH1rEZA==,AwHyMK/q8FUUvoHTt7O7KJUxYz/ZHF6SntbmKfbygLVw4HWc/eFic4DXHKbEGWvrMO5b37GksqxfQHc2xlAuj8ZRIw==,AgB5x0BxqiMYxRvzlq0+/RkbOuNA7hYuMG+7D6wlMOxSskgqyfwA0MfW+AkXFqnqfqsoJRpDy15bABWhH6MIdJsPEA==,,,,,2,AwAS/nCH0pcrsllSy2duadUs1rMtL6vtz7VTUAVhn1/YYlZ068ysBi1Mdz9gJFewdyeGLnFhyg+W15rFB317nyeGHg==,AwBh6f5UVRMM5ekWqkrx6XiVOK/BL0TinjsSLna8BjkQPXU2DvGxiKPhA03/GtBdEpihEX4bVaHQhiOupTf7wh6bCQ==,AgGPDFH8Kv8hz2aUJ955nHu8NiAoTmDjqhlXuJ1T83h+O0sc2GieLhmXmpEjxjEAyxkqjb2nFxvDhi+YGs4MqI4S5A==,,,,,2,AwDqwFv6bqpM/6PTCJ/wgRALYVT+Rn54HIB2icP6ODNexaoqILBS9p1k1QENbQsBZ9LmJJwngRQXi07Q4P8br76Qfw==,AgG8yTiO8tFWZqQELBr+Zt1fKKA3bl08836nUEEpD55Sid0ZywCrWe+Va58xbMIWscISLPbBvXIdO48ZgoHsLgA7Jw==,AwCI1Ud0GJLnS86mSC58HNB91lH9kPpQbufGn+WJErGxAQubtSFBc3rnT0SNE3CbW+1MPjYBbdCgxpHjN/iQf96++w==,,,,;2,AgB9YhljgPngkwwYTBMUaMGR+rWMjvlK0tgrzkG8OT9NGNJfaaLP6AzfhWrT5oe9NRnabU25pQvDhAIGZCajDy8N2g==,AwE5Irce6LOSxfLgn4PZh1PeDPjAHb5wPTNfmQoWFY83dNQLYN44FupJaQRRUqBqyGNB0SL76GKzr8G9tKLAHOxRSQ==,BAG5iWHEhlWkvtyAlQy4bwKa1iNRzJq8WJTh2GE9oT4DeJRmO1pCHy9P+9YktDT+4RgV9s8AzOYih1LmHW14uP27HQGg1nTdHyab9/nFUe9BFxIi8xQTPG8et9++5I+gKIeWGCXBL31sBhpaMewvVhDjl2d3+7H2PUv9IY3lyIRFA6N16A==,2,AwAPIoQJqSbXFKXQAIG9J+/+/41NLX0rDINImk4eBgAnZ4V0R8YSqkHD3nd0IrEMyK7OpkCXkxTzOlwJlfEfti+vew==,AwAQ8KdMYsEOqM3eyGv/XbHnGf+TqCAG39Gz/juBcioOOJmLOFjl6oCITozJOyPusbTRXZ4eIwgQYkl12mt6saTpgQ==,BACkTO+3rRUF81w5yzZskFiIRyVxc6sdJfDFX6C+Jy5A+s/sfHskrFx2GYNklZaYztP0/B64a6v6HvFWVz8GuYj2wgHhiCL+QwLThFpaRxh8kUMSrt4VuXSIjtHwRXzhSdEbG2T6C/+CJZxIFh/ugEV9SS51l1HrLdnJDb2Kdu3QC3lRkQ==;2,AgC99VyiRLJ2kFf3oCkb+JPVV7B4tXVGI2NVT7fdKtB+gEjCcdkbS5YEXm/Sq6NAJEOKilMTFUDLYFDOe+7JHj/4pw==,AgAbT080sbKVHH9lim3tVCYS4cMz+rLownRKqtYZ7AfR8qy819R1GFywQ0kImgcdjEey5C4m0OPTwgtkO+C5uWtKfQ==,BADKYt9i0zTJeh3H8t6d8pZdncz3f28v1oWrssLZwAutkIcF3XKkPNmK3X75K3sImUSch//IIRIB1Yi5/MrZZeDrxQHhQZEg6AA8bDxgt0JdOEX2t4crzDu3gW5I8y+Ya0fZr1RmxvfMr2UxRhSsNsz949v/g+GPfsrEfDqIWTiNlJfwyg==,2,AgEPMjgCfgGRaZ/5I1hLqDoJ8nXYeTlnt9YeK4K8w+HnRAoAD09zkPcLMWajIjupe/CUFrHz00sAvs+vOPeKxGrLiQ==,AgDy7g2DcDwmIW7LtTTteHExD/cyP4BMWimEAM1RfAd/Y6P8XkmRGgglfdLJ7RGTR2YIMB1lxQ/LQUbmzyjTiiuWow==,BAHJ7oHVr/0wweyGlg4f9Dqmx8h0m35jMdrEFwVY8l/ENKpOTxG/oh9vAvo1uw39wUOn4CWGBmAFE2lsvWFW18gt+gHPFt5/9ihUFN9mtxFLT1Q3W4Uf8IdekHPMbNlxEp1wId7EH3XsAox3Eo8b3XnYpwfsAXoDwQa2wyiO5h104Ptvsg==;2,AwClCMGcHdd7rD8sYDC/GXyAtLmZ/JI4v+aOK4PXzjWJi/zvcsXT5dJUOm9bW6AAtzgOKPd0WwU3hSytJ+ATy146Uw==,AgADzN6ysOIC9GAuMF9suYNfkR027H/9OcpeVJb4HRHfZ/EOmQWSdJmJFw3F/NLUrreNnFCvuF1+1bbmHa3tvznjeA==,BADwaRJF9z3DW7HE3qhGu6Yd9d2WBfWy8opd7Mhkg7TpAQsn9oA3UcpCarn4DMSnVGG94Y3Pxsj5vlm5G7GMKiGoxAERnETH6pVgBxhtrnBU6l4vHl+X4rd8I/zheZiG0EFKJza41rmwKHTY4+42PJ8/3Y2rCanbY1RSAJEgiZR89k6nGg==,2,AgCK80PhKSC23aVKQ8uYm+79GWZiwpbV5lc8Fzcpwu8hdKGAMH4f62Y//cmrQmCIltm03PTVPMn6rMwkfoz+9M2LDQ==,AgH5aXThIKUjENFTGCGwcTRql7xIe8vR9h78KikTYkD8itQ+YBDrnx5OaNyWRjpIJHAZ2B61W2aVjZ5Rmo0d1B1Pcw==,BAAEZsEKw59QSRxN1QmWcx4X2LaK4+zBuawh+2CIRPljWyxK6XhIM6EEalr44Klce4OTK2QbxT5n3Kjnh5jNuwCOawAH/wiNrx09+HY8SZrRjCjv1+Lnicybrqg/IFDNoAGT5aguaGRIMmGOLe0QFJr0T0iW3RnYGlmSd/r6ex8+MpOgLw==</decrypt_val></awr_decrypt>";
- String replyString = connectSPU.sendReceive(Type.DECRYPT, requestString);
- System.out.println("REQUEST URL: " + requestString);
- System.out.println("REPLY: " + replyString);
- ReplyDecryption reply = (new XMLParserDecrypt()).stringToReply(replyString);
- return reply;
- }
-
- public ReplyMaterial callServiceMaterial(RequestMaterial rqtMaterial) {
- String requestString = URLParserMaterial.requestToString(rqtMaterial);
- String replyString = connectSPU.sendReceive(Type.MATERIAL, requestString);
-
- System.out.println("Material request:");
- System.out.println(replyString);
-
- ReplyMaterial reply = (new XMLParserMaterial()).stringToReply(replyString);
- return reply;
- }
-
- public ReplySurvey callServiceSurvey(){
-
-// String replyString = connectSPU.sendReceive(Type.SURVEY,"");
- String replyString ="<awr_survey><v_questions>1::What's your name?::1;2::Where are you from?::2;3::How old are you?::3</v_questions><v_locations>Lausanne;Basel;Zurich</v_locations></awr_survey>";
- ReplySurvey reply = (new XMLParserSurvey()).stringToReply(replyString);
- return reply;
- }
-
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/1b/00a5e54952ac001410e2e30aa85db9d1 b/.metadata/.plugins/org.eclipse.core.resources/.history/1b/00a5e54952ac001410e2e30aa85db9d1
deleted file mode 100644
index 6732f19..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/1b/00a5e54952ac001410e2e30aa85db9d1
+++ /dev/null
@@ -1,906 +0,0 @@
-package ui;
-
-import io.ClientConnection;
-import io.CommAdapter;
-import io.Questionnaire;
-
-import java.awt.BorderLayout;
-import java.awt.Color;
-import java.awt.Component;
-import java.awt.Dimension;
-import java.awt.FlowLayout;
-import java.awt.Font;
-import java.awt.SystemColor;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.awt.event.WindowAdapter;
-import java.io.File;
-import java.io.IOException;
-import java.sql.SQLException;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.LinkedList;
-import java.util.Map;
-import java.util.Set;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
-import javax.swing.Box;
-import javax.swing.BoxLayout;
-import javax.swing.ButtonGroup;
-import javax.swing.DefaultComboBoxModel;
-import javax.swing.GroupLayout;
-import javax.swing.GroupLayout.Alignment;
-import javax.swing.ImageIcon;
-import javax.swing.JButton;
-import javax.swing.JComboBox;
-import javax.swing.JDialog;
-import javax.swing.JFileChooser;
-import javax.swing.JFrame;
-import javax.swing.JLabel;
-import javax.swing.JOptionPane;
-import javax.swing.JPanel;
-import javax.swing.JRadioButton;
-import javax.swing.JScrollPane;
-import javax.swing.JSeparator;
-import javax.swing.JTabbedPane;
-import javax.swing.JTextArea;
-import javax.swing.JTextPane;
-import javax.swing.JTree;
-import javax.swing.LayoutStyle.ComponentPlacement;
-import javax.swing.SwingConstants;
-import javax.swing.UIManager;
-import javax.swing.border.BevelBorder;
-import javax.swing.border.EmptyBorder;
-import javax.swing.border.EtchedBorder;
-import javax.swing.tree.DefaultMutableTreeNode;
-import javax.swing.tree.TreeModel;
-import javax.swing.tree.TreePath;
-
-import org.jpedal.examples.viewer.Commands;
-import org.jpedal.examples.viewer.Viewer;
-
-import utils.ClientProperties;
-
-import com.itextpdf.text.DocumentException;
-
-import database.DBconnectorClient;
-import framework.Diagnostic;
-import framework.MedUnit;
-import framework.Question;
-import framework.reply.ReplySurvey;
-import framework.test.TestName;
-import javax.swing.border.SoftBevelBorder;
-import javax.swing.border.LineBorder;
-
-/**
- *
- * @author youssef, raisaro
- */
-public class GUI extends javax.swing.JFrame {
-
- private static final Logger LOGGER = Logger.getLogger(GUI.class.getName());
-
- private static final long serialVersionUID = -4582280515597700650L;
-
- // configuration
- private ClientProperties props;
-
- private JTree jTree;
- private DBconnectorClient connectorClientDB;
- private LinkedList<Integer> patients;
-
- /** List of all relevant tests */
- private HashMap<String, TestName> testsByName;
- private Viewer viewer;
- private JDialog dialog;
- private JFrame frame;
- private boolean survey_submitted;
- private int close_trials;
- private Map<Integer, ButtonGroup> buttonGroupMap;
- private Questionnaire quest;
- private Map<Integer, Question> map;
- private Set<Integer> ids;
- private Map<String,String> answers;
- private Map<Integer, String> locations;
-
-
- /**
- * Creates new form GUI
- */
- public GUI(ClientProperties props){
-
- frame = this;
- this.props = props;
- this.connectorClientDB = new DBconnectorClient(props.getDbMsAccess());
- survey_submitted = false;
- close_trials = 0;
-
-
- try {
- initComponents();
-
- viewer = new Viewer(jScrollPane2, null);
- viewer.setupViewer();
-
- // create questionnare
-
-
- System.out.println("#of questions: " + ids.size());
-
-// viewer_q = new Viewer(jScrollPane4, null);
-// viewer_q.setupViewer();
-//
-// // specify file you wish to open (JPedal handles getting the byte data)
-// String filepathReport = "outputPDF/buttons_filled.pdf";
-//
-// // open generated PDF
-// // object must be either String in full filepath, or
-// // File object which can be relative
-// Object[] input = new Object[]{ new File(filepathReport) };
-// viewer_q.executeCommand(Commands.OPENFILE, input);
-
- JButton btnSubmitQuestionnaire = new JButton("Submit Questionnaire");
- btnSubmitQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- btnSubmitQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- submitButtonActionPerformed(arg0);
- }
- });
- JButton btnResetQuestionnaire = new JButton("Save as PDF");
- btnResetQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- savePDFButtonActionPerformed(arg0);
- }
- });
- btnResetQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- JPanel panel_button = new JPanel();
- panel_button.setLayout(new BoxLayout(panel_button, BoxLayout.X_AXIS));
-
- lblNewLabel_3 = new JLabel("");
- lblNewLabel_3.setIcon(new ImageIcon("res/location_icon.png"));
- panel_button.add(lblNewLabel_3);
-
-
-
- comboBox = new JComboBox<String>();
- comboBox.setFont(new Font("Tahoma", Font.BOLD, 12));
- comboBox.setModel(new DefaultComboBoxModel<String>(new String[] {"Select Location"}));
- for(Integer id_loc : locations.keySet()){
- comboBox.addItem(locations.get(id_loc));
- }
-
-
- panel_button.add(comboBox);
-
- rigidArea = Box.createRigidArea(new Dimension(10, 0));
- panel_button.add(rigidArea);
-
- lblNewLabel_1 = new JLabel("");
- lblNewLabel_1.setIcon(new ImageIcon("res/submit.png"));
- panel_button.add(lblNewLabel_1);
- panel_button.add(btnSubmitQuestionnaire);
-
- panel_button.add(Box.createRigidArea(new Dimension(10,0)));
-
- lblNewLabel_2 = new JLabel("");
- lblNewLabel_2.setIcon(new ImageIcon("res/pdf.png"));
- panel_button.add(lblNewLabel_2);
- panel_button.add(btnResetQuestionnaire);
- panel_button.setPreferredSize(new Dimension(211, 35));
- panel_button.validate();
-
- JPanel panel_3 = new JPanel();
- GroupLayout gl_panel = new GroupLayout(panel);
- gl_panel.setHorizontalGroup(
- gl_panel.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(63)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addGap(103)
- .addComponent(panel_button, GroupLayout.DEFAULT_SIZE, 498, Short.MAX_VALUE)
- .addGap(241))
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(41)
- .addGroup(gl_panel.createParallelGroup(Alignment.TRAILING)
- .addComponent(jScrollPane4, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE)
- .addComponent(panel_1, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE))
- .addGap(32))
- );
- gl_panel.setVerticalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(22)
- .addComponent(panel_1, GroupLayout.PREFERRED_SIZE, 235, GroupLayout.PREFERRED_SIZE)
- .addGap(37)
- .addComponent(jScrollPane4, GroupLayout.DEFAULT_SIZE, 379, Short.MAX_VALUE)
- .addGap(26)
- .addGroup(gl_panel.createParallelGroup(Alignment.LEADING)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(panel_button, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE)))
- );
- panel_3.setLayout(new BoxLayout(panel_3, BoxLayout.X_AXIS));
-
-
- panel.setLayout(gl_panel);
-
-
-
-
-
-
- /////////////////////////////////////////////////////////
- // display the tests available
-
- // get the tests
- HashMap<String, ArrayList<TestName>> testsRelevantByGroup = connectorClientDB.getRelevantTestsByGroup();
- ArrayList<String> groups = new ArrayList<String>(testsRelevantByGroup.keySet());
-
- // flatten hashmap into linkedlist
-// tests = new LinkedList<>();
- testsByName = new HashMap<String, TestName>();
- for (String group : groups) {
-// tests.addAll(testsRelevantByGroup.get(group));
- for (TestName test : testsRelevantByGroup.get(group)) {
- testsByName.put(test.getName(), test);
- }
- }
-
- // define tree structure of the tests
- DefaultMutableTreeNode root = new DefaultMutableTreeNode("All");
-
- for (String group : groups) {
- DefaultMutableTreeNode child = new DefaultMutableTreeNode(group);
- root.add(child);
-
- for (TestName test : testsRelevantByGroup.get(group)) {
- DefaultMutableTreeNode grandChild = new DefaultMutableTreeNode(test.getName());
- child.add(grandChild);
- }
- }
-
- // define swing object
- jTree = new JTree(root);
-
- for(int i=0;i<jTree.getRowCount();i++){
- jTree.expandRow(i);
- }
-
- jScrollPane3.setViewportView(jTree);
-// jTree.addTreeSelectionListener(new TreeSelectionListener() {
-//
-// @Override
-// public void valueChanged(TreeSelectionEvent e) {
-// tp = jTree.getSelectionPaths();
-// }
-// });
- jScrollPane3.setViewportView(jTree);
-
- /////////////////////////////////////////////////////////
- // display the patients registered
-
- patients = connectorClientDB.getPatients();
- for (Integer patientId : patients) {
- jComboBox1.addItem(patientId.toString());
- }
-
- } catch (SQLException ex) {
- Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex);
- ex.printStackTrace();
-// } catch (IOException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
-// } catch (DocumentException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
- }
-
- }
-
- /**
- * 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() {
-
- jPanel1 = new javax.swing.JPanel();
- jLabel2 = new javax.swing.JLabel();
- jLabel1 = new javax.swing.JLabel();
- jPanel2 = new javax.swing.JPanel();
- jComboBox1 = new javax.swing.JComboBox<String>();
- jButton1 = new javax.swing.JButton();
- jButton1.setFont(new Font("Tahoma", Font.BOLD, 12));
- jLabel3 = new javax.swing.JLabel();
- jLabel4 = new javax.swing.JLabel();
- jScrollPane3 = new javax.swing.JScrollPane();
- jScrollPane2 = new javax.swing.JScrollPane();
- jMenuBar1 = new javax.swing.JMenuBar();
- jMenu1 = new javax.swing.JMenu();
- jMenuItem1 = new javax.swing.JMenuItem();
- jMenu2 = new javax.swing.JMenu();
- dialog = new JDialog();
- tabbedPane = new JTabbedPane(JTabbedPane.TOP);
-
- setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
- addWindowListener(new WindowAdapter() {
- @Override
- public void windowClosing(java.awt.event.WindowEvent windowEvent) {
- if (!survey_submitted && close_trials <= 2){
- JOptionPane.showMessageDialog(frame, "Before closing the application, please fill in and submit the questionnaire.");
- close_trials++;
- tabbedPane.setSelectedIndex(1);
- }else{
- System.exit(0);
- }
- }
- });
- setTitle("HIV Pharmacogenomics\n");
-
- jLabel2.setIcon(new javax.swing.ImageIcon("res/shcs_logo2_small.gif")); // NOI18N
-
- jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
- jLabel1.setText("HIV Pharmacogenomics | Project #693");
-
- javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
- jPanel1.setLayout(jPanel1Layout);
- jPanel1Layout.setHorizontalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap(71, Short.MAX_VALUE)
- .addComponent(jLabel1)
- .addGap(18, 18, 18)
- .addComponent(jLabel2))
- );
- jPanel1Layout.setVerticalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jLabel1)
- .addGap(11, 11, 11))
- .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)
- );
-
- jPanel2.setBackground(new java.awt.Color(255, 255, 255));
- jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
-
- jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<String>(new String[]{"Select Patient"}));
-
- jButton1.setText("Run Test");
- jButton1.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton1ActionPerformed(evt);
- }
- });
-
- JLabel lblNewLabel = new JLabel("");
- lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
- lblNewLabel.setIcon(new javax.swing.ImageIcon("res/gears.png"));
-
-
-
- javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
- jPanel2Layout.setHorizontalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addComponent(jComboBox1, 0, 248, Short.MAX_VALUE)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addGap(75)
- .addGroup(jPanel2Layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jButton1)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 75, GroupLayout.PREFERRED_SIZE))
- .addContainerGap(98, Short.MAX_VALUE))
- );
- jPanel2Layout.setVerticalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addComponent(jComboBox1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED, 223, Short.MAX_VALUE)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jButton1)
- .addGap(19))
- );
- jPanel2.setLayout(jPanel2Layout);
-
- jLabel3.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel3.setText("Select Patient");
-
- jLabel4.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel4.setText("Select Test");
-
- jScrollPane3.setBackground(new java.awt.Color(255, 255, 255));
-
- jMenu1.setText("File");
-
- jMenuItem1.setText("Exit");
- jMenu1.add(jMenuItem1);
-
- jMenuBar1.add(jMenu1);
-
- jMenu2.setText("Edit");
- jMenuBar1.add(jMenu2);
-
- setJMenuBar(jMenuBar1);
-
-
-
- javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
- layout.setHorizontalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(layout.createParallelGroup(Alignment.LEADING, false)
- .addComponent(jLabel3)
- .addComponent(jLabel4)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, 244, Short.MAX_VALUE)
- .addComponent(jScrollPane3))
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 970, Short.MAX_VALUE))
- .addContainerGap())
- );
- layout.setVerticalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel4))
- .addPreferredGap(ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addComponent(jScrollPane3, GroupLayout.PREFERRED_SIZE, 388, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jLabel3)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 785, Short.MAX_VALUE))
- .addContainerGap())
- );
-
-
- jScrollPane2.setAutoscrolls(true);
- jScrollPane3.setAutoscrolls(true);
- tabbedPane.addTab("Report", new ImageIcon("res/report_icon.gif"), jScrollPane2, null);
- tabbedPane.setBackgroundAt(0, new Color(255, 255, 255));
-
- panel = new JPanel();
- tabbedPane.addTab("Survey", new ImageIcon("res/survey_icon.png"), panel, null);
- tabbedPane.setBackgroundAt(1, new Color(255, 255, 255));
- tabbedPane.setEnabledAt(1, true);
-
- panel_1 = new JPanel();
- panel_1.setBorder(new LineBorder(new Color(0, 0, 0), 2));
- panel_1.setBackground(SystemColor.control);
-
- JLabel label = new JLabel("");
- label.setIcon(new ImageIcon("res/shcs_logo2_medium.gif"));
-
- lblDearDoctor = new JLabel("Dear Doctor,");
- lblDearDoctor.setFont(new Font("Tahoma", Font.BOLD, 14));
-
- JScrollPane scrollPane = new JScrollPane();
- scrollPane.setBorder(null);
- GroupLayout gl_panel_1 = new GroupLayout(panel_1);
- gl_panel_1.setHorizontalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(Alignment.LEADING, gl_panel_1.createSequentialGroup()
- .addGap(25)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addComponent(lblDearDoctor)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 661, Short.MAX_VALUE))
- .addContainerGap())
- );
- gl_panel_1.setVerticalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addContainerGap()
- .addComponent(lblDearDoctor)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 203, Short.MAX_VALUE))
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(36)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 96, GroupLayout.PREFERRED_SIZE)))
- .addContainerGap())
- );
-
- JTextPane txtpnTodayYouAre = new JTextPane();
- txtpnTodayYouAre.setBorder(null);
- txtpnTodayYouAre.setText("Today you are receiving a pharmacogenetics report based on the genome of your patient. Because of its highly sensitive nature, " +
- "the genetic information you are provided with is processed in a privacy-preserving way. In particular, to protect patients’ genomic privacy, " +
- "their genetic and clinical data is stored encrypted at the SHCS data center, and securely analyzed through a sophisticated algorithm designed and developed at EPFL [1, 2]. " +
- "The actual clinical and genetic information is never revealed. Only the authorized users, such as you, can get some processed information, for example, the final result of a " +
- "pharmacogenetics risk test.\nThis mechanism protects the data against insiders or hackers trying to illegally access patients’ medical information, while still allowing authorized " +
- "users to obtain the information they need." +
- "\n\nTo help us understanding the importance of genomic privacy in the medical domain, and the impact of privacy-enhancing technologies in daily clinical practice, please complete the following survey.");
- txtpnTodayYouAre.setFont(new Font("Tahoma", Font.PLAIN, 13));
- txtpnTodayYouAre.setEditable(false);
- txtpnTodayYouAre.setBackground(SystemColor.control);
- scrollPane.setViewportView(txtpnTodayYouAre);
- panel_1.setLayout(gl_panel_1);
- jScrollPane4 = new javax.swing.JScrollPane();
- getContentPane().setLayout(layout);
-
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
- ReplySurvey replySurvey = commHandlerAdapter.callServiceSurvey();
-
- map = replySurvey.getQuestions();
- ids = map.keySet();
- locations = replySurvey.getLocations();
-
- panel_2 = new JPanel();
- panel_2.setBackground(Color.WHITE);
- panel_2.setBorder(new LineBorder(new Color(0, 0, 0), 2));
- jScrollPane4.setViewportView(panel_2);
- panel_2.setLayout(new BoxLayout(panel_2, BoxLayout.Y_AXIS));
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
-
-
- for(Integer id : ids){
- ButtonGroup group = new ButtonGroup();
- JRadioButton r1 = new JRadioButton("1"); r1.setActionCommand("1"); r1.setBackground(Color.WHITE);
- JRadioButton r2 = new JRadioButton("2"); r2.setActionCommand("2"); r2.setBackground(Color.WHITE);
- JRadioButton r3 = new JRadioButton("3"); r3.setActionCommand("3"); r3.setBackground(Color.WHITE);
- JRadioButton r4 = new JRadioButton("4"); r4.setActionCommand("4"); r4.setBackground(Color.WHITE);
- JRadioButton r5 = new JRadioButton("5"); r5.setActionCommand("5"); r5.setBackground(Color.WHITE);
- group.add(r1);
- group.add(r2);
- group.add(r3);
- group.add(r4);
- group.add(r5);
- JPanel radio_panel = new JPanel();
- radio_panel.setLayout((new BoxLayout(radio_panel, BoxLayout.X_AXIS)));
- radio_panel.setBackground(Color.WHITE);
- radio_panel.setAlignmentX(Component.CENTER_ALIGNMENT);
- radio_panel.add(r1);
- radio_panel.add(r2);
- radio_panel.add(r3);
- radio_panel.add(r4);
- radio_panel.add(r5);
- radio_panel.doLayout();
- radio_panel.setPreferredSize(radio_panel.getPreferredSize());
- JTextArea question = new JTextArea(id + ") " + map.get(id).getQuestion());
- question.setLineWrap(true);
- question.setWrapStyleWord(true);
- question.setAlignmentX(Component.CENTER_ALIGNMENT);
- question.setFont(new Font("Tahoma", Font.PLAIN, 13));
-
- JPanel row_panel = new JPanel();
- row_panel.setLayout(new BoxLayout(row_panel, BoxLayout.X_AXIS));
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.add(question);
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.add(radio_panel);
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.setBackground(Color.WHITE);
-
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- panel_2.add(row_panel);
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
-// panel_2.add(radio_panel);
- panel_2.add(new JSeparator());
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
-// panel_2.setPreferredSize(panel_2.getPreferredSize());
- buttonGroupMap.put(id, group);
-
- }
-
-
-
- this.setSize(new Dimension(1200, 865));
-// pack();
- }// </editor-fold>//GEN-END:initComponents
-
-
- private void submitButtonActionPerformed(java.awt.event.ActionEvent evt){
-
- try{
- answers = new HashMap<String, String>();
- StringBuilder sb = new StringBuilder();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- sb.append(q).append(",");
- sb.append(bg.getSelection().getActionCommand()).append(";");
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- String answer = sb.toString();
- Integer id_loc = null;
- for(Integer i: locations.keySet()){
- if(locations.get(i).equals(comboBox.getSelectedItem().toString()))
- id_loc = i;
- }
-
- String id_p;
- if(jComboBox1.getSelectedItem().toString().equals("Select Patient"))
- id_p = "0";
- else
- id_p = jComboBox1.getSelectedItem().toString();
-
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
-
- String reply = commHandlerAdapter.callServiceSurveyAnswer(answer, id_loc.toString(), id_p);
-
- if(reply.equals("1")){
- survey_submitted = true;
-
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Congrats! Your aswers have been sent to the SHCS datacenter.",
- "Information Message",
- JOptionPane.INFORMATION_MESSAGE);
- }
- else{
- throw new IOException();
- }
-
-
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "The SHCS datacenter does not respond. Please save the survey and send it to jean.raisaro@epfl.ch.",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
- private void savePDFButtonActionPerformed(java.awt.event.ActionEvent evt){
- try {
-
- answers = new HashMap<String, String>();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- JFileChooser chooser = new JFileChooser();
- // Note: source for ExampleFileFilter can be found in FileChooserDemo,
- // under the demo/jfc directory in the JDK.
-
- int returnVal = chooser.showSaveDialog(this);
- System.out.println(returnVal);
- if(returnVal == JFileChooser.APPROVE_OPTION) {
- System.out.println("You chose to open this file: " +
- chooser.getSelectedFile().getPath());
- quest = new Questionnaire(chooser.getSelectedFile().getPath() + ".pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }else{
- quest = new Questionnaire("outputPDF/survey.pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }
-
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (DocumentException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (NullPointerException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
-
- private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
-
- JPanel contentPanel = new JPanel();
-
- dialog.setBounds(100, 100, 410, 80);
- dialog.getContentPane().setLayout(new BorderLayout());
- contentPanel.setLayout(new FlowLayout());
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- dialog.getContentPane().add(contentPanel, BorderLayout.CENTER);
- {
- JLabel label = new JLabel("Please wait...The overall computation can take few seconds");
- label.setHorizontalAlignment(SwingConstants.CENTER);
- label.setFont(new Font("Tahoma", Font.PLAIN, 12));
- contentPanel.add(label);
- }
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
- dialog.getContentPane().add(buttonPane, BorderLayout.SOUTH);
- }
- dialog.setLocationRelativeTo(this);
- dialog.setVisible(true);
-
- GUIWorker gw = new GUIWorker(this, props);
- Thread t = new Thread(gw);
- t.start();
-
- }
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JButton jButton1;
- private javax.swing.JComboBox<String> jComboBox1;
- private javax.swing.JLabel jLabel1;
- private javax.swing.JLabel jLabel2;
- private javax.swing.JLabel jLabel3;
- private javax.swing.JLabel jLabel4;
- private javax.swing.JMenu jMenu1;
- private javax.swing.JMenu jMenu2;
- private javax.swing.JMenuBar jMenuBar1;
- private javax.swing.JMenuItem jMenuItem1;
- private javax.swing.JPanel jPanel1;
- private javax.swing.JPanel jPanel2;
- private javax.swing.JScrollPane jScrollPane3;
- private javax.swing.JTabbedPane tabbedPane;
- private javax.swing.JScrollPane jScrollPane2;
- private javax.swing.JScrollPane jScrollPane4;
- private JPanel panel;
- private JPanel panel_1;
- private JPanel panel_2;
- private JLabel lblDearDoctor;
- private JLabel lblNewLabel_1;
- private JLabel lblNewLabel_2;
- private JLabel lblNewLabel_3;
- private JComboBox<String> comboBox;
- private Component rigidArea;
-
- // End of variables declaration//GEN-END:variables
-
-
- class GUIWorker implements Runnable{
-
- private JFrame mainFrame;
- private ClientProperties props;
- private MedUnit mu;
-
- public GUIWorker(GUI gui, ClientProperties props) {
- mainFrame = gui;
-
- this.props = props;
- this.mu = new MedUnit(props, 0);
- }
-
- @Override
- public void run() {
-
- try{
- int patientId = Integer.parseInt((String) jComboBox1.getSelectedItem());
-
- // convert selected tests to test identifiers
- ArrayList<TestName> selectedTests = new ArrayList<TestName>();
- for (String currentName : getSelectedTests()) {
- TestName currentTest = testsByName.get(currentName);
-
- if (currentTest == null) {
- throw new IllegalStateException("Trying to run unknown test: " + currentTest);
- }
-
- selectedTests.add(currentTest);
- }
-
- // run tests
- Diagnostic diagnostic = mu.runTests(patientId, selectedTests);
-
- // warn for tests with missing material
- warnFailedTests(diagnostic, selectedTests);
-
- // create report
- mu.createReport(patientId, selectedTests, diagnostic);
-
- dialog.setVisible(false);
-
- // specify file you wish to open (JPedal handles getting the byte data)
- String filepathReport = props.getPathPDF() + patientId + ".pdf";
-
- // open generated PDF
- // object must be either String in full filepath, or
- // File object which can be relative
- Object[] input = new Object[]{ new File(filepathReport) };
- viewer.executeCommand(Commands.OPENFILE, input);
-
- // display CAD result as bar plot
- if (diagnostic.hasCAD()) {
- System.out.println("CAD = " + diagnostic.getResultCAD());
- BarPlotFrame frame = new BarPlotFrame(diagnostic.getResultCAD(), patientId);
- frame.setVisible(true);
- frame.setAlwaysOnTop(true);
- }
-
-
- } catch (SQLException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Please select a patient.");
- }
-
- }
-
- private void warnFailedTests(Diagnostic diagnostic, ArrayList<TestName> selectedTests) {
- ArrayList<Integer> failedTests = diagnostic.getInvalidTests();
-
- if (!failedTests.isEmpty()) {
- String msg = "Could not complete tests: ";
- boolean first = true;
- for (TestName testName : selectedTests) {
- if (failedTests.contains(testName.getId())) {
- if (first) {
- first = false;
- } else {
- msg += ", ";
- }
- msg += testName.getName();
- }
- }
- displayError(msg);
- }
-
- }
-
- private void displayError(String msg) {
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- mainFrame,
- msg,
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
-
- private ArrayList<String> getSelectedTests() {
- ArrayList<String> tests = new ArrayList<String>();
-
- for (TreePath treePath : jTree.getSelectionPaths()) {
- tests.addAll(getChildrenTests(jTree.getModel(), treePath.getLastPathComponent()));
- }
-
- return tests;
- }
-
- private ArrayList<String> getChildrenTests(TreeModel model, Object node) {
- ArrayList<String> tests = new ArrayList<String>();
-
- if (model.isLeaf(node)) { // leaf
- DefaultMutableTreeNode leaf = (DefaultMutableTreeNode) node;
- tests.add(leaf.toString());
- }
- else { // iterate over children
- for (int i = 0; i < model.getChildCount(node); i++) {
- tests.addAll(getChildrenTests(model, model.getChild(node, i)));
- }
- }
-
- return tests;
- }
-
- }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/1e/60fe6fb8a4a7001417ceadf0100b5ef7 b/.metadata/.plugins/org.eclipse.core.resources/.history/1e/60fe6fb8a4a7001417ceadf0100b5ef7
deleted file mode 100644
index ea73a53..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/1e/60fe6fb8a4a7001417ceadf0100b5ef7
+++ /dev/null
@@ -1,122 +0,0 @@
-package io;
-
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.util.HashMap;
-
-import com.itextpdf.text.Document;
-import com.itextpdf.text.DocumentException;
-import com.itextpdf.text.Rectangle;
-import com.itextpdf.text.pdf.AcroFields;
-import com.itextpdf.text.pdf.PdfFormField;
-import com.itextpdf.text.pdf.PdfPCell;
-import com.itextpdf.text.pdf.PdfPTable;
-import com.itextpdf.text.pdf.PdfReader;
-import com.itextpdf.text.pdf.PdfStamper;
-import com.itextpdf.text.pdf.PdfWriter;
-import com.itextpdf.text.pdf.TextField;
-
-public class Subscribe {
-
- /** The resulting PDF. */
- public static final String FORM = "outputPDF/subscribe.pdf";
- /** The resulting PDFs. */
- public static final String RESULT = "outputPDF/filled_form_%d.pdf";
-
- /**
- * Manipulates a PDF file src with the file dest as result
- * @param src the original PDF
- * @param dest the resulting PDF
- * @param cache a map that will be used to cache text field information
- * @param name the name of a person
- * @param login the login name of the same person
- * @throws IOException
- * @throws DocumentException
- */
- public void manipulatePdf(String src, String dest,
- HashMap<String,TextField> cache, String name, String login)
- throws IOException, DocumentException {
- PdfReader reader = new PdfReader(src);
- PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(dest));
- AcroFields form = stamper.getAcroFields();
- form.setFieldCache(cache);
- form.setExtraMargin(2, 0);
- form.removeField("personal.password");
- form.setField("personal.name", name);
- form.setField("personal.loginname", login);
- form.renameField("personal.reason", "personal.motivation");
- form.setFieldProperty("personal.loginname", "setfflags", TextField.READ_ONLY, null);
- stamper.setFormFlattening(true);
- stamper.partialFormFlattening("personal.name");
- stamper.close();
- reader.close();
- }
-
- /**
- * Creates a PDF document.
- * @param filename the path to the new PDF document
- * @throws DocumentException
- * @throws IOException
- */
- public void createPdf(String filename) throws IOException, DocumentException {
- // step 1
- Document document = new Document();
- // step 2
- PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(filename));
- // step 3
- document.open();
- // step 4
- PdfFormField personal = PdfFormField.createEmpty(writer);
- personal.setFieldName("personal");
- PdfPTable table = new PdfPTable(3);
- PdfPCell cell;
-
- table.addCell("Your name:");
- cell = new PdfPCell();
- cell.setColspan(2);
- TextField field = new TextField(writer, new Rectangle(0, 0), "name");
- field.setFontSize(12);
- cell.setCellEvent(new ChildFieldEvent(personal, field.getTextField(), 1));
- table.addCell(cell);
- table.addCell("Login:");
- cell = new PdfPCell();
- field = new TextField(writer, new Rectangle(0, 0), "loginname");
- field.setFontSize(12);
- cell.setCellEvent(new ChildFieldEvent(personal, field.getTextField(), 1));
- table.addCell(cell);
- cell = new PdfPCell();
- field = new TextField(writer, new Rectangle(0, 0), "password");
- field.setOptions(TextField.PASSWORD);
- field.setFontSize(12);
- cell.setCellEvent(new ChildFieldEvent(personal, field.getTextField(), 1));
- table.addCell(cell);
- table.addCell("Your motivation:");
- cell = new PdfPCell();
- cell.setColspan(2);
- cell.setFixedHeight(60);
- field = new TextField(writer, new Rectangle(0, 0), "reason");
- field.setOptions(TextField.MULTILINE);
- field.setFontSize(12);
- cell.setCellEvent(new ChildFieldEvent(personal, field.getTextField(), 1));
- table.addCell(cell);
- document.add(table);
- writer.addAnnotation(personal);
- // step 5
- document.close();
- }
-
- /**
- * Main method
- * @param args no arguments needed
- * @throws IOException
- * @throws DocumentException
- */
- public static void main(String[] args) throws IOException, DocumentException {
- Subscribe subscribe = new Subscribe();
- subscribe.createPdf(FORM);
- HashMap<String,TextField> fieldCache = new HashMap<String,TextField>();
- subscribe.manipulatePdf(FORM, String.format(RESULT, 1), fieldCache, "Bruno Lowagie", "blowagie");
- subscribe.manipulatePdf(FORM, String.format(RESULT, 2), fieldCache, "Paulo Soares", "psoares");
- subscribe.manipulatePdf(FORM, String.format(RESULT, 3), fieldCache, "Mark Storer", "mstorer");
- }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/1f/c065a36b4cac001410e2e30aa85db9d1 b/.metadata/.plugins/org.eclipse.core.resources/.history/1f/c065a36b4cac001410e2e30aa85db9d1
deleted file mode 100644
index 681ad1e..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/1f/c065a36b4cac001410e2e30aa85db9d1
+++ /dev/null
@@ -1,892 +0,0 @@
-package ui;
-
-import io.ClientConnection;
-import io.CommAdapter;
-import io.Questionnaire;
-
-import java.awt.BorderLayout;
-import java.awt.Color;
-import java.awt.Component;
-import java.awt.Dimension;
-import java.awt.FlowLayout;
-import java.awt.Font;
-import java.awt.SystemColor;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.awt.event.WindowAdapter;
-import java.io.File;
-import java.io.IOException;
-import java.sql.SQLException;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.LinkedList;
-import java.util.Map;
-import java.util.Set;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
-import javax.swing.Box;
-import javax.swing.BoxLayout;
-import javax.swing.ButtonGroup;
-import javax.swing.DefaultComboBoxModel;
-import javax.swing.GroupLayout;
-import javax.swing.GroupLayout.Alignment;
-import javax.swing.ImageIcon;
-import javax.swing.JButton;
-import javax.swing.JComboBox;
-import javax.swing.JDialog;
-import javax.swing.JFileChooser;
-import javax.swing.JFrame;
-import javax.swing.JLabel;
-import javax.swing.JOptionPane;
-import javax.swing.JPanel;
-import javax.swing.JRadioButton;
-import javax.swing.JScrollPane;
-import javax.swing.JSeparator;
-import javax.swing.JTabbedPane;
-import javax.swing.JTextArea;
-import javax.swing.JTextPane;
-import javax.swing.JTree;
-import javax.swing.LayoutStyle.ComponentPlacement;
-import javax.swing.SwingConstants;
-import javax.swing.UIManager;
-import javax.swing.border.BevelBorder;
-import javax.swing.border.EmptyBorder;
-import javax.swing.border.EtchedBorder;
-import javax.swing.tree.DefaultMutableTreeNode;
-import javax.swing.tree.TreeModel;
-import javax.swing.tree.TreePath;
-
-import org.jpedal.examples.viewer.Commands;
-import org.jpedal.examples.viewer.Viewer;
-
-import utils.ClientProperties;
-
-import com.itextpdf.text.DocumentException;
-
-import database.DBconnectorClient;
-import framework.Diagnostic;
-import framework.MedUnit;
-import framework.Question;
-import framework.reply.ReplySurvey;
-import framework.test.TestName;
-
-/**
- *
- * @author youssef, raisaro
- */
-public class GUI extends javax.swing.JFrame {
-
- private static final Logger LOGGER = Logger.getLogger(GUI.class.getName());
-
- private static final long serialVersionUID = -4582280515597700650L;
-
- // configuration
- private ClientProperties props;
-
- private JTree jTree;
- private DBconnectorClient connectorClientDB;
- private LinkedList<Integer> patients;
-
- /** List of all relevant tests */
- private HashMap<String, TestName> testsByName;
- private Viewer viewer;
- private JDialog dialog;
- private JFrame frame;
- private boolean survey_submitted;
- private int close_trials;
- private Map<Integer, ButtonGroup> buttonGroupMap;
- private Questionnaire quest;
- private Map<Integer, Question> map;
- private Set<Integer> ids;
- private Map<String,String> answers;
- private Map<Integer, String> locations;
-
-
- /**
- * Creates new form GUI
- */
- public GUI(ClientProperties props){
-
- frame = this;
- this.props = props;
- this.connectorClientDB = new DBconnectorClient(props.getDbMsAccess());
- survey_submitted = false;
- close_trials = 0;
-
-
- try {
- initComponents();
-
- viewer = new Viewer(jScrollPane2, null);
- viewer.setupViewer();
-
- // create questionnare
-
-
- System.out.println("#of questions: " + ids.size());
-
-// viewer_q = new Viewer(jScrollPane4, null);
-// viewer_q.setupViewer();
-//
-// // specify file you wish to open (JPedal handles getting the byte data)
-// String filepathReport = "outputPDF/buttons_filled.pdf";
-//
-// // open generated PDF
-// // object must be either String in full filepath, or
-// // File object which can be relative
-// Object[] input = new Object[]{ new File(filepathReport) };
-// viewer_q.executeCommand(Commands.OPENFILE, input);
-
- JButton btnSubmitQuestionnaire = new JButton("Submit Questionnaire");
- btnSubmitQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- btnSubmitQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- submitButtonActionPerformed(arg0);
- }
- });
- JButton btnResetQuestionnaire = new JButton("Save as PDF");
- btnResetQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- savePDFButtonActionPerformed(arg0);
- }
- });
- btnResetQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- JPanel panel_button = new JPanel();
- panel_button.setLayout(new BoxLayout(panel_button, BoxLayout.X_AXIS));
-
- lblNewLabel_3 = new JLabel("");
- lblNewLabel_3.setIcon(new ImageIcon("res/location_icon.png"));
- panel_button.add(lblNewLabel_3);
-
-
-
- comboBox = new JComboBox<String>();
- comboBox.setFont(new Font("Tahoma", Font.BOLD, 12));
- comboBox.setModel(new DefaultComboBoxModel<String>(new String[] {"Select Location"}));
- for(Integer id_loc : locations.keySet()){
- comboBox.addItem(locations.get(id_loc));
- }
-
-
- panel_button.add(comboBox);
-
- rigidArea = Box.createRigidArea(new Dimension(10, 0));
- panel_button.add(rigidArea);
-
- lblNewLabel_1 = new JLabel("");
- lblNewLabel_1.setIcon(new ImageIcon("res/submit.png"));
- panel_button.add(lblNewLabel_1);
- panel_button.add(btnSubmitQuestionnaire);
-
- panel_button.add(Box.createRigidArea(new Dimension(10,0)));
-
- lblNewLabel_2 = new JLabel("");
- lblNewLabel_2.setIcon(new ImageIcon("res/pdf.png"));
- panel_button.add(lblNewLabel_2);
- panel_button.add(btnResetQuestionnaire);
- panel_button.setPreferredSize(new Dimension(211, 35));
- panel_button.validate();
-
- JPanel panel_3 = new JPanel();
- GroupLayout gl_panel = new GroupLayout(panel);
- gl_panel.setHorizontalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(41)
- .addGroup(gl_panel.createParallelGroup(Alignment.TRAILING)
- .addComponent(jScrollPane4, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE)
- .addComponent(panel_1, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE))
- .addGap(32))
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(63)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addGap(103)
- .addComponent(panel_button, GroupLayout.DEFAULT_SIZE, 488, Short.MAX_VALUE)
- .addGap(241))
- );
- gl_panel.setVerticalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(22)
- .addComponent(panel_1, GroupLayout.DEFAULT_SIZE, 192, Short.MAX_VALUE)
- .addGap(18)
- .addComponent(jScrollPane4, GroupLayout.DEFAULT_SIZE, 437, Short.MAX_VALUE)
- .addGap(26)
- .addGroup(gl_panel.createParallelGroup(Alignment.LEADING)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(panel_button, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE)))
- );
- panel_3.setLayout(new BoxLayout(panel_3, BoxLayout.X_AXIS));
-
-
- panel.setLayout(gl_panel);
-
-
-
-
-
-
- /////////////////////////////////////////////////////////
- // display the tests available
-
- // get the tests
- HashMap<String, ArrayList<TestName>> testsRelevantByGroup = connectorClientDB.getRelevantTestsByGroup();
- ArrayList<String> groups = new ArrayList<String>(testsRelevantByGroup.keySet());
-
- // flatten hashmap into linkedlist
-// tests = new LinkedList<>();
- testsByName = new HashMap<String, TestName>();
- for (String group : groups) {
-// tests.addAll(testsRelevantByGroup.get(group));
- for (TestName test : testsRelevantByGroup.get(group)) {
- testsByName.put(test.getName(), test);
- }
- }
-
- // define tree structure of the tests
- DefaultMutableTreeNode root = new DefaultMutableTreeNode("All");
-
- for (String group : groups) {
- DefaultMutableTreeNode child = new DefaultMutableTreeNode(group);
- root.add(child);
-
- for (TestName test : testsRelevantByGroup.get(group)) {
- DefaultMutableTreeNode grandChild = new DefaultMutableTreeNode(test.getName());
- child.add(grandChild);
- }
- }
-
- // define swing object
- jTree = new JTree(root);
-
- for(int i=0;i<jTree.getRowCount();i++){
- jTree.expandRow(i);
- }
-
- jScrollPane3.setViewportView(jTree);
-// jTree.addTreeSelectionListener(new TreeSelectionListener() {
-//
-// @Override
-// public void valueChanged(TreeSelectionEvent e) {
-// tp = jTree.getSelectionPaths();
-// }
-// });
- jScrollPane3.setViewportView(jTree);
-
- /////////////////////////////////////////////////////////
- // display the patients registered
-
- patients = connectorClientDB.getPatients();
- for (Integer patientId : patients) {
- jComboBox1.addItem(patientId.toString());
- }
-
- } catch (SQLException ex) {
- Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex);
- ex.printStackTrace();
-// } catch (IOException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
-// } catch (DocumentException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
- }
-
- }
-
- /**
- * 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() {
-
- jPanel1 = new javax.swing.JPanel();
- jLabel2 = new javax.swing.JLabel();
- jLabel1 = new javax.swing.JLabel();
- jPanel2 = new javax.swing.JPanel();
- jComboBox1 = new javax.swing.JComboBox<String>();
- jButton1 = new javax.swing.JButton();
- jButton1.setFont(new Font("Tahoma", Font.BOLD, 12));
- jLabel3 = new javax.swing.JLabel();
- jLabel4 = new javax.swing.JLabel();
- jScrollPane3 = new javax.swing.JScrollPane();
- jScrollPane2 = new javax.swing.JScrollPane();
- jMenuBar1 = new javax.swing.JMenuBar();
- jMenu1 = new javax.swing.JMenu();
- jMenuItem1 = new javax.swing.JMenuItem();
- jMenu2 = new javax.swing.JMenu();
- dialog = new JDialog();
- tabbedPane = new JTabbedPane(JTabbedPane.TOP);
-
- setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
- addWindowListener(new WindowAdapter() {
- @Override
- public void windowClosing(java.awt.event.WindowEvent windowEvent) {
- if (!survey_submitted && close_trials <= 2){
- JOptionPane.showMessageDialog(frame, "Before closing the application, please fill in and submit the questionnaire.");
- close_trials++;
- tabbedPane.setSelectedIndex(1);
- }else{
- System.exit(0);
- }
- }
- });
- setTitle("HIV Pharmacogenomics\n");
-
- jLabel2.setIcon(new javax.swing.ImageIcon("res/shcs_logo2_small.gif")); // NOI18N
-
- jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
- jLabel1.setText("HIV Pharmacogenomics | Project #693");
-
- javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
- jPanel1.setLayout(jPanel1Layout);
- jPanel1Layout.setHorizontalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap(71, Short.MAX_VALUE)
- .addComponent(jLabel1)
- .addGap(18, 18, 18)
- .addComponent(jLabel2))
- );
- jPanel1Layout.setVerticalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jLabel1)
- .addGap(11, 11, 11))
- .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)
- );
-
- jPanel2.setBackground(new java.awt.Color(255, 255, 255));
- jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
-
- jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<String>(new String[]{"Select Patient"}));
-
- jButton1.setText("Run Test");
- jButton1.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton1ActionPerformed(evt);
- }
- });
-
- JLabel lblNewLabel = new JLabel("");
- lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
- lblNewLabel.setIcon(new javax.swing.ImageIcon("res/gears.png"));
-
-
-
- javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
- jPanel2Layout.setHorizontalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addComponent(jComboBox1, 0, 248, Short.MAX_VALUE)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addGap(75)
- .addGroup(jPanel2Layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jButton1)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 75, GroupLayout.PREFERRED_SIZE))
- .addContainerGap(98, Short.MAX_VALUE))
- );
- jPanel2Layout.setVerticalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addComponent(jComboBox1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED, 223, Short.MAX_VALUE)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jButton1)
- .addGap(19))
- );
- jPanel2.setLayout(jPanel2Layout);
-
- jLabel3.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel3.setText("Select Patient");
-
- jLabel4.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel4.setText("Select Test");
-
- jScrollPane3.setBackground(new java.awt.Color(255, 255, 255));
-
- jMenu1.setText("File");
-
- jMenuItem1.setText("Exit");
- jMenu1.add(jMenuItem1);
-
- jMenuBar1.add(jMenu1);
-
- jMenu2.setText("Edit");
- jMenuBar1.add(jMenu2);
-
- setJMenuBar(jMenuBar1);
-
-
-
- javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
- layout.setHorizontalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(layout.createParallelGroup(Alignment.LEADING, false)
- .addComponent(jLabel3)
- .addComponent(jLabel4)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, 244, Short.MAX_VALUE)
- .addComponent(jScrollPane3))
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 970, Short.MAX_VALUE))
- .addContainerGap())
- );
- layout.setVerticalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel4))
- .addPreferredGap(ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addComponent(jScrollPane3, GroupLayout.PREFERRED_SIZE, 388, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jLabel3)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 785, Short.MAX_VALUE))
- .addContainerGap())
- );
-
-
- jScrollPane2.setAutoscrolls(true);
- jScrollPane3.setAutoscrolls(true);
- tabbedPane.addTab("Report", new ImageIcon("res/report_icon.gif"), jScrollPane2, null);
- tabbedPane.setBackgroundAt(0, new Color(255, 255, 255));
-
- panel = new JPanel();
- tabbedPane.addTab("Survey", new ImageIcon("res/survey_icon.png"), panel, null);
- tabbedPane.setBackgroundAt(1, new Color(255, 255, 255));
- tabbedPane.setEnabledAt(1, true);
-
- panel_1 = new JPanel();
- panel_1.setBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null));
- panel_1.setBackground(UIManager.getColor("Button.background"));
-
- JLabel label = new JLabel("");
- label.setIcon(new ImageIcon("res/shcs_logo2_medium.gif"));
-
- lblDearDoctor = new JLabel("Dear Doctor,");
- lblDearDoctor.setFont(new Font("Tahoma", Font.BOLD, 14));
-
- JScrollPane scrollPane = new JScrollPane();
- scrollPane.setBorder(null);
- GroupLayout gl_panel_1 = new GroupLayout(panel_1);
- gl_panel_1.setHorizontalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(25)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 666, Short.MAX_VALUE)
- .addComponent(lblDearDoctor))
- .addContainerGap())
- );
- gl_panel_1.setVerticalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(22)
- .addComponent(lblDearDoctor)
- .addGap(18)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 120, Short.MAX_VALUE)
- .addContainerGap())
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(36)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 96, GroupLayout.PREFERRED_SIZE)
- .addContainerGap(56, Short.MAX_VALUE))
- );
-
- JTextPane txtpnTodayYouAre = new JTextPane();
- txtpnTodayYouAre.setBorder(null);
- txtpnTodayYouAre.setText("Today you are receiving a pharmacogenetic report based on the genetic information of your patient. Because the human genome contains extremely private and sensitive information of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier, it must be managed with care.\r\nToday you are receiving a pharmacogenetic report based on the genetic information of your patient. Because the human genome contains extremely private and sensitive information of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier, it must be managed with care.\r\nToday you are receiving a pharmacogenetic report based on the genetic information of your patient. Because the human genome contains extremely private and sensitive information of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier, it must be managed with care.");
- txtpnTodayYouAre.setFont(new Font("Tahoma", Font.PLAIN, 13));
- txtpnTodayYouAre.setEditable(false);
- txtpnTodayYouAre.setBackground(SystemColor.menu);
- scrollPane.setViewportView(txtpnTodayYouAre);
- panel_1.setLayout(gl_panel_1);
- jScrollPane4 = new javax.swing.JScrollPane();
- getContentPane().setLayout(layout);
-
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
- ReplySurvey replySurvey = commHandlerAdapter.callServiceSurvey();
-
- map = replySurvey.getQuestions();
- ids = map.keySet();
- locations = replySurvey.getLocations();
-
- panel_2 = new JPanel();
- panel_2.setBackground(Color.WHITE);
- panel_2.setBorder(new BevelBorder(BevelBorder.LOWERED, null, null, null, null));
- jScrollPane4.setViewportView(panel_2);
- panel_2.setLayout(new BoxLayout(panel_2, BoxLayout.Y_AXIS));
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
-
-
- for(Integer id : ids){
- ButtonGroup group = new ButtonGroup();
- JRadioButton r1 = new JRadioButton("1"); r1.setActionCommand("1"); r1.setBackground(Color.WHITE);
- JRadioButton r2 = new JRadioButton("2"); r2.setActionCommand("2"); r2.setBackground(Color.WHITE);
- JRadioButton r3 = new JRadioButton("3"); r3.setActionCommand("3"); r3.setBackground(Color.WHITE);
- JRadioButton r4 = new JRadioButton("4"); r4.setActionCommand("4"); r4.setBackground(Color.WHITE);
- JRadioButton r5 = new JRadioButton("5"); r5.setActionCommand("5"); r5.setBackground(Color.WHITE);
- group.add(r1);
- group.add(r2);
- group.add(r3);
- group.add(r4);
- group.add(r5);
- JPanel radio_panel = new JPanel();
- radio_panel.setLayout((new BoxLayout(radio_panel, BoxLayout.X_AXIS)));
- radio_panel.setBackground(Color.WHITE);
- radio_panel.setAlignmentX(Component.CENTER_ALIGNMENT);
- radio_panel.add(r1);
- radio_panel.add(r2);
- radio_panel.add(r3);
- radio_panel.add(r4);
- radio_panel.add(r5);
- radio_panel.doLayout();
- radio_panel.setPreferredSize(radio_panel.getPreferredSize());
- JTextArea question = new JTextArea(id + ") " + map.get(id).getQuestion());
- question.setLineWrap(true);
- question.setWrapStyleWord(true);
- question.setAlignmentX(Component.CENTER_ALIGNMENT);
- question.setFont(new Font("Tahoma", Font.PLAIN, 13));
- JPanel row_panel = new JPanel();
- row_panel.setLayout(new BoxLayout(row_panel, BoxLayout.X_AXIS));
- row_panel.add(question);
- add(Box.createRigidArea(new Dimension(10,0)));
- row_panel.add(radio_panel);
-
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- panel_2.add(row_panel);
-// panel_2.add(Box.createRigidArea(new Dimension(0,5)));
-// panel_2.add(radio_panel);
- panel_2.add(new JSeparator());
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- buttonGroupMap.put(id, group);
-
- }
-
-
-
- this.setSize(new Dimension(1200, 865));
-// pack();
- }// </editor-fold>//GEN-END:initComponents
-
-
- private void submitButtonActionPerformed(java.awt.event.ActionEvent evt){
-
- try{
- answers = new HashMap<String, String>();
- StringBuilder sb = new StringBuilder();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- sb.append(q).append(",");
- sb.append(bg.getSelection().getActionCommand()).append(";");
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- String answer = sb.toString();
- Integer id_loc = null;
- for(Integer i: locations.keySet()){
- if(locations.get(i).equals(comboBox.getSelectedItem().toString()))
- id_loc = i;
- }
-
- String id_p;
- if(jComboBox1.getSelectedItem().toString().equals("Select Patient"))
- id_p = "0";
- else
- id_p = jComboBox1.getSelectedItem().toString();
-
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
-
- String reply = commHandlerAdapter.callServiceSurveyAnswer(answer, id_loc.toString(), id_p);
-
- if(reply.equals("1")){
- survey_submitted = true;
-
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Congrats! Your aswers have been sent to the SHCS datacenter.",
- "Information Message",
- JOptionPane.INFORMATION_MESSAGE);
- }
- else{
- throw new IOException();
- }
-
-
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "The SHCS datacenter does not respond. Please save the survey and send it to jean.raisaro@epfl.ch.",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
- private void savePDFButtonActionPerformed(java.awt.event.ActionEvent evt){
- try {
-
- answers = new HashMap<String, String>();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- JFileChooser chooser = new JFileChooser();
- // Note: source for ExampleFileFilter can be found in FileChooserDemo,
- // under the demo/jfc directory in the JDK.
-
- int returnVal = chooser.showSaveDialog(this);
- System.out.println(returnVal);
- if(returnVal == JFileChooser.APPROVE_OPTION) {
- System.out.println("You chose to open this file: " +
- chooser.getSelectedFile().getPath());
- quest = new Questionnaire(chooser.getSelectedFile().getPath() + ".pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }else{
- quest = new Questionnaire("outputPDF/survey.pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }
-
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (DocumentException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (NullPointerException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
-
- private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
-
- JPanel contentPanel = new JPanel();
-
- dialog.setBounds(100, 100, 410, 80);
- dialog.getContentPane().setLayout(new BorderLayout());
- contentPanel.setLayout(new FlowLayout());
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- dialog.getContentPane().add(contentPanel, BorderLayout.CENTER);
- {
- JLabel label = new JLabel("Please wait...The overall computation can take few seconds");
- label.setHorizontalAlignment(SwingConstants.CENTER);
- label.setFont(new Font("Tahoma", Font.PLAIN, 12));
- contentPanel.add(label);
- }
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
- dialog.getContentPane().add(buttonPane, BorderLayout.SOUTH);
- }
- dialog.setLocationRelativeTo(this);
- dialog.setVisible(true);
-
- GUIWorker gw = new GUIWorker(this, props);
- Thread t = new Thread(gw);
- t.start();
-
- }
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JButton jButton1;
- private javax.swing.JComboBox<String> jComboBox1;
- private javax.swing.JLabel jLabel1;
- private javax.swing.JLabel jLabel2;
- private javax.swing.JLabel jLabel3;
- private javax.swing.JLabel jLabel4;
- private javax.swing.JMenu jMenu1;
- private javax.swing.JMenu jMenu2;
- private javax.swing.JMenuBar jMenuBar1;
- private javax.swing.JMenuItem jMenuItem1;
- private javax.swing.JPanel jPanel1;
- private javax.swing.JPanel jPanel2;
- private javax.swing.JScrollPane jScrollPane3;
- private javax.swing.JTabbedPane tabbedPane;
- private javax.swing.JScrollPane jScrollPane2;
- private javax.swing.JScrollPane jScrollPane4;
- private JPanel panel;
- private JPanel panel_1;
- private JPanel panel_2;
- private JLabel lblDearDoctor;
- private JLabel lblNewLabel_1;
- private JLabel lblNewLabel_2;
- private JLabel lblNewLabel_3;
- private JComboBox<String> comboBox;
- private Component rigidArea;
-
- // End of variables declaration//GEN-END:variables
-
-
- class GUIWorker implements Runnable{
-
- private JFrame mainFrame;
- private ClientProperties props;
- private MedUnit mu;
-
- public GUIWorker(GUI gui, ClientProperties props) {
- mainFrame = gui;
-
- this.props = props;
- this.mu = new MedUnit(props, 0);
- }
-
- @Override
- public void run() {
-
- try{
- int patientId = Integer.parseInt((String) jComboBox1.getSelectedItem());
-
- // convert selected tests to test identifiers
- ArrayList<TestName> selectedTests = new ArrayList<TestName>();
- for (String currentName : getSelectedTests()) {
- TestName currentTest = testsByName.get(currentName);
-
- if (currentTest == null) {
- throw new IllegalStateException("Trying to run unknown test: " + currentTest);
- }
-
- selectedTests.add(currentTest);
- }
-
- // run tests
- Diagnostic diagnostic = mu.runTests(patientId, selectedTests);
-
- // warn for tests with missing material
- warnFailedTests(diagnostic, selectedTests);
-
- // create report
- mu.createReport(patientId, selectedTests, diagnostic);
-
- dialog.setVisible(false);
-
- // specify file you wish to open (JPedal handles getting the byte data)
- String filepathReport = props.getPathPDF() + patientId + ".pdf";
-
- // open generated PDF
- // object must be either String in full filepath, or
- // File object which can be relative
- Object[] input = new Object[]{ new File(filepathReport) };
- viewer.executeCommand(Commands.OPENFILE, input);
-
- // display CAD result as bar plot
- if (diagnostic.hasCAD()) {
- System.out.println("CAD = " + diagnostic.getResultCAD());
- BarPlotFrame frame = new BarPlotFrame(diagnostic.getResultCAD(), patientId);
- frame.setVisible(true);
- frame.setAlwaysOnTop(true);
- }
-
-
- } catch (SQLException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Please select a patient.");
- }
-
- }
-
- private void warnFailedTests(Diagnostic diagnostic, ArrayList<TestName> selectedTests) {
- ArrayList<Integer> failedTests = diagnostic.getInvalidTests();
-
- if (!failedTests.isEmpty()) {
- String msg = "Could not complete tests: ";
- boolean first = true;
- for (TestName testName : selectedTests) {
- if (failedTests.contains(testName.getId())) {
- if (first) {
- first = false;
- } else {
- msg += ", ";
- }
- msg += testName.getName();
- }
- }
- displayError(msg);
- }
-
- }
-
- private void displayError(String msg) {
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- mainFrame,
- msg,
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
-
- private ArrayList<String> getSelectedTests() {
- ArrayList<String> tests = new ArrayList<String>();
-
- for (TreePath treePath : jTree.getSelectionPaths()) {
- tests.addAll(getChildrenTests(jTree.getModel(), treePath.getLastPathComponent()));
- }
-
- return tests;
- }
-
- private ArrayList<String> getChildrenTests(TreeModel model, Object node) {
- ArrayList<String> tests = new ArrayList<String>();
-
- if (model.isLeaf(node)) { // leaf
- DefaultMutableTreeNode leaf = (DefaultMutableTreeNode) node;
- tests.add(leaf.toString());
- }
- else { // iterate over children
- for (int i = 0; i < model.getChildCount(node); i++) {
- tests.addAll(getChildrenTests(model, model.getChild(node, i)));
- }
- }
-
- return tests;
- }
-
- }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/e2/70e70c886cac00141cc3aa66275e9c24 b/.metadata/.plugins/org.eclipse.core.resources/.history/2/8056f98056b8001410a9a5e67cac6f3a
similarity index 74%
copy from .metadata/.plugins/org.eclipse.core.resources/.history/e2/70e70c886cac00141cc3aa66275e9c24
copy to .metadata/.plugins/org.eclipse.core.resources/.history/2/8056f98056b8001410a9a5e67cac6f3a
index 8b30fef..e622236 100644
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/e2/70e70c886cac00141cc3aa66275e9c24
+++ b/.metadata/.plugins/org.eclipse.core.resources/.history/2/8056f98056b8001410a9a5e67cac6f3a
@@ -1,927 +1,948 @@
package ui;
import io.ClientConnection;
import io.CommAdapter;
import io.Questionnaire;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Font;
import java.awt.SystemColor;
+import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowAdapter;
import java.io.File;
import java.io.IOException;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.Map;
import java.util.Set;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.Box;
import javax.swing.BoxLayout;
import javax.swing.ButtonGroup;
import javax.swing.DefaultComboBoxModel;
import javax.swing.GroupLayout;
import javax.swing.GroupLayout.Alignment;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JDialog;
import javax.swing.JFileChooser;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JRadioButton;
import javax.swing.JScrollPane;
import javax.swing.JSeparator;
import javax.swing.JTabbedPane;
import javax.swing.JTextArea;
import javax.swing.JTextPane;
import javax.swing.JTree;
import javax.swing.LayoutStyle.ComponentPlacement;
import javax.swing.SwingConstants;
import javax.swing.border.EmptyBorder;
import javax.swing.border.LineBorder;
import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.tree.TreeModel;
import javax.swing.tree.TreePath;
import org.jpedal.examples.viewer.Commands;
import org.jpedal.examples.viewer.Viewer;
import utils.ClientProperties;
import com.itextpdf.text.DocumentException;
import database.DBconnectorClient;
import framework.Diagnostic;
import framework.MedUnit;
import framework.Question;
import framework.reply.ReplySurvey;
import framework.test.TestName;
+import javax.swing.JSplitPane;
+import java.awt.event.MouseAdapter;
+import java.awt.event.MouseEvent;
/**
*
- * @author youssef, raisaro
+ * @author raisaro
*/
public class GUI extends javax.swing.JFrame {
private static final Logger LOGGER = Logger.getLogger(GUI.class.getName());
private static final long serialVersionUID = -4582280515597700650L;
// configuration
private ClientProperties props;
private JTree jTree;
private DBconnectorClient connectorClientDB;
private LinkedList<Integer> patients;
/** List of all relevant tests */
private HashMap<String, TestName> testsByName;
private Viewer viewer;
private JDialog dialog;
private JFrame frame;
private boolean survey_submitted;
private int close_trials;
private Map<Integer, ButtonGroup> buttonGroupMap;
private Questionnaire quest;
private Map<Integer, Question> map;
private Set<Integer> ids;
private Map<String,String> answers;
private Map<Integer, String> locations;
+ private JButton btnSubmitQuestionnaire;
/**
* Creates new form GUI
*/
public GUI(ClientProperties props){
+ setLocationByPlatform(true);
+ setIconImage(Toolkit.getDefaultToolkit().getImage("res/shcs_logo2_icon.png"));
frame = this;
this.props = props;
this.connectorClientDB = new DBconnectorClient(props.getDbMsAccess());
survey_submitted = false;
close_trials = 0;
try {
initComponents();
viewer = new Viewer(jScrollPane2, null);
viewer.setupViewer();
- // create questionnare
-
+ // create questionnare
+
System.out.println("#of questions: " + ids.size());
-// viewer_q = new Viewer(jScrollPane4, null);
-// viewer_q.setupViewer();
-//
-// // specify file you wish to open (JPedal handles getting the byte data)
-// String filepathReport = "outputPDF/buttons_filled.pdf";
-//
-// // open generated PDF
-// // object must be either String in full filepath, or
-// // File object which can be relative
-// Object[] input = new Object[]{ new File(filepathReport) };
-// viewer_q.executeCommand(Commands.OPENFILE, input);
-
- JButton btnSubmitQuestionnaire = new JButton("Submit Questionnaire");
+
+ btnSubmitQuestionnaire = new JButton("Submit Questionnaire");
btnSubmitQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
btnSubmitQuestionnaire.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
submitButtonActionPerformed(arg0);
}
});
JButton btnResetQuestionnaire = new JButton("Save as PDF");
btnResetQuestionnaire.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
savePDFButtonActionPerformed(arg0);
}
});
btnResetQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
JPanel panel_button = new JPanel();
panel_button.setLayout(new BoxLayout(panel_button, BoxLayout.X_AXIS));
lblNewLabel_3 = new JLabel("");
lblNewLabel_3.setIcon(new ImageIcon("res/location_icon.png"));
panel_button.add(lblNewLabel_3);
comboBox = new JComboBox<String>();
comboBox.setFont(new Font("Tahoma", Font.BOLD, 12));
comboBox.setModel(new DefaultComboBoxModel<String>(new String[] {"Select Location"}));
for(Integer id_loc : locations.keySet()){
comboBox.addItem(locations.get(id_loc));
}
panel_button.add(comboBox);
rigidArea = Box.createRigidArea(new Dimension(10, 0));
panel_button.add(rigidArea);
lblNewLabel_1 = new JLabel("");
lblNewLabel_1.setIcon(new ImageIcon("res/submit.png"));
panel_button.add(lblNewLabel_1);
panel_button.add(btnSubmitQuestionnaire);
panel_button.add(Box.createRigidArea(new Dimension(10,0)));
lblNewLabel_2 = new JLabel("");
lblNewLabel_2.setIcon(new ImageIcon("res/pdf.png"));
panel_button.add(lblNewLabel_2);
panel_button.add(btnResetQuestionnaire);
panel_button.setPreferredSize(new Dimension(211, 35));
panel_button.validate();
- JPanel panel_3 = new JPanel();
+ splitPane = new JSplitPane();
+ splitPane.setOneTouchExpandable(true);
+ splitPane.setResizeWeight(0.52);
+ splitPane.setOrientation(JSplitPane.VERTICAL_SPLIT);
+
GroupLayout gl_panel = new GroupLayout(panel);
gl_panel.setHorizontalGroup(
- gl_panel.createParallelGroup(Alignment.TRAILING)
+ gl_panel.createParallelGroup(Alignment.LEADING)
.addGroup(gl_panel.createSequentialGroup()
- .addGap(63)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addGap(103)
- .addComponent(panel_button, GroupLayout.DEFAULT_SIZE, 498, Short.MAX_VALUE)
- .addGap(241))
+ .addGap(165)
+ .addComponent(panel_button, GroupLayout.DEFAULT_SIZE, 421, Short.MAX_VALUE)
+ .addGap(242))
.addGroup(gl_panel.createSequentialGroup()
- .addGap(41)
- .addGroup(gl_panel.createParallelGroup(Alignment.TRAILING)
- .addComponent(jScrollPane4, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE)
- .addComponent(panel_1, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE))
- .addGap(32))
+ .addContainerGap()
+ .addComponent(splitPane, GroupLayout.DEFAULT_SIZE, 738, Short.MAX_VALUE)
+ .addGap(80))
);
gl_panel.setVerticalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
+ gl_panel.createParallelGroup(Alignment.TRAILING)
.addGroup(gl_panel.createSequentialGroup()
- .addGap(22)
- .addComponent(panel_1, GroupLayout.PREFERRED_SIZE, 235, GroupLayout.PREFERRED_SIZE)
- .addGap(37)
- .addComponent(jScrollPane4, GroupLayout.DEFAULT_SIZE, 379, Short.MAX_VALUE)
- .addGap(26)
- .addGroup(gl_panel.createParallelGroup(Alignment.LEADING)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(panel_button, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE)))
+ .addContainerGap()
+ .addComponent(splitPane, GroupLayout.DEFAULT_SIZE, 603, Short.MAX_VALUE)
+ .addPreferredGap(ComponentPlacement.RELATED)
+ .addComponent(panel_button, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE)
+ .addGap(11))
+ );
+
+ panel_1 = new JPanel();
+ panel_1.setMinimumSize(new Dimension(10, 0));
+ panel_1.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
+ panel_1.setBackground(SystemColor.menu);
+ splitPane.setLeftComponent(panel_1);
+
+ label_1 = new JLabel("");
+ label_1.setIcon(new ImageIcon("res/shcs_logo2_medium.gif"));
+
+ label_2 = new JLabel("");
+ label_2.setIcon(new ImageIcon("res/EPFL_logo.png"));
+
+ label_3 = new JLabel("");
+ label_3.setIcon(new ImageIcon("res/chuv_logo.png"));
+
+ label_4 = new JLabel("Dear Doctor,");
+ label_4.setFont(new Font("Tahoma", Font.BOLD, 14));
+
+ scrollPane = new JScrollPane();
+ scrollPane.setBorder(null);
+ GroupLayout gl_panel_1 = new GroupLayout(panel_1);
+ gl_panel_1.setHorizontalGroup(
+ gl_panel_1.createParallelGroup(Alignment.LEADING)
+ .addGroup(gl_panel_1.createSequentialGroup()
+ .addGap(25)
+ .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
+ .addComponent(label_3)
+ .addComponent(label_2)
+ .addComponent(label_1, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE))
+ .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
+ .addGroup(gl_panel_1.createSequentialGroup()
+ .addGap(20)
+ .addComponent(label_4)
+ .addGap(109))
+ .addGroup(gl_panel_1.createSequentialGroup()
+ .addGap(10)
+ .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 557, Short.MAX_VALUE)
+ .addContainerGap())))
);
- panel_3.setLayout(new BoxLayout(panel_3, BoxLayout.X_AXIS));
+ gl_panel_1.setVerticalGroup(
+ gl_panel_1.createParallelGroup(Alignment.LEADING)
+ .addGroup(gl_panel_1.createSequentialGroup()
+ .addContainerGap()
+ .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
+ .addGroup(gl_panel_1.createSequentialGroup()
+ .addComponent(label_4)
+ .addPreferredGap(ComponentPlacement.UNRELATED)
+ .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 416, Short.MAX_VALUE))
+ .addGroup(gl_panel_1.createSequentialGroup()
+ .addGap(9)
+ .addComponent(label_1, GroupLayout.PREFERRED_SIZE, 96, GroupLayout.PREFERRED_SIZE)
+ .addGap(18)
+ .addComponent(label_2)
+ .addGap(28)
+ .addComponent(label_3)))
+ .addContainerGap(114, GroupLayout.PREFERRED_SIZE))
+ );
+
+ introduction = new JTextPane();
+ introduction.setBackground(SystemColor.control);
+ introduction.setContentType("text/html");
+ introduction.setText("You are receiving a pharmacogenetics report based on the genome of your patient. Because of its highly sensitive nature, the genetic information you are provided with is processed in a privacy-preserving way. In particular, to protect patients\u2019 genomic privacy, their genetic and clinical data are stored encrypted at the SHCS data center, and securely analyzed through a sophisticated algorithm designed and developed at EPFL [1, 2]. The actual clinical and genetic information is never revealed. Only the authorized users, such as you, can get some processed information, for example, the interpreted final result of a pharmacogenetics risk test.\r\nThis mechanism protects the data against insiders or hackers trying to illegally access patients\u2019 medical information, while still allowing authorized users to obtain the information they need.\r\n<br><br>\r\n<b>To help us better understanding the importance of genomic privacy in the medical domain, and the impact of privacy-enhancing technologies in daily clinical practice, please complete the following survey. Answers are on a scale from 1 (Strongly Disagree) to 5 (Strongly Agree).</b>\r\n<font size=\"2\">\r\n<br><br>\r\nNote: this work is part of Project #693, funded by the Swiss HIV Cohort. PIs: Prof. A. Telenti, formerly at CHUV, and Prof. J.-P. Hubaux, at EPFL.\r\n<br><br>\r\n[1] J. L. Raisaro, E. Ayday, P. J. McLaren, J.-P. Hubaux, and A. Telenti. Privacy-Preserving HIV Pharmacogenetics: A Real Use Case of Genomic Data Protection. GenoPri 2014<br>\r\n[2] E. Ayday, J. L. Raisaro, J. Rougemont, and J.-P. Hubaux. Protecting and Evaluating Genomic Privacy in Medical Tests and Personalized Medicine. WPES 2013\r\n</font>");
+ scrollPane.setViewportView(introduction);
+ panel_1.setLayout(gl_panel_1);
+
+ jScrollPane4 = new JScrollPane();
+ jScrollPane4.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
+ splitPane.setRightComponent(jScrollPane4);
+
+
+ jScrollPane4.setViewportView(panel_2);
+ javax.swing.SwingUtilities.invokeLater(new Runnable() {
+ public void run() {
+ jScrollPane4.getVerticalScrollBar().setValue(0);
+ }
+ });
+ introduction.setCaretPosition(0);
panel.setLayout(gl_panel);
/////////////////////////////////////////////////////////
// display the tests available
// get the tests
HashMap<String, ArrayList<TestName>> testsRelevantByGroup = connectorClientDB.getRelevantTestsByGroup();
ArrayList<String> groups = new ArrayList<String>(testsRelevantByGroup.keySet());
// flatten hashmap into linkedlist
// tests = new LinkedList<>();
testsByName = new HashMap<String, TestName>();
for (String group : groups) {
// tests.addAll(testsRelevantByGroup.get(group));
for (TestName test : testsRelevantByGroup.get(group)) {
testsByName.put(test.getName(), test);
}
}
// define tree structure of the tests
DefaultMutableTreeNode root = new DefaultMutableTreeNode("All");
for (String group : groups) {
DefaultMutableTreeNode child = new DefaultMutableTreeNode(group);
root.add(child);
for (TestName test : testsRelevantByGroup.get(group)) {
DefaultMutableTreeNode grandChild = new DefaultMutableTreeNode(test.getName());
child.add(grandChild);
}
}
// define swing object
jTree = new JTree(root);
+ jTree.setFont(new Font("Tahoma", Font.PLAIN, 11));
for(int i=0;i<jTree.getRowCount();i++){
jTree.expandRow(i);
}
jScrollPane3.setViewportView(jTree);
// jTree.addTreeSelectionListener(new TreeSelectionListener() {
//
// @Override
// public void valueChanged(TreeSelectionEvent e) {
// tp = jTree.getSelectionPaths();
// }
// });
jScrollPane3.setViewportView(jTree);
/////////////////////////////////////////////////////////
// display the patients registered
patients = connectorClientDB.getPatients();
for (Integer patientId : patients) {
jComboBox1.addItem(patientId.toString());
}
} catch (SQLException ex) {
Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex);
ex.printStackTrace();
// } catch (IOException e) {
// // TODO Auto-generated catch block
// e.printStackTrace();
// } catch (DocumentException e) {
// // TODO Auto-generated catch block
// e.printStackTrace();
}
}
/**
* 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() {
-
- jPanel1 = new javax.swing.JPanel();
- jLabel2 = new javax.swing.JLabel();
- jLabel1 = new javax.swing.JLabel();
jPanel2 = new javax.swing.JPanel();
jComboBox1 = new javax.swing.JComboBox<String>();
+ jComboBox1.setFont(new Font("Tahoma", Font.BOLD, 12));
jButton1 = new javax.swing.JButton();
jButton1.setFont(new Font("Tahoma", Font.BOLD, 12));
jLabel3 = new javax.swing.JLabel();
jLabel4 = new javax.swing.JLabel();
jScrollPane3 = new javax.swing.JScrollPane();
jScrollPane2 = new javax.swing.JScrollPane();
+ jScrollPane2.setMinimumSize(new Dimension(5, 5));
jMenuBar1 = new javax.swing.JMenuBar();
jMenu1 = new javax.swing.JMenu();
jMenuItem1 = new javax.swing.JMenuItem();
jMenu2 = new javax.swing.JMenu();
dialog = new JDialog();
tabbedPane = new JTabbedPane(JTabbedPane.TOP);
+ tabbedPane.setFont(new Font("Tahoma", Font.BOLD, 12));
setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
addWindowListener(new WindowAdapter() {
@Override
public void windowClosing(java.awt.event.WindowEvent windowEvent) {
if (!survey_submitted && close_trials <= 2){
JOptionPane.showMessageDialog(frame, "Before closing the application, please fill in and submit the questionnaire.");
close_trials++;
tabbedPane.setSelectedIndex(1);
}else{
System.exit(0);
}
}
});
- setTitle("HIV Pharmacogenomics\n");
-
- jLabel2.setIcon(new javax.swing.ImageIcon("res/shcs_logo2_small.gif")); // NOI18N
-
- jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
- jLabel1.setText("HIV Pharmacogenomics | Project #693");
-
- javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
- jPanel1.setLayout(jPanel1Layout);
- jPanel1Layout.setHorizontalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap(71, Short.MAX_VALUE)
- .addComponent(jLabel1)
- .addGap(18, 18, 18)
- .addComponent(jLabel2))
- );
- jPanel1Layout.setVerticalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jLabel1)
- .addGap(11, 11, 11))
- .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)
- );
+ setTitle("Privacy-Preserving HIV Pharmacogenomics\r\n");
jPanel2.setBackground(new java.awt.Color(255, 255, 255));
jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<String>(new String[]{"Select Patient"}));
jButton1.setText("Run Test");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});
JLabel lblNewLabel = new JLabel("");
lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
lblNewLabel.setIcon(new javax.swing.ImageIcon("res/gears.png"));
javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
jPanel2Layout.setHorizontalGroup(
jPanel2Layout.createParallelGroup(Alignment.LEADING)
.addComponent(jComboBox1, 0, 248, Short.MAX_VALUE)
.addGroup(jPanel2Layout.createSequentialGroup()
.addGap(75)
.addGroup(jPanel2Layout.createParallelGroup(Alignment.TRAILING)
.addComponent(jButton1)
.addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 75, GroupLayout.PREFERRED_SIZE))
.addContainerGap(98, Short.MAX_VALUE))
);
jPanel2Layout.setVerticalGroup(
jPanel2Layout.createParallelGroup(Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addComponent(jComboBox1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
.addPreferredGap(ComponentPlacement.RELATED, 223, Short.MAX_VALUE)
.addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE)
.addPreferredGap(ComponentPlacement.RELATED)
.addComponent(jButton1)
.addGap(19))
);
jPanel2.setLayout(jPanel2Layout);
jLabel3.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
jLabel3.setText("Select Patient");
jLabel4.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
jLabel4.setText("Select Test");
jScrollPane3.setBackground(new java.awt.Color(255, 255, 255));
jMenu1.setText("File");
jMenuItem1.setText("Exit");
jMenu1.add(jMenuItem1);
jMenuBar1.add(jMenu1);
jMenu2.setText("Edit");
jMenuBar1.add(jMenu2);
setJMenuBar(jMenuBar1);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
layout.setHorizontalGroup(
layout.createParallelGroup(Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addGroup(layout.createParallelGroup(Alignment.LEADING, false)
- .addComponent(jLabel3)
.addComponent(jLabel4)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, 244, Short.MAX_VALUE)
- .addComponent(jScrollPane3))
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 970, Short.MAX_VALUE))
- .addContainerGap())
+ .addComponent(jLabel3)
+ .addComponent(jScrollPane3, GroupLayout.DEFAULT_SIZE, 234, Short.MAX_VALUE)
+ .addComponent(jPanel2, 0, 0, Short.MAX_VALUE))
+ .addPreferredGap(ComponentPlacement.RELATED)
+ .addComponent(tabbedPane, GroupLayout.PREFERRED_SIZE, 751, Short.MAX_VALUE)
+ .addGap(19))
);
layout.setVerticalGroup(
- layout.createParallelGroup(Alignment.LEADING)
+ layout.createParallelGroup(Alignment.TRAILING)
.addGroup(layout.createSequentialGroup()
+ .addContainerGap()
.addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel4))
- .addPreferredGap(ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(Alignment.LEADING)
+ .addComponent(tabbedPane, Alignment.LEADING, GroupLayout.PREFERRED_SIZE, 687, Short.MAX_VALUE)
.addGroup(layout.createSequentialGroup()
- .addComponent(jScrollPane3, GroupLayout.PREFERRED_SIZE, 388, GroupLayout.PREFERRED_SIZE)
+ .addComponent(jLabel4)
+ .addPreferredGap(ComponentPlacement.RELATED)
+ .addComponent(jScrollPane3, GroupLayout.PREFERRED_SIZE, 356, GroupLayout.PREFERRED_SIZE)
.addPreferredGap(ComponentPlacement.RELATED)
.addComponent(jLabel3)
.addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 785, Short.MAX_VALUE))
+ .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, 283, Short.MAX_VALUE)))
.addContainerGap())
);
jScrollPane2.setAutoscrolls(true);
jScrollPane3.setAutoscrolls(true);
tabbedPane.addTab("Report", new ImageIcon("res/report_icon.gif"), jScrollPane2, null);
tabbedPane.setBackgroundAt(0, new Color(255, 255, 255));
panel = new JPanel();
+ panel.setPreferredSize(new Dimension(0, 0));
tabbedPane.addTab("Survey", new ImageIcon("res/survey_icon.png"), panel, null);
tabbedPane.setBackgroundAt(1, new Color(255, 255, 255));
tabbedPane.setEnabledAt(1, true);
-
- panel_1 = new JPanel();
- panel_1.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
- panel_1.setBackground(SystemColor.control);
-
- JLabel label = new JLabel("");
- label.setIcon(new ImageIcon("res/shcs_logo2_medium.gif"));
-
- lblDearDoctor = new JLabel("Dear Doctor,");
- lblDearDoctor.setFont(new Font("Tahoma", Font.BOLD, 14));
-
- JScrollPane scrollPane = new JScrollPane();
- scrollPane.setBorder(null);
- GroupLayout gl_panel_1 = new GroupLayout(panel_1);
- gl_panel_1.setHorizontalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(Alignment.LEADING, gl_panel_1.createSequentialGroup()
- .addGap(25)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addComponent(lblDearDoctor)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 661, Short.MAX_VALUE))
- .addContainerGap())
- );
- gl_panel_1.setVerticalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addContainerGap()
- .addComponent(lblDearDoctor)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 203, Short.MAX_VALUE))
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(36)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 96, GroupLayout.PREFERRED_SIZE)))
- .addContainerGap())
- );
-
- JTextPane txtpnTodayYouAre = new JTextPane();
- txtpnTodayYouAre.setBorder(null);
- txtpnTodayYouAre.setText("Today you are receiving a pharmacogenetics report based on the genome of your patient. Because of its highly sensitive nature, " +
- "the genetic information you are provided with is processed in a privacy-preserving way. In particular, to protect patients’ genomic privacy, " +
- "their genetic and clinical data is stored encrypted at the SHCS data center, and securely analyzed through a sophisticated algorithm designed and developed at EPFL [1, 2]. " +
- "The actual clinical and genetic information is never revealed. Only the authorized users, such as you, can get some processed information, for example, the final result of a " +
- "pharmacogenetics risk test.\nThis mechanism protects the data against insiders or hackers trying to illegally access patients’ medical information, while still allowing authorized " +
- "users to obtain the information they need." +
- "\n\nTo help us understanding the importance of genomic privacy in the medical domain, and the impact of privacy-enhancing technologies in daily clinical practice, please complete the following survey.");
- txtpnTodayYouAre.setFont(new Font("Tahoma", Font.PLAIN, 13));
- txtpnTodayYouAre.setEditable(false);
- txtpnTodayYouAre.setBackground(SystemColor.control);
- scrollPane.setViewportView(txtpnTodayYouAre);
- panel_1.setLayout(gl_panel_1);
- jScrollPane4 = new javax.swing.JScrollPane();
- jScrollPane4.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
getContentPane().setLayout(layout);
buttonGroupMap = new HashMap<Integer, ButtonGroup>();
ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
CommAdapter commHandlerAdapter = new CommAdapter(connection);
ReplySurvey replySurvey = commHandlerAdapter.callServiceSurvey();
map = replySurvey.getQuestions();
ids = map.keySet();
locations = replySurvey.getLocations();
+ buttonGroupMap = new HashMap<Integer, ButtonGroup>();
+
panel_2 = new JPanel();
- panel_2.setBackground(Color.WHITE);
+ panel_2.addMouseListener(new MouseAdapter() {
+ @Override
+ public void mouseClicked(MouseEvent arg0) {
+ splitPane.setDividerLocation(0.0);
+ }
+ });
panel_2.setBorder(null);
- jScrollPane4.setViewportView(panel_2);
+ panel_2.setBackground(Color.WHITE);
panel_2.setLayout(new BoxLayout(panel_2, BoxLayout.Y_AXIS));
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
-
+
+ JLabel expand_icon = new JLabel("");
+ expand_icon.setVerticalAlignment(SwingConstants.TOP);
+ expand_icon.setHorizontalAlignment(SwingConstants.LEFT);
+ expand_icon.setAlignmentY(Component.TOP_ALIGNMENT);
+ expand_icon.setAlignmentX(Component.LEFT_ALIGNMENT);
+ expand_icon.setIcon(new ImageIcon("C:\\Users\\raisaro\\workspace\\yussef\\project\\PPPClient\\res\\expand_icon.jpg"));
+ JPanel first_row_panel = new JPanel();
+ first_row_panel.setLayout(new BoxLayout(first_row_panel, BoxLayout.X_AXIS));
+ first_row_panel.setAlignmentX(Component.LEFT_ALIGNMENT);
+ first_row_panel.add(expand_icon);
+ panel_2.add(first_row_panel);
+
+ //dynamic question generation
int type = 0;
for(Integer id : ids){
ButtonGroup group = new ButtonGroup();
- JRadioButton r1 = new JRadioButton("1"); r1.setActionCommand("1"); r1.setBackground(Color.WHITE);
- JRadioButton r2 = new JRadioButton("2"); r2.setActionCommand("2"); r2.setBackground(Color.WHITE);
- JRadioButton r3 = new JRadioButton("3"); r3.setActionCommand("3"); r3.setBackground(Color.WHITE);
- JRadioButton r4 = new JRadioButton("4"); r4.setActionCommand("4"); r4.setBackground(Color.WHITE);
- JRadioButton r5 = new JRadioButton("5"); r5.setActionCommand("5"); r5.setBackground(Color.WHITE);
+ JRadioButton r1 = new JRadioButton("1"); r1.setActionCommand("1"); r1.setBackground(Color.WHITE);
+ JRadioButton r2 = new JRadioButton("2"); r2.setActionCommand("2"); r2.setBackground(Color.WHITE);
+ JRadioButton r3 = new JRadioButton("3"); r3.setActionCommand("3"); r3.setBackground(Color.WHITE);
+ JRadioButton r4 = new JRadioButton("4"); r4.setActionCommand("4"); r4.setBackground(Color.WHITE);
+ JRadioButton r5 = new JRadioButton("5"); r5.setActionCommand("5"); r5.setBackground(Color.WHITE);
group.add(r1);
group.add(r2);
group.add(r3);
group.add(r4);
group.add(r5);
JPanel radio_panel = new JPanel();
radio_panel.setLayout((new BoxLayout(radio_panel, BoxLayout.X_AXIS)));
radio_panel.setBackground(Color.WHITE);
radio_panel.setAlignmentX(Component.CENTER_ALIGNMENT);
radio_panel.add(r1);
radio_panel.add(r2);
radio_panel.add(r3);
radio_panel.add(r4);
radio_panel.add(r5);
radio_panel.doLayout();
radio_panel.setPreferredSize(radio_panel.getPreferredSize());
JTextArea question = new JTextArea(id + ") " + map.get(id).getQuestion());
question.setEditable(false);
question.setLineWrap(true);
question.setWrapStyleWord(true);
question.setFont(new Font("Tahoma", Font.PLAIN, 13));
JPanel row_panel = new JPanel();
row_panel.setLayout(new BoxLayout(row_panel, BoxLayout.X_AXIS));
row_panel.add(Box.createRigidArea(new Dimension(20,0)));
row_panel.add(question);
row_panel.add(Box.createRigidArea(new Dimension(20,0)));
row_panel.add(radio_panel);
row_panel.add(Box.createRigidArea(new Dimension(20,0)));
row_panel.setBackground(Color.WHITE);
int type_new = map.get(id).getType();
if(type_new != type){
type = type_new;
JLabel question_group = new JLabel("");
switch(type){
case 1:
question_group.setText("Clinical Utility");
break;
case 2:
question_group.setText("Privacy Concerns");
break;
case 3:
question_group.setText("Usability Assessment");
break;
}
question_group.setAlignmentX(Component.CENTER_ALIGNMENT);
question_group.setFont(new Font("Tahoma", Font.BOLD, 13));
+ panel_2.add(new JSeparator());
panel_2.add(Box.createRigidArea(new Dimension(0,5)));
panel_2.add(question_group);
panel_2.add(Box.createRigidArea(new Dimension(0,5)));
panel_2.add(new JSeparator());
panel_2.add(Box.createRigidArea(new Dimension(0,5)));
}
panel_2.add(Box.createRigidArea(new Dimension(0,5)));
panel_2.add(row_panel);
panel_2.add(Box.createRigidArea(new Dimension(0,5)));
// panel_2.add(radio_panel);
- panel_2.add(new JSeparator());
+// panel_2.add(new JSeparator());
panel_2.add(Box.createRigidArea(new Dimension(0,5)));
// panel_2.setPreferredSize(panel_2.getPreferredSize());
buttonGroupMap.put(id, group);
}
+
+
+
-
- this.setSize(new Dimension(1300, 865));
-// pack();
+ this.setSize(new Dimension(1118, 768));
+// this.pack();
}// </editor-fold>//GEN-END:initComponents
private void submitButtonActionPerformed(java.awt.event.ActionEvent evt){
try{
answers = new HashMap<String, String>();
StringBuilder sb = new StringBuilder();
Set<Integer> questions_id = buttonGroupMap.keySet();
for(Integer q: questions_id){
ButtonGroup bg = buttonGroupMap.get(q);
sb.append(q).append(",");
sb.append(bg.getSelection().getActionCommand()).append(";");
answers.put(q.toString(),bg.getSelection().getActionCommand());
}
String answer = sb.toString();
Integer id_loc = null;
for(Integer i: locations.keySet()){
if(locations.get(i).equals(comboBox.getSelectedItem().toString()))
id_loc = i;
}
String id_p;
if(jComboBox1.getSelectedItem().toString().equals("Select Patient"))
id_p = "0";
else
id_p = jComboBox1.getSelectedItem().toString();
ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
CommAdapter commHandlerAdapter = new CommAdapter(connection);
String reply = commHandlerAdapter.callServiceSurveyAnswer(answer, id_loc.toString(), id_p);
if(reply.equals("1")){
survey_submitted = true;
dialog.setVisible(false);
JOptionPane.showMessageDialog(
this,
"Congrats! Your aswers have been sent to the SHCS datacenter.",
"Information Message",
JOptionPane.INFORMATION_MESSAGE);
+ btnSubmitQuestionnaire.setEnabled(false);
}
else{
throw new IOException();
}
} catch (NullPointerException e){
LOGGER.log(Level.SEVERE, null, e);
dialog.setVisible(false);
JOptionPane.showMessageDialog(
this,
"Please respond to all the questions!",
"Error Message",
JOptionPane.ERROR_MESSAGE);
} catch (IOException e) {
LOGGER.log(Level.SEVERE, null, e);
dialog.setVisible(false);
JOptionPane.showMessageDialog(
this,
"The SHCS datacenter does not respond. Please save the survey and send it to jean.raisaro@epfl.ch.",
"Error Message",
JOptionPane.ERROR_MESSAGE);
}
}
private void savePDFButtonActionPerformed(java.awt.event.ActionEvent evt){
try {
answers = new HashMap<String, String>();
Set<Integer> questions_id = buttonGroupMap.keySet();
for(Integer q: questions_id){
ButtonGroup bg = buttonGroupMap.get(q);
answers.put(q.toString(),bg.getSelection().getActionCommand());
}
JFileChooser chooser = new JFileChooser();
// Note: source for ExampleFileFilter can be found in FileChooserDemo,
// under the demo/jfc directory in the JDK.
int returnVal = chooser.showSaveDialog(this);
System.out.println(returnVal);
if(returnVal == JFileChooser.APPROVE_OPTION) {
System.out.println("You chose to open this file: " +
chooser.getSelectedFile().getPath());
quest = new Questionnaire(chooser.getSelectedFile().getPath() + ".pdf");
quest.createPdf(map, ids);
quest.writeAnswers(answers);
survey_submitted = true;
}else{
quest = new Questionnaire("outputPDF/survey.pdf");
quest.createPdf(map, ids);
quest.writeAnswers(answers);
survey_submitted = true;
}
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (DocumentException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (NullPointerException e) {
LOGGER.log(Level.SEVERE, null, e);
dialog.setVisible(false);
JOptionPane.showMessageDialog(
this,
"Please respond to all the questions!",
"Error Message",
JOptionPane.ERROR_MESSAGE);
}
}
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
JPanel contentPanel = new JPanel();
- dialog.setBounds(100, 100, 410, 80);
+ dialog.setBounds(100, 100, 420, 100);
dialog.getContentPane().setLayout(new BorderLayout());
contentPanel.setLayout(new FlowLayout());
contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
dialog.getContentPane().add(contentPanel, BorderLayout.CENTER);
{
- JLabel label = new JLabel("Please wait...The overall computation can take few seconds");
+ JLabel label = new JLabel("Please wait...The overall computation can take some seconds!");
+ JLabel label2 = new JLabel("Cryptographic operations are being performed at the SHCS...");
label.setHorizontalAlignment(SwingConstants.CENTER);
- label.setFont(new Font("Tahoma", Font.PLAIN, 12));
+ label.setFont(new Font("Tahoma", Font.BOLD, 12));
+ label2.setHorizontalAlignment(SwingConstants.CENTER);
+ label2.setFont(new Font("Tahoma", Font.PLAIN, 12));
contentPanel.add(label);
+ contentPanel.add(label2);
}
{
JPanel buttonPane = new JPanel();
buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
dialog.getContentPane().add(buttonPane, BorderLayout.SOUTH);
}
dialog.setLocationRelativeTo(this);
dialog.setVisible(true);
GUIWorker gw = new GUIWorker(this, props);
Thread t = new Thread(gw);
t.start();
}
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JButton jButton1;
private javax.swing.JComboBox<String> jComboBox1;
- private javax.swing.JLabel jLabel1;
- private javax.swing.JLabel jLabel2;
private javax.swing.JLabel jLabel3;
private javax.swing.JLabel jLabel4;
private javax.swing.JMenu jMenu1;
private javax.swing.JMenu jMenu2;
private javax.swing.JMenuBar jMenuBar1;
private javax.swing.JMenuItem jMenuItem1;
- private javax.swing.JPanel jPanel1;
private javax.swing.JPanel jPanel2;
private javax.swing.JScrollPane jScrollPane3;
private javax.swing.JTabbedPane tabbedPane;
private javax.swing.JScrollPane jScrollPane2;
- private javax.swing.JScrollPane jScrollPane4;
private JPanel panel;
- private JPanel panel_1;
- private JPanel panel_2;
- private JLabel lblDearDoctor;
private JLabel lblNewLabel_1;
private JLabel lblNewLabel_2;
private JLabel lblNewLabel_3;
private JComboBox<String> comboBox;
private Component rigidArea;
+ private JSplitPane splitPane;
+ private JPanel panel_1;
+ private JLabel label_1;
+ private JLabel label_2;
+ private JLabel label_3;
+ private JLabel label_4;
+ private JScrollPane scrollPane;
+ private JTextPane introduction;
+ private JScrollPane jScrollPane4;
+ private JPanel panel_2;
// End of variables declaration//GEN-END:variables
class GUIWorker implements Runnable{
private JFrame mainFrame;
private ClientProperties props;
private MedUnit mu;
public GUIWorker(GUI gui, ClientProperties props) {
mainFrame = gui;
this.props = props;
this.mu = new MedUnit(props, 0);
}
@Override
public void run() {
try{
int patientId = Integer.parseInt((String) jComboBox1.getSelectedItem());
// convert selected tests to test identifiers
ArrayList<TestName> selectedTests = new ArrayList<TestName>();
for (String currentName : getSelectedTests()) {
TestName currentTest = testsByName.get(currentName);
if (currentTest == null) {
throw new IllegalStateException("Trying to run unknown test: " + currentTest);
}
selectedTests.add(currentTest);
}
// run tests
Diagnostic diagnostic = mu.runTests(patientId, selectedTests);
// warn for tests with missing material
warnFailedTests(diagnostic, selectedTests);
// create report
mu.createReport(patientId, selectedTests, diagnostic);
dialog.setVisible(false);
// specify file you wish to open (JPedal handles getting the byte data)
String filepathReport = props.getPathPDF() + patientId + ".pdf";
// open generated PDF
// object must be either String in full filepath, or
// File object which can be relative
Object[] input = new Object[]{ new File(filepathReport) };
viewer.executeCommand(Commands.OPENFILE, input);
// display CAD result as bar plot
if (diagnostic.hasCAD()) {
System.out.println("CAD = " + diagnostic.getResultCAD());
BarPlotFrame frame = new BarPlotFrame(diagnostic.getResultCAD(), patientId);
frame.setVisible(true);
frame.setAlwaysOnTop(true);
}
} catch (SQLException e) {
LOGGER.log(Level.SEVERE, null, e);
displayError("Not able to connect to service. Please try again.");
} catch (IOException e) {
LOGGER.log(Level.SEVERE, null, e);
displayError("Not able to connect to service. Please try again.");
} catch (NullPointerException e){
LOGGER.log(Level.SEVERE, null, e);
- displayError("Please select a patient.");
+ displayError("Please select a patient and one or multiple tests.");
+ } catch (NumberFormatException e){
+ LOGGER.log(Level.SEVERE, null, e);
+ displayError("Please select a patient and one or multiple tests.");
}
}
private void warnFailedTests(Diagnostic diagnostic, ArrayList<TestName> selectedTests) {
ArrayList<Integer> failedTests = diagnostic.getInvalidTests();
if (!failedTests.isEmpty()) {
String msg = "Could not complete tests: ";
boolean first = true;
for (TestName testName : selectedTests) {
if (failedTests.contains(testName.getId())) {
if (first) {
first = false;
} else {
msg += ", ";
}
msg += testName.getName();
}
}
displayError(msg);
}
}
private void displayError(String msg) {
dialog.setVisible(false);
JOptionPane.showMessageDialog(
mainFrame,
msg,
"Error Message",
JOptionPane.ERROR_MESSAGE);
}
private ArrayList<String> getSelectedTests() {
ArrayList<String> tests = new ArrayList<String>();
for (TreePath treePath : jTree.getSelectionPaths()) {
tests.addAll(getChildrenTests(jTree.getModel(), treePath.getLastPathComponent()));
}
return tests;
}
private ArrayList<String> getChildrenTests(TreeModel model, Object node) {
ArrayList<String> tests = new ArrayList<String>();
if (model.isLeaf(node)) { // leaf
DefaultMutableTreeNode leaf = (DefaultMutableTreeNode) node;
tests.add(leaf.toString());
}
else { // iterate over children
for (int i = 0; i < model.getChildCount(node); i++) {
tests.addAll(getChildrenTests(model, model.getChild(node, i)));
}
}
return tests;
}
}
}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/2/a007d7be4dac001410e2e30aa85db9d1 b/.metadata/.plugins/org.eclipse.core.resources/.history/2/a007d7be4dac001410e2e30aa85db9d1
deleted file mode 100644
index 241d410..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/2/a007d7be4dac001410e2e30aa85db9d1
+++ /dev/null
@@ -1,893 +0,0 @@
-package ui;
-
-import io.ClientConnection;
-import io.CommAdapter;
-import io.Questionnaire;
-
-import java.awt.BorderLayout;
-import java.awt.Color;
-import java.awt.Component;
-import java.awt.Dimension;
-import java.awt.FlowLayout;
-import java.awt.Font;
-import java.awt.SystemColor;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.awt.event.WindowAdapter;
-import java.io.File;
-import java.io.IOException;
-import java.sql.SQLException;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.LinkedList;
-import java.util.Map;
-import java.util.Set;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
-import javax.swing.Box;
-import javax.swing.BoxLayout;
-import javax.swing.ButtonGroup;
-import javax.swing.DefaultComboBoxModel;
-import javax.swing.GroupLayout;
-import javax.swing.GroupLayout.Alignment;
-import javax.swing.ImageIcon;
-import javax.swing.JButton;
-import javax.swing.JComboBox;
-import javax.swing.JDialog;
-import javax.swing.JFileChooser;
-import javax.swing.JFrame;
-import javax.swing.JLabel;
-import javax.swing.JOptionPane;
-import javax.swing.JPanel;
-import javax.swing.JRadioButton;
-import javax.swing.JScrollPane;
-import javax.swing.JSeparator;
-import javax.swing.JTabbedPane;
-import javax.swing.JTextArea;
-import javax.swing.JTextPane;
-import javax.swing.JTree;
-import javax.swing.LayoutStyle.ComponentPlacement;
-import javax.swing.SwingConstants;
-import javax.swing.UIManager;
-import javax.swing.border.BevelBorder;
-import javax.swing.border.EmptyBorder;
-import javax.swing.border.EtchedBorder;
-import javax.swing.tree.DefaultMutableTreeNode;
-import javax.swing.tree.TreeModel;
-import javax.swing.tree.TreePath;
-
-import org.jpedal.examples.viewer.Commands;
-import org.jpedal.examples.viewer.Viewer;
-
-import utils.ClientProperties;
-
-import com.itextpdf.text.DocumentException;
-
-import database.DBconnectorClient;
-import framework.Diagnostic;
-import framework.MedUnit;
-import framework.Question;
-import framework.reply.ReplySurvey;
-import framework.test.TestName;
-
-/**
- *
- * @author youssef, raisaro
- */
-public class GUI extends javax.swing.JFrame {
-
- private static final Logger LOGGER = Logger.getLogger(GUI.class.getName());
-
- private static final long serialVersionUID = -4582280515597700650L;
-
- // configuration
- private ClientProperties props;
-
- private JTree jTree;
- private DBconnectorClient connectorClientDB;
- private LinkedList<Integer> patients;
-
- /** List of all relevant tests */
- private HashMap<String, TestName> testsByName;
- private Viewer viewer;
- private JDialog dialog;
- private JFrame frame;
- private boolean survey_submitted;
- private int close_trials;
- private Map<Integer, ButtonGroup> buttonGroupMap;
- private Questionnaire quest;
- private Map<Integer, Question> map;
- private Set<Integer> ids;
- private Map<String,String> answers;
- private Map<Integer, String> locations;
-
-
- /**
- * Creates new form GUI
- */
- public GUI(ClientProperties props){
-
- frame = this;
- this.props = props;
- this.connectorClientDB = new DBconnectorClient(props.getDbMsAccess());
- survey_submitted = false;
- close_trials = 0;
-
-
- try {
- initComponents();
-
- viewer = new Viewer(jScrollPane2, null);
- viewer.setupViewer();
-
- // create questionnare
-
-
- System.out.println("#of questions: " + ids.size());
-
-// viewer_q = new Viewer(jScrollPane4, null);
-// viewer_q.setupViewer();
-//
-// // specify file you wish to open (JPedal handles getting the byte data)
-// String filepathReport = "outputPDF/buttons_filled.pdf";
-//
-// // open generated PDF
-// // object must be either String in full filepath, or
-// // File object which can be relative
-// Object[] input = new Object[]{ new File(filepathReport) };
-// viewer_q.executeCommand(Commands.OPENFILE, input);
-
- JButton btnSubmitQuestionnaire = new JButton("Submit Questionnaire");
- btnSubmitQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- btnSubmitQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- submitButtonActionPerformed(arg0);
- }
- });
- JButton btnResetQuestionnaire = new JButton("Save as PDF");
- btnResetQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- savePDFButtonActionPerformed(arg0);
- }
- });
- btnResetQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- JPanel panel_button = new JPanel();
- panel_button.setLayout(new BoxLayout(panel_button, BoxLayout.X_AXIS));
-
- lblNewLabel_3 = new JLabel("");
- lblNewLabel_3.setIcon(new ImageIcon("res/location_icon.png"));
- panel_button.add(lblNewLabel_3);
-
-
-
- comboBox = new JComboBox<String>();
- comboBox.setFont(new Font("Tahoma", Font.BOLD, 12));
- comboBox.setModel(new DefaultComboBoxModel<String>(new String[] {"Select Location"}));
- for(Integer id_loc : locations.keySet()){
- comboBox.addItem(locations.get(id_loc));
- }
-
-
- panel_button.add(comboBox);
-
- rigidArea = Box.createRigidArea(new Dimension(10, 0));
- panel_button.add(rigidArea);
-
- lblNewLabel_1 = new JLabel("");
- lblNewLabel_1.setIcon(new ImageIcon("res/submit.png"));
- panel_button.add(lblNewLabel_1);
- panel_button.add(btnSubmitQuestionnaire);
-
- panel_button.add(Box.createRigidArea(new Dimension(10,0)));
-
- lblNewLabel_2 = new JLabel("");
- lblNewLabel_2.setIcon(new ImageIcon("res/pdf.png"));
- panel_button.add(lblNewLabel_2);
- panel_button.add(btnResetQuestionnaire);
- panel_button.setPreferredSize(new Dimension(211, 35));
- panel_button.validate();
-
- JPanel panel_3 = new JPanel();
- GroupLayout gl_panel = new GroupLayout(panel);
- gl_panel.setHorizontalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(41)
- .addGroup(gl_panel.createParallelGroup(Alignment.TRAILING)
- .addComponent(jScrollPane4, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE)
- .addComponent(panel_1, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE))
- .addGap(32))
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(63)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addGap(103)
- .addComponent(panel_button, GroupLayout.DEFAULT_SIZE, 488, Short.MAX_VALUE)
- .addGap(241))
- );
- gl_panel.setVerticalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(22)
- .addComponent(panel_1, GroupLayout.DEFAULT_SIZE, 192, Short.MAX_VALUE)
- .addGap(18)
- .addComponent(jScrollPane4, GroupLayout.DEFAULT_SIZE, 437, Short.MAX_VALUE)
- .addGap(26)
- .addGroup(gl_panel.createParallelGroup(Alignment.LEADING)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(panel_button, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE)))
- );
- panel_3.setLayout(new BoxLayout(panel_3, BoxLayout.X_AXIS));
-
-
- panel.setLayout(gl_panel);
-
-
-
-
-
-
- /////////////////////////////////////////////////////////
- // display the tests available
-
- // get the tests
- HashMap<String, ArrayList<TestName>> testsRelevantByGroup = connectorClientDB.getRelevantTestsByGroup();
- ArrayList<String> groups = new ArrayList<String>(testsRelevantByGroup.keySet());
-
- // flatten hashmap into linkedlist
-// tests = new LinkedList<>();
- testsByName = new HashMap<String, TestName>();
- for (String group : groups) {
-// tests.addAll(testsRelevantByGroup.get(group));
- for (TestName test : testsRelevantByGroup.get(group)) {
- testsByName.put(test.getName(), test);
- }
- }
-
- // define tree structure of the tests
- DefaultMutableTreeNode root = new DefaultMutableTreeNode("All");
-
- for (String group : groups) {
- DefaultMutableTreeNode child = new DefaultMutableTreeNode(group);
- root.add(child);
-
- for (TestName test : testsRelevantByGroup.get(group)) {
- DefaultMutableTreeNode grandChild = new DefaultMutableTreeNode(test.getName());
- child.add(grandChild);
- }
- }
-
- // define swing object
- jTree = new JTree(root);
-
- for(int i=0;i<jTree.getRowCount();i++){
- jTree.expandRow(i);
- }
-
- jScrollPane3.setViewportView(jTree);
-// jTree.addTreeSelectionListener(new TreeSelectionListener() {
-//
-// @Override
-// public void valueChanged(TreeSelectionEvent e) {
-// tp = jTree.getSelectionPaths();
-// }
-// });
- jScrollPane3.setViewportView(jTree);
-
- /////////////////////////////////////////////////////////
- // display the patients registered
-
- patients = connectorClientDB.getPatients();
- for (Integer patientId : patients) {
- jComboBox1.addItem(patientId.toString());
- }
-
- } catch (SQLException ex) {
- Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex);
- ex.printStackTrace();
-// } catch (IOException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
-// } catch (DocumentException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
- }
-
- }
-
- /**
- * 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() {
-
- jPanel1 = new javax.swing.JPanel();
- jLabel2 = new javax.swing.JLabel();
- jLabel1 = new javax.swing.JLabel();
- jPanel2 = new javax.swing.JPanel();
- jComboBox1 = new javax.swing.JComboBox<String>();
- jButton1 = new javax.swing.JButton();
- jButton1.setFont(new Font("Tahoma", Font.BOLD, 12));
- jLabel3 = new javax.swing.JLabel();
- jLabel4 = new javax.swing.JLabel();
- jScrollPane3 = new javax.swing.JScrollPane();
- jScrollPane2 = new javax.swing.JScrollPane();
- jMenuBar1 = new javax.swing.JMenuBar();
- jMenu1 = new javax.swing.JMenu();
- jMenuItem1 = new javax.swing.JMenuItem();
- jMenu2 = new javax.swing.JMenu();
- dialog = new JDialog();
- tabbedPane = new JTabbedPane(JTabbedPane.TOP);
-
- setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
- addWindowListener(new WindowAdapter() {
- @Override
- public void windowClosing(java.awt.event.WindowEvent windowEvent) {
- if (!survey_submitted && close_trials <= 2){
- JOptionPane.showMessageDialog(frame, "Before closing the application, please fill in and submit the questionnaire.");
- close_trials++;
- tabbedPane.setSelectedIndex(1);
- }else{
- System.exit(0);
- }
- }
- });
- setTitle("HIV Pharmacogenomics\n");
-
- jLabel2.setIcon(new javax.swing.ImageIcon("res/shcs_logo2_small.gif")); // NOI18N
-
- jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
- jLabel1.setText("HIV Pharmacogenomics | Project #693");
-
- javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
- jPanel1.setLayout(jPanel1Layout);
- jPanel1Layout.setHorizontalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap(71, Short.MAX_VALUE)
- .addComponent(jLabel1)
- .addGap(18, 18, 18)
- .addComponent(jLabel2))
- );
- jPanel1Layout.setVerticalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jLabel1)
- .addGap(11, 11, 11))
- .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)
- );
-
- jPanel2.setBackground(new java.awt.Color(255, 255, 255));
- jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
-
- jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<String>(new String[]{"Select Patient"}));
-
- jButton1.setText("Run Test");
- jButton1.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton1ActionPerformed(evt);
- }
- });
-
- JLabel lblNewLabel = new JLabel("");
- lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
- lblNewLabel.setIcon(new javax.swing.ImageIcon("res/gears.png"));
-
-
-
- javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
- jPanel2Layout.setHorizontalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addComponent(jComboBox1, 0, 248, Short.MAX_VALUE)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addGap(75)
- .addGroup(jPanel2Layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jButton1)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 75, GroupLayout.PREFERRED_SIZE))
- .addContainerGap(98, Short.MAX_VALUE))
- );
- jPanel2Layout.setVerticalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addComponent(jComboBox1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED, 223, Short.MAX_VALUE)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jButton1)
- .addGap(19))
- );
- jPanel2.setLayout(jPanel2Layout);
-
- jLabel3.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel3.setText("Select Patient");
-
- jLabel4.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel4.setText("Select Test");
-
- jScrollPane3.setBackground(new java.awt.Color(255, 255, 255));
-
- jMenu1.setText("File");
-
- jMenuItem1.setText("Exit");
- jMenu1.add(jMenuItem1);
-
- jMenuBar1.add(jMenu1);
-
- jMenu2.setText("Edit");
- jMenuBar1.add(jMenu2);
-
- setJMenuBar(jMenuBar1);
-
-
-
- javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
- layout.setHorizontalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(layout.createParallelGroup(Alignment.LEADING, false)
- .addComponent(jLabel3)
- .addComponent(jLabel4)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, 244, Short.MAX_VALUE)
- .addComponent(jScrollPane3))
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 970, Short.MAX_VALUE))
- .addContainerGap())
- );
- layout.setVerticalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel4))
- .addPreferredGap(ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addComponent(jScrollPane3, GroupLayout.PREFERRED_SIZE, 388, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jLabel3)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 785, Short.MAX_VALUE))
- .addContainerGap())
- );
-
-
- jScrollPane2.setAutoscrolls(true);
- jScrollPane3.setAutoscrolls(true);
- tabbedPane.addTab("Report", new ImageIcon("res/report_icon.gif"), jScrollPane2, null);
- tabbedPane.setBackgroundAt(0, new Color(255, 255, 255));
-
- panel = new JPanel();
- tabbedPane.addTab("Survey", new ImageIcon("res/survey_icon.png"), panel, null);
- tabbedPane.setBackgroundAt(1, new Color(255, 255, 255));
- tabbedPane.setEnabledAt(1, true);
-
- panel_1 = new JPanel();
- panel_1.setBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null));
- panel_1.setBackground(UIManager.getColor("Button.background"));
-
- JLabel label = new JLabel("");
- label.setIcon(new ImageIcon("res/shcs_logo2_medium.gif"));
-
- lblDearDoctor = new JLabel("Dear Doctor,");
- lblDearDoctor.setFont(new Font("Tahoma", Font.BOLD, 14));
-
- JScrollPane scrollPane = new JScrollPane();
- scrollPane.setBorder(null);
- GroupLayout gl_panel_1 = new GroupLayout(panel_1);
- gl_panel_1.setHorizontalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(25)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 666, Short.MAX_VALUE)
- .addComponent(lblDearDoctor))
- .addContainerGap())
- );
- gl_panel_1.setVerticalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(22)
- .addComponent(lblDearDoctor)
- .addGap(18)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 120, Short.MAX_VALUE)
- .addContainerGap())
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(36)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 96, GroupLayout.PREFERRED_SIZE)
- .addContainerGap(56, Short.MAX_VALUE))
- );
-
- JTextPane txtpnTodayYouAre = new JTextPane();
- txtpnTodayYouAre.setBorder(null);
- txtpnTodayYouAre.setText("Today you are receiving a pharmacogenetic report based on the genetic information of your patient. Because the human genome contains extremely private and sensitive information of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier, it must be managed with care.\r\nToday you are receiving a pharmacogenetic report based on the genetic information of your patient. Because the human genome contains extremely private and sensitive information of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier, it must be managed with care.\r\nToday you are receiving a pharmacogenetic report based on the genetic information of your patient. Because the human genome contains extremely private and sensitive information of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier, it must be managed with care.");
- txtpnTodayYouAre.setFont(new Font("Tahoma", Font.PLAIN, 13));
- txtpnTodayYouAre.setEditable(false);
- txtpnTodayYouAre.setBackground(SystemColor.menu);
- scrollPane.setViewportView(txtpnTodayYouAre);
- panel_1.setLayout(gl_panel_1);
- jScrollPane4 = new javax.swing.JScrollPane();
- getContentPane().setLayout(layout);
-
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
- ReplySurvey replySurvey = commHandlerAdapter.callServiceSurvey();
-
- map = replySurvey.getQuestions();
- ids = map.keySet();
- locations = replySurvey.getLocations();
-
- panel_2 = new JPanel();
- panel_2.setBackground(Color.WHITE);
- panel_2.setBorder(new BevelBorder(BevelBorder.LOWERED, null, null, null, null));
- jScrollPane4.setViewportView(panel_2);
- panel_2.setLayout(new BoxLayout(panel_2, BoxLayout.Y_AXIS));
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
-
-
- for(Integer id : ids){
- ButtonGroup group = new ButtonGroup();
- JRadioButton r1 = new JRadioButton("1"); r1.setActionCommand("1"); r1.setBackground(Color.WHITE);
- JRadioButton r2 = new JRadioButton("2"); r2.setActionCommand("2"); r2.setBackground(Color.WHITE);
- JRadioButton r3 = new JRadioButton("3"); r3.setActionCommand("3"); r3.setBackground(Color.WHITE);
- JRadioButton r4 = new JRadioButton("4"); r4.setActionCommand("4"); r4.setBackground(Color.WHITE);
- JRadioButton r5 = new JRadioButton("5"); r5.setActionCommand("5"); r5.setBackground(Color.WHITE);
- group.add(r1);
- group.add(r2);
- group.add(r3);
- group.add(r4);
- group.add(r5);
- JPanel radio_panel = new JPanel();
- radio_panel.setLayout((new BoxLayout(radio_panel, BoxLayout.X_AXIS)));
- radio_panel.setBackground(Color.WHITE);
- radio_panel.setAlignmentX(Component.CENTER_ALIGNMENT);
- radio_panel.add(r1);
- radio_panel.add(r2);
- radio_panel.add(r3);
- radio_panel.add(r4);
- radio_panel.add(r5);
- radio_panel.doLayout();
- radio_panel.setPreferredSize(radio_panel.getPreferredSize());
- JTextArea question = new JTextArea(id + ") " + map.get(id).getQuestion());
- question.setLineWrap(true);
- question.setWrapStyleWord(true);
- question.setAlignmentX(Component.CENTER_ALIGNMENT);
- question.setFont(new Font("Tahoma", Font.PLAIN, 13));
-// JPanel row_panel = new JPanel();
-// row_panel.setLayout(new BoxLayout(row_panel, BoxLayout.X_AXIS));
-// row_panel.add(question);
-// row_panel.add(Box.createRigidArea(new Dimension(10,0)));
-// row_panel.add(radio_panel);
-
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- panel_2.add(question);
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- panel_2.add(radio_panel);
- panel_2.add(new JSeparator());
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- panel_2.setPreferredSize(panel_2.getPreferredSize());
- buttonGroupMap.put(id, group);
-
- }
-
-
-
- this.setSize(new Dimension(1200, 865));
-// pack();
- }// </editor-fold>//GEN-END:initComponents
-
-
- private void submitButtonActionPerformed(java.awt.event.ActionEvent evt){
-
- try{
- answers = new HashMap<String, String>();
- StringBuilder sb = new StringBuilder();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- sb.append(q).append(",");
- sb.append(bg.getSelection().getActionCommand()).append(";");
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- String answer = sb.toString();
- Integer id_loc = null;
- for(Integer i: locations.keySet()){
- if(locations.get(i).equals(comboBox.getSelectedItem().toString()))
- id_loc = i;
- }
-
- String id_p;
- if(jComboBox1.getSelectedItem().toString().equals("Select Patient"))
- id_p = "0";
- else
- id_p = jComboBox1.getSelectedItem().toString();
-
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
-
- String reply = commHandlerAdapter.callServiceSurveyAnswer(answer, id_loc.toString(), id_p);
-
- if(reply.equals("1")){
- survey_submitted = true;
-
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Congrats! Your aswers have been sent to the SHCS datacenter.",
- "Information Message",
- JOptionPane.INFORMATION_MESSAGE);
- }
- else{
- throw new IOException();
- }
-
-
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "The SHCS datacenter does not respond. Please save the survey and send it to jean.raisaro@epfl.ch.",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
- private void savePDFButtonActionPerformed(java.awt.event.ActionEvent evt){
- try {
-
- answers = new HashMap<String, String>();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- JFileChooser chooser = new JFileChooser();
- // Note: source for ExampleFileFilter can be found in FileChooserDemo,
- // under the demo/jfc directory in the JDK.
-
- int returnVal = chooser.showSaveDialog(this);
- System.out.println(returnVal);
- if(returnVal == JFileChooser.APPROVE_OPTION) {
- System.out.println("You chose to open this file: " +
- chooser.getSelectedFile().getPath());
- quest = new Questionnaire(chooser.getSelectedFile().getPath() + ".pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }else{
- quest = new Questionnaire("outputPDF/survey.pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }
-
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (DocumentException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (NullPointerException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
-
- private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
-
- JPanel contentPanel = new JPanel();
-
- dialog.setBounds(100, 100, 410, 80);
- dialog.getContentPane().setLayout(new BorderLayout());
- contentPanel.setLayout(new FlowLayout());
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- dialog.getContentPane().add(contentPanel, BorderLayout.CENTER);
- {
- JLabel label = new JLabel("Please wait...The overall computation can take few seconds");
- label.setHorizontalAlignment(SwingConstants.CENTER);
- label.setFont(new Font("Tahoma", Font.PLAIN, 12));
- contentPanel.add(label);
- }
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
- dialog.getContentPane().add(buttonPane, BorderLayout.SOUTH);
- }
- dialog.setLocationRelativeTo(this);
- dialog.setVisible(true);
-
- GUIWorker gw = new GUIWorker(this, props);
- Thread t = new Thread(gw);
- t.start();
-
- }
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JButton jButton1;
- private javax.swing.JComboBox<String> jComboBox1;
- private javax.swing.JLabel jLabel1;
- private javax.swing.JLabel jLabel2;
- private javax.swing.JLabel jLabel3;
- private javax.swing.JLabel jLabel4;
- private javax.swing.JMenu jMenu1;
- private javax.swing.JMenu jMenu2;
- private javax.swing.JMenuBar jMenuBar1;
- private javax.swing.JMenuItem jMenuItem1;
- private javax.swing.JPanel jPanel1;
- private javax.swing.JPanel jPanel2;
- private javax.swing.JScrollPane jScrollPane3;
- private javax.swing.JTabbedPane tabbedPane;
- private javax.swing.JScrollPane jScrollPane2;
- private javax.swing.JScrollPane jScrollPane4;
- private JPanel panel;
- private JPanel panel_1;
- private JPanel panel_2;
- private JLabel lblDearDoctor;
- private JLabel lblNewLabel_1;
- private JLabel lblNewLabel_2;
- private JLabel lblNewLabel_3;
- private JComboBox<String> comboBox;
- private Component rigidArea;
-
- // End of variables declaration//GEN-END:variables
-
-
- class GUIWorker implements Runnable{
-
- private JFrame mainFrame;
- private ClientProperties props;
- private MedUnit mu;
-
- public GUIWorker(GUI gui, ClientProperties props) {
- mainFrame = gui;
-
- this.props = props;
- this.mu = new MedUnit(props, 0);
- }
-
- @Override
- public void run() {
-
- try{
- int patientId = Integer.parseInt((String) jComboBox1.getSelectedItem());
-
- // convert selected tests to test identifiers
- ArrayList<TestName> selectedTests = new ArrayList<TestName>();
- for (String currentName : getSelectedTests()) {
- TestName currentTest = testsByName.get(currentName);
-
- if (currentTest == null) {
- throw new IllegalStateException("Trying to run unknown test: " + currentTest);
- }
-
- selectedTests.add(currentTest);
- }
-
- // run tests
- Diagnostic diagnostic = mu.runTests(patientId, selectedTests);
-
- // warn for tests with missing material
- warnFailedTests(diagnostic, selectedTests);
-
- // create report
- mu.createReport(patientId, selectedTests, diagnostic);
-
- dialog.setVisible(false);
-
- // specify file you wish to open (JPedal handles getting the byte data)
- String filepathReport = props.getPathPDF() + patientId + ".pdf";
-
- // open generated PDF
- // object must be either String in full filepath, or
- // File object which can be relative
- Object[] input = new Object[]{ new File(filepathReport) };
- viewer.executeCommand(Commands.OPENFILE, input);
-
- // display CAD result as bar plot
- if (diagnostic.hasCAD()) {
- System.out.println("CAD = " + diagnostic.getResultCAD());
- BarPlotFrame frame = new BarPlotFrame(diagnostic.getResultCAD(), patientId);
- frame.setVisible(true);
- frame.setAlwaysOnTop(true);
- }
-
-
- } catch (SQLException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Please select a patient.");
- }
-
- }
-
- private void warnFailedTests(Diagnostic diagnostic, ArrayList<TestName> selectedTests) {
- ArrayList<Integer> failedTests = diagnostic.getInvalidTests();
-
- if (!failedTests.isEmpty()) {
- String msg = "Could not complete tests: ";
- boolean first = true;
- for (TestName testName : selectedTests) {
- if (failedTests.contains(testName.getId())) {
- if (first) {
- first = false;
- } else {
- msg += ", ";
- }
- msg += testName.getName();
- }
- }
- displayError(msg);
- }
-
- }
-
- private void displayError(String msg) {
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- mainFrame,
- msg,
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
-
- private ArrayList<String> getSelectedTests() {
- ArrayList<String> tests = new ArrayList<String>();
-
- for (TreePath treePath : jTree.getSelectionPaths()) {
- tests.addAll(getChildrenTests(jTree.getModel(), treePath.getLastPathComponent()));
- }
-
- return tests;
- }
-
- private ArrayList<String> getChildrenTests(TreeModel model, Object node) {
- ArrayList<String> tests = new ArrayList<String>();
-
- if (model.isLeaf(node)) { // leaf
- DefaultMutableTreeNode leaf = (DefaultMutableTreeNode) node;
- tests.add(leaf.toString());
- }
- else { // iterate over children
- for (int i = 0; i < model.getChildCount(node); i++) {
- tests.addAll(getChildrenTests(model, model.getChild(node, i)));
- }
- }
-
- return tests;
- }
-
- }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/2/b0830d2e99a7001417ceadf0100b5ef7 b/.metadata/.plugins/org.eclipse.core.resources/.history/2/b0830d2e99a7001417ceadf0100b5ef7
deleted file mode 100644
index 4c53591..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/2/b0830d2e99a7001417ceadf0100b5ef7
+++ /dev/null
@@ -1,278 +0,0 @@
-package io;
-
-import java.awt.BorderLayout;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.util.Map;
-import java.util.Set;
-
-import com.itextpdf.text.BaseColor;
-import com.itextpdf.text.Document;
-import com.itextpdf.text.DocumentException;
-import com.itextpdf.text.Element;
-import com.itextpdf.text.ExceptionConverter;
-import com.itextpdf.text.Font;
-import com.itextpdf.text.Font.FontFamily;
-import com.itextpdf.text.FontFactory;
-import com.itextpdf.text.Image;
-import com.itextpdf.text.PageSize;
-import com.itextpdf.text.Paragraph;
-import com.itextpdf.text.Phrase;
-import com.itextpdf.text.Rectangle;
-import com.itextpdf.text.pdf.AcroFields;
-import com.itextpdf.text.pdf.BaseFont;
-import com.itextpdf.text.pdf.ColumnText;
-import com.itextpdf.text.pdf.GrayColor;
-import com.itextpdf.text.pdf.PdfBorderDictionary;
-import com.itextpdf.text.pdf.PdfContentByte;
-import com.itextpdf.text.pdf.PdfFormField;
-import com.itextpdf.text.pdf.PdfPCell;
-import com.itextpdf.text.pdf.PdfPCellEvent;
-import com.itextpdf.text.pdf.PdfPTable;
-import com.itextpdf.text.pdf.PdfReader;
-import com.itextpdf.text.pdf.PdfWriter;
-import com.itextpdf.text.pdf.RadioCheckField;
-import com.itextpdf.text.pdf.TextField;
-
-import framework.Question;
-
-public class Questionnaire implements PdfPCellEvent{
-
- /** The path output file. */
- String pathOutputFile;
-
- /** The document. */
- Document document;
-
- int tf;
-
- public Questionnaire(String path){
- pathOutputFile = path;
- document = new Document(PageSize.A4, 25, 25, 50, 50);
- }
- public Questionnaire(int tf){
- this.tf = tf;
- }
-
- /** The resulting PDF. */
- public static final String RESULT1 = "outputPDF/buttons.pdf";
- /** The resulting PDF. */
- public static final String RESULT2 = "outputPDF/buttons_filled.pdf";
- /** Path to a JavaScript resource. */
- public static final String RESOURCE = "res/buttons.js";
- /** Path to an image used as button icon. */
- public static final String IMAGE = "res/info.png";
- /** Possible values of a radio field / checkboxes */
- public static final String[] LANGUAGES = { "English", "German", "French", "Spanish", "Dutch" };
-
- /**
- * Creates a PDF document.
- * @param filename the path to the new PDF document
- * @throws DocumentException
- * @throws IOException
- */
- public void createPdf(Map<Integer, Question> map, Set<Integer> ids) throws IOException, DocumentException {
-
- @SuppressWarnings("unused")
- PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(pathOutputFile));
-
-
- document.open();
- Image logo = Image.getInstance("res/shcs_logo2.gif");
-
- logo.scalePercent(30f);
- float[] columnWidths1 = {0.2f, 0.8f};
- PdfPTable table_title = new PdfPTable(columnWidths1);
- PdfPCell c01 = new PdfPCell(logo, false);
- PdfPCell c02 = new PdfPCell(new Paragraph("Survery | Project #693",
- FontFactory.getFont(FontFactory.HELVETICA, 20, Font.BOLD, BaseColor.BLACK)));
- c01.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setHorizontalAlignment(Element.ALIGN_CENTER);
- c01.setBorder(Rectangle.NO_BORDER);
- c02.setBorder(Rectangle.NO_BORDER);
-
- table_title.addCell(c01);
- table_title.addCell(c02);
- table_title.setWidthPercentage(100);
- table_title.setSpacingBefore(0);
- table_title.setSpacingAfter(25);
- document.add(table_title);
-
-
- //----------------------------------------------------------------------------------
-
-
- PdfPTable table1 = new PdfPTable(1);
- table1.setWidthPercentage(100);
- PdfPCell c11 = new PdfPCell(new Phrase("Today you are receiving a pharmacogenetic report based on the genetic " +
- "information of your patient. Because the human genome contains extremely private and sensitive information" +
- " of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier," +
- " it must be managed with care. ",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.NORMAL, BaseColor.BLACK)));
- c11.setLeading(1.5f, 1.5f);
- c11.setPaddingBottom(8);
-
-
- table1.addCell(c11);
- table1.setSpacingAfter(10);
- document.add(table1);
-
-
- //----------------------------------------------------------------------------------
-
-// // step 4
-// // add the JavaScript
-// writer.addJavaScript(Utilities.readFileToString(RESOURCE));
-
- for(Integer id: ids){
- PdfPCell c2;
-
- PdfPTable table = new PdfPTable(1);
- table.setSpacingAfter(10);
- table.setWidthPercentage(100);
-
- PdfPCell c1 = new PdfPCell(new Phrase(id + ") " + map.get(id).getQuestion(),FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c1.setPaddingTop(5);
- c1.setPaddingBottom(5);
- c1.setHorizontalAlignment(Element.ALIGN_CENTER);
- c1.setBorder(Rectangle.NO_BORDER);
- table.addCell(c1);
-
- c2 = new PdfPCell(new Phrase(" 1" +
- " 2" +
- " 3" +
- " 4" +
- " 5",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c2.setHorizontalAlignment(Element.ALIGN_LEFT);
- c2.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c2.setCellEvent(new Questionnaire(id));
- c2.setBorder(Rectangle.TOP);
- c2.setPaddingTop(2);
- c2.setPaddingBottom(5);
- c2.setBackgroundColor(new BaseColor(242, 242, 242));
-
- table.addCell(c2);
-
-
-
- document.add(table);
- }
-
-
- //----------------------------------------------------------------------------------
-
- // step 5
- document.close();
-
- }
-
- @Override
- public void cellLayout(PdfPCell cell, Rectangle position,
- PdfContentByte[] canvases) {
- PdfWriter writer = canvases[0].getPdfWriter();
- PdfFormField radiogroup = PdfFormField.createRadioButton(writer, true);
- radiogroup.setFieldName(String.valueOf(tf));
-
- float llx = position.getLeft();
- float lly = position.getBottom();
-
- float cell_h = cell.getHeight();
- float cell_w = cell.getWidth();
-
- Rectangle rect;
-
- for(int i=1 ; i<=5; i++){
-
- rect = new Rectangle(llx + (3+i)*cell_w/12, lly+cell_h/2-6, llx + (3+i)*cell_w/12+12 ,lly+cell_h/2+6);
-
- RadioCheckField radio = new RadioCheckField(writer, rect, null, String.valueOf(i));
- radio.setBorderColor(GrayColor.GRAYBLACK);
- radio.setCheckType(RadioCheckField.TYPE_SQUARE);
-
-
- try {
- PdfFormField field = radio.getRadioField();
- radiogroup.addKid(field);
-
- writer.addAnnotation(radiogroup);
- }
-
- catch(IOException ioe) {
- throw new ExceptionConverter(ioe);
- }
- catch(DocumentException de) {
- throw new ExceptionConverter(de);
- }
- }
-
-
-
- }
-
-
- public String getAnswers(String src) throws IOException{
- StringBuilder sb = new StringBuilder();
- PdfReader reader = new PdfReader(src);
- AcroFields form = reader.getAcroFields();
- Set<String> fields = form.getFields().keySet();
- for(String key: fields){
- if(form.getFieldType(key)==AcroFields.FIELD_TYPE_RADIOBUTTON){
- sb.append(key);
- sb.append(",");
- sb.append(form.getField(key));
- sb.append(";");
- }
- }
-
-
- return sb.toString();
-
- }
-
-
-// /**
-// * Manipulates a PDF file src with the file dest as result
-// * @param src the original PDF
-// * @param dest the resulting PDF
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public void manipulatePdf(String src, String dest) throws IOException, DocumentException {
-// PdfReader reader = new PdfReader(src);
-// PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(dest));
-// AcroFields form = stamper.getAcroFields();
-// String[] radiostates = form.getAppearanceStates("language");
-// form.setField("language", radiostates[4]);
-// for (int i = 0; i < LANGUAGES.length; i++) {
-// String[] checkboxstates = form.getAppearanceStates("English");
-// form.setField(LANGUAGES[i], checkboxstates[i % 2 == 0 ? 1 : 0]);
-// }
-// stamper.close();
-// reader.close();
-//
-// PdfReader r = new PdfReader(dest);
-// AcroFields f = r.getAcroFields();
-// Set<String> fields = form.getFields().keySet();
-// for(String key: fields){
-// if(f.getFieldType(key)==AcroFields.FIELD_TYPE_RADIOBUTTON){
-// System.out.println(key);
-// System.out.println(f.getField(key));
-//
-// }
-// }
-// r.close();
-//
-// }
-//
-// /**
-// * Main method
-// * @param args no arguments needed
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public static void main(String[] args) throws IOException, DocumentException {
-// Questionnaire buttons = new Questionnaire();
-// buttons.createPdf(RESULT1);
-// buttons.manipulatePdf(RESULT1, RESULT2);
-// }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/21/40a51a964fac001410e2e30aa85db9d1 b/.metadata/.plugins/org.eclipse.core.resources/.history/21/40a51a964fac001410e2e30aa85db9d1
deleted file mode 100644
index eddc96f..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/21/40a51a964fac001410e2e30aa85db9d1
+++ /dev/null
@@ -1,902 +0,0 @@
-package ui;
-
-import io.ClientConnection;
-import io.CommAdapter;
-import io.Questionnaire;
-
-import java.awt.BorderLayout;
-import java.awt.Color;
-import java.awt.Component;
-import java.awt.Dimension;
-import java.awt.FlowLayout;
-import java.awt.Font;
-import java.awt.SystemColor;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.awt.event.WindowAdapter;
-import java.io.File;
-import java.io.IOException;
-import java.sql.SQLException;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.LinkedList;
-import java.util.Map;
-import java.util.Set;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
-import javax.swing.Box;
-import javax.swing.BoxLayout;
-import javax.swing.ButtonGroup;
-import javax.swing.DefaultComboBoxModel;
-import javax.swing.GroupLayout;
-import javax.swing.GroupLayout.Alignment;
-import javax.swing.ImageIcon;
-import javax.swing.JButton;
-import javax.swing.JComboBox;
-import javax.swing.JDialog;
-import javax.swing.JFileChooser;
-import javax.swing.JFrame;
-import javax.swing.JLabel;
-import javax.swing.JOptionPane;
-import javax.swing.JPanel;
-import javax.swing.JRadioButton;
-import javax.swing.JScrollPane;
-import javax.swing.JSeparator;
-import javax.swing.JTabbedPane;
-import javax.swing.JTextArea;
-import javax.swing.JTextPane;
-import javax.swing.JTree;
-import javax.swing.LayoutStyle.ComponentPlacement;
-import javax.swing.SwingConstants;
-import javax.swing.UIManager;
-import javax.swing.border.BevelBorder;
-import javax.swing.border.EmptyBorder;
-import javax.swing.border.EtchedBorder;
-import javax.swing.tree.DefaultMutableTreeNode;
-import javax.swing.tree.TreeModel;
-import javax.swing.tree.TreePath;
-
-import org.jpedal.examples.viewer.Commands;
-import org.jpedal.examples.viewer.Viewer;
-
-import utils.ClientProperties;
-
-import com.itextpdf.text.DocumentException;
-
-import database.DBconnectorClient;
-import framework.Diagnostic;
-import framework.MedUnit;
-import framework.Question;
-import framework.reply.ReplySurvey;
-import framework.test.TestName;
-
-/**
- *
- * @author youssef, raisaro
- */
-public class GUI extends javax.swing.JFrame {
-
- private static final Logger LOGGER = Logger.getLogger(GUI.class.getName());
-
- private static final long serialVersionUID = -4582280515597700650L;
-
- // configuration
- private ClientProperties props;
-
- private JTree jTree;
- private DBconnectorClient connectorClientDB;
- private LinkedList<Integer> patients;
-
- /** List of all relevant tests */
- private HashMap<String, TestName> testsByName;
- private Viewer viewer;
- private JDialog dialog;
- private JFrame frame;
- private boolean survey_submitted;
- private int close_trials;
- private Map<Integer, ButtonGroup> buttonGroupMap;
- private Questionnaire quest;
- private Map<Integer, Question> map;
- private Set<Integer> ids;
- private Map<String,String> answers;
- private Map<Integer, String> locations;
-
-
- /**
- * Creates new form GUI
- */
- public GUI(ClientProperties props){
-
- frame = this;
- this.props = props;
- this.connectorClientDB = new DBconnectorClient(props.getDbMsAccess());
- survey_submitted = false;
- close_trials = 0;
-
-
- try {
- initComponents();
-
- viewer = new Viewer(jScrollPane2, null);
- viewer.setupViewer();
-
- // create questionnare
-
-
- System.out.println("#of questions: " + ids.size());
-
-// viewer_q = new Viewer(jScrollPane4, null);
-// viewer_q.setupViewer();
-//
-// // specify file you wish to open (JPedal handles getting the byte data)
-// String filepathReport = "outputPDF/buttons_filled.pdf";
-//
-// // open generated PDF
-// // object must be either String in full filepath, or
-// // File object which can be relative
-// Object[] input = new Object[]{ new File(filepathReport) };
-// viewer_q.executeCommand(Commands.OPENFILE, input);
-
- JButton btnSubmitQuestionnaire = new JButton("Submit Questionnaire");
- btnSubmitQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- btnSubmitQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- submitButtonActionPerformed(arg0);
- }
- });
- JButton btnResetQuestionnaire = new JButton("Save as PDF");
- btnResetQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- savePDFButtonActionPerformed(arg0);
- }
- });
- btnResetQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- JPanel panel_button = new JPanel();
- panel_button.setLayout(new BoxLayout(panel_button, BoxLayout.X_AXIS));
-
- lblNewLabel_3 = new JLabel("");
- lblNewLabel_3.setIcon(new ImageIcon("res/location_icon.png"));
- panel_button.add(lblNewLabel_3);
-
-
-
- comboBox = new JComboBox<String>();
- comboBox.setFont(new Font("Tahoma", Font.BOLD, 12));
- comboBox.setModel(new DefaultComboBoxModel<String>(new String[] {"Select Location"}));
- for(Integer id_loc : locations.keySet()){
- comboBox.addItem(locations.get(id_loc));
- }
-
-
- panel_button.add(comboBox);
-
- rigidArea = Box.createRigidArea(new Dimension(10, 0));
- panel_button.add(rigidArea);
-
- lblNewLabel_1 = new JLabel("");
- lblNewLabel_1.setIcon(new ImageIcon("res/submit.png"));
- panel_button.add(lblNewLabel_1);
- panel_button.add(btnSubmitQuestionnaire);
-
- panel_button.add(Box.createRigidArea(new Dimension(10,0)));
-
- lblNewLabel_2 = new JLabel("");
- lblNewLabel_2.setIcon(new ImageIcon("res/pdf.png"));
- panel_button.add(lblNewLabel_2);
- panel_button.add(btnResetQuestionnaire);
- panel_button.setPreferredSize(new Dimension(211, 35));
- panel_button.validate();
-
- JPanel panel_3 = new JPanel();
- GroupLayout gl_panel = new GroupLayout(panel);
- gl_panel.setHorizontalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(41)
- .addGroup(gl_panel.createParallelGroup(Alignment.TRAILING)
- .addComponent(jScrollPane4, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE)
- .addComponent(panel_1, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE))
- .addGap(32))
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(63)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addGap(103)
- .addComponent(panel_button, GroupLayout.DEFAULT_SIZE, 488, Short.MAX_VALUE)
- .addGap(241))
- );
- gl_panel.setVerticalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(22)
- .addComponent(panel_1, GroupLayout.DEFAULT_SIZE, 192, Short.MAX_VALUE)
- .addGap(18)
- .addComponent(jScrollPane4, GroupLayout.DEFAULT_SIZE, 437, Short.MAX_VALUE)
- .addGap(26)
- .addGroup(gl_panel.createParallelGroup(Alignment.LEADING)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(panel_button, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE)))
- );
- panel_3.setLayout(new BoxLayout(panel_3, BoxLayout.X_AXIS));
-
-
- panel.setLayout(gl_panel);
-
-
-
-
-
-
- /////////////////////////////////////////////////////////
- // display the tests available
-
- // get the tests
- HashMap<String, ArrayList<TestName>> testsRelevantByGroup = connectorClientDB.getRelevantTestsByGroup();
- ArrayList<String> groups = new ArrayList<String>(testsRelevantByGroup.keySet());
-
- // flatten hashmap into linkedlist
-// tests = new LinkedList<>();
- testsByName = new HashMap<String, TestName>();
- for (String group : groups) {
-// tests.addAll(testsRelevantByGroup.get(group));
- for (TestName test : testsRelevantByGroup.get(group)) {
- testsByName.put(test.getName(), test);
- }
- }
-
- // define tree structure of the tests
- DefaultMutableTreeNode root = new DefaultMutableTreeNode("All");
-
- for (String group : groups) {
- DefaultMutableTreeNode child = new DefaultMutableTreeNode(group);
- root.add(child);
-
- for (TestName test : testsRelevantByGroup.get(group)) {
- DefaultMutableTreeNode grandChild = new DefaultMutableTreeNode(test.getName());
- child.add(grandChild);
- }
- }
-
- // define swing object
- jTree = new JTree(root);
-
- for(int i=0;i<jTree.getRowCount();i++){
- jTree.expandRow(i);
- }
-
- jScrollPane3.setViewportView(jTree);
-// jTree.addTreeSelectionListener(new TreeSelectionListener() {
-//
-// @Override
-// public void valueChanged(TreeSelectionEvent e) {
-// tp = jTree.getSelectionPaths();
-// }
-// });
- jScrollPane3.setViewportView(jTree);
-
- /////////////////////////////////////////////////////////
- // display the patients registered
-
- patients = connectorClientDB.getPatients();
- for (Integer patientId : patients) {
- jComboBox1.addItem(patientId.toString());
- }
-
- } catch (SQLException ex) {
- Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex);
- ex.printStackTrace();
-// } catch (IOException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
-// } catch (DocumentException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
- }
-
- }
-
- /**
- * 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() {
-
- jPanel1 = new javax.swing.JPanel();
- jLabel2 = new javax.swing.JLabel();
- jLabel1 = new javax.swing.JLabel();
- jPanel2 = new javax.swing.JPanel();
- jComboBox1 = new javax.swing.JComboBox<String>();
- jButton1 = new javax.swing.JButton();
- jButton1.setFont(new Font("Tahoma", Font.BOLD, 12));
- jLabel3 = new javax.swing.JLabel();
- jLabel4 = new javax.swing.JLabel();
- jScrollPane3 = new javax.swing.JScrollPane();
- jScrollPane2 = new javax.swing.JScrollPane();
- jMenuBar1 = new javax.swing.JMenuBar();
- jMenu1 = new javax.swing.JMenu();
- jMenuItem1 = new javax.swing.JMenuItem();
- jMenu2 = new javax.swing.JMenu();
- dialog = new JDialog();
- tabbedPane = new JTabbedPane(JTabbedPane.TOP);
-
- setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
- addWindowListener(new WindowAdapter() {
- @Override
- public void windowClosing(java.awt.event.WindowEvent windowEvent) {
- if (!survey_submitted && close_trials <= 2){
- JOptionPane.showMessageDialog(frame, "Before closing the application, please fill in and submit the questionnaire.");
- close_trials++;
- tabbedPane.setSelectedIndex(1);
- }else{
- System.exit(0);
- }
- }
- });
- setTitle("HIV Pharmacogenomics\n");
-
- jLabel2.setIcon(new javax.swing.ImageIcon("res/shcs_logo2_small.gif")); // NOI18N
-
- jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
- jLabel1.setText("HIV Pharmacogenomics | Project #693");
-
- javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
- jPanel1.setLayout(jPanel1Layout);
- jPanel1Layout.setHorizontalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap(71, Short.MAX_VALUE)
- .addComponent(jLabel1)
- .addGap(18, 18, 18)
- .addComponent(jLabel2))
- );
- jPanel1Layout.setVerticalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jLabel1)
- .addGap(11, 11, 11))
- .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)
- );
-
- jPanel2.setBackground(new java.awt.Color(255, 255, 255));
- jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
-
- jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<String>(new String[]{"Select Patient"}));
-
- jButton1.setText("Run Test");
- jButton1.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton1ActionPerformed(evt);
- }
- });
-
- JLabel lblNewLabel = new JLabel("");
- lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
- lblNewLabel.setIcon(new javax.swing.ImageIcon("res/gears.png"));
-
-
-
- javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
- jPanel2Layout.setHorizontalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addComponent(jComboBox1, 0, 248, Short.MAX_VALUE)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addGap(75)
- .addGroup(jPanel2Layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jButton1)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 75, GroupLayout.PREFERRED_SIZE))
- .addContainerGap(98, Short.MAX_VALUE))
- );
- jPanel2Layout.setVerticalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addComponent(jComboBox1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED, 223, Short.MAX_VALUE)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jButton1)
- .addGap(19))
- );
- jPanel2.setLayout(jPanel2Layout);
-
- jLabel3.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel3.setText("Select Patient");
-
- jLabel4.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel4.setText("Select Test");
-
- jScrollPane3.setBackground(new java.awt.Color(255, 255, 255));
-
- jMenu1.setText("File");
-
- jMenuItem1.setText("Exit");
- jMenu1.add(jMenuItem1);
-
- jMenuBar1.add(jMenu1);
-
- jMenu2.setText("Edit");
- jMenuBar1.add(jMenu2);
-
- setJMenuBar(jMenuBar1);
-
-
-
- javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
- layout.setHorizontalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(layout.createParallelGroup(Alignment.LEADING, false)
- .addComponent(jLabel3)
- .addComponent(jLabel4)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, 244, Short.MAX_VALUE)
- .addComponent(jScrollPane3))
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 970, Short.MAX_VALUE))
- .addContainerGap())
- );
- layout.setVerticalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel4))
- .addPreferredGap(ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addComponent(jScrollPane3, GroupLayout.PREFERRED_SIZE, 388, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jLabel3)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 785, Short.MAX_VALUE))
- .addContainerGap())
- );
-
-
- jScrollPane2.setAutoscrolls(true);
- jScrollPane3.setAutoscrolls(true);
- tabbedPane.addTab("Report", new ImageIcon("res/report_icon.gif"), jScrollPane2, null);
- tabbedPane.setBackgroundAt(0, new Color(255, 255, 255));
-
- panel = new JPanel();
- tabbedPane.addTab("Survey", new ImageIcon("res/survey_icon.png"), panel, null);
- tabbedPane.setBackgroundAt(1, new Color(255, 255, 255));
- tabbedPane.setEnabledAt(1, true);
-
- panel_1 = new JPanel();
- panel_1.setBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null));
- panel_1.setBackground(UIManager.getColor("Button.background"));
-
- JLabel label = new JLabel("");
- label.setIcon(new ImageIcon("res/shcs_logo2_medium.gif"));
-
- lblDearDoctor = new JLabel("Dear Doctor,");
- lblDearDoctor.setFont(new Font("Tahoma", Font.BOLD, 14));
-
- JScrollPane scrollPane = new JScrollPane();
- scrollPane.setBorder(null);
- GroupLayout gl_panel_1 = new GroupLayout(panel_1);
- gl_panel_1.setHorizontalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(25)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 666, Short.MAX_VALUE)
- .addComponent(lblDearDoctor))
- .addContainerGap())
- );
- gl_panel_1.setVerticalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(22)
- .addComponent(lblDearDoctor)
- .addGap(18)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 120, Short.MAX_VALUE)
- .addContainerGap())
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(36)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 96, GroupLayout.PREFERRED_SIZE)
- .addContainerGap(56, Short.MAX_VALUE))
- );
-
- JTextPane txtpnTodayYouAre = new JTextPane();
- txtpnTodayYouAre.setBorder(null);
- txtpnTodayYouAre.setText("Today you are receiving a pharmacogenetics report based on the genome of your patient. Because of its highly sensitive nature, " +
- "the genetic information you are provided with is processed in a privacy-preserving way. In particular, to protect patients’ genomic privacy, " +
- "their genetic and clinical data is stored encrypted at the SHCS data center, and securely analyzed through a sophisticated algorithm designed and developed at EPFL [1, 2]. " +
- "The actual clinical and genetic information is never revealed. Only the authorized users, such as you, can get some processed information, for example, the final result of a " +
- "pharmacogenetics risk test.\nThis mechanism protects the data against insiders or hackers trying to illegally access patients’ medical information, while still allowing authorized " +
- "users to obtain the information they need." +
- "\n\nTo help us understanding the importance of genomic privacy in the medical domain, and the impact of privacy-enhancing technologies in daily clinical practice, please complete the following survey.");
- txtpnTodayYouAre.setFont(new Font("Tahoma", Font.PLAIN, 13));
- txtpnTodayYouAre.setEditable(false);
- txtpnTodayYouAre.setBackground(SystemColor.menu);
- scrollPane.setViewportView(txtpnTodayYouAre);
- panel_1.setLayout(gl_panel_1);
- jScrollPane4 = new javax.swing.JScrollPane();
- getContentPane().setLayout(layout);
-
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
- ReplySurvey replySurvey = commHandlerAdapter.callServiceSurvey();
-
- map = replySurvey.getQuestions();
- ids = map.keySet();
- locations = replySurvey.getLocations();
-
- panel_2 = new JPanel();
- panel_2.setBackground(Color.WHITE);
- panel_2.setBorder(new BevelBorder(BevelBorder.LOWERED, null, null, null, null));
- jScrollPane4.setViewportView(panel_2);
- panel_2.setLayout(new BoxLayout(panel_2, BoxLayout.Y_AXIS));
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
-
-
- for(Integer id : ids){
- ButtonGroup group = new ButtonGroup();
- JRadioButton r1 = new JRadioButton("1"); r1.setActionCommand("1"); r1.setBackground(Color.WHITE);
- JRadioButton r2 = new JRadioButton("2"); r2.setActionCommand("2"); r2.setBackground(Color.WHITE);
- JRadioButton r3 = new JRadioButton("3"); r3.setActionCommand("3"); r3.setBackground(Color.WHITE);
- JRadioButton r4 = new JRadioButton("4"); r4.setActionCommand("4"); r4.setBackground(Color.WHITE);
- JRadioButton r5 = new JRadioButton("5"); r5.setActionCommand("5"); r5.setBackground(Color.WHITE);
- group.add(r1);
- group.add(r2);
- group.add(r3);
- group.add(r4);
- group.add(r5);
- JPanel radio_panel = new JPanel();
- radio_panel.setLayout((new BoxLayout(radio_panel, BoxLayout.X_AXIS)));
- radio_panel.setBackground(Color.WHITE);
- radio_panel.setAlignmentX(Component.CENTER_ALIGNMENT);
- radio_panel.add(r1);
- radio_panel.add(r2);
- radio_panel.add(r3);
- radio_panel.add(r4);
- radio_panel.add(r5);
- radio_panel.doLayout();
- radio_panel.setPreferredSize(radio_panel.getPreferredSize());
- JTextArea question = new JTextArea(id + ") " + map.get(id).getQuestion());
- question.setLineWrap(true);
- question.setWrapStyleWord(true);
- question.setAlignmentX(Component.CENTER_ALIGNMENT);
- question.setFont(new Font("Tahoma", Font.PLAIN, 13));
-
- JPanel row_panel = new JPanel();
- row_panel.setLayout(new BoxLayout(row_panel, BoxLayout.X_AXIS));
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.add(question);
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.add(radio_panel);
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
-
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- panel_2.add(row_panel);
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
-// panel_2.add(radio_panel);
- panel_2.add(new JSeparator());
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
-// panel_2.setPreferredSize(panel_2.getPreferredSize());
- buttonGroupMap.put(id, group);
-
- }
-
-
-
- this.setSize(new Dimension(1200, 865));
-// pack();
- }// </editor-fold>//GEN-END:initComponents
-
-
- private void submitButtonActionPerformed(java.awt.event.ActionEvent evt){
-
- try{
- answers = new HashMap<String, String>();
- StringBuilder sb = new StringBuilder();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- sb.append(q).append(",");
- sb.append(bg.getSelection().getActionCommand()).append(";");
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- String answer = sb.toString();
- Integer id_loc = null;
- for(Integer i: locations.keySet()){
- if(locations.get(i).equals(comboBox.getSelectedItem().toString()))
- id_loc = i;
- }
-
- String id_p;
- if(jComboBox1.getSelectedItem().toString().equals("Select Patient"))
- id_p = "0";
- else
- id_p = jComboBox1.getSelectedItem().toString();
-
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
-
- String reply = commHandlerAdapter.callServiceSurveyAnswer(answer, id_loc.toString(), id_p);
-
- if(reply.equals("1")){
- survey_submitted = true;
-
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Congrats! Your aswers have been sent to the SHCS datacenter.",
- "Information Message",
- JOptionPane.INFORMATION_MESSAGE);
- }
- else{
- throw new IOException();
- }
-
-
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "The SHCS datacenter does not respond. Please save the survey and send it to jean.raisaro@epfl.ch.",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
- private void savePDFButtonActionPerformed(java.awt.event.ActionEvent evt){
- try {
-
- answers = new HashMap<String, String>();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- JFileChooser chooser = new JFileChooser();
- // Note: source for ExampleFileFilter can be found in FileChooserDemo,
- // under the demo/jfc directory in the JDK.
-
- int returnVal = chooser.showSaveDialog(this);
- System.out.println(returnVal);
- if(returnVal == JFileChooser.APPROVE_OPTION) {
- System.out.println("You chose to open this file: " +
- chooser.getSelectedFile().getPath());
- quest = new Questionnaire(chooser.getSelectedFile().getPath() + ".pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }else{
- quest = new Questionnaire("outputPDF/survey.pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }
-
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (DocumentException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (NullPointerException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
-
- private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
-
- JPanel contentPanel = new JPanel();
-
- dialog.setBounds(100, 100, 410, 80);
- dialog.getContentPane().setLayout(new BorderLayout());
- contentPanel.setLayout(new FlowLayout());
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- dialog.getContentPane().add(contentPanel, BorderLayout.CENTER);
- {
- JLabel label = new JLabel("Please wait...The overall computation can take few seconds");
- label.setHorizontalAlignment(SwingConstants.CENTER);
- label.setFont(new Font("Tahoma", Font.PLAIN, 12));
- contentPanel.add(label);
- }
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
- dialog.getContentPane().add(buttonPane, BorderLayout.SOUTH);
- }
- dialog.setLocationRelativeTo(this);
- dialog.setVisible(true);
-
- GUIWorker gw = new GUIWorker(this, props);
- Thread t = new Thread(gw);
- t.start();
-
- }
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JButton jButton1;
- private javax.swing.JComboBox<String> jComboBox1;
- private javax.swing.JLabel jLabel1;
- private javax.swing.JLabel jLabel2;
- private javax.swing.JLabel jLabel3;
- private javax.swing.JLabel jLabel4;
- private javax.swing.JMenu jMenu1;
- private javax.swing.JMenu jMenu2;
- private javax.swing.JMenuBar jMenuBar1;
- private javax.swing.JMenuItem jMenuItem1;
- private javax.swing.JPanel jPanel1;
- private javax.swing.JPanel jPanel2;
- private javax.swing.JScrollPane jScrollPane3;
- private javax.swing.JTabbedPane tabbedPane;
- private javax.swing.JScrollPane jScrollPane2;
- private javax.swing.JScrollPane jScrollPane4;
- private JPanel panel;
- private JPanel panel_1;
- private JPanel panel_2;
- private JLabel lblDearDoctor;
- private JLabel lblNewLabel_1;
- private JLabel lblNewLabel_2;
- private JLabel lblNewLabel_3;
- private JComboBox<String> comboBox;
- private Component rigidArea;
-
- // End of variables declaration//GEN-END:variables
-
-
- class GUIWorker implements Runnable{
-
- private JFrame mainFrame;
- private ClientProperties props;
- private MedUnit mu;
-
- public GUIWorker(GUI gui, ClientProperties props) {
- mainFrame = gui;
-
- this.props = props;
- this.mu = new MedUnit(props, 0);
- }
-
- @Override
- public void run() {
-
- try{
- int patientId = Integer.parseInt((String) jComboBox1.getSelectedItem());
-
- // convert selected tests to test identifiers
- ArrayList<TestName> selectedTests = new ArrayList<TestName>();
- for (String currentName : getSelectedTests()) {
- TestName currentTest = testsByName.get(currentName);
-
- if (currentTest == null) {
- throw new IllegalStateException("Trying to run unknown test: " + currentTest);
- }
-
- selectedTests.add(currentTest);
- }
-
- // run tests
- Diagnostic diagnostic = mu.runTests(patientId, selectedTests);
-
- // warn for tests with missing material
- warnFailedTests(diagnostic, selectedTests);
-
- // create report
- mu.createReport(patientId, selectedTests, diagnostic);
-
- dialog.setVisible(false);
-
- // specify file you wish to open (JPedal handles getting the byte data)
- String filepathReport = props.getPathPDF() + patientId + ".pdf";
-
- // open generated PDF
- // object must be either String in full filepath, or
- // File object which can be relative
- Object[] input = new Object[]{ new File(filepathReport) };
- viewer.executeCommand(Commands.OPENFILE, input);
-
- // display CAD result as bar plot
- if (diagnostic.hasCAD()) {
- System.out.println("CAD = " + diagnostic.getResultCAD());
- BarPlotFrame frame = new BarPlotFrame(diagnostic.getResultCAD(), patientId);
- frame.setVisible(true);
- frame.setAlwaysOnTop(true);
- }
-
-
- } catch (SQLException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Please select a patient.");
- }
-
- }
-
- private void warnFailedTests(Diagnostic diagnostic, ArrayList<TestName> selectedTests) {
- ArrayList<Integer> failedTests = diagnostic.getInvalidTests();
-
- if (!failedTests.isEmpty()) {
- String msg = "Could not complete tests: ";
- boolean first = true;
- for (TestName testName : selectedTests) {
- if (failedTests.contains(testName.getId())) {
- if (first) {
- first = false;
- } else {
- msg += ", ";
- }
- msg += testName.getName();
- }
- }
- displayError(msg);
- }
-
- }
-
- private void displayError(String msg) {
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- mainFrame,
- msg,
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
-
- private ArrayList<String> getSelectedTests() {
- ArrayList<String> tests = new ArrayList<String>();
-
- for (TreePath treePath : jTree.getSelectionPaths()) {
- tests.addAll(getChildrenTests(jTree.getModel(), treePath.getLastPathComponent()));
- }
-
- return tests;
- }
-
- private ArrayList<String> getChildrenTests(TreeModel model, Object node) {
- ArrayList<String> tests = new ArrayList<String>();
-
- if (model.isLeaf(node)) { // leaf
- DefaultMutableTreeNode leaf = (DefaultMutableTreeNode) node;
- tests.add(leaf.toString());
- }
- else { // iterate over children
- for (int i = 0; i < model.getChildCount(node); i++) {
- tests.addAll(getChildrenTests(model, model.getChild(node, i)));
- }
- }
-
- return tests;
- }
-
- }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/25/20857cfb0ea70014162f978bbd19228b b/.metadata/.plugins/org.eclipse.core.resources/.history/25/20857cfb0ea70014162f978bbd19228b
deleted file mode 100644
index 187f9da..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/25/20857cfb0ea70014162f978bbd19228b
+++ /dev/null
@@ -1,259 +0,0 @@
-package io;
-
-import java.awt.BorderLayout;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.util.Map;
-import java.util.Set;
-
-import com.itextpdf.text.BaseColor;
-import com.itextpdf.text.Document;
-import com.itextpdf.text.DocumentException;
-import com.itextpdf.text.Element;
-import com.itextpdf.text.ExceptionConverter;
-import com.itextpdf.text.Font;
-import com.itextpdf.text.Font.FontFamily;
-import com.itextpdf.text.FontFactory;
-import com.itextpdf.text.Image;
-import com.itextpdf.text.PageSize;
-import com.itextpdf.text.Paragraph;
-import com.itextpdf.text.Phrase;
-import com.itextpdf.text.Rectangle;
-import com.itextpdf.text.pdf.BaseFont;
-import com.itextpdf.text.pdf.ColumnText;
-import com.itextpdf.text.pdf.GrayColor;
-import com.itextpdf.text.pdf.PdfBorderDictionary;
-import com.itextpdf.text.pdf.PdfContentByte;
-import com.itextpdf.text.pdf.PdfFormField;
-import com.itextpdf.text.pdf.PdfPCell;
-import com.itextpdf.text.pdf.PdfPCellEvent;
-import com.itextpdf.text.pdf.PdfPTable;
-import com.itextpdf.text.pdf.PdfWriter;
-import com.itextpdf.text.pdf.RadioCheckField;
-import com.itextpdf.text.pdf.TextField;
-
-import framework.Question;
-
-public class Questionnaire implements PdfPCellEvent{
-
- /** The path output file. */
- String pathOutputFile;
-
- /** The document. */
- Document document;
-
- int tf;
-
- public Questionnaire(String path){
- pathOutputFile = path;
- document = new Document(PageSize.A4, 25, 25, 50, 50);
- }
- public Questionnaire(int tf){
- this.tf = tf;
- }
-
- /** The resulting PDF. */
- public static final String RESULT1 = "outputPDF/buttons.pdf";
- /** The resulting PDF. */
- public static final String RESULT2 = "outputPDF/buttons_filled.pdf";
- /** Path to a JavaScript resource. */
- public static final String RESOURCE = "res/buttons.js";
- /** Path to an image used as button icon. */
- public static final String IMAGE = "res/info.png";
- /** Possible values of a radio field / checkboxes */
- public static final String[] LANGUAGES = { "English", "German", "French", "Spanish", "Dutch" };
-
- /**
- * Creates a PDF document.
- * @param filename the path to the new PDF document
- * @throws DocumentException
- * @throws IOException
- */
- public void createPdf(Map<Integer, Question> map, Set<Integer> ids) throws IOException, DocumentException {
-
- @SuppressWarnings("unused")
- PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(pathOutputFile));
-
-
- document.open();
- Image logo = Image.getInstance("res/shcs_logo2.gif");
-
- logo.scalePercent(30f);
- float[] columnWidths1 = {0.2f, 0.8f};
- PdfPTable table_title = new PdfPTable(columnWidths1);
- PdfPCell c01 = new PdfPCell(logo, false);
- PdfPCell c02 = new PdfPCell(new Paragraph("HIV Pharmacogenomic report | Project #693 | Survey",
- FontFactory.getFont(FontFactory.HELVETICA, 20, Font.BOLD, BaseColor.BLACK)));
- c01.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c01.setBorder(Rectangle.NO_BORDER);
- c02.setBorder(Rectangle.NO_BORDER);
-
- table_title.addCell(c01);
- table_title.addCell(c02);
- table_title.setWidthPercentage(100);
- table_title.setSpacingBefore(0);
- table_title.setSpacingAfter(25);
- document.add(table_title);
-
-
- //----------------------------------------------------------------------------------
-
-
- PdfPTable table1 = new PdfPTable(1);
- table1.setWidthPercentage(100);
- PdfPCell c11 = new PdfPCell(new Phrase("Today you are receiving a pharmacogenetic report based on the genetic " +
- "information of your patient. Because the human genome contains extremely private and sensitive information" +
- " of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier," +
- " it must be managed with care. ",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.NORMAL, BaseColor.BLACK)));
- c11.setLeading(1.5f, 1.5f);
- c11.setPaddingBottom(8);
-
-
- table1.addCell(c11);
- table1.setSpacingAfter(10);
- document.add(table1);
-
-
- //----------------------------------------------------------------------------------
-
-// // step 4
-// // add the JavaScript
-// writer.addJavaScript(Utilities.readFileToString(RESOURCE));
-
-
-
-
- // add the radio buttons
- for(Integer id: ids){
- PdfPCell c2;
-
- PdfPTable table = new PdfPTable(1);
- table.setSpacingAfter(10);
- table.setWidthPercentage(100);
-// table.setWidths(new int[]{ 1, 2});
-
- PdfPCell c1 = new PdfPCell(new Phrase(id + ") " + map.get(id).getQuestion(),FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c1.setPaddingTop(5);
- c1.setPaddingBottom(5);
- c1.setHorizontalAlignment(Element.ALIGN_CENTER);
- c1.setBorder(Rectangle.BOX);
- table.addCell(c1);
-
- c2 = new PdfPCell(new Phrase(" 1" +
- " 2" +
- " 3" +
- " 4" +
- " 5",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c2.setHorizontalAlignment(Element.ALIGN_LEFT);
- c2.setCellEvent(new Questionnaire(id));
-// c2.setLeading(1.5f, 1.5f);
- c2.setBorder(Rectangle.TOP);
- c2.setPaddingTop(2);
- c2.setPaddingBottom(5);
- c2.setBackgroundColor(new BaseColor(242, 242, 242));
-
- table.addCell(c2);
-
-
-
- document.add(table);
- }
-
-//
- // step 5
- document.close();
-
- }
-
- @Override
- public void cellLayout(PdfPCell cell, Rectangle position,
- PdfContentByte[] canvases) {
- PdfWriter writer = canvases[0].getPdfWriter();
- PdfFormField radiogroup = PdfFormField.createRadioButton(writer, true);
- radiogroup.setFieldName(String.valueOf(tf));
-
- float llx = position.getLeft();
- float lly = position.getBottom();
- float urx = position.getRight();
- float ury = position.getTop();
- float cell_h = cell.getHeight();
- float cell_w = cell.getWidth();
-
- Rectangle rect;
-
- for(int i=1 ; i<=5; i++){
-
-
- rect = new Rectangle(llx + (3+i)*cell_w/12, lly+cell_h/2-6, llx + (3+i)*cell_w/12+12 ,lly+cell_h/2+6);
-
- RadioCheckField radio = new RadioCheckField(writer, rect, null, String.valueOf(i));
- radio.setBorderColor(GrayColor.GRAYBLACK);
- radio.setCheckType(RadioCheckField.TYPE_SQUARE);
-
-
- try {
- PdfFormField field = radio.getRadioField();
- radiogroup.addKid(field);
-
- writer.addAnnotation(radiogroup);
- }
-
- catch(IOException ioe) {
- throw new ExceptionConverter(ioe);
- }
- catch(DocumentException de) {
- throw new ExceptionConverter(de);
- }
- }
-
-
-
- }
-
-// /**
-// * Manipulates a PDF file src with the file dest as result
-// * @param src the original PDF
-// * @param dest the resulting PDF
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public void manipulatePdf(String src, String dest) throws IOException, DocumentException {
-// PdfReader reader = new PdfReader(src);
-// PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(dest));
-// AcroFields form = stamper.getAcroFields();
-// String[] radiostates = form.getAppearanceStates("language");
-// form.setField("language", radiostates[4]);
-// for (int i = 0; i < LANGUAGES.length; i++) {
-// String[] checkboxstates = form.getAppearanceStates("English");
-// form.setField(LANGUAGES[i], checkboxstates[i % 2 == 0 ? 1 : 0]);
-// }
-// stamper.close();
-// reader.close();
-//
-// PdfReader r = new PdfReader(dest);
-// AcroFields f = r.getAcroFields();
-// Set<String> fields = form.getFields().keySet();
-// for(String key: fields){
-// if(f.getFieldType(key)==AcroFields.FIELD_TYPE_RADIOBUTTON){
-// System.out.println(key);
-// System.out.println(f.getField(key));
-//
-// }
-// }
-// r.close();
-//
-// }
-//
-// /**
-// * Main method
-// * @param args no arguments needed
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public static void main(String[] args) throws IOException, DocumentException {
-// Questionnaire buttons = new Questionnaire();
-// buttons.createPdf(RESULT1);
-// buttons.manipulatePdf(RESULT1, RESULT2);
-// }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/27/30c2f6ee70a8001419a38fd8608ce0e6 b/.metadata/.plugins/org.eclipse.core.resources/.history/27/30c2f6ee70a8001419a38fd8608ce0e6
deleted file mode 100644
index c74f1c0..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/27/30c2f6ee70a8001419a38fd8608ce0e6
+++ /dev/null
@@ -1,118 +0,0 @@
-package utils;
-
-import java.io.File;
-
-public class ClientProperties extends ConfigProperties {
-
- public final static String KEY_PATH_PDF = "report.pathPDF";
- public final static String KEY_SHIFT_VAL = "shiftVal";
- public final static String KEY_PRECISION = "precision";
- public final static String KEY_DB_MS_ACCESS = "database.msaccess";
- public final static String KEY_SERVICE_MATERIAL = "service.material";
- public final static String KEY_SERVICE_DECRYPT = "service.decrypt";
- public final static String KEY_SERVICE_SURVEY_Q = "service.survey.q";
- public final static String KEY_SERVICE_SURVEY_A = "service.survey.a";
-
-// // MU address
-// private DatabaseConfig configMU;
-// private String ipMU;
-// private int portMU;
-
-// // SPU address
-// private String ipSPU;
-// private int portSPU;
-
- // saving paths for reports
- private String pathPDF;
-
- // access db
- private String databaseMsAccess;
-
- // web service
- private String urlWebAppMaterial;
- private String urlWebAppDecrypt;
- private String urlWebAppSurvey;
-
- private File reverseTableLoc;
-
- private int shiftVal;
- private int precision;
-
- public ClientProperties(String filepath) {
- super(filepath);
-
-// ipMU = getPropertyIPAddr(KEY_IP_MU);
-// portMU = getPropertyPort(KEY_PORT_MU);
-//
-// ipSPU = getPropertyIPAddr(KEY_IP_SPU);
-// portSPU = getPropertyPort(KEY_PORT_SPU);
-//
-// configMU = new DatabaseConfig(
-// ipMU,
-// getProperty(KEY_DB_MU),
-// getProperty(KEY_USER_MU),
-// getProperty(KEY_PASS_MU)
-// );
-
- pathPDF = getProperty(KEY_PATH_PDF);
-
- databaseMsAccess = getProperty(KEY_DB_MS_ACCESS);
-
- urlWebAppMaterial = getProperty(KEY_SERVICE_MATERIAL);
- urlWebAppDecrypt = getProperty(KEY_SERVICE_DECRYPT);
- urlWebAppSurvey = getProperty(KEY_SERVICE_SURVEY);
-
- reverseTableLoc = new File(getProperty(ConfigProperties.KEY_REVERSE_TABLE));
-
- shiftVal = Integer.parseInt(getProperty(KEY_SHIFT_VAL));
- precision = Integer.parseInt(getProperty(KEY_PRECISION));
- }
-
-// public String getIpSPU() {
-// return ipSPU;
-// }
-// public int getPortSPU() {
-// return portSPU;
-// }
- public String getPathPDF() {
- return pathPDF;
- }
-// public DatabaseConfig getConfigMU() {
-// return configMU;
-// }
-// public String getIpMU() {
-// return ipMU;
-// }
-// public int getPortMU() {
-// return portMU;
-// }
-
- public int getShiftVal() {
- return shiftVal;
- }
-
- public int getPrecision() {
- return precision;
- }
-
- public File getReverseTableLoc() {
- return reverseTableLoc;
- }
-
- public String getDbMsAccess() {
- return databaseMsAccess;
- }
-
- public String getUrlWebAppMaterial() {
- return urlWebAppMaterial;
- }
-
- public String getUrlWebAppDecrypt() {
- return urlWebAppDecrypt;
- }
-
- public String getUrlWebAppSurvey(){
- return urlWebAppSurvey;
- }
-
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/27/900104a799a7001417ceadf0100b5ef7 b/.metadata/.plugins/org.eclipse.core.resources/.history/27/900104a799a7001417ceadf0100b5ef7
deleted file mode 100644
index e63dedb..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/27/900104a799a7001417ceadf0100b5ef7
+++ /dev/null
@@ -1,278 +0,0 @@
-package io;
-
-import java.awt.BorderLayout;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.util.Map;
-import java.util.Set;
-
-import com.itextpdf.text.BaseColor;
-import com.itextpdf.text.Document;
-import com.itextpdf.text.DocumentException;
-import com.itextpdf.text.Element;
-import com.itextpdf.text.ExceptionConverter;
-import com.itextpdf.text.Font;
-import com.itextpdf.text.Font.FontFamily;
-import com.itextpdf.text.FontFactory;
-import com.itextpdf.text.Image;
-import com.itextpdf.text.PageSize;
-import com.itextpdf.text.Paragraph;
-import com.itextpdf.text.Phrase;
-import com.itextpdf.text.Rectangle;
-import com.itextpdf.text.pdf.AcroFields;
-import com.itextpdf.text.pdf.BaseFont;
-import com.itextpdf.text.pdf.ColumnText;
-import com.itextpdf.text.pdf.GrayColor;
-import com.itextpdf.text.pdf.PdfBorderDictionary;
-import com.itextpdf.text.pdf.PdfContentByte;
-import com.itextpdf.text.pdf.PdfFormField;
-import com.itextpdf.text.pdf.PdfPCell;
-import com.itextpdf.text.pdf.PdfPCellEvent;
-import com.itextpdf.text.pdf.PdfPTable;
-import com.itextpdf.text.pdf.PdfReader;
-import com.itextpdf.text.pdf.PdfWriter;
-import com.itextpdf.text.pdf.RadioCheckField;
-import com.itextpdf.text.pdf.TextField;
-
-import framework.Question;
-
-public class Questionnaire implements PdfPCellEvent{
-
- /** The path output file. */
- String pathOutputFile;
-
- /** The document. */
- Document document;
-
- int tf;
-
- public Questionnaire(String path){
- pathOutputFile = path;
- document = new Document(PageSize.A4, 25, 25, 50, 50);
- }
- public Questionnaire(int tf){
- this.tf = tf;
- }
-
- /** The resulting PDF. */
- public static final String RESULT1 = "outputPDF/buttons.pdf";
- /** The resulting PDF. */
- public static final String RESULT2 = "outputPDF/buttons_filled.pdf";
- /** Path to a JavaScript resource. */
- public static final String RESOURCE = "res/buttons.js";
- /** Path to an image used as button icon. */
- public static final String IMAGE = "res/info.png";
- /** Possible values of a radio field / checkboxes */
- public static final String[] LANGUAGES = { "English", "German", "French", "Spanish", "Dutch" };
-
- /**
- * Creates a PDF document.
- * @param filename the path to the new PDF document
- * @throws DocumentException
- * @throws IOException
- */
- public void createPdf(Map<Integer, Question> map, Set<Integer> ids) throws IOException, DocumentException {
-
- @SuppressWarnings("unused")
- PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(pathOutputFile));
-
-
- document.open();
- Image logo = Image.getInstance("res/shcs_logo2.gif");
-
- logo.scalePercent(30f);
- float[] columnWidths1 = {0.2f, 0.8f};
- PdfPTable table_title = new PdfPTable(columnWidths1);
- PdfPCell c01 = new PdfPCell(logo, false);
- PdfPCell c02 = new PdfPCell(new Paragraph("Survery | Project #693",
- FontFactory.getFont(FontFactory.HELVETICA, 20, Font.BOLD, BaseColor.BLACK)));
- c01.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setHorizontalAlignment(Element.ALIGN_CENTER);
- c01.setBorder(Rectangle.NO_BORDER);
- c02.setBorder(Rectangle.NO_BORDER);
-
- table_title.addCell(c01);
- table_title.addCell(c02);
- table_title.setWidthPercentage(100);
- table_title.setSpacingBefore(0);
- table_title.setSpacingAfter(25);
- document.add(table_title);
-
-
- //----------------------------------------------------------------------------------
-
-
- PdfPTable table1 = new PdfPTable(1);
- table1.setWidthPercentage(100);
- PdfPCell c11 = new PdfPCell(new Phrase("Today you are receiving a pharmacogenetic report based on the genetic " +
- "information of your patient. Because the human genome contains extremely private and sensitive information" +
- " of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier," +
- " it must be managed with care. ",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.NORMAL, BaseColor.BLACK)));
- c11.setLeading(1.5f, 1.5f);
- c11.setPaddingBottom(8);
-
-
- table1.addCell(c11);
- table1.setSpacingAfter(10);
- document.add(table1);
-
-
- //----------------------------------------------------------------------------------
-
-// // step 4
-// // add the JavaScript
-// writer.addJavaScript(Utilities.readFileToString(RESOURCE));
-
- for(Integer id: ids){
- PdfPCell c2;
-
- PdfPTable table = new PdfPTable(1);
- table.setSpacingAfter(10);
- table.setWidthPercentage(100);
-
- PdfPCell c1 = new PdfPCell(new Phrase(id + ") " + map.get(id).getQuestion(),FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c1.setPaddingTop(5);
- c1.setPaddingBottom(5);
- c1.setHorizontalAlignment(Element.ALIGN_CENTER);
- c1.setBorder(Rectangle.NO_BORDER);
- table.addCell(c1);
-
- c2 = new PdfPCell(new Phrase(" 1" +
- " 2" +
- " 3" +
- " 4" +
- " 5",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c2.setHorizontalAlignment(Element.ALIGN_LEFT);
- c2.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c2.setCellEvent(new Questionnaire(id));
- c2.setBorder(Rectangle.TOP);
- c2.setPaddingTop(2);
- c2.setPaddingBottom(5);
- c2.setBackgroundColor(new BaseColor(242, 242, 242));
-
- table.addCell(c2);
-
-
-
- document.add(table);
- }
-
-
- //----------------------------------------------------------------------------------
-
- // step 5
- document.close();
-
- }
-
- @Override
- public void cellLayout(PdfPCell cell, Rectangle position,
- PdfContentByte[] canvases) {
- PdfWriter writer = canvases[0].getPdfWriter();
- PdfFormField radiogroup = PdfFormField.createRadioButton(writer, true);
- radiogroup.setFieldName(String.valueOf(tf));
-
- float llx = position.getLeft();
- float lly = position.getBottom();
-
- float cell_h = cell.getHeight();
- float cell_w = cell.getWidth();
-
- Rectangle rect;
-
- for(int i=1 ; i<=5; i++){
-
- rect = new Rectangle(llx + (3+i)*cell_w/12, lly+cell_h/2-6, llx + (3+i)*cell_w/12+12 ,lly+cell_h/2+6);
-
- RadioCheckField radio = new RadioCheckField(writer, rect, null, String.valueOf(i));
- radio.setBorderColor(GrayColor.GRAYBLACK);
- radio.setCheckType(RadioCheckField.TYPE_SQUARE);
-
-
- try {
- PdfFormField field = radio.getRadioField();
- radiogroup.addKid(field);
-
- writer.addAnnotation(radiogroup);
- }
-
- catch(IOException ioe) {
- throw new ExceptionConverter(ioe);
- }
- catch(DocumentException de) {
- throw new ExceptionConverter(de);
- }
- }
-
-
-
- }
-
-
- public String getAnswers() throws IOException{
- StringBuilder sb = new StringBuilder();
- PdfReader reader = new PdfReader(pathOutputFile);
- AcroFields form = reader.getAcroFields();
- Set<String> fields = form.getFields().keySet();
- for(String key: fields){
- if(form.getFieldType(key)==AcroFields.FIELD_TYPE_RADIOBUTTON){
- sb.append(key);
- sb.append(",");
- sb.append(form.getField(key));
- sb.append(";");
- }
- }
-
-
- return sb.toString();
-
- }
-
-
-// /**
-// * Manipulates a PDF file src with the file dest as result
-// * @param src the original PDF
-// * @param dest the resulting PDF
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public void manipulatePdf(String src, String dest) throws IOException, DocumentException {
-// PdfReader reader = new PdfReader(src);
-// PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(dest));
-// AcroFields form = stamper.getAcroFields();
-// String[] radiostates = form.getAppearanceStates("language");
-// form.setField("language", radiostates[4]);
-// for (int i = 0; i < LANGUAGES.length; i++) {
-// String[] checkboxstates = form.getAppearanceStates("English");
-// form.setField(LANGUAGES[i], checkboxstates[i % 2 == 0 ? 1 : 0]);
-// }
-// stamper.close();
-// reader.close();
-//
-// PdfReader r = new PdfReader(dest);
-// AcroFields f = r.getAcroFields();
-// Set<String> fields = form.getFields().keySet();
-// for(String key: fields){
-// if(f.getFieldType(key)==AcroFields.FIELD_TYPE_RADIOBUTTON){
-// System.out.println(key);
-// System.out.println(f.getField(key));
-//
-// }
-// }
-// r.close();
-//
-// }
-//
-// /**
-// * Main method
-// * @param args no arguments needed
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public static void main(String[] args) throws IOException, DocumentException {
-// Questionnaire buttons = new Questionnaire();
-// buttons.createPdf(RESULT1);
-// buttons.manipulatePdf(RESULT1, RESULT2);
-// }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/2a/f0cc37e0b5a7001417ceadf0100b5ef7 b/.metadata/.plugins/org.eclipse.core.resources/.history/2a/f0cc37e0b5a7001417ceadf0100b5ef7
deleted file mode 100644
index 417fa5e..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/2a/f0cc37e0b5a7001417ceadf0100b5ef7
+++ /dev/null
@@ -1,300 +0,0 @@
-package io;
-
-import java.awt.BorderLayout;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.util.Map;
-import java.util.Set;
-
-import com.itextpdf.text.BaseColor;
-import com.itextpdf.text.Document;
-import com.itextpdf.text.DocumentException;
-import com.itextpdf.text.Element;
-import com.itextpdf.text.ExceptionConverter;
-import com.itextpdf.text.Font;
-import com.itextpdf.text.Font.FontFamily;
-import com.itextpdf.text.FontFactory;
-import com.itextpdf.text.Image;
-import com.itextpdf.text.PageSize;
-import com.itextpdf.text.Paragraph;
-import com.itextpdf.text.Phrase;
-import com.itextpdf.text.Rectangle;
-import com.itextpdf.text.pdf.AcroFields;
-import com.itextpdf.text.pdf.BaseFont;
-import com.itextpdf.text.pdf.ColumnText;
-import com.itextpdf.text.pdf.GrayColor;
-import com.itextpdf.text.pdf.PdfAction;
-import com.itextpdf.text.pdf.PdfBorderDictionary;
-import com.itextpdf.text.pdf.PdfContentByte;
-import com.itextpdf.text.pdf.PdfFormField;
-import com.itextpdf.text.pdf.PdfPCell;
-import com.itextpdf.text.pdf.PdfPCellEvent;
-import com.itextpdf.text.pdf.PdfPTable;
-import com.itextpdf.text.pdf.PdfReader;
-import com.itextpdf.text.pdf.PdfStamper;
-import com.itextpdf.text.pdf.PdfWriter;
-import com.itextpdf.text.pdf.PushbuttonField;
-import com.itextpdf.text.pdf.RadioCheckField;
-import com.itextpdf.text.pdf.TextField;
-
-import framework.Question;
-
-public class Questionnaire implements PdfPCellEvent{
-
- /** The path output file. */
- String pathOutputFile;
-
- /** The document. */
- Document document;
-
- int tf;
-
- public Questionnaire(String path){
- pathOutputFile = path;
- document = new Document(PageSize.A4, 25, 25, 50, 50);
- }
- public Questionnaire(int tf){
- this.tf = tf;
- }
-
- /** The resulting PDF. */
- public static final String RESULT1 = "outputPDF/buttons.pdf";
- /** The resulting PDF. */
- public static final String RESULT2 = "outputPDF/buttons_filled.pdf";
- /** Path to a JavaScript resource. */
- public static final String RESOURCE = "res/buttons.js";
- /** Path to an image used as button icon. */
- public static final String IMAGE = "res/info.png";
- /** Possible values of a radio field / checkboxes */
- public static final String[] LANGUAGES = { "English", "German", "French", "Spanish", "Dutch" };
-
- /**
- * Creates a PDF document.
- * @param filename the path to the new PDF document
- * @throws DocumentException
- * @throws IOException
- */
- public void createPdf(Map<Integer, Question> map, Set<Integer> ids) throws IOException, DocumentException {
-
- @SuppressWarnings("unused")
- PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(pathOutputFile));
-
-
- document.open();
- Image logo = Image.getInstance("res/shcs_logo2.gif");
-
- logo.scalePercent(30f);
- float[] columnWidths1 = {0.2f, 0.8f};
- PdfPTable table_title = new PdfPTable(columnWidths1);
- PdfPCell c01 = new PdfPCell(logo, false);
- PdfPCell c02 = new PdfPCell(new Paragraph("Survery | Project #693",
- FontFactory.getFont(FontFactory.HELVETICA, 20, Font.BOLD, BaseColor.BLACK)));
- c01.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setHorizontalAlignment(Element.ALIGN_CENTER);
- c01.setBorder(Rectangle.NO_BORDER);
- c02.setBorder(Rectangle.NO_BORDER);
-
- table_title.addCell(c01);
- table_title.addCell(c02);
- table_title.setWidthPercentage(100);
- table_title.setSpacingBefore(0);
- table_title.setSpacingAfter(25);
- document.add(table_title);
-
-
- //----------------------------------------------------------------------------------
-
-
- PdfPTable table1 = new PdfPTable(1);
- table1.setWidthPercentage(100);
- PdfPCell c11 = new PdfPCell(new Phrase("Today you are receiving a pharmacogenetic report based on the genetic " +
- "information of your patient. Because the human genome contains extremely private and sensitive information" +
- " of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier," +
- " it must be managed with care. ",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.NORMAL, BaseColor.BLACK)));
- c11.setLeading(1.5f, 1.5f);
- c11.setPaddingBottom(8);
-
-
- table1.addCell(c11);
- table1.setSpacingAfter(10);
- document.add(table1);
-
-
- //----------------------------------------------------------------------------------
-
-// // step 4
-// // add the JavaScript
-// writer.addJavaScript(Utilities.readFileToString(RESOURCE));
-
- for(Integer id: ids){
- PdfPCell c2;
-
- PdfPTable table = new PdfPTable(1);
- table.setSpacingAfter(10);
- table.setWidthPercentage(100);
-
- PdfPCell c1 = new PdfPCell(new Phrase(id + ") " + map.get(id).getQuestion(),FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c1.setPaddingTop(5);
- c1.setPaddingBottom(5);
- c1.setHorizontalAlignment(Element.ALIGN_CENTER);
- c1.setBorder(Rectangle.NO_BORDER);
- table.addCell(c1);
-
- c2 = new PdfPCell(new Phrase(" 1" +
- " 2" +
- " 3" +
- " 4" +
- " 5",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c2.setHorizontalAlignment(Element.ALIGN_LEFT);
- c2.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c2.setCellEvent(new Questionnaire(id));
- c2.setBorder(Rectangle.TOP);
- c2.setPaddingTop(2);
- c2.setPaddingBottom(5);
- c2.setBackgroundColor(new BaseColor(242, 242, 242));
-
- table.addCell(c2);
-
-
-
- document.add(table);
- }
-
-
- //----------------------------------------------------------------------------------
-
- // step 5
- document.close();
-
- }
-
- @Override
- public void cellLayout(PdfPCell cell, Rectangle position,
- PdfContentByte[] canvases) {
- PdfWriter writer = canvases[0].getPdfWriter();
- PdfFormField radiogroup = PdfFormField.createRadioButton(writer, true);
- radiogroup.setFieldName(String.valueOf(tf));
- System.out.println(tf);
-
- float llx = position.getLeft();
- float lly = position.getBottom();
-
- float cell_h = cell.getHeight();
- float cell_w = cell.getWidth();
-
- Rectangle rect;
-
- for(int i=1 ; i<=5; i++){
-
- rect = new Rectangle(llx + (3+i)*cell_w/12, lly+cell_h/2-6, llx + (3+i)*cell_w/12+12 ,lly+cell_h/2+6);
-
- RadioCheckField radio = new RadioCheckField(writer, rect, null, String.valueOf(i));
- radio.setBorderColor(GrayColor.GRAYBLACK);
- radio.setCheckType(RadioCheckField.TYPE_SQUARE);
-
-
- try {
- PdfFormField field = radio.getRadioField();
- radiogroup.addKid(field);
-
- writer.addAnnotation(radiogroup);
- }
-
- catch(IOException ioe) {
- throw new ExceptionConverter(ioe);
- }
- catch(DocumentException de) {
- throw new ExceptionConverter(de);
- }
- }
-
-
-
- }
-
-
- public String getAnswers() throws IOException, DocumentException{
- PdfReader reader = new PdfReader(pathOutputFile);
- reader.removeUsageRights();
- PdfStamper stamper = new PdfStamper(reader, new FileOutputStream("outputPDF/buttons_filled2.pdf"));
-
-
-
- PdfAction.createSubmitForm(
- "outputPDF/request", null,
- PdfAction.SUBMIT_HTML_FORMAT | PdfAction.SUBMIT_COORDINATES);
- // add the button
-
-
-
- AcroFields form = reader.getAcroFields();
-
- StringBuilder sb = new StringBuilder();
-
-
- Set<String> fields = form.getFields().keySet();
- for(String key: fields){
- System.out.println("key = " + key);
- if(form.getFieldType(key)==AcroFields.FIELD_TYPE_RADIOBUTTON){
- sb.append(key);
- sb.append(",");
- sb.append(form.getField(key));
- sb.append(";");
- }
- }
-// stamper.close();
- reader.close();
-
-
- return sb.toString();
-
- }
-
-
-// /**
-// * Manipulates a PDF file src with the file dest as result
-// * @param src the original PDF
-// * @param dest the resulting PDF
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public void manipulatePdf(String src, String dest) throws IOException, DocumentException {
-// PdfReader reader = new PdfReader(src);
-// PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(dest));
-// AcroFields form = stamper.getAcroFields();
-// String[] radiostates = form.getAppearanceStates("language");
-// form.setField("language", radiostates[4]);
-// for (int i = 0; i < LANGUAGES.length; i++) {
-// String[] checkboxstates = form.getAppearanceStates("English");
-// form.setField(LANGUAGES[i], checkboxstates[i % 2 == 0 ? 1 : 0]);
-// }
-// stamper.close();
-// reader.close();
-//
-// PdfReader r = new PdfReader(dest);
-// AcroFields f = r.getAcroFields();
-// Set<String> fields = form.getFields().keySet();
-// for(String key: fields){
-// if(f.getFieldType(key)==AcroFields.FIELD_TYPE_RADIOBUTTON){
-// System.out.println(key);
-// System.out.println(f.getField(key));
-//
-// }
-// }
-// r.close();
-//
-// }
-//
-// /**
-// * Main method
-// * @param args no arguments needed
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public static void main(String[] args) throws IOException, DocumentException {
-// Questionnaire buttons = new Questionnaire();
-// buttons.createPdf(RESULT1);
-// buttons.manipulatePdf(RESULT1, RESULT2);
-// }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/2b/30e91c1c52ac001410e2e30aa85db9d1 b/.metadata/.plugins/org.eclipse.core.resources/.history/2b/30e91c1c52ac001410e2e30aa85db9d1
deleted file mode 100644
index b945235..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/2b/30e91c1c52ac001410e2e30aa85db9d1
+++ /dev/null
@@ -1,906 +0,0 @@
-package ui;
-
-import io.ClientConnection;
-import io.CommAdapter;
-import io.Questionnaire;
-
-import java.awt.BorderLayout;
-import java.awt.Color;
-import java.awt.Component;
-import java.awt.Dimension;
-import java.awt.FlowLayout;
-import java.awt.Font;
-import java.awt.SystemColor;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.awt.event.WindowAdapter;
-import java.io.File;
-import java.io.IOException;
-import java.sql.SQLException;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.LinkedList;
-import java.util.Map;
-import java.util.Set;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
-import javax.swing.Box;
-import javax.swing.BoxLayout;
-import javax.swing.ButtonGroup;
-import javax.swing.DefaultComboBoxModel;
-import javax.swing.GroupLayout;
-import javax.swing.GroupLayout.Alignment;
-import javax.swing.ImageIcon;
-import javax.swing.JButton;
-import javax.swing.JComboBox;
-import javax.swing.JDialog;
-import javax.swing.JFileChooser;
-import javax.swing.JFrame;
-import javax.swing.JLabel;
-import javax.swing.JOptionPane;
-import javax.swing.JPanel;
-import javax.swing.JRadioButton;
-import javax.swing.JScrollPane;
-import javax.swing.JSeparator;
-import javax.swing.JTabbedPane;
-import javax.swing.JTextArea;
-import javax.swing.JTextPane;
-import javax.swing.JTree;
-import javax.swing.LayoutStyle.ComponentPlacement;
-import javax.swing.SwingConstants;
-import javax.swing.UIManager;
-import javax.swing.border.BevelBorder;
-import javax.swing.border.EmptyBorder;
-import javax.swing.border.EtchedBorder;
-import javax.swing.tree.DefaultMutableTreeNode;
-import javax.swing.tree.TreeModel;
-import javax.swing.tree.TreePath;
-
-import org.jpedal.examples.viewer.Commands;
-import org.jpedal.examples.viewer.Viewer;
-
-import utils.ClientProperties;
-
-import com.itextpdf.text.DocumentException;
-
-import database.DBconnectorClient;
-import framework.Diagnostic;
-import framework.MedUnit;
-import framework.Question;
-import framework.reply.ReplySurvey;
-import framework.test.TestName;
-import javax.swing.border.SoftBevelBorder;
-import javax.swing.border.LineBorder;
-
-/**
- *
- * @author youssef, raisaro
- */
-public class GUI extends javax.swing.JFrame {
-
- private static final Logger LOGGER = Logger.getLogger(GUI.class.getName());
-
- private static final long serialVersionUID = -4582280515597700650L;
-
- // configuration
- private ClientProperties props;
-
- private JTree jTree;
- private DBconnectorClient connectorClientDB;
- private LinkedList<Integer> patients;
-
- /** List of all relevant tests */
- private HashMap<String, TestName> testsByName;
- private Viewer viewer;
- private JDialog dialog;
- private JFrame frame;
- private boolean survey_submitted;
- private int close_trials;
- private Map<Integer, ButtonGroup> buttonGroupMap;
- private Questionnaire quest;
- private Map<Integer, Question> map;
- private Set<Integer> ids;
- private Map<String,String> answers;
- private Map<Integer, String> locations;
-
-
- /**
- * Creates new form GUI
- */
- public GUI(ClientProperties props){
-
- frame = this;
- this.props = props;
- this.connectorClientDB = new DBconnectorClient(props.getDbMsAccess());
- survey_submitted = false;
- close_trials = 0;
-
-
- try {
- initComponents();
-
- viewer = new Viewer(jScrollPane2, null);
- viewer.setupViewer();
-
- // create questionnare
-
-
- System.out.println("#of questions: " + ids.size());
-
-// viewer_q = new Viewer(jScrollPane4, null);
-// viewer_q.setupViewer();
-//
-// // specify file you wish to open (JPedal handles getting the byte data)
-// String filepathReport = "outputPDF/buttons_filled.pdf";
-//
-// // open generated PDF
-// // object must be either String in full filepath, or
-// // File object which can be relative
-// Object[] input = new Object[]{ new File(filepathReport) };
-// viewer_q.executeCommand(Commands.OPENFILE, input);
-
- JButton btnSubmitQuestionnaire = new JButton("Submit Questionnaire");
- btnSubmitQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- btnSubmitQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- submitButtonActionPerformed(arg0);
- }
- });
- JButton btnResetQuestionnaire = new JButton("Save as PDF");
- btnResetQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- savePDFButtonActionPerformed(arg0);
- }
- });
- btnResetQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- JPanel panel_button = new JPanel();
- panel_button.setLayout(new BoxLayout(panel_button, BoxLayout.X_AXIS));
-
- lblNewLabel_3 = new JLabel("");
- lblNewLabel_3.setIcon(new ImageIcon("res/location_icon.png"));
- panel_button.add(lblNewLabel_3);
-
-
-
- comboBox = new JComboBox<String>();
- comboBox.setFont(new Font("Tahoma", Font.BOLD, 12));
- comboBox.setModel(new DefaultComboBoxModel<String>(new String[] {"Select Location"}));
- for(Integer id_loc : locations.keySet()){
- comboBox.addItem(locations.get(id_loc));
- }
-
-
- panel_button.add(comboBox);
-
- rigidArea = Box.createRigidArea(new Dimension(10, 0));
- panel_button.add(rigidArea);
-
- lblNewLabel_1 = new JLabel("");
- lblNewLabel_1.setIcon(new ImageIcon("res/submit.png"));
- panel_button.add(lblNewLabel_1);
- panel_button.add(btnSubmitQuestionnaire);
-
- panel_button.add(Box.createRigidArea(new Dimension(10,0)));
-
- lblNewLabel_2 = new JLabel("");
- lblNewLabel_2.setIcon(new ImageIcon("res/pdf.png"));
- panel_button.add(lblNewLabel_2);
- panel_button.add(btnResetQuestionnaire);
- panel_button.setPreferredSize(new Dimension(211, 35));
- panel_button.validate();
-
- JPanel panel_3 = new JPanel();
- GroupLayout gl_panel = new GroupLayout(panel);
- gl_panel.setHorizontalGroup(
- gl_panel.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(63)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addGap(103)
- .addComponent(panel_button, GroupLayout.DEFAULT_SIZE, 498, Short.MAX_VALUE)
- .addGap(241))
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(41)
- .addGroup(gl_panel.createParallelGroup(Alignment.TRAILING)
- .addComponent(jScrollPane4, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE)
- .addComponent(panel_1, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE))
- .addGap(32))
- );
- gl_panel.setVerticalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(22)
- .addComponent(panel_1, GroupLayout.PREFERRED_SIZE, 235, GroupLayout.PREFERRED_SIZE)
- .addGap(37)
- .addComponent(jScrollPane4, GroupLayout.DEFAULT_SIZE, 379, Short.MAX_VALUE)
- .addGap(26)
- .addGroup(gl_panel.createParallelGroup(Alignment.LEADING)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(panel_button, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE)))
- );
- panel_3.setLayout(new BoxLayout(panel_3, BoxLayout.X_AXIS));
-
-
- panel.setLayout(gl_panel);
-
-
-
-
-
-
- /////////////////////////////////////////////////////////
- // display the tests available
-
- // get the tests
- HashMap<String, ArrayList<TestName>> testsRelevantByGroup = connectorClientDB.getRelevantTestsByGroup();
- ArrayList<String> groups = new ArrayList<String>(testsRelevantByGroup.keySet());
-
- // flatten hashmap into linkedlist
-// tests = new LinkedList<>();
- testsByName = new HashMap<String, TestName>();
- for (String group : groups) {
-// tests.addAll(testsRelevantByGroup.get(group));
- for (TestName test : testsRelevantByGroup.get(group)) {
- testsByName.put(test.getName(), test);
- }
- }
-
- // define tree structure of the tests
- DefaultMutableTreeNode root = new DefaultMutableTreeNode("All");
-
- for (String group : groups) {
- DefaultMutableTreeNode child = new DefaultMutableTreeNode(group);
- root.add(child);
-
- for (TestName test : testsRelevantByGroup.get(group)) {
- DefaultMutableTreeNode grandChild = new DefaultMutableTreeNode(test.getName());
- child.add(grandChild);
- }
- }
-
- // define swing object
- jTree = new JTree(root);
-
- for(int i=0;i<jTree.getRowCount();i++){
- jTree.expandRow(i);
- }
-
- jScrollPane3.setViewportView(jTree);
-// jTree.addTreeSelectionListener(new TreeSelectionListener() {
-//
-// @Override
-// public void valueChanged(TreeSelectionEvent e) {
-// tp = jTree.getSelectionPaths();
-// }
-// });
- jScrollPane3.setViewportView(jTree);
-
- /////////////////////////////////////////////////////////
- // display the patients registered
-
- patients = connectorClientDB.getPatients();
- for (Integer patientId : patients) {
- jComboBox1.addItem(patientId.toString());
- }
-
- } catch (SQLException ex) {
- Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex);
- ex.printStackTrace();
-// } catch (IOException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
-// } catch (DocumentException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
- }
-
- }
-
- /**
- * 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() {
-
- jPanel1 = new javax.swing.JPanel();
- jLabel2 = new javax.swing.JLabel();
- jLabel1 = new javax.swing.JLabel();
- jPanel2 = new javax.swing.JPanel();
- jComboBox1 = new javax.swing.JComboBox<String>();
- jButton1 = new javax.swing.JButton();
- jButton1.setFont(new Font("Tahoma", Font.BOLD, 12));
- jLabel3 = new javax.swing.JLabel();
- jLabel4 = new javax.swing.JLabel();
- jScrollPane3 = new javax.swing.JScrollPane();
- jScrollPane2 = new javax.swing.JScrollPane();
- jMenuBar1 = new javax.swing.JMenuBar();
- jMenu1 = new javax.swing.JMenu();
- jMenuItem1 = new javax.swing.JMenuItem();
- jMenu2 = new javax.swing.JMenu();
- dialog = new JDialog();
- tabbedPane = new JTabbedPane(JTabbedPane.TOP);
-
- setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
- addWindowListener(new WindowAdapter() {
- @Override
- public void windowClosing(java.awt.event.WindowEvent windowEvent) {
- if (!survey_submitted && close_trials <= 2){
- JOptionPane.showMessageDialog(frame, "Before closing the application, please fill in and submit the questionnaire.");
- close_trials++;
- tabbedPane.setSelectedIndex(1);
- }else{
- System.exit(0);
- }
- }
- });
- setTitle("HIV Pharmacogenomics\n");
-
- jLabel2.setIcon(new javax.swing.ImageIcon("res/shcs_logo2_small.gif")); // NOI18N
-
- jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
- jLabel1.setText("HIV Pharmacogenomics | Project #693");
-
- javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
- jPanel1.setLayout(jPanel1Layout);
- jPanel1Layout.setHorizontalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap(71, Short.MAX_VALUE)
- .addComponent(jLabel1)
- .addGap(18, 18, 18)
- .addComponent(jLabel2))
- );
- jPanel1Layout.setVerticalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jLabel1)
- .addGap(11, 11, 11))
- .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)
- );
-
- jPanel2.setBackground(new java.awt.Color(255, 255, 255));
- jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
-
- jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<String>(new String[]{"Select Patient"}));
-
- jButton1.setText("Run Test");
- jButton1.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton1ActionPerformed(evt);
- }
- });
-
- JLabel lblNewLabel = new JLabel("");
- lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
- lblNewLabel.setIcon(new javax.swing.ImageIcon("res/gears.png"));
-
-
-
- javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
- jPanel2Layout.setHorizontalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addComponent(jComboBox1, 0, 248, Short.MAX_VALUE)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addGap(75)
- .addGroup(jPanel2Layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jButton1)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 75, GroupLayout.PREFERRED_SIZE))
- .addContainerGap(98, Short.MAX_VALUE))
- );
- jPanel2Layout.setVerticalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addComponent(jComboBox1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED, 223, Short.MAX_VALUE)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jButton1)
- .addGap(19))
- );
- jPanel2.setLayout(jPanel2Layout);
-
- jLabel3.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel3.setText("Select Patient");
-
- jLabel4.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel4.setText("Select Test");
-
- jScrollPane3.setBackground(new java.awt.Color(255, 255, 255));
-
- jMenu1.setText("File");
-
- jMenuItem1.setText("Exit");
- jMenu1.add(jMenuItem1);
-
- jMenuBar1.add(jMenu1);
-
- jMenu2.setText("Edit");
- jMenuBar1.add(jMenu2);
-
- setJMenuBar(jMenuBar1);
-
-
-
- javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
- layout.setHorizontalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(layout.createParallelGroup(Alignment.LEADING, false)
- .addComponent(jLabel3)
- .addComponent(jLabel4)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, 244, Short.MAX_VALUE)
- .addComponent(jScrollPane3))
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 970, Short.MAX_VALUE))
- .addContainerGap())
- );
- layout.setVerticalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel4))
- .addPreferredGap(ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addComponent(jScrollPane3, GroupLayout.PREFERRED_SIZE, 388, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jLabel3)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 785, Short.MAX_VALUE))
- .addContainerGap())
- );
-
-
- jScrollPane2.setAutoscrolls(true);
- jScrollPane3.setAutoscrolls(true);
- tabbedPane.addTab("Report", new ImageIcon("res/report_icon.gif"), jScrollPane2, null);
- tabbedPane.setBackgroundAt(0, new Color(255, 255, 255));
-
- panel = new JPanel();
- tabbedPane.addTab("Survey", new ImageIcon("res/survey_icon.png"), panel, null);
- tabbedPane.setBackgroundAt(1, new Color(255, 255, 255));
- tabbedPane.setEnabledAt(1, true);
-
- panel_1 = new JPanel();
- panel_1.setBorder(new LineBorder(new Color(0, 0, 0), 2));
- panel_1.setBackground(Color.LIGHT_GRAY);
-
- JLabel label = new JLabel("");
- label.setIcon(new ImageIcon("res/shcs_logo2_medium.gif"));
-
- lblDearDoctor = new JLabel("Dear Doctor,");
- lblDearDoctor.setFont(new Font("Tahoma", Font.BOLD, 14));
-
- JScrollPane scrollPane = new JScrollPane();
- scrollPane.setBorder(null);
- GroupLayout gl_panel_1 = new GroupLayout(panel_1);
- gl_panel_1.setHorizontalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(Alignment.LEADING, gl_panel_1.createSequentialGroup()
- .addGap(25)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addComponent(lblDearDoctor)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 661, Short.MAX_VALUE))
- .addContainerGap())
- );
- gl_panel_1.setVerticalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addContainerGap()
- .addComponent(lblDearDoctor)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 203, Short.MAX_VALUE))
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(36)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 96, GroupLayout.PREFERRED_SIZE)))
- .addContainerGap())
- );
-
- JTextPane txtpnTodayYouAre = new JTextPane();
- txtpnTodayYouAre.setBorder(null);
- txtpnTodayYouAre.setText("Today you are receiving a pharmacogenetics report based on the genome of your patient. Because of its highly sensitive nature, " +
- "the genetic information you are provided with is processed in a privacy-preserving way. In particular, to protect patients’ genomic privacy, " +
- "their genetic and clinical data is stored encrypted at the SHCS data center, and securely analyzed through a sophisticated algorithm designed and developed at EPFL [1, 2]. " +
- "The actual clinical and genetic information is never revealed. Only the authorized users, such as you, can get some processed information, for example, the final result of a " +
- "pharmacogenetics risk test.\nThis mechanism protects the data against insiders or hackers trying to illegally access patients’ medical information, while still allowing authorized " +
- "users to obtain the information they need." +
- "\n\nTo help us understanding the importance of genomic privacy in the medical domain, and the impact of privacy-enhancing technologies in daily clinical practice, please complete the following survey.");
- txtpnTodayYouAre.setFont(new Font("Tahoma", Font.PLAIN, 13));
- txtpnTodayYouAre.setEditable(false);
- txtpnTodayYouAre.setBackground(Color.LIGHT_GRAY);
- scrollPane.setViewportView(txtpnTodayYouAre);
- panel_1.setLayout(gl_panel_1);
- jScrollPane4 = new javax.swing.JScrollPane();
- getContentPane().setLayout(layout);
-
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
- ReplySurvey replySurvey = commHandlerAdapter.callServiceSurvey();
-
- map = replySurvey.getQuestions();
- ids = map.keySet();
- locations = replySurvey.getLocations();
-
- panel_2 = new JPanel();
- panel_2.setBackground(Color.WHITE);
- panel_2.setBorder(new BevelBorder(BevelBorder.LOWERED, null, null, null, null));
- jScrollPane4.setViewportView(panel_2);
- panel_2.setLayout(new BoxLayout(panel_2, BoxLayout.Y_AXIS));
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
-
-
- for(Integer id : ids){
- ButtonGroup group = new ButtonGroup();
- JRadioButton r1 = new JRadioButton("1"); r1.setActionCommand("1"); r1.setBackground(Color.WHITE);
- JRadioButton r2 = new JRadioButton("2"); r2.setActionCommand("2"); r2.setBackground(Color.WHITE);
- JRadioButton r3 = new JRadioButton("3"); r3.setActionCommand("3"); r3.setBackground(Color.WHITE);
- JRadioButton r4 = new JRadioButton("4"); r4.setActionCommand("4"); r4.setBackground(Color.WHITE);
- JRadioButton r5 = new JRadioButton("5"); r5.setActionCommand("5"); r5.setBackground(Color.WHITE);
- group.add(r1);
- group.add(r2);
- group.add(r3);
- group.add(r4);
- group.add(r5);
- JPanel radio_panel = new JPanel();
- radio_panel.setLayout((new BoxLayout(radio_panel, BoxLayout.X_AXIS)));
- radio_panel.setBackground(Color.WHITE);
- radio_panel.setAlignmentX(Component.CENTER_ALIGNMENT);
- radio_panel.add(r1);
- radio_panel.add(r2);
- radio_panel.add(r3);
- radio_panel.add(r4);
- radio_panel.add(r5);
- radio_panel.doLayout();
- radio_panel.setPreferredSize(radio_panel.getPreferredSize());
- JTextArea question = new JTextArea(id + ") " + map.get(id).getQuestion());
- question.setLineWrap(true);
- question.setWrapStyleWord(true);
- question.setAlignmentX(Component.CENTER_ALIGNMENT);
- question.setFont(new Font("Tahoma", Font.PLAIN, 13));
-
- JPanel row_panel = new JPanel();
- row_panel.setLayout(new BoxLayout(row_panel, BoxLayout.X_AXIS));
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.add(question);
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.add(radio_panel);
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.setBackground(Color.WHITE);
-
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- panel_2.add(row_panel);
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
-// panel_2.add(radio_panel);
- panel_2.add(new JSeparator());
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
-// panel_2.setPreferredSize(panel_2.getPreferredSize());
- buttonGroupMap.put(id, group);
-
- }
-
-
-
- this.setSize(new Dimension(1200, 865));
-// pack();
- }// </editor-fold>//GEN-END:initComponents
-
-
- private void submitButtonActionPerformed(java.awt.event.ActionEvent evt){
-
- try{
- answers = new HashMap<String, String>();
- StringBuilder sb = new StringBuilder();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- sb.append(q).append(",");
- sb.append(bg.getSelection().getActionCommand()).append(";");
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- String answer = sb.toString();
- Integer id_loc = null;
- for(Integer i: locations.keySet()){
- if(locations.get(i).equals(comboBox.getSelectedItem().toString()))
- id_loc = i;
- }
-
- String id_p;
- if(jComboBox1.getSelectedItem().toString().equals("Select Patient"))
- id_p = "0";
- else
- id_p = jComboBox1.getSelectedItem().toString();
-
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
-
- String reply = commHandlerAdapter.callServiceSurveyAnswer(answer, id_loc.toString(), id_p);
-
- if(reply.equals("1")){
- survey_submitted = true;
-
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Congrats! Your aswers have been sent to the SHCS datacenter.",
- "Information Message",
- JOptionPane.INFORMATION_MESSAGE);
- }
- else{
- throw new IOException();
- }
-
-
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "The SHCS datacenter does not respond. Please save the survey and send it to jean.raisaro@epfl.ch.",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
- private void savePDFButtonActionPerformed(java.awt.event.ActionEvent evt){
- try {
-
- answers = new HashMap<String, String>();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- JFileChooser chooser = new JFileChooser();
- // Note: source for ExampleFileFilter can be found in FileChooserDemo,
- // under the demo/jfc directory in the JDK.
-
- int returnVal = chooser.showSaveDialog(this);
- System.out.println(returnVal);
- if(returnVal == JFileChooser.APPROVE_OPTION) {
- System.out.println("You chose to open this file: " +
- chooser.getSelectedFile().getPath());
- quest = new Questionnaire(chooser.getSelectedFile().getPath() + ".pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }else{
- quest = new Questionnaire("outputPDF/survey.pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }
-
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (DocumentException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (NullPointerException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
-
- private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
-
- JPanel contentPanel = new JPanel();
-
- dialog.setBounds(100, 100, 410, 80);
- dialog.getContentPane().setLayout(new BorderLayout());
- contentPanel.setLayout(new FlowLayout());
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- dialog.getContentPane().add(contentPanel, BorderLayout.CENTER);
- {
- JLabel label = new JLabel("Please wait...The overall computation can take few seconds");
- label.setHorizontalAlignment(SwingConstants.CENTER);
- label.setFont(new Font("Tahoma", Font.PLAIN, 12));
- contentPanel.add(label);
- }
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
- dialog.getContentPane().add(buttonPane, BorderLayout.SOUTH);
- }
- dialog.setLocationRelativeTo(this);
- dialog.setVisible(true);
-
- GUIWorker gw = new GUIWorker(this, props);
- Thread t = new Thread(gw);
- t.start();
-
- }
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JButton jButton1;
- private javax.swing.JComboBox<String> jComboBox1;
- private javax.swing.JLabel jLabel1;
- private javax.swing.JLabel jLabel2;
- private javax.swing.JLabel jLabel3;
- private javax.swing.JLabel jLabel4;
- private javax.swing.JMenu jMenu1;
- private javax.swing.JMenu jMenu2;
- private javax.swing.JMenuBar jMenuBar1;
- private javax.swing.JMenuItem jMenuItem1;
- private javax.swing.JPanel jPanel1;
- private javax.swing.JPanel jPanel2;
- private javax.swing.JScrollPane jScrollPane3;
- private javax.swing.JTabbedPane tabbedPane;
- private javax.swing.JScrollPane jScrollPane2;
- private javax.swing.JScrollPane jScrollPane4;
- private JPanel panel;
- private JPanel panel_1;
- private JPanel panel_2;
- private JLabel lblDearDoctor;
- private JLabel lblNewLabel_1;
- private JLabel lblNewLabel_2;
- private JLabel lblNewLabel_3;
- private JComboBox<String> comboBox;
- private Component rigidArea;
-
- // End of variables declaration//GEN-END:variables
-
-
- class GUIWorker implements Runnable{
-
- private JFrame mainFrame;
- private ClientProperties props;
- private MedUnit mu;
-
- public GUIWorker(GUI gui, ClientProperties props) {
- mainFrame = gui;
-
- this.props = props;
- this.mu = new MedUnit(props, 0);
- }
-
- @Override
- public void run() {
-
- try{
- int patientId = Integer.parseInt((String) jComboBox1.getSelectedItem());
-
- // convert selected tests to test identifiers
- ArrayList<TestName> selectedTests = new ArrayList<TestName>();
- for (String currentName : getSelectedTests()) {
- TestName currentTest = testsByName.get(currentName);
-
- if (currentTest == null) {
- throw new IllegalStateException("Trying to run unknown test: " + currentTest);
- }
-
- selectedTests.add(currentTest);
- }
-
- // run tests
- Diagnostic diagnostic = mu.runTests(patientId, selectedTests);
-
- // warn for tests with missing material
- warnFailedTests(diagnostic, selectedTests);
-
- // create report
- mu.createReport(patientId, selectedTests, diagnostic);
-
- dialog.setVisible(false);
-
- // specify file you wish to open (JPedal handles getting the byte data)
- String filepathReport = props.getPathPDF() + patientId + ".pdf";
-
- // open generated PDF
- // object must be either String in full filepath, or
- // File object which can be relative
- Object[] input = new Object[]{ new File(filepathReport) };
- viewer.executeCommand(Commands.OPENFILE, input);
-
- // display CAD result as bar plot
- if (diagnostic.hasCAD()) {
- System.out.println("CAD = " + diagnostic.getResultCAD());
- BarPlotFrame frame = new BarPlotFrame(diagnostic.getResultCAD(), patientId);
- frame.setVisible(true);
- frame.setAlwaysOnTop(true);
- }
-
-
- } catch (SQLException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Please select a patient.");
- }
-
- }
-
- private void warnFailedTests(Diagnostic diagnostic, ArrayList<TestName> selectedTests) {
- ArrayList<Integer> failedTests = diagnostic.getInvalidTests();
-
- if (!failedTests.isEmpty()) {
- String msg = "Could not complete tests: ";
- boolean first = true;
- for (TestName testName : selectedTests) {
- if (failedTests.contains(testName.getId())) {
- if (first) {
- first = false;
- } else {
- msg += ", ";
- }
- msg += testName.getName();
- }
- }
- displayError(msg);
- }
-
- }
-
- private void displayError(String msg) {
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- mainFrame,
- msg,
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
-
- private ArrayList<String> getSelectedTests() {
- ArrayList<String> tests = new ArrayList<String>();
-
- for (TreePath treePath : jTree.getSelectionPaths()) {
- tests.addAll(getChildrenTests(jTree.getModel(), treePath.getLastPathComponent()));
- }
-
- return tests;
- }
-
- private ArrayList<String> getChildrenTests(TreeModel model, Object node) {
- ArrayList<String> tests = new ArrayList<String>();
-
- if (model.isLeaf(node)) { // leaf
- DefaultMutableTreeNode leaf = (DefaultMutableTreeNode) node;
- tests.add(leaf.toString());
- }
- else { // iterate over children
- for (int i = 0; i < model.getChildCount(node); i++) {
- tests.addAll(getChildrenTests(model, model.getChild(node, i)));
- }
- }
-
- return tests;
- }
-
- }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/2c/008e5b0168a8001419a38fd8608ce0e6 b/.metadata/.plugins/org.eclipse.core.resources/.history/2c/008e5b0168a8001419a38fd8608ce0e6
deleted file mode 100644
index 4c6d22e..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/2c/008e5b0168a8001419a38fd8608ce0e6
+++ /dev/null
@@ -1,291 +0,0 @@
-package io;
-
-import java.awt.BorderLayout;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.util.Map;
-import java.util.Set;
-
-import com.itextpdf.text.BaseColor;
-import com.itextpdf.text.Document;
-import com.itextpdf.text.DocumentException;
-import com.itextpdf.text.Element;
-import com.itextpdf.text.ExceptionConverter;
-import com.itextpdf.text.Font;
-import com.itextpdf.text.Font.FontFamily;
-import com.itextpdf.text.FontFactory;
-import com.itextpdf.text.Image;
-import com.itextpdf.text.PageSize;
-import com.itextpdf.text.Paragraph;
-import com.itextpdf.text.Phrase;
-import com.itextpdf.text.Rectangle;
-import com.itextpdf.text.pdf.AcroFields;
-import com.itextpdf.text.pdf.BaseFont;
-import com.itextpdf.text.pdf.ColumnText;
-import com.itextpdf.text.pdf.GrayColor;
-import com.itextpdf.text.pdf.PdfAction;
-import com.itextpdf.text.pdf.PdfBorderDictionary;
-import com.itextpdf.text.pdf.PdfContentByte;
-import com.itextpdf.text.pdf.PdfFormField;
-import com.itextpdf.text.pdf.PdfPCell;
-import com.itextpdf.text.pdf.PdfPCellEvent;
-import com.itextpdf.text.pdf.PdfPTable;
-import com.itextpdf.text.pdf.PdfReader;
-import com.itextpdf.text.pdf.PdfStamper;
-import com.itextpdf.text.pdf.PdfWriter;
-import com.itextpdf.text.pdf.PushbuttonField;
-import com.itextpdf.text.pdf.RadioCheckField;
-import com.itextpdf.text.pdf.TextField;
-
-import framework.Question;
-
-public class Questionnaire implements PdfPCellEvent{
-
- /** The path output file. */
- String pathOutputFile;
-
- /** The document. */
- Document document;
-
-
-
- int tf;
-
- public Questionnaire(String path){
- pathOutputFile = path;
- document = new Document(PageSize.A4, 25, 25, 50, 50);
- }
- public Questionnaire(int tf){
- this.tf = tf;
-
- }
-
- /** The resulting PDF. */
- public static final String RESULT1 = "outputPDF/buttons.pdf";
- /** The resulting PDF. */
- public static final String RESULT2 = "outputPDF/buttons_filled.pdf";
- /** Path to a JavaScript resource. */
- public static final String RESOURCE = "res/buttons.js";
- /** Path to an image used as button icon. */
- public static final String IMAGE = "res/info.png";
- /** Possible values of a radio field / checkboxes */
- public static final String[] LANGUAGES = { "English", "German", "French", "Spanish", "Dutch" };
-
- /**
- * Creates a PDF document.
- * @param filename the path to the new PDF document
- * @throws DocumentException
- * @throws IOException
- */
- public void createPdf(Map<Integer, Question> map, Set<Integer> ids) throws IOException, DocumentException {
-
- @SuppressWarnings("unused")
- PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(pathOutputFile));
-
-
- document.open();
- Image logo = Image.getInstance("res/shcs_logo2.gif");
-
- logo.scalePercent(30f);
- float[] columnWidths1 = {0.2f, 0.8f};
- PdfPTable table_title = new PdfPTable(columnWidths1);
- PdfPCell c01 = new PdfPCell(logo, false);
- PdfPCell c02 = new PdfPCell(new Paragraph("Survery | Project #693",
- FontFactory.getFont(FontFactory.HELVETICA, 20, Font.BOLD, BaseColor.BLACK)));
- c01.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setHorizontalAlignment(Element.ALIGN_CENTER);
- c01.setBorder(Rectangle.NO_BORDER);
- c02.setBorder(Rectangle.NO_BORDER);
-
- table_title.addCell(c01);
- table_title.addCell(c02);
- table_title.setWidthPercentage(100);
- table_title.setSpacingBefore(0);
- table_title.setSpacingAfter(25);
- document.add(table_title);
-
-
- //----------------------------------------------------------------------------------
-
-
- PdfPTable table1 = new PdfPTable(1);
- table1.setWidthPercentage(100);
- PdfPCell c11 = new PdfPCell(new Phrase("Today you are receiving a pharmacogenetic report based on the genetic " +
- "information of your patient. Because the human genome contains extremely private and sensitive information" +
- " of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier," +
- " it must be managed with care. ",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.NORMAL, BaseColor.BLACK)));
- c11.setLeading(1.5f, 1.5f);
- c11.setPaddingBottom(8);
-
-
- table1.addCell(c11);
- table1.setSpacingAfter(10);
- document.add(table1);
-
-
- //----------------------------------------------------------------------------------
-
-// // step 4
-// // add the JavaScript
-// writer.addJavaScript(Utilities.readFileToString(RESOURCE));
-
- for(Integer id: ids){
- PdfPCell c2;
-
- PdfPTable table = new PdfPTable(1);
- table.setSpacingAfter(10);
- table.setWidthPercentage(100);
-
- PdfPCell c1 = new PdfPCell(new Phrase(id + ") " + map.get(id).getQuestion(),FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c1.setPaddingTop(5);
- c1.setPaddingBottom(5);
- c1.setHorizontalAlignment(Element.ALIGN_CENTER);
- c1.setBorder(Rectangle.NO_BORDER);
- table.addCell(c1);
-
- c2 = new PdfPCell(new Phrase(" 1" +
- " 2" +
- " 3" +
- " 4" +
- " 5",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c2.setHorizontalAlignment(Element.ALIGN_LEFT);
- c2.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c2.setCellEvent(new Questionnaire(id));
- c2.setBorder(Rectangle.TOP);
- c2.setPaddingTop(2);
- c2.setPaddingBottom(5);
- c2.setBackgroundColor(new BaseColor(242, 242, 242));
-
- table.addCell(c2);
-
-
-
- document.add(table);
- }
-
-
- //----------------------------------------------------------------------------------
-
- // step 5
- document.close();
-
-
-
- }
-
- @Override
- public void cellLayout(PdfPCell cell, Rectangle position,
- PdfContentByte[] canvases) {
- PdfWriter writer = canvases[0].getPdfWriter();
- PdfFormField radiogroup = PdfFormField.createRadioButton(writer, true);
- radiogroup.setFieldName(String.valueOf(tf));
- System.out.println(tf);
-
- float llx = position.getLeft();
- float lly = position.getBottom();
-
- float cell_h = cell.getHeight();
- float cell_w = cell.getWidth();
-
- Rectangle rect;
-
- for(int i=1 ; i<=5; i++){
-
- rect = new Rectangle(llx + (3+i)*cell_w/12, lly+cell_h/2-6, llx + (3+i)*cell_w/12+12 ,lly+cell_h/2+6);
-
- RadioCheckField radio = new RadioCheckField(writer, rect, String.valueOf(i), String.valueOf(i));
- radio.setBorderColor(GrayColor.GRAYBLACK);
- radio.setCheckType(RadioCheckField.TYPE_SQUARE);
-
-
- try {
- PdfFormField field = radio.getRadioField();
- radiogroup.addKid(field);
-
- writer.addAnnotation(radiogroup);
- }
-
- catch(IOException ioe) {
- throw new ExceptionConverter(ioe);
- }
- catch(DocumentException de) {
- throw new ExceptionConverter(de);
- }
- }
-
-
-
- }
-
-
- public void writeAnswers(Map<String, String> answers) throws IOException, DocumentException{
-
- PdfReader reader = new PdfReader('outputPDF/temp');
- PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(pathOutputFile));
-
-
- AcroFields form = stamper.getAcroFields();
-
-
-
-
- Set<String> fields = form.getFields().keySet();
- for(String key: fields){
-
- if(answers.containsKey(key)){
- form.setField(key, answers.get(key));
- }
- }
- stamper.close();
- reader.close();
-
- }
-
-
-// /**
-// * Manipulates a PDF file src with the file dest as result
-// * @param src the original PDF
-// * @param dest the resulting PDF
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public void manipulatePdf(String src, String dest) throws IOException, DocumentException {
-// PdfReader reader = new PdfReader(src);
-// PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(dest));
-// AcroFields form = stamper.getAcroFields();
-// String[] radiostates = form.getAppearanceStates("language");
-// form.setField("language", radiostates[4]);
-// for (int i = 0; i < LANGUAGES.length; i++) {
-// String[] checkboxstates = form.getAppearanceStates("English");
-// form.setField(LANGUAGES[i], checkboxstates[i % 2 == 0 ? 1 : 0]);
-// }
-// stamper.close();
-// reader.close();
-//
-// PdfReader r = new PdfReader(dest);
-// AcroFields f = r.getAcroFields();
-// Set<String> fields = form.getFields().keySet();
-// for(String key: fields){
-// if(f.getFieldType(key)==AcroFields.FIELD_TYPE_RADIOBUTTON){
-// System.out.println(key);
-// System.out.println(f.getField(key));
-//
-// }
-// }
-// r.close();
-//
-// }
-//
-// /**
-// * Main method
-// * @param args no arguments needed
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public static void main(String[] args) throws IOException, DocumentException {
-// Questionnaire buttons = new Questionnaire();
-// buttons.createPdf(RESULT1);
-// buttons.manipulatePdf(RESULT1, RESULT2);
-// }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/2c/d0b3815ec2a70014153e8739f9242ea5 b/.metadata/.plugins/org.eclipse.core.resources/.history/2c/d0b3815ec2a70014153e8739f9242ea5
deleted file mode 100644
index ef1afbb..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/2c/d0b3815ec2a70014153e8739f9242ea5
+++ /dev/null
@@ -1,58 +0,0 @@
-package io;
-
-import io.serializer.url.URLParserDecrypt;
-import io.serializer.url.URLParserMaterial;
-import io.serializer.xml.XMLParserDecrypt;
-import io.serializer.xml.XMLParserMaterial;
-import io.serializer.xml.XMLParserSurvey;
-
-import java.util.logging.Logger;
-
-import framework.Type;
-import framework.reply.ReplyDecryption;
-import framework.reply.ReplyMaterial;
-import framework.reply.ReplySurvey;
-import framework.request.RequestDecryption;
-import framework.request.RequestMaterial;
-
-public class CommAdapter {
-
- @SuppressWarnings("unused")
- private static final Logger LOGGER = Logger.getLogger(CommAdapter.class.getName());
-
- public ClientConnection connectSPU = null;
-
- public CommAdapter(ClientConnection connectSPU) {
- this.connectSPU = connectSPU;
- }
-
- public ReplyDecryption callServiceDecrypt(RequestDecryption rqtDecrypt) {
- String requestString = URLParserDecrypt.requestToString(rqtDecrypt);
-// String replyString = "<awr_decrypt><patient>30351</patient><v_timestamp>1417188729390</v_timestamp><decrypt_val>,,,,,,,,,,,,,,,,2,AwHR3OO0/hkwgEHluLDFLtn4aaTBAwBEJjJpMegGa29ASgtyt1ha2OOyxvEvNgkIaY0xWXtTmqrqhSBKDG6J7Lps0g==,AwE/oifhonvUZDA4mqRK8K1WCkoepEuL9SidjdFXMNNZQXCMUvVN6pBUYVFgJeFX6mT2jruK8ic3y6yI14PfKl/Pvg==,AgBHs6HGF9AYNc5RlFTGv025WEaT91i/MPy+HXqhvHOrp0Ol9/aKyvv2BgAzeAdsdSEbVs2sahiyL/kbKjeUoI9tsA==,,,,,,,,,,,,,2,AgHIofEmf4aJMLBnKAY3/8WcLXUETF4y/68fzZR6hsS5btZTyI0E4ZTltDzV6hBzIT14cC4S/BMclo1aoLt5C9f+Cg==,AgDOXZAZAwO4KXslqU1wKctrVlH8CcGvpO8gGrPl3YjrY8SR3a6gStvZvjcUKXhvtDkRwSLAIkD3lFrKSXWestHSqQ==,AgG7Y5so9ZTRng2Xm3ziWx3+7zfaVLkIJ2v7g+qEUx5Vl2/udDOcg/was8W6qbKYeo/W0EGTlNXKTOdIatGVxyuoZA==,,,,,2,AgDAVy0/nE6X4iAengG9lCiYEBMtK6rAAiy7OwC7U/QSbokiEzH0RafH7rb+5L5R/ii9/3kZCcKmgOIoPzkmeloDfg==,AgHuvmLAeIFYm4ObEBO2v9xTK6tjYfdh+x4kwULBpDNlUiW4kNNaeoeziRA7nlRvcSfxPlR070N/3qzBMu3EKZ2csQ==,AgDk/CzCL4XUobuNaLsvrH5s0COMKYBqY/18YRR0d7mIsVVYrKVGF+IWnEluhbLt+BoRBdvL5UElgroyORJpiKz06w==,,,,,2,AgH0nW+2h+vcOZgPe3uR7jEHmEPi+g4izQ3OIU9An2vekwbG1liBFgTo33pEhyXhNWPhGCbSb73sJ7pt0JLL+hhWMw==,AgHG039OnpvmllkV6QBsmoMdqISrRuW2q5M3jfUp5TUbU6F/3S2FK1iSVKWgTsI291re6lz6KH5d8rWrnoCAozhIeg==,AwGjmnLUMd42F7a/tsSkeqcxoHMAXNKdvF4kOXoAxmc6ZSxaUhzkGkcgNOO8SFNiWqTKgtZCffJ7hfI0voAUX0TD1w==,,,,,2,AwHfYRjQFscHzOvVozackTaM3sybOjyd2aLc4B+WQ7KiWHoGKkzQScoDiy8hiA2cJpv8ngfitTqJRLlyegvuM+Ietw==,AwAP92OqrJFpFmdrMUUx6FeFhwVLYtAsfw3sem2RYu7ljPry+uJnvluuzTvVaFhs8BAAD8VBFs1vqrSHyQEq8Ocsmw==,AwDNXg/JA4QXA6wu30DUE7peOk1a10aHbd38iwjN1Q0DKy3BqS36+EQKg5hbwELxN2+/Yu4UA1IKWYJI0zNs6TJUtA==,,,,,2,AwBWFv3ivyQz4CGIilJ7CVtpQGOs1tnIW+0uxQyiWIO3HDjJtfxPyQ1AJWPsBQ9eYmaoKmPnN+euPCm7bP0LxBL/Tg==,AwHg7AZb5DV5OJrl0omtKx2OqckXcQEUT8pZ+Bmo9AyULgL5HOq2AVU04qhvbdy0W4OMYqxF3uBwqT6dNhFptsKEKQ==,AwG9dyMbI5EI8UCXuj5JkQRMimcT1u6zCBAfmRvANtT54yDtC8KS6VeOr7h/NP4qrf/mbl5tMaePbkkHrc6E39ntsA==,,,,,2,AwHkMyCOJm/RlYOybGhX3DchR/wSN2L3PuXKalMszgk3WOCiWSpYlP3SOPLWvJTRQaTxoN+oA5IkCTvlp02+Mduaxg==,AgHhR8HjavXjnsy+rHptc/JSI5pLFjM0RczUygxTX7vqV/yqwZ280Rq7YpXKp2GBfiZvFf0qIQoWe4vx5DBxwvHkdA==,AwEf2yisEpflVm8R2X08SCJM89apu7tUFzbpndsTIt5o9/xdoXKomMUk9REz+yrpkd+jFhlkJMQHHVMhgjiWYCEdpQ==,,,,,2,AwBaIc8ZWFm4O9QO0ofJeS9Q7tki7CAscBXRDnajEp7rmKNgrpRyyu1ezSpborwaloWR9kDKPLdYVV8SNk2V/1EudA==,AwGE8MPAnPKKXF15EyrAx1bRinwgoqYVO4Junz5IXQjGLyQpSr5NwO/hqu5E5egHte20jm380Wn2Qy6GgKNiRLy/gQ==,AwCAOjOQNdMN5uIB0POFzYS/fpxZ0Q5KfhlP5fijNmc/daO5frSrwhgcMH5lMKL4EGjBI1p6JMe3fuMqb5t1ImeTBg==,,,,,2,AgARSg2izcK6iZLFe4YkIS6yZgnt8cd9DFqpQ37gNmcccZwBI+mpsaijTUPo1GT+QUD8zC+6qr/GrzG9q+q7BPxpVw==,AwGM/jFdtoNViQXxgqeL27ZKobjsfyeuXrx8re3UfIe3c4XN16srSpcTfxEZNXDKo1Ff9fRvDVBOwdS6XU2nvo++ng==,AwAtK0eOqcVfzkdJIIkk7BORWwSDTAjtx4aEXwyZ0bla+2rIWDgXi3U5xlgnjeXJNtGsLokkvvX92BOBIw9SuCGhnw==,2,AgCWAAWTW+7jv2a2lc4pGFnumEgyH59wSDRXEYUASCVB249JBmeKFWRKNFTQlph5hTR5Rb+YHFP/qvzmwU11Hs2b0w==,AgANdxpkN+DS4De3aokNjt+e/Ou8GT+p8pUJA+6LHrDBXAddoCR8KpeXW7mESokq6BTEVQXxU3TdqavRkqaeFmpXkw==,AgDDDSEO3e8DCsm1n6dbj2PB9Z/tUzluDCt/utdSLrYFfdFY+Y5K7Vxo9F5/17CzaUbX172SGLt8TfCfuYBrtupgAg==,2,AgB1OG6bj+6kfRvLj8yjMQbl80FdZHZrRVRUfNVRwvjvvbRa5f9s9fNZ8J0a3s3hH+RyfZmGJ4Ufjh5mMiQkwiur6w==,AwBX4GFZNjUdtRdwtWgxyQz7h8Hk0ztaZeM8/e+8ll0o+RjYN+CNP8+lnXEw7wpuC4wcMX05mrjPvHOuy0hOFVNkhQ==,AgDf3el4vbMYIAFEH9WV151/uzl+gkfTQ79T8Iu4KxEVo6UJvCfqkjETlR6aXUJiqaCbSV5odMT50lURsmfgALf6AQ==,,,,,2,AgENmnviZkgQWXZ5QDgCCE2zq0IiXURTqK2UNPtEg3o64yjlrQQUd2rO/KgKolyCQcKYTVoMj7k2VeCSSVRr8KGC7w==,AwFv6ZJzhpV/Ms00QkrkNiCKVRFczn/yqnkiBFUHC1RQv3tqzzYSEUeXmDHmm0/kEBtnfgRWjHQm9zxS8Jzy7srDLQ==,AwB8aS5KA1dFLKCA1a/7Wsjhef+6kkNAB/GO9AOvRZbFW/dhl5fx04Alh+g78fwcVMX+eEIEJgSyH0jhv7kmiQh4ew==,,,,,2,AgG8fXrCra6UgP5G89TaE6PH5E0TANb/PJPbKwzdi78XEHRUmcTz6PIhYtclTmcdq5TH0IwQv+ra5ppf4qR4LtkGig==,AgEKzsmZrikmXzJywMpzkAdG9hAPlOiRY9oXKf4Sh50CL8btUItjfVJWg3ubNhotzJK+fnNlRrcMkWQEBD/aGKpf8A==,AwFi+2cGpuvVdR+pT1P9Ur8jAkzmjJK2XmUQbFpyMi5Jc9a5/fPnBWCxmTX8CH5wks0PicYC6rzZC3NEIt0EoM1Qfg==,,,,,2,AgHbTZgTAv8lLBsoX06Hkm9XPU+crlRqKl0xL8v18xeUUPY1YAvUYf2OAutmTtPRycXyzrDWSpn2h5xfk/dtq/BICg==,AwAjPydfoUhfSVFKWNI4Ox4a/psZGDIGzEEWh9HyVtAmjdNb5ctr/S6z+akiRfPlNCsVf6TdkzJ2Su6BO4sOX/SHKA==,AwBVmjn7AitCe4zQ/Fl0sYW2XqXkJxJBDviwl9jYhoq29v90n9escDsiA3Cy+1uW69MezdZBEszFdEWlX0EzbQZQ6A==,,,,,2,AwCG0RBHwHuame/1G7qtUjmwz0gkCP1tyZiEgm7aTKpsCjt7UsMirMmx/ZrNlvSzkGuVbRO97Szzr+9fo4baH1rEZA==,AwHyMK/q8FUUvoHTt7O7KJUxYz/ZHF6SntbmKfbygLVw4HWc/eFic4DXHKbEGWvrMO5b37GksqxfQHc2xlAuj8ZRIw==,AgB5x0BxqiMYxRvzlq0+/RkbOuNA7hYuMG+7D6wlMOxSskgqyfwA0MfW+AkXFqnqfqsoJRpDy15bABWhH6MIdJsPEA==,,,,,2,AwAS/nCH0pcrsllSy2duadUs1rMtL6vtz7VTUAVhn1/YYlZ068ysBi1Mdz9gJFewdyeGLnFhyg+W15rFB317nyeGHg==,AwBh6f5UVRMM5ekWqkrx6XiVOK/BL0TinjsSLna8BjkQPXU2DvGxiKPhA03/GtBdEpihEX4bVaHQhiOupTf7wh6bCQ==,AgGPDFH8Kv8hz2aUJ955nHu8NiAoTmDjqhlXuJ1T83h+O0sc2GieLhmXmpEjxjEAyxkqjb2nFxvDhi+YGs4MqI4S5A==,,,,,2,AwDqwFv6bqpM/6PTCJ/wgRALYVT+Rn54HIB2icP6ODNexaoqILBS9p1k1QENbQsBZ9LmJJwngRQXi07Q4P8br76Qfw==,AgG8yTiO8tFWZqQELBr+Zt1fKKA3bl08836nUEEpD55Sid0ZywCrWe+Va58xbMIWscISLPbBvXIdO48ZgoHsLgA7Jw==,AwCI1Ud0GJLnS86mSC58HNB91lH9kPpQbufGn+WJErGxAQubtSFBc3rnT0SNE3CbW+1MPjYBbdCgxpHjN/iQf96++w==,,,,;2,AgB9YhljgPngkwwYTBMUaMGR+rWMjvlK0tgrzkG8OT9NGNJfaaLP6AzfhWrT5oe9NRnabU25pQvDhAIGZCajDy8N2g==,AwE5Irce6LOSxfLgn4PZh1PeDPjAHb5wPTNfmQoWFY83dNQLYN44FupJaQRRUqBqyGNB0SL76GKzr8G9tKLAHOxRSQ==,BAG5iWHEhlWkvtyAlQy4bwKa1iNRzJq8WJTh2GE9oT4DeJRmO1pCHy9P+9YktDT+4RgV9s8AzOYih1LmHW14uP27HQGg1nTdHyab9/nFUe9BFxIi8xQTPG8et9++5I+gKIeWGCXBL31sBhpaMewvVhDjl2d3+7H2PUv9IY3lyIRFA6N16A==,2,AwAPIoQJqSbXFKXQAIG9J+/+/41NLX0rDINImk4eBgAnZ4V0R8YSqkHD3nd0IrEMyK7OpkCXkxTzOlwJlfEfti+vew==,AwAQ8KdMYsEOqM3eyGv/XbHnGf+TqCAG39Gz/juBcioOOJmLOFjl6oCITozJOyPusbTRXZ4eIwgQYkl12mt6saTpgQ==,BACkTO+3rRUF81w5yzZskFiIRyVxc6sdJfDFX6C+Jy5A+s/sfHskrFx2GYNklZaYztP0/B64a6v6HvFWVz8GuYj2wgHhiCL+QwLThFpaRxh8kUMSrt4VuXSIjtHwRXzhSdEbG2T6C/+CJZxIFh/ugEV9SS51l1HrLdnJDb2Kdu3QC3lRkQ==;2,AgC99VyiRLJ2kFf3oCkb+JPVV7B4tXVGI2NVT7fdKtB+gEjCcdkbS5YEXm/Sq6NAJEOKilMTFUDLYFDOe+7JHj/4pw==,AgAbT080sbKVHH9lim3tVCYS4cMz+rLownRKqtYZ7AfR8qy819R1GFywQ0kImgcdjEey5C4m0OPTwgtkO+C5uWtKfQ==,BADKYt9i0zTJeh3H8t6d8pZdncz3f28v1oWrssLZwAutkIcF3XKkPNmK3X75K3sImUSch//IIRIB1Yi5/MrZZeDrxQHhQZEg6AA8bDxgt0JdOEX2t4crzDu3gW5I8y+Ya0fZr1RmxvfMr2UxRhSsNsz949v/g+GPfsrEfDqIWTiNlJfwyg==,2,AgEPMjgCfgGRaZ/5I1hLqDoJ8nXYeTlnt9YeK4K8w+HnRAoAD09zkPcLMWajIjupe/CUFrHz00sAvs+vOPeKxGrLiQ==,AgDy7g2DcDwmIW7LtTTteHExD/cyP4BMWimEAM1RfAd/Y6P8XkmRGgglfdLJ7RGTR2YIMB1lxQ/LQUbmzyjTiiuWow==,BAHJ7oHVr/0wweyGlg4f9Dqmx8h0m35jMdrEFwVY8l/ENKpOTxG/oh9vAvo1uw39wUOn4CWGBmAFE2lsvWFW18gt+gHPFt5/9ihUFN9mtxFLT1Q3W4Uf8IdekHPMbNlxEp1wId7EH3XsAox3Eo8b3XnYpwfsAXoDwQa2wyiO5h104Ptvsg==;2,AwClCMGcHdd7rD8sYDC/GXyAtLmZ/JI4v+aOK4PXzjWJi/zvcsXT5dJUOm9bW6AAtzgOKPd0WwU3hSytJ+ATy146Uw==,AgADzN6ysOIC9GAuMF9suYNfkR027H/9OcpeVJb4HRHfZ/EOmQWSdJmJFw3F/NLUrreNnFCvuF1+1bbmHa3tvznjeA==,BADwaRJF9z3DW7HE3qhGu6Yd9d2WBfWy8opd7Mhkg7TpAQsn9oA3UcpCarn4DMSnVGG94Y3Pxsj5vlm5G7GMKiGoxAERnETH6pVgBxhtrnBU6l4vHl+X4rd8I/zheZiG0EFKJza41rmwKHTY4+42PJ8/3Y2rCanbY1RSAJEgiZR89k6nGg==,2,AgCK80PhKSC23aVKQ8uYm+79GWZiwpbV5lc8Fzcpwu8hdKGAMH4f62Y//cmrQmCIltm03PTVPMn6rMwkfoz+9M2LDQ==,AgH5aXThIKUjENFTGCGwcTRql7xIe8vR9h78KikTYkD8itQ+YBDrnx5OaNyWRjpIJHAZ2B61W2aVjZ5Rmo0d1B1Pcw==,BAAEZsEKw59QSRxN1QmWcx4X2LaK4+zBuawh+2CIRPljWyxK6XhIM6EEalr44Klce4OTK2QbxT5n3Kjnh5jNuwCOawAH/wiNrx09+HY8SZrRjCjv1+Lnicybrqg/IFDNoAGT5aguaGRIMmGOLe0QFJr0T0iW3RnYGlmSd/r6ex8+MpOgLw==</decrypt_val></awr_decrypt>";
- String replyString = connectSPU.sendReceive(Type.DECRYPT, requestString);
- System.out.println("REQUEST URL: " + requestString);
- System.out.println("REPLY: " + replyString);
- ReplyDecryption reply = (new XMLParserDecrypt()).stringToReply(replyString);
- return reply;
- }
-
- public ReplyMaterial callServiceMaterial(RequestMaterial rqtMaterial) {
- String requestString = URLParserMaterial.requestToString(rqtMaterial);
- String replyString = connectSPU.sendReceive(Type.MATERIAL, requestString);
-
- System.out.println("Material request:");
- System.out.println(replyString);
-
- ReplyMaterial reply = (new XMLParserMaterial()).stringToReply(replyString);
- return reply;
- }
-
- public ReplySurvey callServiceSurvey(){
-
-// String replyString = connectSPU.sendReceive(Type.SURVEY,"");
- String replyString ="<awr_survey><v_questions>1::What's your name?::1;2::Where are you from?::2;3::How old are you?::3;1::What's your name?::1;2::Where are you from?::2;3::How old are you?::3;1::What's your name?::1;2::Where are you from?::2;3::How old are you?::3;1::What's your name?::1;2::Where are you from?::2;3::How old are you?::3;1::What's your name?::1;2::Where are you from?::2;3::How old are you?::3</v_questions><v_locations>Lausanne;Basel;Zurich</v_locations></awr_survey>";
- ReplySurvey reply = (new XMLParserSurvey()).stringToReply(replyString);
- return reply;
- }
-
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/2f/5083733f55ac001410e2e30aa85db9d1 b/.metadata/.plugins/org.eclipse.core.resources/.history/2f/5083733f55ac001410e2e30aa85db9d1
deleted file mode 100644
index d5bb500..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/2f/5083733f55ac001410e2e30aa85db9d1
+++ /dev/null
@@ -1,927 +0,0 @@
-package ui;
-
-import io.ClientConnection;
-import io.CommAdapter;
-import io.Questionnaire;
-
-import java.awt.BorderLayout;
-import java.awt.Color;
-import java.awt.Component;
-import java.awt.Dimension;
-import java.awt.FlowLayout;
-import java.awt.Font;
-import java.awt.SystemColor;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.awt.event.WindowAdapter;
-import java.io.File;
-import java.io.IOException;
-import java.sql.SQLException;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.LinkedList;
-import java.util.Map;
-import java.util.Set;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
-import javax.swing.Box;
-import javax.swing.BoxLayout;
-import javax.swing.ButtonGroup;
-import javax.swing.DefaultComboBoxModel;
-import javax.swing.GroupLayout;
-import javax.swing.GroupLayout.Alignment;
-import javax.swing.ImageIcon;
-import javax.swing.JButton;
-import javax.swing.JComboBox;
-import javax.swing.JDialog;
-import javax.swing.JFileChooser;
-import javax.swing.JFrame;
-import javax.swing.JLabel;
-import javax.swing.JOptionPane;
-import javax.swing.JPanel;
-import javax.swing.JRadioButton;
-import javax.swing.JScrollPane;
-import javax.swing.JSeparator;
-import javax.swing.JTabbedPane;
-import javax.swing.JTextArea;
-import javax.swing.JTextPane;
-import javax.swing.JTree;
-import javax.swing.LayoutStyle.ComponentPlacement;
-import javax.swing.SwingConstants;
-import javax.swing.border.EmptyBorder;
-import javax.swing.border.LineBorder;
-import javax.swing.tree.DefaultMutableTreeNode;
-import javax.swing.tree.TreeModel;
-import javax.swing.tree.TreePath;
-
-import org.jpedal.examples.viewer.Commands;
-import org.jpedal.examples.viewer.Viewer;
-
-import utils.ClientProperties;
-
-import com.itextpdf.text.DocumentException;
-
-import database.DBconnectorClient;
-import framework.Diagnostic;
-import framework.MedUnit;
-import framework.Question;
-import framework.reply.ReplySurvey;
-import framework.test.TestName;
-
-/**
- *
- * @author youssef, raisaro
- */
-public class GUI extends javax.swing.JFrame {
-
- private static final Logger LOGGER = Logger.getLogger(GUI.class.getName());
-
- private static final long serialVersionUID = -4582280515597700650L;
-
- // configuration
- private ClientProperties props;
-
- private JTree jTree;
- private DBconnectorClient connectorClientDB;
- private LinkedList<Integer> patients;
-
- /** List of all relevant tests */
- private HashMap<String, TestName> testsByName;
- private Viewer viewer;
- private JDialog dialog;
- private JFrame frame;
- private boolean survey_submitted;
- private int close_trials;
- private Map<Integer, ButtonGroup> buttonGroupMap;
- private Questionnaire quest;
- private Map<Integer, Question> map;
- private Set<Integer> ids;
- private Map<String,String> answers;
- private Map<Integer, String> locations;
-
-
- /**
- * Creates new form GUI
- */
- public GUI(ClientProperties props){
-
- frame = this;
- this.props = props;
- this.connectorClientDB = new DBconnectorClient(props.getDbMsAccess());
- survey_submitted = false;
- close_trials = 0;
-
-
- try {
- initComponents();
-
- viewer = new Viewer(jScrollPane2, null);
- viewer.setupViewer();
-
- // create questionnare
-
-
- System.out.println("#of questions: " + ids.size());
-
-// viewer_q = new Viewer(jScrollPane4, null);
-// viewer_q.setupViewer();
-//
-// // specify file you wish to open (JPedal handles getting the byte data)
-// String filepathReport = "outputPDF/buttons_filled.pdf";
-//
-// // open generated PDF
-// // object must be either String in full filepath, or
-// // File object which can be relative
-// Object[] input = new Object[]{ new File(filepathReport) };
-// viewer_q.executeCommand(Commands.OPENFILE, input);
-
- JButton btnSubmitQuestionnaire = new JButton("Submit Questionnaire");
- btnSubmitQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- btnSubmitQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- submitButtonActionPerformed(arg0);
- }
- });
- JButton btnResetQuestionnaire = new JButton("Save as PDF");
- btnResetQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- savePDFButtonActionPerformed(arg0);
- }
- });
- btnResetQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- JPanel panel_button = new JPanel();
- panel_button.setLayout(new BoxLayout(panel_button, BoxLayout.X_AXIS));
-
- lblNewLabel_3 = new JLabel("");
- lblNewLabel_3.setIcon(new ImageIcon("res/location_icon.png"));
- panel_button.add(lblNewLabel_3);
-
-
-
- comboBox = new JComboBox<String>();
- comboBox.setFont(new Font("Tahoma", Font.BOLD, 12));
- comboBox.setModel(new DefaultComboBoxModel<String>(new String[] {"Select Location"}));
- for(Integer id_loc : locations.keySet()){
- comboBox.addItem(locations.get(id_loc));
- }
-
-
- panel_button.add(comboBox);
-
- rigidArea = Box.createRigidArea(new Dimension(10, 0));
- panel_button.add(rigidArea);
-
- lblNewLabel_1 = new JLabel("");
- lblNewLabel_1.setIcon(new ImageIcon("res/submit.png"));
- panel_button.add(lblNewLabel_1);
- panel_button.add(btnSubmitQuestionnaire);
-
- panel_button.add(Box.createRigidArea(new Dimension(10,0)));
-
- lblNewLabel_2 = new JLabel("");
- lblNewLabel_2.setIcon(new ImageIcon("res/pdf.png"));
- panel_button.add(lblNewLabel_2);
- panel_button.add(btnResetQuestionnaire);
- panel_button.setPreferredSize(new Dimension(211, 35));
- panel_button.validate();
-
- JPanel panel_3 = new JPanel();
- GroupLayout gl_panel = new GroupLayout(panel);
- gl_panel.setHorizontalGroup(
- gl_panel.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(63)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addGap(103)
- .addComponent(panel_button, GroupLayout.DEFAULT_SIZE, 498, Short.MAX_VALUE)
- .addGap(241))
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(41)
- .addGroup(gl_panel.createParallelGroup(Alignment.TRAILING)
- .addComponent(jScrollPane4, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE)
- .addComponent(panel_1, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE))
- .addGap(32))
- );
- gl_panel.setVerticalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(22)
- .addComponent(panel_1, GroupLayout.PREFERRED_SIZE, 235, GroupLayout.PREFERRED_SIZE)
- .addGap(37)
- .addComponent(jScrollPane4, GroupLayout.DEFAULT_SIZE, 379, Short.MAX_VALUE)
- .addGap(26)
- .addGroup(gl_panel.createParallelGroup(Alignment.LEADING)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(panel_button, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE)))
- );
- panel_3.setLayout(new BoxLayout(panel_3, BoxLayout.X_AXIS));
-
-
- panel.setLayout(gl_panel);
-
-
-
-
-
-
- /////////////////////////////////////////////////////////
- // display the tests available
-
- // get the tests
- HashMap<String, ArrayList<TestName>> testsRelevantByGroup = connectorClientDB.getRelevantTestsByGroup();
- ArrayList<String> groups = new ArrayList<String>(testsRelevantByGroup.keySet());
-
- // flatten hashmap into linkedlist
-// tests = new LinkedList<>();
- testsByName = new HashMap<String, TestName>();
- for (String group : groups) {
-// tests.addAll(testsRelevantByGroup.get(group));
- for (TestName test : testsRelevantByGroup.get(group)) {
- testsByName.put(test.getName(), test);
- }
- }
-
- // define tree structure of the tests
- DefaultMutableTreeNode root = new DefaultMutableTreeNode("All");
-
- for (String group : groups) {
- DefaultMutableTreeNode child = new DefaultMutableTreeNode(group);
- root.add(child);
-
- for (TestName test : testsRelevantByGroup.get(group)) {
- DefaultMutableTreeNode grandChild = new DefaultMutableTreeNode(test.getName());
- child.add(grandChild);
- }
- }
-
- // define swing object
- jTree = new JTree(root);
-
- for(int i=0;i<jTree.getRowCount();i++){
- jTree.expandRow(i);
- }
-
- jScrollPane3.setViewportView(jTree);
-// jTree.addTreeSelectionListener(new TreeSelectionListener() {
-//
-// @Override
-// public void valueChanged(TreeSelectionEvent e) {
-// tp = jTree.getSelectionPaths();
-// }
-// });
- jScrollPane3.setViewportView(jTree);
-
- /////////////////////////////////////////////////////////
- // display the patients registered
-
- patients = connectorClientDB.getPatients();
- for (Integer patientId : patients) {
- jComboBox1.addItem(patientId.toString());
- }
-
- } catch (SQLException ex) {
- Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex);
- ex.printStackTrace();
-// } catch (IOException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
-// } catch (DocumentException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
- }
-
- }
-
- /**
- * 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() {
-
- jPanel1 = new javax.swing.JPanel();
- jLabel2 = new javax.swing.JLabel();
- jLabel1 = new javax.swing.JLabel();
- jPanel2 = new javax.swing.JPanel();
- jComboBox1 = new javax.swing.JComboBox<String>();
- jButton1 = new javax.swing.JButton();
- jButton1.setFont(new Font("Tahoma", Font.BOLD, 12));
- jLabel3 = new javax.swing.JLabel();
- jLabel4 = new javax.swing.JLabel();
- jScrollPane3 = new javax.swing.JScrollPane();
- jScrollPane2 = new javax.swing.JScrollPane();
- jMenuBar1 = new javax.swing.JMenuBar();
- jMenu1 = new javax.swing.JMenu();
- jMenuItem1 = new javax.swing.JMenuItem();
- jMenu2 = new javax.swing.JMenu();
- dialog = new JDialog();
- tabbedPane = new JTabbedPane(JTabbedPane.TOP);
-
- setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
- addWindowListener(new WindowAdapter() {
- @Override
- public void windowClosing(java.awt.event.WindowEvent windowEvent) {
- if (!survey_submitted && close_trials <= 2){
- JOptionPane.showMessageDialog(frame, "Before closing the application, please fill in and submit the questionnaire.");
- close_trials++;
- tabbedPane.setSelectedIndex(1);
- }else{
- System.exit(0);
- }
- }
- });
- setTitle("HIV Pharmacogenomics\n");
-
- jLabel2.setIcon(new javax.swing.ImageIcon("res/shcs_logo2_small.gif")); // NOI18N
-
- jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
- jLabel1.setText("HIV Pharmacogenomics | Project #693");
-
- javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
- jPanel1.setLayout(jPanel1Layout);
- jPanel1Layout.setHorizontalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap(71, Short.MAX_VALUE)
- .addComponent(jLabel1)
- .addGap(18, 18, 18)
- .addComponent(jLabel2))
- );
- jPanel1Layout.setVerticalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jLabel1)
- .addGap(11, 11, 11))
- .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)
- );
-
- jPanel2.setBackground(new java.awt.Color(255, 255, 255));
- jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
-
- jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<String>(new String[]{"Select Patient"}));
-
- jButton1.setText("Run Test");
- jButton1.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton1ActionPerformed(evt);
- }
- });
-
- JLabel lblNewLabel = new JLabel("");
- lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
- lblNewLabel.setIcon(new javax.swing.ImageIcon("res/gears.png"));
-
-
-
- javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
- jPanel2Layout.setHorizontalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addComponent(jComboBox1, 0, 248, Short.MAX_VALUE)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addGap(75)
- .addGroup(jPanel2Layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jButton1)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 75, GroupLayout.PREFERRED_SIZE))
- .addContainerGap(98, Short.MAX_VALUE))
- );
- jPanel2Layout.setVerticalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addComponent(jComboBox1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED, 223, Short.MAX_VALUE)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jButton1)
- .addGap(19))
- );
- jPanel2.setLayout(jPanel2Layout);
-
- jLabel3.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel3.setText("Select Patient");
-
- jLabel4.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel4.setText("Select Test");
-
- jScrollPane3.setBackground(new java.awt.Color(255, 255, 255));
-
- jMenu1.setText("File");
-
- jMenuItem1.setText("Exit");
- jMenu1.add(jMenuItem1);
-
- jMenuBar1.add(jMenu1);
-
- jMenu2.setText("Edit");
- jMenuBar1.add(jMenu2);
-
- setJMenuBar(jMenuBar1);
-
-
-
- javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
- layout.setHorizontalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(layout.createParallelGroup(Alignment.LEADING, false)
- .addComponent(jLabel3)
- .addComponent(jLabel4)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, 244, Short.MAX_VALUE)
- .addComponent(jScrollPane3))
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 970, Short.MAX_VALUE))
- .addContainerGap())
- );
- layout.setVerticalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel4))
- .addPreferredGap(ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addComponent(jScrollPane3, GroupLayout.PREFERRED_SIZE, 388, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jLabel3)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 785, Short.MAX_VALUE))
- .addContainerGap())
- );
-
-
- jScrollPane2.setAutoscrolls(true);
- jScrollPane3.setAutoscrolls(true);
- tabbedPane.addTab("Report", new ImageIcon("res/report_icon.gif"), jScrollPane2, null);
- tabbedPane.setBackgroundAt(0, new Color(255, 255, 255));
-
- panel = new JPanel();
- tabbedPane.addTab("Survey", new ImageIcon("res/survey_icon.png"), panel, null);
- tabbedPane.setBackgroundAt(1, new Color(255, 255, 255));
- tabbedPane.setEnabledAt(1, true);
-
- panel_1 = new JPanel();
- panel_1.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
- panel_1.setBackground(SystemColor.control);
-
- JLabel label = new JLabel("");
- label.setIcon(new ImageIcon("res/shcs_logo2_medium.gif"));
-
- lblDearDoctor = new JLabel("Dear Doctor,");
- lblDearDoctor.setFont(new Font("Tahoma", Font.BOLD, 14));
-
- JScrollPane scrollPane = new JScrollPane();
- scrollPane.setBorder(null);
- GroupLayout gl_panel_1 = new GroupLayout(panel_1);
- gl_panel_1.setHorizontalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(Alignment.LEADING, gl_panel_1.createSequentialGroup()
- .addGap(25)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addComponent(lblDearDoctor)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 661, Short.MAX_VALUE))
- .addContainerGap())
- );
- gl_panel_1.setVerticalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addContainerGap()
- .addComponent(lblDearDoctor)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 203, Short.MAX_VALUE))
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(36)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 96, GroupLayout.PREFERRED_SIZE)))
- .addContainerGap())
- );
-
- JTextPane txtpnTodayYouAre = new JTextPane();
- txtpnTodayYouAre.setBorder(null);
- txtpnTodayYouAre.setText("Today you are receiving a pharmacogenetics report based on the genome of your patient. Because of its highly sensitive nature, " +
- "the genetic information you are provided with is processed in a privacy-preserving way. In particular, to protect patients’ genomic privacy, " +
- "their genetic and clinical data is stored encrypted at the SHCS data center, and securely analyzed through a sophisticated algorithm designed and developed at EPFL [1, 2]. " +
- "The actual clinical and genetic information is never revealed. Only the authorized users, such as you, can get some processed information, for example, the final result of a " +
- "pharmacogenetics risk test.\nThis mechanism protects the data against insiders or hackers trying to illegally access patients’ medical information, while still allowing authorized " +
- "users to obtain the information they need." +
- "\n\nTo help us understanding the importance of genomic privacy in the medical domain, and the impact of privacy-enhancing technologies in daily clinical practice, please complete the following survey.");
- txtpnTodayYouAre.setFont(new Font("Tahoma", Font.PLAIN, 13));
- txtpnTodayYouAre.setEditable(false);
- txtpnTodayYouAre.setBackground(SystemColor.control);
- scrollPane.setViewportView(txtpnTodayYouAre);
- panel_1.setLayout(gl_panel_1);
- jScrollPane4 = new javax.swing.JScrollPane();
- jScrollPane4.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
- getContentPane().setLayout(layout);
-
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
- ReplySurvey replySurvey = commHandlerAdapter.callServiceSurvey();
-
- map = replySurvey.getQuestions();
- ids = map.keySet();
- locations = replySurvey.getLocations();
-
- panel_2 = new JPanel();
- panel_2.setBackground(Color.WHITE);
- panel_2.setBorder(null);
- jScrollPane4.setViewportView(panel_2);
- panel_2.setLayout(new BoxLayout(panel_2, BoxLayout.Y_AXIS));
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
-
- int type = 0;
- for(Integer id : ids){
- ButtonGroup group = new ButtonGroup();
- JRadioButton r1 = new JRadioButton("1"); r1.setActionCommand("1"); r1.setBackground(Color.WHITE);
- JRadioButton r2 = new JRadioButton("2"); r2.setActionCommand("2"); r2.setBackground(Color.WHITE);
- JRadioButton r3 = new JRadioButton("3"); r3.setActionCommand("3"); r3.setBackground(Color.WHITE);
- JRadioButton r4 = new JRadioButton("4"); r4.setActionCommand("4"); r4.setBackground(Color.WHITE);
- JRadioButton r5 = new JRadioButton("5"); r5.setActionCommand("5"); r5.setBackground(Color.WHITE);
- group.add(r1);
- group.add(r2);
- group.add(r3);
- group.add(r4);
- group.add(r5);
- JPanel radio_panel = new JPanel();
- radio_panel.setLayout((new BoxLayout(radio_panel, BoxLayout.X_AXIS)));
- radio_panel.setBackground(Color.WHITE);
- radio_panel.setAlignmentX(Component.CENTER_ALIGNMENT);
- radio_panel.add(r1);
- radio_panel.add(r2);
- radio_panel.add(r3);
- radio_panel.add(r4);
- radio_panel.add(r5);
- radio_panel.doLayout();
- radio_panel.setPreferredSize(radio_panel.getPreferredSize());
- JTextArea question = new JTextArea(id + ") " + map.get(id).getQuestion());
- question.setEditable(false);
- question.setLineWrap(true);
- question.setWrapStyleWord(true);
-
-
- JPanel row_panel = new JPanel();
- row_panel.setLayout(new BoxLayout(row_panel, BoxLayout.X_AXIS));
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.add(question);
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.add(radio_panel);
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.setBackground(Color.WHITE);
-
- int type_new = map.get(id).getType();
-
- if(type_new != type){
- type = type_new;
- JLabel question_group = new JLabel();
- switch(type){
- case 1:
- question_group.setText("Clinical Utility");
- break;
- case 2:
- question_group.setText("Privacy Concerns");
- break;
- case 3:
- question_group.setText("Usability Assessment");
- break;
- }
- question_group.setAlignmentX(Component.CENTER_ALIGNMENT);
- question_group.setFont(new Font("Tahoma", Font.BOLD, 13));
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- panel_2.add(question_group);
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- panel_2.add(new JSeparator());
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- }
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- panel_2.add(row_panel);
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
-// panel_2.add(radio_panel);
- panel_2.add(new JSeparator());
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
-// panel_2.setPreferredSize(panel_2.getPreferredSize());
- buttonGroupMap.put(id, group);
-
- }
-
-
-
- this.setSize(new Dimension(1300, 865));
-// pack();
- }// </editor-fold>//GEN-END:initComponents
-
-
- private void submitButtonActionPerformed(java.awt.event.ActionEvent evt){
-
- try{
- answers = new HashMap<String, String>();
- StringBuilder sb = new StringBuilder();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- sb.append(q).append(",");
- sb.append(bg.getSelection().getActionCommand()).append(";");
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- String answer = sb.toString();
- Integer id_loc = null;
- for(Integer i: locations.keySet()){
- if(locations.get(i).equals(comboBox.getSelectedItem().toString()))
- id_loc = i;
- }
-
- String id_p;
- if(jComboBox1.getSelectedItem().toString().equals("Select Patient"))
- id_p = "0";
- else
- id_p = jComboBox1.getSelectedItem().toString();
-
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
-
- String reply = commHandlerAdapter.callServiceSurveyAnswer(answer, id_loc.toString(), id_p);
-
- if(reply.equals("1")){
- survey_submitted = true;
-
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Congrats! Your aswers have been sent to the SHCS datacenter.",
- "Information Message",
- JOptionPane.INFORMATION_MESSAGE);
- }
- else{
- throw new IOException();
- }
-
-
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "The SHCS datacenter does not respond. Please save the survey and send it to jean.raisaro@epfl.ch.",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
- private void savePDFButtonActionPerformed(java.awt.event.ActionEvent evt){
- try {
-
- answers = new HashMap<String, String>();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- JFileChooser chooser = new JFileChooser();
- // Note: source for ExampleFileFilter can be found in FileChooserDemo,
- // under the demo/jfc directory in the JDK.
-
- int returnVal = chooser.showSaveDialog(this);
- System.out.println(returnVal);
- if(returnVal == JFileChooser.APPROVE_OPTION) {
- System.out.println("You chose to open this file: " +
- chooser.getSelectedFile().getPath());
- quest = new Questionnaire(chooser.getSelectedFile().getPath() + ".pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }else{
- quest = new Questionnaire("outputPDF/survey.pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }
-
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (DocumentException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (NullPointerException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
-
- private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
-
- JPanel contentPanel = new JPanel();
-
- dialog.setBounds(100, 100, 410, 80);
- dialog.getContentPane().setLayout(new BorderLayout());
- contentPanel.setLayout(new FlowLayout());
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- dialog.getContentPane().add(contentPanel, BorderLayout.CENTER);
- {
- JLabel label = new JLabel("Please wait...The overall computation can take few seconds");
- label.setHorizontalAlignment(SwingConstants.CENTER);
- label.setFont(new Font("Tahoma", Font.PLAIN, 12));
- contentPanel.add(label);
- }
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
- dialog.getContentPane().add(buttonPane, BorderLayout.SOUTH);
- }
- dialog.setLocationRelativeTo(this);
- dialog.setVisible(true);
-
- GUIWorker gw = new GUIWorker(this, props);
- Thread t = new Thread(gw);
- t.start();
-
- }
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JButton jButton1;
- private javax.swing.JComboBox<String> jComboBox1;
- private javax.swing.JLabel jLabel1;
- private javax.swing.JLabel jLabel2;
- private javax.swing.JLabel jLabel3;
- private javax.swing.JLabel jLabel4;
- private javax.swing.JMenu jMenu1;
- private javax.swing.JMenu jMenu2;
- private javax.swing.JMenuBar jMenuBar1;
- private javax.swing.JMenuItem jMenuItem1;
- private javax.swing.JPanel jPanel1;
- private javax.swing.JPanel jPanel2;
- private javax.swing.JScrollPane jScrollPane3;
- private javax.swing.JTabbedPane tabbedPane;
- private javax.swing.JScrollPane jScrollPane2;
- private javax.swing.JScrollPane jScrollPane4;
- private JPanel panel;
- private JPanel panel_1;
- private JPanel panel_2;
- private JLabel lblDearDoctor;
- private JLabel lblNewLabel_1;
- private JLabel lblNewLabel_2;
- private JLabel lblNewLabel_3;
- private JComboBox<String> comboBox;
- private Component rigidArea;
-
- // End of variables declaration//GEN-END:variables
-
-
- class GUIWorker implements Runnable{
-
- private JFrame mainFrame;
- private ClientProperties props;
- private MedUnit mu;
-
- public GUIWorker(GUI gui, ClientProperties props) {
- mainFrame = gui;
-
- this.props = props;
- this.mu = new MedUnit(props, 0);
- }
-
- @Override
- public void run() {
-
- try{
- int patientId = Integer.parseInt((String) jComboBox1.getSelectedItem());
-
- // convert selected tests to test identifiers
- ArrayList<TestName> selectedTests = new ArrayList<TestName>();
- for (String currentName : getSelectedTests()) {
- TestName currentTest = testsByName.get(currentName);
-
- if (currentTest == null) {
- throw new IllegalStateException("Trying to run unknown test: " + currentTest);
- }
-
- selectedTests.add(currentTest);
- }
-
- // run tests
- Diagnostic diagnostic = mu.runTests(patientId, selectedTests);
-
- // warn for tests with missing material
- warnFailedTests(diagnostic, selectedTests);
-
- // create report
- mu.createReport(patientId, selectedTests, diagnostic);
-
- dialog.setVisible(false);
-
- // specify file you wish to open (JPedal handles getting the byte data)
- String filepathReport = props.getPathPDF() + patientId + ".pdf";
-
- // open generated PDF
- // object must be either String in full filepath, or
- // File object which can be relative
- Object[] input = new Object[]{ new File(filepathReport) };
- viewer.executeCommand(Commands.OPENFILE, input);
-
- // display CAD result as bar plot
- if (diagnostic.hasCAD()) {
- System.out.println("CAD = " + diagnostic.getResultCAD());
- BarPlotFrame frame = new BarPlotFrame(diagnostic.getResultCAD(), patientId);
- frame.setVisible(true);
- frame.setAlwaysOnTop(true);
- }
-
-
- } catch (SQLException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Please select a patient.");
- }
-
- }
-
- private void warnFailedTests(Diagnostic diagnostic, ArrayList<TestName> selectedTests) {
- ArrayList<Integer> failedTests = diagnostic.getInvalidTests();
-
- if (!failedTests.isEmpty()) {
- String msg = "Could not complete tests: ";
- boolean first = true;
- for (TestName testName : selectedTests) {
- if (failedTests.contains(testName.getId())) {
- if (first) {
- first = false;
- } else {
- msg += ", ";
- }
- msg += testName.getName();
- }
- }
- displayError(msg);
- }
-
- }
-
- private void displayError(String msg) {
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- mainFrame,
- msg,
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
-
- private ArrayList<String> getSelectedTests() {
- ArrayList<String> tests = new ArrayList<String>();
-
- for (TreePath treePath : jTree.getSelectionPaths()) {
- tests.addAll(getChildrenTests(jTree.getModel(), treePath.getLastPathComponent()));
- }
-
- return tests;
- }
-
- private ArrayList<String> getChildrenTests(TreeModel model, Object node) {
- ArrayList<String> tests = new ArrayList<String>();
-
- if (model.isLeaf(node)) { // leaf
- DefaultMutableTreeNode leaf = (DefaultMutableTreeNode) node;
- tests.add(leaf.toString());
- }
- else { // iterate over children
- for (int i = 0; i < model.getChildCount(node); i++) {
- tests.addAll(getChildrenTests(model, model.getChild(node, i)));
- }
- }
-
- return tests;
- }
-
- }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/3/c0ba8a874eac001410e2e30aa85db9d1 b/.metadata/.plugins/org.eclipse.core.resources/.history/3/c0ba8a874eac001410e2e30aa85db9d1
deleted file mode 100644
index be66497..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/3/c0ba8a874eac001410e2e30aa85db9d1
+++ /dev/null
@@ -1,893 +0,0 @@
-package ui;
-
-import io.ClientConnection;
-import io.CommAdapter;
-import io.Questionnaire;
-
-import java.awt.BorderLayout;
-import java.awt.Color;
-import java.awt.Component;
-import java.awt.Dimension;
-import java.awt.FlowLayout;
-import java.awt.Font;
-import java.awt.SystemColor;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.awt.event.WindowAdapter;
-import java.io.File;
-import java.io.IOException;
-import java.sql.SQLException;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.LinkedList;
-import java.util.Map;
-import java.util.Set;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
-import javax.swing.Box;
-import javax.swing.BoxLayout;
-import javax.swing.ButtonGroup;
-import javax.swing.DefaultComboBoxModel;
-import javax.swing.GroupLayout;
-import javax.swing.GroupLayout.Alignment;
-import javax.swing.ImageIcon;
-import javax.swing.JButton;
-import javax.swing.JComboBox;
-import javax.swing.JDialog;
-import javax.swing.JFileChooser;
-import javax.swing.JFrame;
-import javax.swing.JLabel;
-import javax.swing.JOptionPane;
-import javax.swing.JPanel;
-import javax.swing.JRadioButton;
-import javax.swing.JScrollPane;
-import javax.swing.JSeparator;
-import javax.swing.JTabbedPane;
-import javax.swing.JTextArea;
-import javax.swing.JTextPane;
-import javax.swing.JTree;
-import javax.swing.LayoutStyle.ComponentPlacement;
-import javax.swing.SwingConstants;
-import javax.swing.UIManager;
-import javax.swing.border.BevelBorder;
-import javax.swing.border.EmptyBorder;
-import javax.swing.border.EtchedBorder;
-import javax.swing.tree.DefaultMutableTreeNode;
-import javax.swing.tree.TreeModel;
-import javax.swing.tree.TreePath;
-
-import org.jpedal.examples.viewer.Commands;
-import org.jpedal.examples.viewer.Viewer;
-
-import utils.ClientProperties;
-
-import com.itextpdf.text.DocumentException;
-
-import database.DBconnectorClient;
-import framework.Diagnostic;
-import framework.MedUnit;
-import framework.Question;
-import framework.reply.ReplySurvey;
-import framework.test.TestName;
-
-/**
- *
- * @author youssef, raisaro
- */
-public class GUI extends javax.swing.JFrame {
-
- private static final Logger LOGGER = Logger.getLogger(GUI.class.getName());
-
- private static final long serialVersionUID = -4582280515597700650L;
-
- // configuration
- private ClientProperties props;
-
- private JTree jTree;
- private DBconnectorClient connectorClientDB;
- private LinkedList<Integer> patients;
-
- /** List of all relevant tests */
- private HashMap<String, TestName> testsByName;
- private Viewer viewer;
- private JDialog dialog;
- private JFrame frame;
- private boolean survey_submitted;
- private int close_trials;
- private Map<Integer, ButtonGroup> buttonGroupMap;
- private Questionnaire quest;
- private Map<Integer, Question> map;
- private Set<Integer> ids;
- private Map<String,String> answers;
- private Map<Integer, String> locations;
-
-
- /**
- * Creates new form GUI
- */
- public GUI(ClientProperties props){
-
- frame = this;
- this.props = props;
- this.connectorClientDB = new DBconnectorClient(props.getDbMsAccess());
- survey_submitted = false;
- close_trials = 0;
-
-
- try {
- initComponents();
-
- viewer = new Viewer(jScrollPane2, null);
- viewer.setupViewer();
-
- // create questionnare
-
-
- System.out.println("#of questions: " + ids.size());
-
-// viewer_q = new Viewer(jScrollPane4, null);
-// viewer_q.setupViewer();
-//
-// // specify file you wish to open (JPedal handles getting the byte data)
-// String filepathReport = "outputPDF/buttons_filled.pdf";
-//
-// // open generated PDF
-// // object must be either String in full filepath, or
-// // File object which can be relative
-// Object[] input = new Object[]{ new File(filepathReport) };
-// viewer_q.executeCommand(Commands.OPENFILE, input);
-
- JButton btnSubmitQuestionnaire = new JButton("Submit Questionnaire");
- btnSubmitQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- btnSubmitQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- submitButtonActionPerformed(arg0);
- }
- });
- JButton btnResetQuestionnaire = new JButton("Save as PDF");
- btnResetQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- savePDFButtonActionPerformed(arg0);
- }
- });
- btnResetQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- JPanel panel_button = new JPanel();
- panel_button.setLayout(new BoxLayout(panel_button, BoxLayout.X_AXIS));
-
- lblNewLabel_3 = new JLabel("");
- lblNewLabel_3.setIcon(new ImageIcon("res/location_icon.png"));
- panel_button.add(lblNewLabel_3);
-
-
-
- comboBox = new JComboBox<String>();
- comboBox.setFont(new Font("Tahoma", Font.BOLD, 12));
- comboBox.setModel(new DefaultComboBoxModel<String>(new String[] {"Select Location"}));
- for(Integer id_loc : locations.keySet()){
- comboBox.addItem(locations.get(id_loc));
- }
-
-
- panel_button.add(comboBox);
-
- rigidArea = Box.createRigidArea(new Dimension(10, 0));
- panel_button.add(rigidArea);
-
- lblNewLabel_1 = new JLabel("");
- lblNewLabel_1.setIcon(new ImageIcon("res/submit.png"));
- panel_button.add(lblNewLabel_1);
- panel_button.add(btnSubmitQuestionnaire);
-
- panel_button.add(Box.createRigidArea(new Dimension(10,0)));
-
- lblNewLabel_2 = new JLabel("");
- lblNewLabel_2.setIcon(new ImageIcon("res/pdf.png"));
- panel_button.add(lblNewLabel_2);
- panel_button.add(btnResetQuestionnaire);
- panel_button.setPreferredSize(new Dimension(211, 35));
- panel_button.validate();
-
- JPanel panel_3 = new JPanel();
- GroupLayout gl_panel = new GroupLayout(panel);
- gl_panel.setHorizontalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(41)
- .addGroup(gl_panel.createParallelGroup(Alignment.TRAILING)
- .addComponent(jScrollPane4, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE)
- .addComponent(panel_1, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE))
- .addGap(32))
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(63)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addGap(103)
- .addComponent(panel_button, GroupLayout.DEFAULT_SIZE, 488, Short.MAX_VALUE)
- .addGap(241))
- );
- gl_panel.setVerticalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(22)
- .addComponent(panel_1, GroupLayout.DEFAULT_SIZE, 192, Short.MAX_VALUE)
- .addGap(18)
- .addComponent(jScrollPane4, GroupLayout.DEFAULT_SIZE, 437, Short.MAX_VALUE)
- .addGap(26)
- .addGroup(gl_panel.createParallelGroup(Alignment.LEADING)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(panel_button, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE)))
- );
- panel_3.setLayout(new BoxLayout(panel_3, BoxLayout.X_AXIS));
-
-
- panel.setLayout(gl_panel);
-
-
-
-
-
-
- /////////////////////////////////////////////////////////
- // display the tests available
-
- // get the tests
- HashMap<String, ArrayList<TestName>> testsRelevantByGroup = connectorClientDB.getRelevantTestsByGroup();
- ArrayList<String> groups = new ArrayList<String>(testsRelevantByGroup.keySet());
-
- // flatten hashmap into linkedlist
-// tests = new LinkedList<>();
- testsByName = new HashMap<String, TestName>();
- for (String group : groups) {
-// tests.addAll(testsRelevantByGroup.get(group));
- for (TestName test : testsRelevantByGroup.get(group)) {
- testsByName.put(test.getName(), test);
- }
- }
-
- // define tree structure of the tests
- DefaultMutableTreeNode root = new DefaultMutableTreeNode("All");
-
- for (String group : groups) {
- DefaultMutableTreeNode child = new DefaultMutableTreeNode(group);
- root.add(child);
-
- for (TestName test : testsRelevantByGroup.get(group)) {
- DefaultMutableTreeNode grandChild = new DefaultMutableTreeNode(test.getName());
- child.add(grandChild);
- }
- }
-
- // define swing object
- jTree = new JTree(root);
-
- for(int i=0;i<jTree.getRowCount();i++){
- jTree.expandRow(i);
- }
-
- jScrollPane3.setViewportView(jTree);
-// jTree.addTreeSelectionListener(new TreeSelectionListener() {
-//
-// @Override
-// public void valueChanged(TreeSelectionEvent e) {
-// tp = jTree.getSelectionPaths();
-// }
-// });
- jScrollPane3.setViewportView(jTree);
-
- /////////////////////////////////////////////////////////
- // display the patients registered
-
- patients = connectorClientDB.getPatients();
- for (Integer patientId : patients) {
- jComboBox1.addItem(patientId.toString());
- }
-
- } catch (SQLException ex) {
- Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex);
- ex.printStackTrace();
-// } catch (IOException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
-// } catch (DocumentException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
- }
-
- }
-
- /**
- * 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() {
-
- jPanel1 = new javax.swing.JPanel();
- jLabel2 = new javax.swing.JLabel();
- jLabel1 = new javax.swing.JLabel();
- jPanel2 = new javax.swing.JPanel();
- jComboBox1 = new javax.swing.JComboBox<String>();
- jButton1 = new javax.swing.JButton();
- jButton1.setFont(new Font("Tahoma", Font.BOLD, 12));
- jLabel3 = new javax.swing.JLabel();
- jLabel4 = new javax.swing.JLabel();
- jScrollPane3 = new javax.swing.JScrollPane();
- jScrollPane2 = new javax.swing.JScrollPane();
- jMenuBar1 = new javax.swing.JMenuBar();
- jMenu1 = new javax.swing.JMenu();
- jMenuItem1 = new javax.swing.JMenuItem();
- jMenu2 = new javax.swing.JMenu();
- dialog = new JDialog();
- tabbedPane = new JTabbedPane(JTabbedPane.TOP);
-
- setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
- addWindowListener(new WindowAdapter() {
- @Override
- public void windowClosing(java.awt.event.WindowEvent windowEvent) {
- if (!survey_submitted && close_trials <= 2){
- JOptionPane.showMessageDialog(frame, "Before closing the application, please fill in and submit the questionnaire.");
- close_trials++;
- tabbedPane.setSelectedIndex(1);
- }else{
- System.exit(0);
- }
- }
- });
- setTitle("HIV Pharmacogenomics\n");
-
- jLabel2.setIcon(new javax.swing.ImageIcon("res/shcs_logo2_small.gif")); // NOI18N
-
- jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
- jLabel1.setText("HIV Pharmacogenomics | Project #693");
-
- javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
- jPanel1.setLayout(jPanel1Layout);
- jPanel1Layout.setHorizontalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap(71, Short.MAX_VALUE)
- .addComponent(jLabel1)
- .addGap(18, 18, 18)
- .addComponent(jLabel2))
- );
- jPanel1Layout.setVerticalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jLabel1)
- .addGap(11, 11, 11))
- .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)
- );
-
- jPanel2.setBackground(new java.awt.Color(255, 255, 255));
- jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
-
- jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<String>(new String[]{"Select Patient"}));
-
- jButton1.setText("Run Test");
- jButton1.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton1ActionPerformed(evt);
- }
- });
-
- JLabel lblNewLabel = new JLabel("");
- lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
- lblNewLabel.setIcon(new javax.swing.ImageIcon("res/gears.png"));
-
-
-
- javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
- jPanel2Layout.setHorizontalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addComponent(jComboBox1, 0, 248, Short.MAX_VALUE)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addGap(75)
- .addGroup(jPanel2Layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jButton1)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 75, GroupLayout.PREFERRED_SIZE))
- .addContainerGap(98, Short.MAX_VALUE))
- );
- jPanel2Layout.setVerticalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addComponent(jComboBox1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED, 223, Short.MAX_VALUE)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jButton1)
- .addGap(19))
- );
- jPanel2.setLayout(jPanel2Layout);
-
- jLabel3.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel3.setText("Select Patient");
-
- jLabel4.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel4.setText("Select Test");
-
- jScrollPane3.setBackground(new java.awt.Color(255, 255, 255));
-
- jMenu1.setText("File");
-
- jMenuItem1.setText("Exit");
- jMenu1.add(jMenuItem1);
-
- jMenuBar1.add(jMenu1);
-
- jMenu2.setText("Edit");
- jMenuBar1.add(jMenu2);
-
- setJMenuBar(jMenuBar1);
-
-
-
- javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
- layout.setHorizontalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(layout.createParallelGroup(Alignment.LEADING, false)
- .addComponent(jLabel3)
- .addComponent(jLabel4)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, 244, Short.MAX_VALUE)
- .addComponent(jScrollPane3))
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 970, Short.MAX_VALUE))
- .addContainerGap())
- );
- layout.setVerticalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel4))
- .addPreferredGap(ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addComponent(jScrollPane3, GroupLayout.PREFERRED_SIZE, 388, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jLabel3)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 785, Short.MAX_VALUE))
- .addContainerGap())
- );
-
-
- jScrollPane2.setAutoscrolls(true);
- jScrollPane3.setAutoscrolls(true);
- tabbedPane.addTab("Report", new ImageIcon("res/report_icon.gif"), jScrollPane2, null);
- tabbedPane.setBackgroundAt(0, new Color(255, 255, 255));
-
- panel = new JPanel();
- tabbedPane.addTab("Survey", new ImageIcon("res/survey_icon.png"), panel, null);
- tabbedPane.setBackgroundAt(1, new Color(255, 255, 255));
- tabbedPane.setEnabledAt(1, true);
-
- panel_1 = new JPanel();
- panel_1.setBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null));
- panel_1.setBackground(UIManager.getColor("Button.background"));
-
- JLabel label = new JLabel("");
- label.setIcon(new ImageIcon("res/shcs_logo2_medium.gif"));
-
- lblDearDoctor = new JLabel("Dear Doctor,");
- lblDearDoctor.setFont(new Font("Tahoma", Font.BOLD, 14));
-
- JScrollPane scrollPane = new JScrollPane();
- scrollPane.setBorder(null);
- GroupLayout gl_panel_1 = new GroupLayout(panel_1);
- gl_panel_1.setHorizontalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(25)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 666, Short.MAX_VALUE)
- .addComponent(lblDearDoctor))
- .addContainerGap())
- );
- gl_panel_1.setVerticalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(22)
- .addComponent(lblDearDoctor)
- .addGap(18)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 120, Short.MAX_VALUE)
- .addContainerGap())
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(36)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 96, GroupLayout.PREFERRED_SIZE)
- .addContainerGap(56, Short.MAX_VALUE))
- );
-
- JTextPane txtpnTodayYouAre = new JTextPane();
- txtpnTodayYouAre.setBorder(null);
- txtpnTodayYouAre.setText("Today you are receiving a pharmacogenetic report based on the genetic information of your patient. Because the human genome contains extremely private and sensitive information of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier, it must be managed with care.\r\nToday you are receiving a pharmacogenetic report based on the genetic information of your patient. Because the human genome contains extremely private and sensitive information of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier, it must be managed with care.\r\nToday you are receiving a pharmacogenetic report based on the genetic information of your patient. Because the human genome contains extremely private and sensitive information of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier, it must be managed with care.");
- txtpnTodayYouAre.setFont(new Font("Tahoma", Font.PLAIN, 13));
- txtpnTodayYouAre.setEditable(false);
- txtpnTodayYouAre.setBackground(SystemColor.menu);
- scrollPane.setViewportView(txtpnTodayYouAre);
- panel_1.setLayout(gl_panel_1);
- jScrollPane4 = new javax.swing.JScrollPane();
- getContentPane().setLayout(layout);
-
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
- ReplySurvey replySurvey = commHandlerAdapter.callServiceSurvey();
-
- map = replySurvey.getQuestions();
- ids = map.keySet();
- locations = replySurvey.getLocations();
-
- panel_2 = new JPanel();
- panel_2.setBackground(Color.WHITE);
- panel_2.setBorder(new BevelBorder(BevelBorder.LOWERED, null, null, null, null));
- jScrollPane4.setViewportView(panel_2);
- panel_2.setLayout(new BoxLayout(panel_2, BoxLayout.Y_AXIS));
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
-
-
- for(Integer id : ids){
- ButtonGroup group = new ButtonGroup();
- JRadioButton r1 = new JRadioButton("1"); r1.setActionCommand("1"); r1.setBackground(Color.WHITE);
- JRadioButton r2 = new JRadioButton("2"); r2.setActionCommand("2"); r2.setBackground(Color.WHITE);
- JRadioButton r3 = new JRadioButton("3"); r3.setActionCommand("3"); r3.setBackground(Color.WHITE);
- JRadioButton r4 = new JRadioButton("4"); r4.setActionCommand("4"); r4.setBackground(Color.WHITE);
- JRadioButton r5 = new JRadioButton("5"); r5.setActionCommand("5"); r5.setBackground(Color.WHITE);
- group.add(r1);
- group.add(r2);
- group.add(r3);
- group.add(r4);
- group.add(r5);
- JPanel radio_panel = new JPanel();
- radio_panel.setLayout((new BoxLayout(radio_panel, BoxLayout.X_AXIS)));
- radio_panel.setBackground(Color.WHITE);
- radio_panel.setAlignmentX(Component.CENTER_ALIGNMENT);
- radio_panel.add(r1);
- radio_panel.add(r2);
- radio_panel.add(r3);
- radio_panel.add(r4);
- radio_panel.add(r5);
- radio_panel.doLayout();
- radio_panel.setPreferredSize(radio_panel.getPreferredSize());
- JLabel question = new JLabel(id + ") " + map.get(id).getQuestion());
-// question.setLineWrap(true);
-// question.setWrapStyleWord(true);
- question.setAlignmentX(Component.CENTER_ALIGNMENT);
- question.setFont(new Font("Tahoma", Font.PLAIN, 13));
-// JPanel row_panel = new JPanel();
-// row_panel.setLayout(new BoxLayout(row_panel, BoxLayout.X_AXIS));
-// row_panel.add(question);
-// row_panel.add(Box.createRigidArea(new Dimension(10,0)));
-// row_panel.add(radio_panel);
-
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- panel_2.add(question);
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- panel_2.add(radio_panel);
- panel_2.add(new JSeparator());
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
-// panel_2.setPreferredSize(panel_2.getPreferredSize());
- buttonGroupMap.put(id, group);
-
- }
-
-
-
- this.setSize(new Dimension(1200, 865));
-// pack();
- }// </editor-fold>//GEN-END:initComponents
-
-
- private void submitButtonActionPerformed(java.awt.event.ActionEvent evt){
-
- try{
- answers = new HashMap<String, String>();
- StringBuilder sb = new StringBuilder();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- sb.append(q).append(",");
- sb.append(bg.getSelection().getActionCommand()).append(";");
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- String answer = sb.toString();
- Integer id_loc = null;
- for(Integer i: locations.keySet()){
- if(locations.get(i).equals(comboBox.getSelectedItem().toString()))
- id_loc = i;
- }
-
- String id_p;
- if(jComboBox1.getSelectedItem().toString().equals("Select Patient"))
- id_p = "0";
- else
- id_p = jComboBox1.getSelectedItem().toString();
-
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
-
- String reply = commHandlerAdapter.callServiceSurveyAnswer(answer, id_loc.toString(), id_p);
-
- if(reply.equals("1")){
- survey_submitted = true;
-
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Congrats! Your aswers have been sent to the SHCS datacenter.",
- "Information Message",
- JOptionPane.INFORMATION_MESSAGE);
- }
- else{
- throw new IOException();
- }
-
-
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "The SHCS datacenter does not respond. Please save the survey and send it to jean.raisaro@epfl.ch.",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
- private void savePDFButtonActionPerformed(java.awt.event.ActionEvent evt){
- try {
-
- answers = new HashMap<String, String>();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- JFileChooser chooser = new JFileChooser();
- // Note: source for ExampleFileFilter can be found in FileChooserDemo,
- // under the demo/jfc directory in the JDK.
-
- int returnVal = chooser.showSaveDialog(this);
- System.out.println(returnVal);
- if(returnVal == JFileChooser.APPROVE_OPTION) {
- System.out.println("You chose to open this file: " +
- chooser.getSelectedFile().getPath());
- quest = new Questionnaire(chooser.getSelectedFile().getPath() + ".pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }else{
- quest = new Questionnaire("outputPDF/survey.pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }
-
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (DocumentException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (NullPointerException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
-
- private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
-
- JPanel contentPanel = new JPanel();
-
- dialog.setBounds(100, 100, 410, 80);
- dialog.getContentPane().setLayout(new BorderLayout());
- contentPanel.setLayout(new FlowLayout());
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- dialog.getContentPane().add(contentPanel, BorderLayout.CENTER);
- {
- JLabel label = new JLabel("Please wait...The overall computation can take few seconds");
- label.setHorizontalAlignment(SwingConstants.CENTER);
- label.setFont(new Font("Tahoma", Font.PLAIN, 12));
- contentPanel.add(label);
- }
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
- dialog.getContentPane().add(buttonPane, BorderLayout.SOUTH);
- }
- dialog.setLocationRelativeTo(this);
- dialog.setVisible(true);
-
- GUIWorker gw = new GUIWorker(this, props);
- Thread t = new Thread(gw);
- t.start();
-
- }
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JButton jButton1;
- private javax.swing.JComboBox<String> jComboBox1;
- private javax.swing.JLabel jLabel1;
- private javax.swing.JLabel jLabel2;
- private javax.swing.JLabel jLabel3;
- private javax.swing.JLabel jLabel4;
- private javax.swing.JMenu jMenu1;
- private javax.swing.JMenu jMenu2;
- private javax.swing.JMenuBar jMenuBar1;
- private javax.swing.JMenuItem jMenuItem1;
- private javax.swing.JPanel jPanel1;
- private javax.swing.JPanel jPanel2;
- private javax.swing.JScrollPane jScrollPane3;
- private javax.swing.JTabbedPane tabbedPane;
- private javax.swing.JScrollPane jScrollPane2;
- private javax.swing.JScrollPane jScrollPane4;
- private JPanel panel;
- private JPanel panel_1;
- private JPanel panel_2;
- private JLabel lblDearDoctor;
- private JLabel lblNewLabel_1;
- private JLabel lblNewLabel_2;
- private JLabel lblNewLabel_3;
- private JComboBox<String> comboBox;
- private Component rigidArea;
-
- // End of variables declaration//GEN-END:variables
-
-
- class GUIWorker implements Runnable{
-
- private JFrame mainFrame;
- private ClientProperties props;
- private MedUnit mu;
-
- public GUIWorker(GUI gui, ClientProperties props) {
- mainFrame = gui;
-
- this.props = props;
- this.mu = new MedUnit(props, 0);
- }
-
- @Override
- public void run() {
-
- try{
- int patientId = Integer.parseInt((String) jComboBox1.getSelectedItem());
-
- // convert selected tests to test identifiers
- ArrayList<TestName> selectedTests = new ArrayList<TestName>();
- for (String currentName : getSelectedTests()) {
- TestName currentTest = testsByName.get(currentName);
-
- if (currentTest == null) {
- throw new IllegalStateException("Trying to run unknown test: " + currentTest);
- }
-
- selectedTests.add(currentTest);
- }
-
- // run tests
- Diagnostic diagnostic = mu.runTests(patientId, selectedTests);
-
- // warn for tests with missing material
- warnFailedTests(diagnostic, selectedTests);
-
- // create report
- mu.createReport(patientId, selectedTests, diagnostic);
-
- dialog.setVisible(false);
-
- // specify file you wish to open (JPedal handles getting the byte data)
- String filepathReport = props.getPathPDF() + patientId + ".pdf";
-
- // open generated PDF
- // object must be either String in full filepath, or
- // File object which can be relative
- Object[] input = new Object[]{ new File(filepathReport) };
- viewer.executeCommand(Commands.OPENFILE, input);
-
- // display CAD result as bar plot
- if (diagnostic.hasCAD()) {
- System.out.println("CAD = " + diagnostic.getResultCAD());
- BarPlotFrame frame = new BarPlotFrame(diagnostic.getResultCAD(), patientId);
- frame.setVisible(true);
- frame.setAlwaysOnTop(true);
- }
-
-
- } catch (SQLException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Please select a patient.");
- }
-
- }
-
- private void warnFailedTests(Diagnostic diagnostic, ArrayList<TestName> selectedTests) {
- ArrayList<Integer> failedTests = diagnostic.getInvalidTests();
-
- if (!failedTests.isEmpty()) {
- String msg = "Could not complete tests: ";
- boolean first = true;
- for (TestName testName : selectedTests) {
- if (failedTests.contains(testName.getId())) {
- if (first) {
- first = false;
- } else {
- msg += ", ";
- }
- msg += testName.getName();
- }
- }
- displayError(msg);
- }
-
- }
-
- private void displayError(String msg) {
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- mainFrame,
- msg,
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
-
- private ArrayList<String> getSelectedTests() {
- ArrayList<String> tests = new ArrayList<String>();
-
- for (TreePath treePath : jTree.getSelectionPaths()) {
- tests.addAll(getChildrenTests(jTree.getModel(), treePath.getLastPathComponent()));
- }
-
- return tests;
- }
-
- private ArrayList<String> getChildrenTests(TreeModel model, Object node) {
- ArrayList<String> tests = new ArrayList<String>();
-
- if (model.isLeaf(node)) { // leaf
- DefaultMutableTreeNode leaf = (DefaultMutableTreeNode) node;
- tests.add(leaf.toString());
- }
- else { // iterate over children
- for (int i = 0; i < model.getChildCount(node); i++) {
- tests.addAll(getChildrenTests(model, model.getChild(node, i)));
- }
- }
-
- return tests;
- }
-
- }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/30/a02e357751ac001410e2e30aa85db9d1 b/.metadata/.plugins/org.eclipse.core.resources/.history/30/a02e357751ac001410e2e30aa85db9d1
deleted file mode 100644
index 4e65405..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/30/a02e357751ac001410e2e30aa85db9d1
+++ /dev/null
@@ -1,905 +0,0 @@
-package ui;
-
-import io.ClientConnection;
-import io.CommAdapter;
-import io.Questionnaire;
-
-import java.awt.BorderLayout;
-import java.awt.Color;
-import java.awt.Component;
-import java.awt.Dimension;
-import java.awt.FlowLayout;
-import java.awt.Font;
-import java.awt.SystemColor;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.awt.event.WindowAdapter;
-import java.io.File;
-import java.io.IOException;
-import java.sql.SQLException;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.LinkedList;
-import java.util.Map;
-import java.util.Set;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
-import javax.swing.Box;
-import javax.swing.BoxLayout;
-import javax.swing.ButtonGroup;
-import javax.swing.DefaultComboBoxModel;
-import javax.swing.GroupLayout;
-import javax.swing.GroupLayout.Alignment;
-import javax.swing.ImageIcon;
-import javax.swing.JButton;
-import javax.swing.JComboBox;
-import javax.swing.JDialog;
-import javax.swing.JFileChooser;
-import javax.swing.JFrame;
-import javax.swing.JLabel;
-import javax.swing.JOptionPane;
-import javax.swing.JPanel;
-import javax.swing.JRadioButton;
-import javax.swing.JScrollPane;
-import javax.swing.JSeparator;
-import javax.swing.JTabbedPane;
-import javax.swing.JTextArea;
-import javax.swing.JTextPane;
-import javax.swing.JTree;
-import javax.swing.LayoutStyle.ComponentPlacement;
-import javax.swing.SwingConstants;
-import javax.swing.UIManager;
-import javax.swing.border.BevelBorder;
-import javax.swing.border.EmptyBorder;
-import javax.swing.border.EtchedBorder;
-import javax.swing.tree.DefaultMutableTreeNode;
-import javax.swing.tree.TreeModel;
-import javax.swing.tree.TreePath;
-
-import org.jpedal.examples.viewer.Commands;
-import org.jpedal.examples.viewer.Viewer;
-
-import utils.ClientProperties;
-
-import com.itextpdf.text.DocumentException;
-
-import database.DBconnectorClient;
-import framework.Diagnostic;
-import framework.MedUnit;
-import framework.Question;
-import framework.reply.ReplySurvey;
-import framework.test.TestName;
-import javax.swing.border.SoftBevelBorder;
-
-/**
- *
- * @author youssef, raisaro
- */
-public class GUI extends javax.swing.JFrame {
-
- private static final Logger LOGGER = Logger.getLogger(GUI.class.getName());
-
- private static final long serialVersionUID = -4582280515597700650L;
-
- // configuration
- private ClientProperties props;
-
- private JTree jTree;
- private DBconnectorClient connectorClientDB;
- private LinkedList<Integer> patients;
-
- /** List of all relevant tests */
- private HashMap<String, TestName> testsByName;
- private Viewer viewer;
- private JDialog dialog;
- private JFrame frame;
- private boolean survey_submitted;
- private int close_trials;
- private Map<Integer, ButtonGroup> buttonGroupMap;
- private Questionnaire quest;
- private Map<Integer, Question> map;
- private Set<Integer> ids;
- private Map<String,String> answers;
- private Map<Integer, String> locations;
-
-
- /**
- * Creates new form GUI
- */
- public GUI(ClientProperties props){
-
- frame = this;
- this.props = props;
- this.connectorClientDB = new DBconnectorClient(props.getDbMsAccess());
- survey_submitted = false;
- close_trials = 0;
-
-
- try {
- initComponents();
-
- viewer = new Viewer(jScrollPane2, null);
- viewer.setupViewer();
-
- // create questionnare
-
-
- System.out.println("#of questions: " + ids.size());
-
-// viewer_q = new Viewer(jScrollPane4, null);
-// viewer_q.setupViewer();
-//
-// // specify file you wish to open (JPedal handles getting the byte data)
-// String filepathReport = "outputPDF/buttons_filled.pdf";
-//
-// // open generated PDF
-// // object must be either String in full filepath, or
-// // File object which can be relative
-// Object[] input = new Object[]{ new File(filepathReport) };
-// viewer_q.executeCommand(Commands.OPENFILE, input);
-
- JButton btnSubmitQuestionnaire = new JButton("Submit Questionnaire");
- btnSubmitQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- btnSubmitQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- submitButtonActionPerformed(arg0);
- }
- });
- JButton btnResetQuestionnaire = new JButton("Save as PDF");
- btnResetQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- savePDFButtonActionPerformed(arg0);
- }
- });
- btnResetQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- JPanel panel_button = new JPanel();
- panel_button.setLayout(new BoxLayout(panel_button, BoxLayout.X_AXIS));
-
- lblNewLabel_3 = new JLabel("");
- lblNewLabel_3.setIcon(new ImageIcon("res/location_icon.png"));
- panel_button.add(lblNewLabel_3);
-
-
-
- comboBox = new JComboBox<String>();
- comboBox.setFont(new Font("Tahoma", Font.BOLD, 12));
- comboBox.setModel(new DefaultComboBoxModel<String>(new String[] {"Select Location"}));
- for(Integer id_loc : locations.keySet()){
- comboBox.addItem(locations.get(id_loc));
- }
-
-
- panel_button.add(comboBox);
-
- rigidArea = Box.createRigidArea(new Dimension(10, 0));
- panel_button.add(rigidArea);
-
- lblNewLabel_1 = new JLabel("");
- lblNewLabel_1.setIcon(new ImageIcon("res/submit.png"));
- panel_button.add(lblNewLabel_1);
- panel_button.add(btnSubmitQuestionnaire);
-
- panel_button.add(Box.createRigidArea(new Dimension(10,0)));
-
- lblNewLabel_2 = new JLabel("");
- lblNewLabel_2.setIcon(new ImageIcon("res/pdf.png"));
- panel_button.add(lblNewLabel_2);
- panel_button.add(btnResetQuestionnaire);
- panel_button.setPreferredSize(new Dimension(211, 35));
- panel_button.validate();
-
- JPanel panel_3 = new JPanel();
- GroupLayout gl_panel = new GroupLayout(panel);
- gl_panel.setHorizontalGroup(
- gl_panel.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(63)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addGap(103)
- .addComponent(panel_button, GroupLayout.DEFAULT_SIZE, 498, Short.MAX_VALUE)
- .addGap(241))
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(41)
- .addGroup(gl_panel.createParallelGroup(Alignment.TRAILING)
- .addComponent(jScrollPane4, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE)
- .addComponent(panel_1, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE))
- .addGap(32))
- );
- gl_panel.setVerticalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(22)
- .addComponent(panel_1, GroupLayout.PREFERRED_SIZE, 235, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addComponent(jScrollPane4, GroupLayout.DEFAULT_SIZE, 401, Short.MAX_VALUE)
- .addGap(26)
- .addGroup(gl_panel.createParallelGroup(Alignment.LEADING)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(panel_button, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE)))
- );
- panel_3.setLayout(new BoxLayout(panel_3, BoxLayout.X_AXIS));
-
-
- panel.setLayout(gl_panel);
-
-
-
-
-
-
- /////////////////////////////////////////////////////////
- // display the tests available
-
- // get the tests
- HashMap<String, ArrayList<TestName>> testsRelevantByGroup = connectorClientDB.getRelevantTestsByGroup();
- ArrayList<String> groups = new ArrayList<String>(testsRelevantByGroup.keySet());
-
- // flatten hashmap into linkedlist
-// tests = new LinkedList<>();
- testsByName = new HashMap<String, TestName>();
- for (String group : groups) {
-// tests.addAll(testsRelevantByGroup.get(group));
- for (TestName test : testsRelevantByGroup.get(group)) {
- testsByName.put(test.getName(), test);
- }
- }
-
- // define tree structure of the tests
- DefaultMutableTreeNode root = new DefaultMutableTreeNode("All");
-
- for (String group : groups) {
- DefaultMutableTreeNode child = new DefaultMutableTreeNode(group);
- root.add(child);
-
- for (TestName test : testsRelevantByGroup.get(group)) {
- DefaultMutableTreeNode grandChild = new DefaultMutableTreeNode(test.getName());
- child.add(grandChild);
- }
- }
-
- // define swing object
- jTree = new JTree(root);
-
- for(int i=0;i<jTree.getRowCount();i++){
- jTree.expandRow(i);
- }
-
- jScrollPane3.setViewportView(jTree);
-// jTree.addTreeSelectionListener(new TreeSelectionListener() {
-//
-// @Override
-// public void valueChanged(TreeSelectionEvent e) {
-// tp = jTree.getSelectionPaths();
-// }
-// });
- jScrollPane3.setViewportView(jTree);
-
- /////////////////////////////////////////////////////////
- // display the patients registered
-
- patients = connectorClientDB.getPatients();
- for (Integer patientId : patients) {
- jComboBox1.addItem(patientId.toString());
- }
-
- } catch (SQLException ex) {
- Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex);
- ex.printStackTrace();
-// } catch (IOException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
-// } catch (DocumentException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
- }
-
- }
-
- /**
- * 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() {
-
- jPanel1 = new javax.swing.JPanel();
- jLabel2 = new javax.swing.JLabel();
- jLabel1 = new javax.swing.JLabel();
- jPanel2 = new javax.swing.JPanel();
- jComboBox1 = new javax.swing.JComboBox<String>();
- jButton1 = new javax.swing.JButton();
- jButton1.setFont(new Font("Tahoma", Font.BOLD, 12));
- jLabel3 = new javax.swing.JLabel();
- jLabel4 = new javax.swing.JLabel();
- jScrollPane3 = new javax.swing.JScrollPane();
- jScrollPane2 = new javax.swing.JScrollPane();
- jMenuBar1 = new javax.swing.JMenuBar();
- jMenu1 = new javax.swing.JMenu();
- jMenuItem1 = new javax.swing.JMenuItem();
- jMenu2 = new javax.swing.JMenu();
- dialog = new JDialog();
- tabbedPane = new JTabbedPane(JTabbedPane.TOP);
-
- setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
- addWindowListener(new WindowAdapter() {
- @Override
- public void windowClosing(java.awt.event.WindowEvent windowEvent) {
- if (!survey_submitted && close_trials <= 2){
- JOptionPane.showMessageDialog(frame, "Before closing the application, please fill in and submit the questionnaire.");
- close_trials++;
- tabbedPane.setSelectedIndex(1);
- }else{
- System.exit(0);
- }
- }
- });
- setTitle("HIV Pharmacogenomics\n");
-
- jLabel2.setIcon(new javax.swing.ImageIcon("res/shcs_logo2_small.gif")); // NOI18N
-
- jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
- jLabel1.setText("HIV Pharmacogenomics | Project #693");
-
- javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
- jPanel1.setLayout(jPanel1Layout);
- jPanel1Layout.setHorizontalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap(71, Short.MAX_VALUE)
- .addComponent(jLabel1)
- .addGap(18, 18, 18)
- .addComponent(jLabel2))
- );
- jPanel1Layout.setVerticalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jLabel1)
- .addGap(11, 11, 11))
- .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)
- );
-
- jPanel2.setBackground(new java.awt.Color(255, 255, 255));
- jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
-
- jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<String>(new String[]{"Select Patient"}));
-
- jButton1.setText("Run Test");
- jButton1.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton1ActionPerformed(evt);
- }
- });
-
- JLabel lblNewLabel = new JLabel("");
- lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
- lblNewLabel.setIcon(new javax.swing.ImageIcon("res/gears.png"));
-
-
-
- javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
- jPanel2Layout.setHorizontalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addComponent(jComboBox1, 0, 248, Short.MAX_VALUE)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addGap(75)
- .addGroup(jPanel2Layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jButton1)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 75, GroupLayout.PREFERRED_SIZE))
- .addContainerGap(98, Short.MAX_VALUE))
- );
- jPanel2Layout.setVerticalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addComponent(jComboBox1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED, 223, Short.MAX_VALUE)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jButton1)
- .addGap(19))
- );
- jPanel2.setLayout(jPanel2Layout);
-
- jLabel3.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel3.setText("Select Patient");
-
- jLabel4.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel4.setText("Select Test");
-
- jScrollPane3.setBackground(new java.awt.Color(255, 255, 255));
-
- jMenu1.setText("File");
-
- jMenuItem1.setText("Exit");
- jMenu1.add(jMenuItem1);
-
- jMenuBar1.add(jMenu1);
-
- jMenu2.setText("Edit");
- jMenuBar1.add(jMenu2);
-
- setJMenuBar(jMenuBar1);
-
-
-
- javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
- layout.setHorizontalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(layout.createParallelGroup(Alignment.LEADING, false)
- .addComponent(jLabel3)
- .addComponent(jLabel4)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, 244, Short.MAX_VALUE)
- .addComponent(jScrollPane3))
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 970, Short.MAX_VALUE))
- .addContainerGap())
- );
- layout.setVerticalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel4))
- .addPreferredGap(ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addComponent(jScrollPane3, GroupLayout.PREFERRED_SIZE, 388, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jLabel3)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 785, Short.MAX_VALUE))
- .addContainerGap())
- );
-
-
- jScrollPane2.setAutoscrolls(true);
- jScrollPane3.setAutoscrolls(true);
- tabbedPane.addTab("Report", new ImageIcon("res/report_icon.gif"), jScrollPane2, null);
- tabbedPane.setBackgroundAt(0, new Color(255, 255, 255));
-
- panel = new JPanel();
- tabbedPane.addTab("Survey", new ImageIcon("res/survey_icon.png"), panel, null);
- tabbedPane.setBackgroundAt(1, new Color(255, 255, 255));
- tabbedPane.setEnabledAt(1, true);
-
- panel_1 = new JPanel();
- panel_1.setBorder(new SoftBevelBorder(BevelBorder.LOWERED, null, null, null, null));
- panel_1.setBackground(Color.WHITE);
-
- JLabel label = new JLabel("");
- label.setIcon(new ImageIcon("res/shcs_logo2_medium.gif"));
-
- lblDearDoctor = new JLabel("Dear Doctor,");
- lblDearDoctor.setFont(new Font("Tahoma", Font.BOLD, 14));
-
- JScrollPane scrollPane = new JScrollPane();
- scrollPane.setBorder(null);
- GroupLayout gl_panel_1 = new GroupLayout(panel_1);
- gl_panel_1.setHorizontalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(Alignment.LEADING, gl_panel_1.createSequentialGroup()
- .addGap(25)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addComponent(lblDearDoctor)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 661, Short.MAX_VALUE))
- .addContainerGap())
- );
- gl_panel_1.setVerticalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addContainerGap()
- .addComponent(lblDearDoctor)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 203, Short.MAX_VALUE))
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(36)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 96, GroupLayout.PREFERRED_SIZE)))
- .addContainerGap())
- );
-
- JTextPane txtpnTodayYouAre = new JTextPane();
- txtpnTodayYouAre.setBorder(null);
- txtpnTodayYouAre.setText("Today you are receiving a pharmacogenetics report based on the genome of your patient. Because of its highly sensitive nature, " +
- "the genetic information you are provided with is processed in a privacy-preserving way. In particular, to protect patients’ genomic privacy, " +
- "their genetic and clinical data is stored encrypted at the SHCS data center, and securely analyzed through a sophisticated algorithm designed and developed at EPFL [1, 2]. " +
- "The actual clinical and genetic information is never revealed. Only the authorized users, such as you, can get some processed information, for example, the final result of a " +
- "pharmacogenetics risk test.\nThis mechanism protects the data against insiders or hackers trying to illegally access patients’ medical information, while still allowing authorized " +
- "users to obtain the information they need." +
- "\n\nTo help us understanding the importance of genomic privacy in the medical domain, and the impact of privacy-enhancing technologies in daily clinical practice, please complete the following survey.");
- txtpnTodayYouAre.setFont(new Font("Tahoma", Font.PLAIN, 13));
- txtpnTodayYouAre.setEditable(false);
- txtpnTodayYouAre.setBackground(Color.WHITE);
- scrollPane.setViewportView(txtpnTodayYouAre);
- panel_1.setLayout(gl_panel_1);
- jScrollPane4 = new javax.swing.JScrollPane();
- getContentPane().setLayout(layout);
-
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
- ReplySurvey replySurvey = commHandlerAdapter.callServiceSurvey();
-
- map = replySurvey.getQuestions();
- ids = map.keySet();
- locations = replySurvey.getLocations();
-
- panel_2 = new JPanel();
- panel_2.setBackground(Color.WHITE);
- panel_2.setBorder(new BevelBorder(BevelBorder.LOWERED, null, null, null, null));
- jScrollPane4.setViewportView(panel_2);
- panel_2.setLayout(new BoxLayout(panel_2, BoxLayout.Y_AXIS));
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
-
-
- for(Integer id : ids){
- ButtonGroup group = new ButtonGroup();
- JRadioButton r1 = new JRadioButton("1"); r1.setActionCommand("1"); r1.setBackground(Color.WHITE);
- JRadioButton r2 = new JRadioButton("2"); r2.setActionCommand("2"); r2.setBackground(Color.WHITE);
- JRadioButton r3 = new JRadioButton("3"); r3.setActionCommand("3"); r3.setBackground(Color.WHITE);
- JRadioButton r4 = new JRadioButton("4"); r4.setActionCommand("4"); r4.setBackground(Color.WHITE);
- JRadioButton r5 = new JRadioButton("5"); r5.setActionCommand("5"); r5.setBackground(Color.WHITE);
- group.add(r1);
- group.add(r2);
- group.add(r3);
- group.add(r4);
- group.add(r5);
- JPanel radio_panel = new JPanel();
- radio_panel.setLayout((new BoxLayout(radio_panel, BoxLayout.X_AXIS)));
- radio_panel.setBackground(Color.WHITE);
- radio_panel.setAlignmentX(Component.CENTER_ALIGNMENT);
- radio_panel.add(r1);
- radio_panel.add(r2);
- radio_panel.add(r3);
- radio_panel.add(r4);
- radio_panel.add(r5);
- radio_panel.doLayout();
- radio_panel.setPreferredSize(radio_panel.getPreferredSize());
- JTextArea question = new JTextArea(id + ") " + map.get(id).getQuestion());
- question.setLineWrap(true);
- question.setWrapStyleWord(true);
- question.setAlignmentX(Component.CENTER_ALIGNMENT);
- question.setFont(new Font("Tahoma", Font.PLAIN, 13));
-
- JPanel row_panel = new JPanel();
- row_panel.setLayout(new BoxLayout(row_panel, BoxLayout.X_AXIS));
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.add(question);
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.add(radio_panel);
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.setBackground(Color.WHITE);
-
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- panel_2.add(row_panel);
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
-// panel_2.add(radio_panel);
- panel_2.add(new JSeparator());
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
-// panel_2.setPreferredSize(panel_2.getPreferredSize());
- buttonGroupMap.put(id, group);
-
- }
-
-
-
- this.setSize(new Dimension(1200, 865));
-// pack();
- }// </editor-fold>//GEN-END:initComponents
-
-
- private void submitButtonActionPerformed(java.awt.event.ActionEvent evt){
-
- try{
- answers = new HashMap<String, String>();
- StringBuilder sb = new StringBuilder();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- sb.append(q).append(",");
- sb.append(bg.getSelection().getActionCommand()).append(";");
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- String answer = sb.toString();
- Integer id_loc = null;
- for(Integer i: locations.keySet()){
- if(locations.get(i).equals(comboBox.getSelectedItem().toString()))
- id_loc = i;
- }
-
- String id_p;
- if(jComboBox1.getSelectedItem().toString().equals("Select Patient"))
- id_p = "0";
- else
- id_p = jComboBox1.getSelectedItem().toString();
-
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
-
- String reply = commHandlerAdapter.callServiceSurveyAnswer(answer, id_loc.toString(), id_p);
-
- if(reply.equals("1")){
- survey_submitted = true;
-
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Congrats! Your aswers have been sent to the SHCS datacenter.",
- "Information Message",
- JOptionPane.INFORMATION_MESSAGE);
- }
- else{
- throw new IOException();
- }
-
-
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "The SHCS datacenter does not respond. Please save the survey and send it to jean.raisaro@epfl.ch.",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
- private void savePDFButtonActionPerformed(java.awt.event.ActionEvent evt){
- try {
-
- answers = new HashMap<String, String>();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- JFileChooser chooser = new JFileChooser();
- // Note: source for ExampleFileFilter can be found in FileChooserDemo,
- // under the demo/jfc directory in the JDK.
-
- int returnVal = chooser.showSaveDialog(this);
- System.out.println(returnVal);
- if(returnVal == JFileChooser.APPROVE_OPTION) {
- System.out.println("You chose to open this file: " +
- chooser.getSelectedFile().getPath());
- quest = new Questionnaire(chooser.getSelectedFile().getPath() + ".pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }else{
- quest = new Questionnaire("outputPDF/survey.pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }
-
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (DocumentException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (NullPointerException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
-
- private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
-
- JPanel contentPanel = new JPanel();
-
- dialog.setBounds(100, 100, 410, 80);
- dialog.getContentPane().setLayout(new BorderLayout());
- contentPanel.setLayout(new FlowLayout());
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- dialog.getContentPane().add(contentPanel, BorderLayout.CENTER);
- {
- JLabel label = new JLabel("Please wait...The overall computation can take few seconds");
- label.setHorizontalAlignment(SwingConstants.CENTER);
- label.setFont(new Font("Tahoma", Font.PLAIN, 12));
- contentPanel.add(label);
- }
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
- dialog.getContentPane().add(buttonPane, BorderLayout.SOUTH);
- }
- dialog.setLocationRelativeTo(this);
- dialog.setVisible(true);
-
- GUIWorker gw = new GUIWorker(this, props);
- Thread t = new Thread(gw);
- t.start();
-
- }
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JButton jButton1;
- private javax.swing.JComboBox<String> jComboBox1;
- private javax.swing.JLabel jLabel1;
- private javax.swing.JLabel jLabel2;
- private javax.swing.JLabel jLabel3;
- private javax.swing.JLabel jLabel4;
- private javax.swing.JMenu jMenu1;
- private javax.swing.JMenu jMenu2;
- private javax.swing.JMenuBar jMenuBar1;
- private javax.swing.JMenuItem jMenuItem1;
- private javax.swing.JPanel jPanel1;
- private javax.swing.JPanel jPanel2;
- private javax.swing.JScrollPane jScrollPane3;
- private javax.swing.JTabbedPane tabbedPane;
- private javax.swing.JScrollPane jScrollPane2;
- private javax.swing.JScrollPane jScrollPane4;
- private JPanel panel;
- private JPanel panel_1;
- private JPanel panel_2;
- private JLabel lblDearDoctor;
- private JLabel lblNewLabel_1;
- private JLabel lblNewLabel_2;
- private JLabel lblNewLabel_3;
- private JComboBox<String> comboBox;
- private Component rigidArea;
-
- // End of variables declaration//GEN-END:variables
-
-
- class GUIWorker implements Runnable{
-
- private JFrame mainFrame;
- private ClientProperties props;
- private MedUnit mu;
-
- public GUIWorker(GUI gui, ClientProperties props) {
- mainFrame = gui;
-
- this.props = props;
- this.mu = new MedUnit(props, 0);
- }
-
- @Override
- public void run() {
-
- try{
- int patientId = Integer.parseInt((String) jComboBox1.getSelectedItem());
-
- // convert selected tests to test identifiers
- ArrayList<TestName> selectedTests = new ArrayList<TestName>();
- for (String currentName : getSelectedTests()) {
- TestName currentTest = testsByName.get(currentName);
-
- if (currentTest == null) {
- throw new IllegalStateException("Trying to run unknown test: " + currentTest);
- }
-
- selectedTests.add(currentTest);
- }
-
- // run tests
- Diagnostic diagnostic = mu.runTests(patientId, selectedTests);
-
- // warn for tests with missing material
- warnFailedTests(diagnostic, selectedTests);
-
- // create report
- mu.createReport(patientId, selectedTests, diagnostic);
-
- dialog.setVisible(false);
-
- // specify file you wish to open (JPedal handles getting the byte data)
- String filepathReport = props.getPathPDF() + patientId + ".pdf";
-
- // open generated PDF
- // object must be either String in full filepath, or
- // File object which can be relative
- Object[] input = new Object[]{ new File(filepathReport) };
- viewer.executeCommand(Commands.OPENFILE, input);
-
- // display CAD result as bar plot
- if (diagnostic.hasCAD()) {
- System.out.println("CAD = " + diagnostic.getResultCAD());
- BarPlotFrame frame = new BarPlotFrame(diagnostic.getResultCAD(), patientId);
- frame.setVisible(true);
- frame.setAlwaysOnTop(true);
- }
-
-
- } catch (SQLException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Please select a patient.");
- }
-
- }
-
- private void warnFailedTests(Diagnostic diagnostic, ArrayList<TestName> selectedTests) {
- ArrayList<Integer> failedTests = diagnostic.getInvalidTests();
-
- if (!failedTests.isEmpty()) {
- String msg = "Could not complete tests: ";
- boolean first = true;
- for (TestName testName : selectedTests) {
- if (failedTests.contains(testName.getId())) {
- if (first) {
- first = false;
- } else {
- msg += ", ";
- }
- msg += testName.getName();
- }
- }
- displayError(msg);
- }
-
- }
-
- private void displayError(String msg) {
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- mainFrame,
- msg,
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
-
- private ArrayList<String> getSelectedTests() {
- ArrayList<String> tests = new ArrayList<String>();
-
- for (TreePath treePath : jTree.getSelectionPaths()) {
- tests.addAll(getChildrenTests(jTree.getModel(), treePath.getLastPathComponent()));
- }
-
- return tests;
- }
-
- private ArrayList<String> getChildrenTests(TreeModel model, Object node) {
- ArrayList<String> tests = new ArrayList<String>();
-
- if (model.isLeaf(node)) { // leaf
- DefaultMutableTreeNode leaf = (DefaultMutableTreeNode) node;
- tests.add(leaf.toString());
- }
- else { // iterate over children
- for (int i = 0; i < model.getChildCount(node); i++) {
- tests.addAll(getChildrenTests(model, model.getChild(node, i)));
- }
- }
-
- return tests;
- }
-
- }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/32/a055cbbb4aac001410e2e30aa85db9d1 b/.metadata/.plugins/org.eclipse.core.resources/.history/32/a055cbbb4aac001410e2e30aa85db9d1
deleted file mode 100644
index f994d9b..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/32/a055cbbb4aac001410e2e30aa85db9d1
+++ /dev/null
@@ -1,886 +0,0 @@
-package ui;
-
-import io.ClientConnection;
-import io.CommAdapter;
-import io.Questionnaire;
-
-import java.awt.BorderLayout;
-import java.awt.Color;
-import java.awt.Component;
-import java.awt.Dimension;
-import java.awt.FlowLayout;
-import java.awt.Font;
-import java.awt.SystemColor;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.awt.event.WindowAdapter;
-import java.io.File;
-import java.io.IOException;
-import java.sql.SQLException;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.LinkedList;
-import java.util.Map;
-import java.util.Set;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
-import javax.swing.Box;
-import javax.swing.BoxLayout;
-import javax.swing.ButtonGroup;
-import javax.swing.DefaultComboBoxModel;
-import javax.swing.GroupLayout;
-import javax.swing.GroupLayout.Alignment;
-import javax.swing.ImageIcon;
-import javax.swing.JButton;
-import javax.swing.JComboBox;
-import javax.swing.JDialog;
-import javax.swing.JFileChooser;
-import javax.swing.JFrame;
-import javax.swing.JLabel;
-import javax.swing.JOptionPane;
-import javax.swing.JPanel;
-import javax.swing.JRadioButton;
-import javax.swing.JScrollPane;
-import javax.swing.JSeparator;
-import javax.swing.JTabbedPane;
-import javax.swing.JTextArea;
-import javax.swing.JTextPane;
-import javax.swing.JTree;
-import javax.swing.LayoutStyle.ComponentPlacement;
-import javax.swing.SwingConstants;
-import javax.swing.UIManager;
-import javax.swing.border.BevelBorder;
-import javax.swing.border.EmptyBorder;
-import javax.swing.border.EtchedBorder;
-import javax.swing.tree.DefaultMutableTreeNode;
-import javax.swing.tree.TreeModel;
-import javax.swing.tree.TreePath;
-
-import org.jpedal.examples.viewer.Commands;
-import org.jpedal.examples.viewer.Viewer;
-
-import utils.ClientProperties;
-
-import com.itextpdf.text.DocumentException;
-
-import database.DBconnectorClient;
-import framework.Diagnostic;
-import framework.MedUnit;
-import framework.Question;
-import framework.reply.ReplySurvey;
-import framework.test.TestName;
-
-/**
- *
- * @author youssef, raisaro
- */
-public class GUI extends javax.swing.JFrame {
-
- private static final Logger LOGGER = Logger.getLogger(GUI.class.getName());
-
- private static final long serialVersionUID = -4582280515597700650L;
-
- // configuration
- private ClientProperties props;
-
- private JTree jTree;
- private DBconnectorClient connectorClientDB;
- private LinkedList<Integer> patients;
-
- /** List of all relevant tests */
- private HashMap<String, TestName> testsByName;
- private Viewer viewer;
- private JDialog dialog;
- private JFrame frame;
- private boolean survey_submitted;
- private int close_trials;
- private Map<Integer, ButtonGroup> buttonGroupMap;
- private Questionnaire quest;
- private Map<Integer, Question> map;
- private Set<Integer> ids;
- private Map<String,String> answers;
- private Map<Integer, String> locations;
-
-
- /**
- * Creates new form GUI
- */
- public GUI(ClientProperties props){
-
- frame = this;
- this.props = props;
- this.connectorClientDB = new DBconnectorClient(props.getDbMsAccess());
- survey_submitted = false;
- close_trials = 0;
-
-
- try {
- initComponents();
-
- viewer = new Viewer(jScrollPane2, null);
- viewer.setupViewer();
-
- // create questionnare
-
-
- System.out.println("#of questions: " + ids.size());
-
-// viewer_q = new Viewer(jScrollPane4, null);
-// viewer_q.setupViewer();
-//
-// // specify file you wish to open (JPedal handles getting the byte data)
-// String filepathReport = "outputPDF/buttons_filled.pdf";
-//
-// // open generated PDF
-// // object must be either String in full filepath, or
-// // File object which can be relative
-// Object[] input = new Object[]{ new File(filepathReport) };
-// viewer_q.executeCommand(Commands.OPENFILE, input);
-
- JButton btnSubmitQuestionnaire = new JButton("Submit Questionnaire");
- btnSubmitQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- btnSubmitQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- submitButtonActionPerformed(arg0);
- }
- });
- JButton btnResetQuestionnaire = new JButton("Save as PDF");
- btnResetQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- savePDFButtonActionPerformed(arg0);
- }
- });
- btnResetQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- JPanel panel_button = new JPanel();
- panel_button.setLayout(new BoxLayout(panel_button, BoxLayout.X_AXIS));
-
- lblNewLabel_3 = new JLabel("");
- lblNewLabel_3.setIcon(new ImageIcon("res/location_icon.png"));
- panel_button.add(lblNewLabel_3);
-
-
-
- comboBox = new JComboBox<String>();
- comboBox.setFont(new Font("Tahoma", Font.BOLD, 12));
- comboBox.setModel(new DefaultComboBoxModel<String>(new String[] {"Select Location"}));
- for(Integer id_loc : locations.keySet()){
- comboBox.addItem(locations.get(id_loc));
- }
-
-
- panel_button.add(comboBox);
-
- rigidArea = Box.createRigidArea(new Dimension(10, 0));
- panel_button.add(rigidArea);
-
- lblNewLabel_1 = new JLabel("");
- lblNewLabel_1.setIcon(new ImageIcon("res/submit.png"));
- panel_button.add(lblNewLabel_1);
- panel_button.add(btnSubmitQuestionnaire);
-
- panel_button.add(Box.createRigidArea(new Dimension(10,0)));
-
- lblNewLabel_2 = new JLabel("");
- lblNewLabel_2.setIcon(new ImageIcon("res/pdf.png"));
- panel_button.add(lblNewLabel_2);
- panel_button.add(btnResetQuestionnaire);
- panel_button.setPreferredSize(new Dimension(211, 35));
- panel_button.validate();
-
- JPanel panel_3 = new JPanel();
- GroupLayout gl_panel = new GroupLayout(panel);
- gl_panel.setHorizontalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(41)
- .addGroup(gl_panel.createParallelGroup(Alignment.TRAILING)
- .addComponent(jScrollPane4, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE)
- .addComponent(panel_1, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE))
- .addGap(32))
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(63)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addGap(103)
- .addComponent(panel_button, GroupLayout.DEFAULT_SIZE, 488, Short.MAX_VALUE)
- .addGap(241))
- );
- gl_panel.setVerticalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(22)
- .addComponent(panel_1, GroupLayout.DEFAULT_SIZE, 192, Short.MAX_VALUE)
- .addGap(18)
- .addComponent(jScrollPane4, GroupLayout.DEFAULT_SIZE, 437, Short.MAX_VALUE)
- .addGap(26)
- .addGroup(gl_panel.createParallelGroup(Alignment.LEADING)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(panel_button, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE)))
- );
- panel_3.setLayout(new BoxLayout(panel_3, BoxLayout.X_AXIS));
-
-
- panel.setLayout(gl_panel);
-
-
-
-
-
-
- /////////////////////////////////////////////////////////
- // display the tests available
-
- // get the tests
- HashMap<String, ArrayList<TestName>> testsRelevantByGroup = connectorClientDB.getRelevantTestsByGroup();
- ArrayList<String> groups = new ArrayList<String>(testsRelevantByGroup.keySet());
-
- // flatten hashmap into linkedlist
-// tests = new LinkedList<>();
- testsByName = new HashMap<String, TestName>();
- for (String group : groups) {
-// tests.addAll(testsRelevantByGroup.get(group));
- for (TestName test : testsRelevantByGroup.get(group)) {
- testsByName.put(test.getName(), test);
- }
- }
-
- // define tree structure of the tests
- DefaultMutableTreeNode root = new DefaultMutableTreeNode("All");
-
- for (String group : groups) {
- DefaultMutableTreeNode child = new DefaultMutableTreeNode(group);
- root.add(child);
-
- for (TestName test : testsRelevantByGroup.get(group)) {
- DefaultMutableTreeNode grandChild = new DefaultMutableTreeNode(test.getName());
- child.add(grandChild);
- }
- }
-
- // define swing object
- jTree = new JTree(root);
-
- for(int i=0;i<jTree.getRowCount();i++){
- jTree.expandRow(i);
- }
-
- jScrollPane3.setViewportView(jTree);
-// jTree.addTreeSelectionListener(new TreeSelectionListener() {
-//
-// @Override
-// public void valueChanged(TreeSelectionEvent e) {
-// tp = jTree.getSelectionPaths();
-// }
-// });
- jScrollPane3.setViewportView(jTree);
-
- /////////////////////////////////////////////////////////
- // display the patients registered
-
- patients = connectorClientDB.getPatients();
- for (Integer patientId : patients) {
- jComboBox1.addItem(patientId.toString());
- }
-
- } catch (SQLException ex) {
- Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex);
- ex.printStackTrace();
-// } catch (IOException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
-// } catch (DocumentException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
- }
-
- }
-
- /**
- * 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() {
-
- jPanel1 = new javax.swing.JPanel();
- jLabel2 = new javax.swing.JLabel();
- jLabel1 = new javax.swing.JLabel();
- jPanel2 = new javax.swing.JPanel();
- jComboBox1 = new javax.swing.JComboBox<String>();
- jButton1 = new javax.swing.JButton();
- jButton1.setFont(new Font("Tahoma", Font.BOLD, 12));
- jLabel3 = new javax.swing.JLabel();
- jLabel4 = new javax.swing.JLabel();
- jScrollPane3 = new javax.swing.JScrollPane();
- jScrollPane2 = new javax.swing.JScrollPane();
- jMenuBar1 = new javax.swing.JMenuBar();
- jMenu1 = new javax.swing.JMenu();
- jMenuItem1 = new javax.swing.JMenuItem();
- jMenu2 = new javax.swing.JMenu();
- dialog = new JDialog();
- tabbedPane = new JTabbedPane(JTabbedPane.TOP);
-
- setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
- addWindowListener(new WindowAdapter() {
- @Override
- public void windowClosing(java.awt.event.WindowEvent windowEvent) {
- if (!survey_submitted && close_trials <= 2){
- JOptionPane.showMessageDialog(frame, "Before closing the application, please fill in and submit the questionnaire.");
- close_trials++;
- tabbedPane.setSelectedIndex(1);
- }else{
- System.exit(0);
- }
- }
- });
- setTitle("HIV Pharmacogenomics\n");
-
- jLabel2.setIcon(new javax.swing.ImageIcon("res/shcs_logo2_small.gif")); // NOI18N
-
- jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
- jLabel1.setText("HIV Pharmacogenomics | Project #693");
-
- javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
- jPanel1.setLayout(jPanel1Layout);
- jPanel1Layout.setHorizontalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap(71, Short.MAX_VALUE)
- .addComponent(jLabel1)
- .addGap(18, 18, 18)
- .addComponent(jLabel2))
- );
- jPanel1Layout.setVerticalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jLabel1)
- .addGap(11, 11, 11))
- .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)
- );
-
- jPanel2.setBackground(new java.awt.Color(255, 255, 255));
- jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
-
- jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<String>(new String[]{"Select Patient"}));
-
- jButton1.setText("Run Test");
- jButton1.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton1ActionPerformed(evt);
- }
- });
-
- JLabel lblNewLabel = new JLabel("");
- lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
- lblNewLabel.setIcon(new javax.swing.ImageIcon("res/gears.png"));
-
-
-
- javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
- jPanel2Layout.setHorizontalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addComponent(jComboBox1, 0, 248, Short.MAX_VALUE)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addGap(75)
- .addGroup(jPanel2Layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jButton1)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 75, GroupLayout.PREFERRED_SIZE))
- .addContainerGap(98, Short.MAX_VALUE))
- );
- jPanel2Layout.setVerticalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addComponent(jComboBox1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED, 223, Short.MAX_VALUE)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jButton1)
- .addGap(19))
- );
- jPanel2.setLayout(jPanel2Layout);
-
- jLabel3.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel3.setText("Select Patient");
-
- jLabel4.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel4.setText("Select Test");
-
- jScrollPane3.setBackground(new java.awt.Color(255, 255, 255));
-
- jMenu1.setText("File");
-
- jMenuItem1.setText("Exit");
- jMenu1.add(jMenuItem1);
-
- jMenuBar1.add(jMenu1);
-
- jMenu2.setText("Edit");
- jMenuBar1.add(jMenu2);
-
- setJMenuBar(jMenuBar1);
-
-
-
- javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
- layout.setHorizontalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(layout.createParallelGroup(Alignment.LEADING, false)
- .addComponent(jLabel3)
- .addComponent(jLabel4)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, 244, Short.MAX_VALUE)
- .addComponent(jScrollPane3))
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 970, Short.MAX_VALUE))
- .addContainerGap())
- );
- layout.setVerticalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel4))
- .addPreferredGap(ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addComponent(jScrollPane3, GroupLayout.PREFERRED_SIZE, 388, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jLabel3)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 785, Short.MAX_VALUE))
- .addContainerGap())
- );
-
-
- jScrollPane2.setAutoscrolls(true);
- jScrollPane3.setAutoscrolls(true);
- tabbedPane.addTab("Report", new ImageIcon("res/report_icon.gif"), jScrollPane2, null);
- tabbedPane.setBackgroundAt(0, new Color(255, 255, 255));
-
- panel = new JPanel();
- tabbedPane.addTab("Survey", new ImageIcon("res/survey_icon.png"), panel, null);
- tabbedPane.setBackgroundAt(1, new Color(255, 255, 255));
- tabbedPane.setEnabledAt(1, true);
-
- panel_1 = new JPanel();
- panel_1.setBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null));
- panel_1.setBackground(UIManager.getColor("Button.background"));
-
- JLabel label = new JLabel("");
- label.setIcon(new ImageIcon("res/shcs_logo2_medium.gif"));
-
- lblDearDoctor = new JLabel("Dear Doctor,");
- lblDearDoctor.setFont(new Font("Tahoma", Font.BOLD, 14));
-
- JScrollPane scrollPane = new JScrollPane();
- scrollPane.setBorder(null);
- GroupLayout gl_panel_1 = new GroupLayout(panel_1);
- gl_panel_1.setHorizontalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(25)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 666, Short.MAX_VALUE)
- .addComponent(lblDearDoctor))
- .addContainerGap())
- );
- gl_panel_1.setVerticalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(22)
- .addComponent(lblDearDoctor)
- .addGap(18)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 120, Short.MAX_VALUE)
- .addContainerGap())
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(36)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 96, GroupLayout.PREFERRED_SIZE)
- .addContainerGap(56, Short.MAX_VALUE))
- );
-
- JTextPane txtpnTodayYouAre = new JTextPane();
- txtpnTodayYouAre.setBorder(null);
- txtpnTodayYouAre.setText("Today you are receiving a pharmacogenetic report based on the genetic information of your patient. Because the human genome contains extremely private and sensitive information of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier, it must be managed with care.\r\nToday you are receiving a pharmacogenetic report based on the genetic information of your patient. Because the human genome contains extremely private and sensitive information of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier, it must be managed with care.\r\nToday you are receiving a pharmacogenetic report based on the genetic information of your patient. Because the human genome contains extremely private and sensitive information of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier, it must be managed with care.");
- txtpnTodayYouAre.setFont(new Font("Tahoma", Font.PLAIN, 13));
- txtpnTodayYouAre.setEditable(false);
- txtpnTodayYouAre.setBackground(SystemColor.menu);
- scrollPane.setViewportView(txtpnTodayYouAre);
- panel_1.setLayout(gl_panel_1);
- jScrollPane4 = new javax.swing.JScrollPane();
- getContentPane().setLayout(layout);
-
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
- ReplySurvey replySurvey = commHandlerAdapter.callServiceSurvey();
-
- map = replySurvey.getQuestions();
- ids = map.keySet();
- locations = replySurvey.getLocations();
-
- panel_2 = new JPanel();
- panel_2.setBackground(Color.WHITE);
- panel_2.setBorder(new BevelBorder(BevelBorder.LOWERED, null, null, null, null));
- jScrollPane4.setViewportView(panel_2);
- panel_2.setLayout(new BoxLayout(panel_2, BoxLayout.Y_AXIS));
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
-
-
- for(Integer id : ids){
- ButtonGroup group = new ButtonGroup();
- JRadioButton r1 = new JRadioButton("1"); r1.setActionCommand("1"); r1.setBackground(Color.WHITE);
- JRadioButton r2 = new JRadioButton("2"); r2.setActionCommand("2"); r2.setBackground(Color.WHITE);
- JRadioButton r3 = new JRadioButton("3"); r3.setActionCommand("3"); r3.setBackground(Color.WHITE);
- JRadioButton r4 = new JRadioButton("4"); r4.setActionCommand("4"); r4.setBackground(Color.WHITE);
- JRadioButton r5 = new JRadioButton("5"); r5.setActionCommand("5"); r5.setBackground(Color.WHITE);
- group.add(r1);
- group.add(r2);
- group.add(r3);
- group.add(r4);
- group.add(r5);
- JPanel radio_panel = new JPanel();
- radio_panel.setLayout((new BoxLayout(radio_panel, BoxLayout.X_AXIS)));
- radio_panel.setBackground(Color.WHITE);
- radio_panel.setAlignmentX(Component.CENTER_ALIGNMENT);
- radio_panel.add(r1);
- radio_panel.add(r2);
- radio_panel.add(r3);
- radio_panel.add(r4);
- radio_panel.add(r5);
- radio_panel.doLayout();
- radio_panel.setPreferredSize(radio_panel.getPreferredSize());
- JTextArea question = new JTextArea(id + ") " + map.get(id).getQuestion());
- question.setLineWrap(true);
- question.setWrapStyleWord(true);
- question.setAlignmentX(Component.CENTER_ALIGNMENT);
- question.setFont(new Font("Tahoma", Font.PLAIN, 13));
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- panel_2.add(question);
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- panel_2.add(radio_panel);
- panel_2.add(new JSeparator());
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- buttonGroupMap.put(id, group);
-
- }
-
-
-
- this.setSize(new Dimension(1200, 865));
-// pack();
- }// </editor-fold>//GEN-END:initComponents
-
-
- private void submitButtonActionPerformed(java.awt.event.ActionEvent evt){
-
- try{
- answers = new HashMap<String, String>();
- StringBuilder sb = new StringBuilder();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- sb.append(q).append(",");
- sb.append(bg.getSelection().getActionCommand()).append(";");
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- String answer = sb.toString();
- Integer id_loc = null;
- for(Integer i: locations.keySet()){
- if(locations.get(i).equals(comboBox.getSelectedItem().toString()))
- id_loc = i;
- }
-
- String id_p;
- if(jComboBox1.getSelectedItem().toString().equals("Select Patient"))
- id_p = "0";
- else
- id_p = jComboBox1.getSelectedItem().toString();
-
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
-
- String reply = commHandlerAdapter.callServiceSurveyAnswer(answer, id_loc.toString(), id_p);
-
- if(reply.equals("1")){
- survey_submitted = true;
-
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Congrats! Your aswers have been sent to the SHCS datacenter.",
- "Information Message",
- JOptionPane.INFORMATION_MESSAGE);
- }
- else{
- throw new IOException();
- }
-
-
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "The SHCS datacenter does not respond. Please save the survey and send it to jean.raisaro@epfl.ch.",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
- private void savePDFButtonActionPerformed(java.awt.event.ActionEvent evt){
- try {
-
- answers = new HashMap<String, String>();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- JFileChooser chooser = new JFileChooser();
- // Note: source for ExampleFileFilter can be found in FileChooserDemo,
- // under the demo/jfc directory in the JDK.
-
- int returnVal = chooser.showSaveDialog(this);
- System.out.println(returnVal);
- if(returnVal == JFileChooser.APPROVE_OPTION) {
- System.out.println("You chose to open this file: " +
- chooser.getSelectedFile().getPath());
- quest = new Questionnaire(chooser.getSelectedFile().getPath() + ".pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }else{
- quest = new Questionnaire("outputPDF/survey.pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }
-
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (DocumentException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (NullPointerException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
-
- private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
-
- JPanel contentPanel = new JPanel();
-
- dialog.setBounds(100, 100, 410, 80);
- dialog.getContentPane().setLayout(new BorderLayout());
- contentPanel.setLayout(new FlowLayout());
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- dialog.getContentPane().add(contentPanel, BorderLayout.CENTER);
- {
- JLabel label = new JLabel("Please wait...The overall computation can take few seconds");
- label.setHorizontalAlignment(SwingConstants.CENTER);
- label.setFont(new Font("Tahoma", Font.PLAIN, 12));
- contentPanel.add(label);
- }
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
- dialog.getContentPane().add(buttonPane, BorderLayout.SOUTH);
- }
- dialog.setLocationRelativeTo(this);
- dialog.setVisible(true);
-
- GUIWorker gw = new GUIWorker(this, props);
- Thread t = new Thread(gw);
- t.start();
-
- }
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JButton jButton1;
- private javax.swing.JComboBox<String> jComboBox1;
- private javax.swing.JLabel jLabel1;
- private javax.swing.JLabel jLabel2;
- private javax.swing.JLabel jLabel3;
- private javax.swing.JLabel jLabel4;
- private javax.swing.JMenu jMenu1;
- private javax.swing.JMenu jMenu2;
- private javax.swing.JMenuBar jMenuBar1;
- private javax.swing.JMenuItem jMenuItem1;
- private javax.swing.JPanel jPanel1;
- private javax.swing.JPanel jPanel2;
- private javax.swing.JScrollPane jScrollPane3;
- private javax.swing.JTabbedPane tabbedPane;
- private javax.swing.JScrollPane jScrollPane2;
- private javax.swing.JScrollPane jScrollPane4;
- private JPanel panel;
- private JPanel panel_1;
- private JPanel panel_2;
- private JLabel lblDearDoctor;
- private JLabel lblNewLabel_1;
- private JLabel lblNewLabel_2;
- private JLabel lblNewLabel_3;
- private JComboBox<String> comboBox;
- private Component rigidArea;
-
- // End of variables declaration//GEN-END:variables
-
-
- class GUIWorker implements Runnable{
-
- private JFrame mainFrame;
- private ClientProperties props;
- private MedUnit mu;
-
- public GUIWorker(GUI gui, ClientProperties props) {
- mainFrame = gui;
-
- this.props = props;
- this.mu = new MedUnit(props, 0);
- }
-
- @Override
- public void run() {
-
- try{
- int patientId = Integer.parseInt((String) jComboBox1.getSelectedItem());
-
- // convert selected tests to test identifiers
- ArrayList<TestName> selectedTests = new ArrayList<TestName>();
- for (String currentName : getSelectedTests()) {
- TestName currentTest = testsByName.get(currentName);
-
- if (currentTest == null) {
- throw new IllegalStateException("Trying to run unknown test: " + currentTest);
- }
-
- selectedTests.add(currentTest);
- }
-
- // run tests
- Diagnostic diagnostic = mu.runTests(patientId, selectedTests);
-
- // warn for tests with missing material
- warnFailedTests(diagnostic, selectedTests);
-
- // create report
- mu.createReport(patientId, selectedTests, diagnostic);
-
- dialog.setVisible(false);
-
- // specify file you wish to open (JPedal handles getting the byte data)
- String filepathReport = props.getPathPDF() + patientId + ".pdf";
-
- // open generated PDF
- // object must be either String in full filepath, or
- // File object which can be relative
- Object[] input = new Object[]{ new File(filepathReport) };
- viewer.executeCommand(Commands.OPENFILE, input);
-
- // display CAD result as bar plot
- if (diagnostic.hasCAD()) {
- System.out.println("CAD = " + diagnostic.getResultCAD());
- BarPlotFrame frame = new BarPlotFrame(diagnostic.getResultCAD(), patientId);
- frame.setVisible(true);
- frame.setAlwaysOnTop(true);
- }
-
-
- } catch (SQLException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Please select a patient.");
- }
-
- }
-
- private void warnFailedTests(Diagnostic diagnostic, ArrayList<TestName> selectedTests) {
- ArrayList<Integer> failedTests = diagnostic.getInvalidTests();
-
- if (!failedTests.isEmpty()) {
- String msg = "Could not complete tests: ";
- boolean first = true;
- for (TestName testName : selectedTests) {
- if (failedTests.contains(testName.getId())) {
- if (first) {
- first = false;
- } else {
- msg += ", ";
- }
- msg += testName.getName();
- }
- }
- displayError(msg);
- }
-
- }
-
- private void displayError(String msg) {
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- mainFrame,
- msg,
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
-
- private ArrayList<String> getSelectedTests() {
- ArrayList<String> tests = new ArrayList<String>();
-
- for (TreePath treePath : jTree.getSelectionPaths()) {
- tests.addAll(getChildrenTests(jTree.getModel(), treePath.getLastPathComponent()));
- }
-
- return tests;
- }
-
- private ArrayList<String> getChildrenTests(TreeModel model, Object node) {
- ArrayList<String> tests = new ArrayList<String>();
-
- if (model.isLeaf(node)) { // leaf
- DefaultMutableTreeNode leaf = (DefaultMutableTreeNode) node;
- tests.add(leaf.toString());
- }
- else { // iterate over children
- for (int i = 0; i < model.getChildCount(node); i++) {
- tests.addAll(getChildrenTests(model, model.getChild(node, i)));
- }
- }
-
- return tests;
- }
-
- }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/33/b0dae24753ac001410e2e30aa85db9d1 b/.metadata/.plugins/org.eclipse.core.resources/.history/33/b0dae24753ac001410e2e30aa85db9d1
deleted file mode 100644
index 29b067e..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/33/b0dae24753ac001410e2e30aa85db9d1
+++ /dev/null
@@ -1,908 +0,0 @@
-package ui;
-
-import io.ClientConnection;
-import io.CommAdapter;
-import io.Questionnaire;
-
-import java.awt.BorderLayout;
-import java.awt.Color;
-import java.awt.Component;
-import java.awt.Dimension;
-import java.awt.FlowLayout;
-import java.awt.Font;
-import java.awt.SystemColor;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.awt.event.WindowAdapter;
-import java.io.File;
-import java.io.IOException;
-import java.sql.SQLException;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.LinkedList;
-import java.util.Map;
-import java.util.Set;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
-import javax.swing.Box;
-import javax.swing.BoxLayout;
-import javax.swing.ButtonGroup;
-import javax.swing.DefaultComboBoxModel;
-import javax.swing.GroupLayout;
-import javax.swing.GroupLayout.Alignment;
-import javax.swing.ImageIcon;
-import javax.swing.JButton;
-import javax.swing.JComboBox;
-import javax.swing.JDialog;
-import javax.swing.JFileChooser;
-import javax.swing.JFrame;
-import javax.swing.JLabel;
-import javax.swing.JOptionPane;
-import javax.swing.JPanel;
-import javax.swing.JRadioButton;
-import javax.swing.JScrollPane;
-import javax.swing.JSeparator;
-import javax.swing.JTabbedPane;
-import javax.swing.JTextArea;
-import javax.swing.JTextPane;
-import javax.swing.JTree;
-import javax.swing.LayoutStyle.ComponentPlacement;
-import javax.swing.SwingConstants;
-import javax.swing.UIManager;
-import javax.swing.border.BevelBorder;
-import javax.swing.border.EmptyBorder;
-import javax.swing.border.EtchedBorder;
-import javax.swing.tree.DefaultMutableTreeNode;
-import javax.swing.tree.TreeModel;
-import javax.swing.tree.TreePath;
-
-import org.jpedal.examples.viewer.Commands;
-import org.jpedal.examples.viewer.Viewer;
-
-import utils.ClientProperties;
-
-import com.itextpdf.text.DocumentException;
-
-import database.DBconnectorClient;
-import framework.Diagnostic;
-import framework.MedUnit;
-import framework.Question;
-import framework.reply.ReplySurvey;
-import framework.test.TestName;
-import javax.swing.border.SoftBevelBorder;
-import javax.swing.border.LineBorder;
-
-/**
- *
- * @author youssef, raisaro
- */
-public class GUI extends javax.swing.JFrame {
-
- private static final Logger LOGGER = Logger.getLogger(GUI.class.getName());
-
- private static final long serialVersionUID = -4582280515597700650L;
-
- // configuration
- private ClientProperties props;
-
- private JTree jTree;
- private DBconnectorClient connectorClientDB;
- private LinkedList<Integer> patients;
-
- /** List of all relevant tests */
- private HashMap<String, TestName> testsByName;
- private Viewer viewer;
- private JDialog dialog;
- private JFrame frame;
- private boolean survey_submitted;
- private int close_trials;
- private Map<Integer, ButtonGroup> buttonGroupMap;
- private Questionnaire quest;
- private Map<Integer, Question> map;
- private Set<Integer> ids;
- private Map<String,String> answers;
- private Map<Integer, String> locations;
-
-
- /**
- * Creates new form GUI
- */
- public GUI(ClientProperties props){
-
- frame = this;
- this.props = props;
- this.connectorClientDB = new DBconnectorClient(props.getDbMsAccess());
- survey_submitted = false;
- close_trials = 0;
-
-
- try {
- initComponents();
-
- viewer = new Viewer(jScrollPane2, null);
- viewer.setupViewer();
-
- // create questionnare
-
-
- System.out.println("#of questions: " + ids.size());
-
-// viewer_q = new Viewer(jScrollPane4, null);
-// viewer_q.setupViewer();
-//
-// // specify file you wish to open (JPedal handles getting the byte data)
-// String filepathReport = "outputPDF/buttons_filled.pdf";
-//
-// // open generated PDF
-// // object must be either String in full filepath, or
-// // File object which can be relative
-// Object[] input = new Object[]{ new File(filepathReport) };
-// viewer_q.executeCommand(Commands.OPENFILE, input);
-
- JButton btnSubmitQuestionnaire = new JButton("Submit Questionnaire");
- btnSubmitQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- btnSubmitQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- submitButtonActionPerformed(arg0);
- }
- });
- JButton btnResetQuestionnaire = new JButton("Save as PDF");
- btnResetQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- savePDFButtonActionPerformed(arg0);
- }
- });
- btnResetQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- JPanel panel_button = new JPanel();
- panel_button.setLayout(new BoxLayout(panel_button, BoxLayout.X_AXIS));
-
- lblNewLabel_3 = new JLabel("");
- lblNewLabel_3.setIcon(new ImageIcon("res/location_icon.png"));
- panel_button.add(lblNewLabel_3);
-
-
-
- comboBox = new JComboBox<String>();
- comboBox.setFont(new Font("Tahoma", Font.BOLD, 12));
- comboBox.setModel(new DefaultComboBoxModel<String>(new String[] {"Select Location"}));
- for(Integer id_loc : locations.keySet()){
- comboBox.addItem(locations.get(id_loc));
- }
-
-
- panel_button.add(comboBox);
-
- rigidArea = Box.createRigidArea(new Dimension(10, 0));
- panel_button.add(rigidArea);
-
- lblNewLabel_1 = new JLabel("");
- lblNewLabel_1.setIcon(new ImageIcon("res/submit.png"));
- panel_button.add(lblNewLabel_1);
- panel_button.add(btnSubmitQuestionnaire);
-
- panel_button.add(Box.createRigidArea(new Dimension(10,0)));
-
- lblNewLabel_2 = new JLabel("");
- lblNewLabel_2.setIcon(new ImageIcon("res/pdf.png"));
- panel_button.add(lblNewLabel_2);
- panel_button.add(btnResetQuestionnaire);
- panel_button.setPreferredSize(new Dimension(211, 35));
- panel_button.validate();
-
- JPanel panel_3 = new JPanel();
- GroupLayout gl_panel = new GroupLayout(panel);
- gl_panel.setHorizontalGroup(
- gl_panel.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(63)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addGap(103)
- .addComponent(panel_button, GroupLayout.DEFAULT_SIZE, 498, Short.MAX_VALUE)
- .addGap(241))
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(41)
- .addGroup(gl_panel.createParallelGroup(Alignment.TRAILING)
- .addComponent(jScrollPane4, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE)
- .addComponent(panel_1, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE))
- .addGap(32))
- );
- gl_panel.setVerticalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(22)
- .addComponent(panel_1, GroupLayout.PREFERRED_SIZE, 235, GroupLayout.PREFERRED_SIZE)
- .addGap(37)
- .addComponent(jScrollPane4, GroupLayout.DEFAULT_SIZE, 379, Short.MAX_VALUE)
- .addGap(26)
- .addGroup(gl_panel.createParallelGroup(Alignment.LEADING)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(panel_button, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE)))
- );
- panel_3.setLayout(new BoxLayout(panel_3, BoxLayout.X_AXIS));
-
-
- panel.setLayout(gl_panel);
-
-
-
-
-
-
- /////////////////////////////////////////////////////////
- // display the tests available
-
- // get the tests
- HashMap<String, ArrayList<TestName>> testsRelevantByGroup = connectorClientDB.getRelevantTestsByGroup();
- ArrayList<String> groups = new ArrayList<String>(testsRelevantByGroup.keySet());
-
- // flatten hashmap into linkedlist
-// tests = new LinkedList<>();
- testsByName = new HashMap<String, TestName>();
- for (String group : groups) {
-// tests.addAll(testsRelevantByGroup.get(group));
- for (TestName test : testsRelevantByGroup.get(group)) {
- testsByName.put(test.getName(), test);
- }
- }
-
- // define tree structure of the tests
- DefaultMutableTreeNode root = new DefaultMutableTreeNode("All");
-
- for (String group : groups) {
- DefaultMutableTreeNode child = new DefaultMutableTreeNode(group);
- root.add(child);
-
- for (TestName test : testsRelevantByGroup.get(group)) {
- DefaultMutableTreeNode grandChild = new DefaultMutableTreeNode(test.getName());
- child.add(grandChild);
- }
- }
-
- // define swing object
- jTree = new JTree(root);
-
- for(int i=0;i<jTree.getRowCount();i++){
- jTree.expandRow(i);
- }
-
- jScrollPane3.setViewportView(jTree);
-// jTree.addTreeSelectionListener(new TreeSelectionListener() {
-//
-// @Override
-// public void valueChanged(TreeSelectionEvent e) {
-// tp = jTree.getSelectionPaths();
-// }
-// });
- jScrollPane3.setViewportView(jTree);
-
- /////////////////////////////////////////////////////////
- // display the patients registered
-
- patients = connectorClientDB.getPatients();
- for (Integer patientId : patients) {
- jComboBox1.addItem(patientId.toString());
- }
-
- } catch (SQLException ex) {
- Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex);
- ex.printStackTrace();
-// } catch (IOException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
-// } catch (DocumentException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
- }
-
- }
-
- /**
- * 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() {
-
- jPanel1 = new javax.swing.JPanel();
- jLabel2 = new javax.swing.JLabel();
- jLabel1 = new javax.swing.JLabel();
- jPanel2 = new javax.swing.JPanel();
- jComboBox1 = new javax.swing.JComboBox<String>();
- jButton1 = new javax.swing.JButton();
- jButton1.setFont(new Font("Tahoma", Font.BOLD, 12));
- jLabel3 = new javax.swing.JLabel();
- jLabel4 = new javax.swing.JLabel();
- jScrollPane3 = new javax.swing.JScrollPane();
- jScrollPane2 = new javax.swing.JScrollPane();
- jMenuBar1 = new javax.swing.JMenuBar();
- jMenu1 = new javax.swing.JMenu();
- jMenuItem1 = new javax.swing.JMenuItem();
- jMenu2 = new javax.swing.JMenu();
- dialog = new JDialog();
- tabbedPane = new JTabbedPane(JTabbedPane.TOP);
-
- setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
- addWindowListener(new WindowAdapter() {
- @Override
- public void windowClosing(java.awt.event.WindowEvent windowEvent) {
- if (!survey_submitted && close_trials <= 2){
- JOptionPane.showMessageDialog(frame, "Before closing the application, please fill in and submit the questionnaire.");
- close_trials++;
- tabbedPane.setSelectedIndex(1);
- }else{
- System.exit(0);
- }
- }
- });
- setTitle("HIV Pharmacogenomics\n");
-
- jLabel2.setIcon(new javax.swing.ImageIcon("res/shcs_logo2_small.gif")); // NOI18N
-
- jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
- jLabel1.setText("HIV Pharmacogenomics | Project #693");
-
- javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
- jPanel1.setLayout(jPanel1Layout);
- jPanel1Layout.setHorizontalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap(71, Short.MAX_VALUE)
- .addComponent(jLabel1)
- .addGap(18, 18, 18)
- .addComponent(jLabel2))
- );
- jPanel1Layout.setVerticalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jLabel1)
- .addGap(11, 11, 11))
- .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)
- );
-
- jPanel2.setBackground(new java.awt.Color(255, 255, 255));
- jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
-
- jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<String>(new String[]{"Select Patient"}));
-
- jButton1.setText("Run Test");
- jButton1.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton1ActionPerformed(evt);
- }
- });
-
- JLabel lblNewLabel = new JLabel("");
- lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
- lblNewLabel.setIcon(new javax.swing.ImageIcon("res/gears.png"));
-
-
-
- javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
- jPanel2Layout.setHorizontalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addComponent(jComboBox1, 0, 248, Short.MAX_VALUE)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addGap(75)
- .addGroup(jPanel2Layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jButton1)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 75, GroupLayout.PREFERRED_SIZE))
- .addContainerGap(98, Short.MAX_VALUE))
- );
- jPanel2Layout.setVerticalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addComponent(jComboBox1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED, 223, Short.MAX_VALUE)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jButton1)
- .addGap(19))
- );
- jPanel2.setLayout(jPanel2Layout);
-
- jLabel3.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel3.setText("Select Patient");
-
- jLabel4.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel4.setText("Select Test");
-
- jScrollPane3.setBackground(new java.awt.Color(255, 255, 255));
-
- jMenu1.setText("File");
-
- jMenuItem1.setText("Exit");
- jMenu1.add(jMenuItem1);
-
- jMenuBar1.add(jMenu1);
-
- jMenu2.setText("Edit");
- jMenuBar1.add(jMenu2);
-
- setJMenuBar(jMenuBar1);
-
-
-
- javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
- layout.setHorizontalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(layout.createParallelGroup(Alignment.LEADING, false)
- .addComponent(jLabel3)
- .addComponent(jLabel4)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, 244, Short.MAX_VALUE)
- .addComponent(jScrollPane3))
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 970, Short.MAX_VALUE))
- .addContainerGap())
- );
- layout.setVerticalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel4))
- .addPreferredGap(ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addComponent(jScrollPane3, GroupLayout.PREFERRED_SIZE, 388, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jLabel3)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 785, Short.MAX_VALUE))
- .addContainerGap())
- );
-
-
- jScrollPane2.setAutoscrolls(true);
- jScrollPane3.setAutoscrolls(true);
- tabbedPane.addTab("Report", new ImageIcon("res/report_icon.gif"), jScrollPane2, null);
- tabbedPane.setBackgroundAt(0, new Color(255, 255, 255));
-
- panel = new JPanel();
- tabbedPane.addTab("Survey", new ImageIcon("res/survey_icon.png"), panel, null);
- tabbedPane.setBackgroundAt(1, new Color(255, 255, 255));
- tabbedPane.setEnabledAt(1, true);
-
- panel_1 = new JPanel();
- panel_1.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
- panel_1.setBackground(SystemColor.control);
-
- JLabel label = new JLabel("");
- label.setIcon(new ImageIcon("res/shcs_logo2_medium.gif"));
-
- lblDearDoctor = new JLabel("Dear Doctor,");
- lblDearDoctor.setFont(new Font("Tahoma", Font.BOLD, 14));
-
- JScrollPane scrollPane = new JScrollPane();
- scrollPane.setBorder(null);
- GroupLayout gl_panel_1 = new GroupLayout(panel_1);
- gl_panel_1.setHorizontalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(Alignment.LEADING, gl_panel_1.createSequentialGroup()
- .addGap(25)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addComponent(lblDearDoctor)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 661, Short.MAX_VALUE))
- .addContainerGap())
- );
- gl_panel_1.setVerticalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addContainerGap()
- .addComponent(lblDearDoctor)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 203, Short.MAX_VALUE))
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(36)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 96, GroupLayout.PREFERRED_SIZE)))
- .addContainerGap())
- );
-
- JTextPane txtpnTodayYouAre = new JTextPane();
- txtpnTodayYouAre.setBorder(null);
- txtpnTodayYouAre.setText("Today you are receiving a pharmacogenetics report based on the genome of your patient. Because of its highly sensitive nature, " +
- "the genetic information you are provided with is processed in a privacy-preserving way. In particular, to protect patients’ genomic privacy, " +
- "their genetic and clinical data is stored encrypted at the SHCS data center, and securely analyzed through a sophisticated algorithm designed and developed at EPFL [1, 2]. " +
- "The actual clinical and genetic information is never revealed. Only the authorized users, such as you, can get some processed information, for example, the final result of a " +
- "pharmacogenetics risk test.\nThis mechanism protects the data against insiders or hackers trying to illegally access patients’ medical information, while still allowing authorized " +
- "users to obtain the information they need." +
- "\n\nTo help us understanding the importance of genomic privacy in the medical domain, and the impact of privacy-enhancing technologies in daily clinical practice, please complete the following survey.");
- txtpnTodayYouAre.setFont(new Font("Tahoma", Font.PLAIN, 13));
- txtpnTodayYouAre.setEditable(false);
- txtpnTodayYouAre.setBackground(SystemColor.control);
- scrollPane.setViewportView(txtpnTodayYouAre);
- panel_1.setLayout(gl_panel_1);
- jScrollPane4 = new javax.swing.JScrollPane();
- jScrollPane4.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
- getContentPane().setLayout(layout);
-
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
- ReplySurvey replySurvey = commHandlerAdapter.callServiceSurvey();
-
- map = replySurvey.getQuestions();
- ids = map.keySet();
- locations = replySurvey.getLocations();
-
- panel_2 = new JPanel();
- panel_2.setBackground(Color.WHITE);
- panel_2.setBorder(null);
- jScrollPane4.setViewportView(panel_2);
- panel_2.setLayout(new BoxLayout(panel_2, BoxLayout.Y_AXIS));
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
-
-
- for(Integer id : ids){
- ButtonGroup group = new ButtonGroup();
- JRadioButton r1 = new JRadioButton("1"); r1.setActionCommand("1"); r1.setBackground(Color.WHITE);
- JRadioButton r2 = new JRadioButton("2"); r2.setActionCommand("2"); r2.setBackground(Color.WHITE);
- JRadioButton r3 = new JRadioButton("3"); r3.setActionCommand("3"); r3.setBackground(Color.WHITE);
- JRadioButton r4 = new JRadioButton("4"); r4.setActionCommand("4"); r4.setBackground(Color.WHITE);
- JRadioButton r5 = new JRadioButton("5"); r5.setActionCommand("5"); r5.setBackground(Color.WHITE);
- group.add(r1);
- group.add(r2);
- group.add(r3);
- group.add(r4);
- group.add(r5);
- JPanel radio_panel = new JPanel();
- radio_panel.setLayout((new BoxLayout(radio_panel, BoxLayout.X_AXIS)));
- radio_panel.setBackground(Color.WHITE);
- radio_panel.setAlignmentX(Component.CENTER_ALIGNMENT);
- radio_panel.add(r1);
- radio_panel.add(r2);
- radio_panel.add(r3);
- radio_panel.add(r4);
- radio_panel.add(r5);
- radio_panel.doLayout();
- radio_panel.setPreferredSize(radio_panel.getPreferredSize());
- JTextArea question = new JTextArea(id + ") " + map.get(id).getQuestion());
- question.setLineWrap(true);
- question.setWrapStyleWord(true);
- question.setAlignmentX(Component.CENTER_ALIGNMENT);
- question.setFont(new Font("Tahoma", Font.PLAIN, 13));
-
- JPanel row_panel = new JPanel();
- row_panel.setLayout(new BoxLayout(row_panel, BoxLayout.X_AXIS));
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.add(question);
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.add(radio_panel);
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.setBackground(Color.WHITE);
-
-
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- panel_2.add(row_panel);
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
-// panel_2.add(radio_panel);
- panel_2.add(new JSeparator());
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
-// panel_2.setPreferredSize(panel_2.getPreferredSize());
- buttonGroupMap.put(id, group);
-
- }
-
-
-
- this.setSize(new Dimension(1300, 865));
-// pack();
- }// </editor-fold>//GEN-END:initComponents
-
-
- private void submitButtonActionPerformed(java.awt.event.ActionEvent evt){
-
- try{
- answers = new HashMap<String, String>();
- StringBuilder sb = new StringBuilder();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- sb.append(q).append(",");
- sb.append(bg.getSelection().getActionCommand()).append(";");
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- String answer = sb.toString();
- Integer id_loc = null;
- for(Integer i: locations.keySet()){
- if(locations.get(i).equals(comboBox.getSelectedItem().toString()))
- id_loc = i;
- }
-
- String id_p;
- if(jComboBox1.getSelectedItem().toString().equals("Select Patient"))
- id_p = "0";
- else
- id_p = jComboBox1.getSelectedItem().toString();
-
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
-
- String reply = commHandlerAdapter.callServiceSurveyAnswer(answer, id_loc.toString(), id_p);
-
- if(reply.equals("1")){
- survey_submitted = true;
-
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Congrats! Your aswers have been sent to the SHCS datacenter.",
- "Information Message",
- JOptionPane.INFORMATION_MESSAGE);
- }
- else{
- throw new IOException();
- }
-
-
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "The SHCS datacenter does not respond. Please save the survey and send it to jean.raisaro@epfl.ch.",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
- private void savePDFButtonActionPerformed(java.awt.event.ActionEvent evt){
- try {
-
- answers = new HashMap<String, String>();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- JFileChooser chooser = new JFileChooser();
- // Note: source for ExampleFileFilter can be found in FileChooserDemo,
- // under the demo/jfc directory in the JDK.
-
- int returnVal = chooser.showSaveDialog(this);
- System.out.println(returnVal);
- if(returnVal == JFileChooser.APPROVE_OPTION) {
- System.out.println("You chose to open this file: " +
- chooser.getSelectedFile().getPath());
- quest = new Questionnaire(chooser.getSelectedFile().getPath() + ".pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }else{
- quest = new Questionnaire("outputPDF/survey.pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }
-
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (DocumentException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (NullPointerException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
-
- private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
-
- JPanel contentPanel = new JPanel();
-
- dialog.setBounds(100, 100, 410, 80);
- dialog.getContentPane().setLayout(new BorderLayout());
- contentPanel.setLayout(new FlowLayout());
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- dialog.getContentPane().add(contentPanel, BorderLayout.CENTER);
- {
- JLabel label = new JLabel("Please wait...The overall computation can take few seconds");
- label.setHorizontalAlignment(SwingConstants.CENTER);
- label.setFont(new Font("Tahoma", Font.PLAIN, 12));
- contentPanel.add(label);
- }
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
- dialog.getContentPane().add(buttonPane, BorderLayout.SOUTH);
- }
- dialog.setLocationRelativeTo(this);
- dialog.setVisible(true);
-
- GUIWorker gw = new GUIWorker(this, props);
- Thread t = new Thread(gw);
- t.start();
-
- }
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JButton jButton1;
- private javax.swing.JComboBox<String> jComboBox1;
- private javax.swing.JLabel jLabel1;
- private javax.swing.JLabel jLabel2;
- private javax.swing.JLabel jLabel3;
- private javax.swing.JLabel jLabel4;
- private javax.swing.JMenu jMenu1;
- private javax.swing.JMenu jMenu2;
- private javax.swing.JMenuBar jMenuBar1;
- private javax.swing.JMenuItem jMenuItem1;
- private javax.swing.JPanel jPanel1;
- private javax.swing.JPanel jPanel2;
- private javax.swing.JScrollPane jScrollPane3;
- private javax.swing.JTabbedPane tabbedPane;
- private javax.swing.JScrollPane jScrollPane2;
- private javax.swing.JScrollPane jScrollPane4;
- private JPanel panel;
- private JPanel panel_1;
- private JPanel panel_2;
- private JLabel lblDearDoctor;
- private JLabel lblNewLabel_1;
- private JLabel lblNewLabel_2;
- private JLabel lblNewLabel_3;
- private JComboBox<String> comboBox;
- private Component rigidArea;
-
- // End of variables declaration//GEN-END:variables
-
-
- class GUIWorker implements Runnable{
-
- private JFrame mainFrame;
- private ClientProperties props;
- private MedUnit mu;
-
- public GUIWorker(GUI gui, ClientProperties props) {
- mainFrame = gui;
-
- this.props = props;
- this.mu = new MedUnit(props, 0);
- }
-
- @Override
- public void run() {
-
- try{
- int patientId = Integer.parseInt((String) jComboBox1.getSelectedItem());
-
- // convert selected tests to test identifiers
- ArrayList<TestName> selectedTests = new ArrayList<TestName>();
- for (String currentName : getSelectedTests()) {
- TestName currentTest = testsByName.get(currentName);
-
- if (currentTest == null) {
- throw new IllegalStateException("Trying to run unknown test: " + currentTest);
- }
-
- selectedTests.add(currentTest);
- }
-
- // run tests
- Diagnostic diagnostic = mu.runTests(patientId, selectedTests);
-
- // warn for tests with missing material
- warnFailedTests(diagnostic, selectedTests);
-
- // create report
- mu.createReport(patientId, selectedTests, diagnostic);
-
- dialog.setVisible(false);
-
- // specify file you wish to open (JPedal handles getting the byte data)
- String filepathReport = props.getPathPDF() + patientId + ".pdf";
-
- // open generated PDF
- // object must be either String in full filepath, or
- // File object which can be relative
- Object[] input = new Object[]{ new File(filepathReport) };
- viewer.executeCommand(Commands.OPENFILE, input);
-
- // display CAD result as bar plot
- if (diagnostic.hasCAD()) {
- System.out.println("CAD = " + diagnostic.getResultCAD());
- BarPlotFrame frame = new BarPlotFrame(diagnostic.getResultCAD(), patientId);
- frame.setVisible(true);
- frame.setAlwaysOnTop(true);
- }
-
-
- } catch (SQLException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Please select a patient.");
- }
-
- }
-
- private void warnFailedTests(Diagnostic diagnostic, ArrayList<TestName> selectedTests) {
- ArrayList<Integer> failedTests = diagnostic.getInvalidTests();
-
- if (!failedTests.isEmpty()) {
- String msg = "Could not complete tests: ";
- boolean first = true;
- for (TestName testName : selectedTests) {
- if (failedTests.contains(testName.getId())) {
- if (first) {
- first = false;
- } else {
- msg += ", ";
- }
- msg += testName.getName();
- }
- }
- displayError(msg);
- }
-
- }
-
- private void displayError(String msg) {
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- mainFrame,
- msg,
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
-
- private ArrayList<String> getSelectedTests() {
- ArrayList<String> tests = new ArrayList<String>();
-
- for (TreePath treePath : jTree.getSelectionPaths()) {
- tests.addAll(getChildrenTests(jTree.getModel(), treePath.getLastPathComponent()));
- }
-
- return tests;
- }
-
- private ArrayList<String> getChildrenTests(TreeModel model, Object node) {
- ArrayList<String> tests = new ArrayList<String>();
-
- if (model.isLeaf(node)) { // leaf
- DefaultMutableTreeNode leaf = (DefaultMutableTreeNode) node;
- tests.add(leaf.toString());
- }
- else { // iterate over children
- for (int i = 0; i < model.getChildCount(node); i++) {
- tests.addAll(getChildrenTests(model, model.getChild(node, i)));
- }
- }
-
- return tests;
- }
-
- }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/38/804384a4f4a60014162f978bbd19228b b/.metadata/.plugins/org.eclipse.core.resources/.history/38/804384a4f4a60014162f978bbd19228b
deleted file mode 100644
index b86732b..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/38/804384a4f4a60014162f978bbd19228b
+++ /dev/null
@@ -1,74 +0,0 @@
-package io;
-
-import java.io.IOException;
-
-import com.itextpdf.text.DocumentException;
-import com.itextpdf.text.Element;
-import com.itextpdf.text.Rectangle;
-import com.itextpdf.text.pdf.BaseFont;
-import com.itextpdf.text.pdf.ColumnText;
-import com.itextpdf.text.pdf.GrayColor;
-import com.itextpdf.text.pdf.PdfContentByte;
-import com.itextpdf.text.pdf.PdfFormField;
-import com.itextpdf.text.pdf.PdfPCell;
-import com.itextpdf.text.pdf.PdfPCellEvent;
-import com.itextpdf.text.pdf.PdfWriter;
-import com.itextpdf.text.pdf.RadioCheckField;
-
-public class RadioGroup implements PdfPCellEvent{
-
- protected int id;
-
- public RadioGroup(int ID){
- this.id = ID;
- }
-
- @Override
- public void cellLayout(PdfPCell cell, Rectangle position,
- PdfContentByte[] canvases) {
- PdfWriter writer = canvases[0].getPdfWriter();
- PdfFormField radiogroup = PdfFormField.createRadioButton(writer, true);
- radiogroup.setFieldName(String.valueOf(id));
-
- RadioCheckField radio;
- PdfFormField radiofield;
-
- for(int i=0; i<5; i++){
- radio = new RadioCheckField(writer, position, null, String.valueOf(i+1));
- radio.setBackgroundColor(new GrayColor(0.8f));
- radio.setCheckType(RadioCheckField.TYPE_CIRCLE);
- radio.setBorderColor(GrayColor.GRAYBLACK);
- try {
- radiofield = radio.getRadioField();
- radiogroup.addKid(radiofield);
-
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (DocumentException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
-
- canvases[0].beginText();
- BaseFont bf;
- try {
- bf = BaseFont.createFont(BaseFont.HELVETICA, BaseFont.WINANSI, BaseFont.NOT_EMBEDDED);
-
- canvases[0].setFontAndSize(bf, 18);
- canvases[0].showText( "ciao");
- canvases[0].endText();
- } catch (DocumentException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
-
- }
- writer.addAnnotation(radiogroup);
-
-
-}
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/3b/20a929ebb6a7001417ceadf0100b5ef7 b/.metadata/.plugins/org.eclipse.core.resources/.history/3b/20a929ebb6a7001417ceadf0100b5ef7
deleted file mode 100644
index e4f3d41..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/3b/20a929ebb6a7001417ceadf0100b5ef7
+++ /dev/null
@@ -1,295 +0,0 @@
-package io;
-
-import java.awt.BorderLayout;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.util.Map;
-import java.util.Set;
-
-import com.itextpdf.text.BaseColor;
-import com.itextpdf.text.Document;
-import com.itextpdf.text.DocumentException;
-import com.itextpdf.text.Element;
-import com.itextpdf.text.ExceptionConverter;
-import com.itextpdf.text.Font;
-import com.itextpdf.text.Font.FontFamily;
-import com.itextpdf.text.FontFactory;
-import com.itextpdf.text.Image;
-import com.itextpdf.text.PageSize;
-import com.itextpdf.text.Paragraph;
-import com.itextpdf.text.Phrase;
-import com.itextpdf.text.Rectangle;
-import com.itextpdf.text.pdf.AcroFields;
-import com.itextpdf.text.pdf.BaseFont;
-import com.itextpdf.text.pdf.ColumnText;
-import com.itextpdf.text.pdf.GrayColor;
-import com.itextpdf.text.pdf.PdfAction;
-import com.itextpdf.text.pdf.PdfBorderDictionary;
-import com.itextpdf.text.pdf.PdfContentByte;
-import com.itextpdf.text.pdf.PdfFormField;
-import com.itextpdf.text.pdf.PdfPCell;
-import com.itextpdf.text.pdf.PdfPCellEvent;
-import com.itextpdf.text.pdf.PdfPTable;
-import com.itextpdf.text.pdf.PdfReader;
-import com.itextpdf.text.pdf.PdfStamper;
-import com.itextpdf.text.pdf.PdfWriter;
-import com.itextpdf.text.pdf.PushbuttonField;
-import com.itextpdf.text.pdf.RadioCheckField;
-import com.itextpdf.text.pdf.TextField;
-
-import framework.Question;
-
-public class Questionnaire implements PdfPCellEvent{
-
- /** The path output file. */
- String pathOutputFile;
-
- /** The document. */
- Document document;
-
- PdfReader reader;
-
- int tf;
-
- public Questionnaire(String path){
- pathOutputFile = path;
- document = new Document(PageSize.A4, 25, 25, 50, 50);
- }
- public Questionnaire(int tf){
- this.tf = tf;
- reader = new PdfReader(pathOutputFile);
- }
-
- /** The resulting PDF. */
- public static final String RESULT1 = "outputPDF/buttons.pdf";
- /** The resulting PDF. */
- public static final String RESULT2 = "outputPDF/buttons_filled.pdf";
- /** Path to a JavaScript resource. */
- public static final String RESOURCE = "res/buttons.js";
- /** Path to an image used as button icon. */
- public static final String IMAGE = "res/info.png";
- /** Possible values of a radio field / checkboxes */
- public static final String[] LANGUAGES = { "English", "German", "French", "Spanish", "Dutch" };
-
- /**
- * Creates a PDF document.
- * @param filename the path to the new PDF document
- * @throws DocumentException
- * @throws IOException
- */
- public void createPdf(Map<Integer, Question> map, Set<Integer> ids) throws IOException, DocumentException {
-
- @SuppressWarnings("unused")
- PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(pathOutputFile));
-
-
- document.open();
- Image logo = Image.getInstance("res/shcs_logo2.gif");
-
- logo.scalePercent(30f);
- float[] columnWidths1 = {0.2f, 0.8f};
- PdfPTable table_title = new PdfPTable(columnWidths1);
- PdfPCell c01 = new PdfPCell(logo, false);
- PdfPCell c02 = new PdfPCell(new Paragraph("Survery | Project #693",
- FontFactory.getFont(FontFactory.HELVETICA, 20, Font.BOLD, BaseColor.BLACK)));
- c01.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setHorizontalAlignment(Element.ALIGN_CENTER);
- c01.setBorder(Rectangle.NO_BORDER);
- c02.setBorder(Rectangle.NO_BORDER);
-
- table_title.addCell(c01);
- table_title.addCell(c02);
- table_title.setWidthPercentage(100);
- table_title.setSpacingBefore(0);
- table_title.setSpacingAfter(25);
- document.add(table_title);
-
-
- //----------------------------------------------------------------------------------
-
-
- PdfPTable table1 = new PdfPTable(1);
- table1.setWidthPercentage(100);
- PdfPCell c11 = new PdfPCell(new Phrase("Today you are receiving a pharmacogenetic report based on the genetic " +
- "information of your patient. Because the human genome contains extremely private and sensitive information" +
- " of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier," +
- " it must be managed with care. ",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.NORMAL, BaseColor.BLACK)));
- c11.setLeading(1.5f, 1.5f);
- c11.setPaddingBottom(8);
-
-
- table1.addCell(c11);
- table1.setSpacingAfter(10);
- document.add(table1);
-
-
- //----------------------------------------------------------------------------------
-
-// // step 4
-// // add the JavaScript
-// writer.addJavaScript(Utilities.readFileToString(RESOURCE));
-
- for(Integer id: ids){
- PdfPCell c2;
-
- PdfPTable table = new PdfPTable(1);
- table.setSpacingAfter(10);
- table.setWidthPercentage(100);
-
- PdfPCell c1 = new PdfPCell(new Phrase(id + ") " + map.get(id).getQuestion(),FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c1.setPaddingTop(5);
- c1.setPaddingBottom(5);
- c1.setHorizontalAlignment(Element.ALIGN_CENTER);
- c1.setBorder(Rectangle.NO_BORDER);
- table.addCell(c1);
-
- c2 = new PdfPCell(new Phrase(" 1" +
- " 2" +
- " 3" +
- " 4" +
- " 5",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c2.setHorizontalAlignment(Element.ALIGN_LEFT);
- c2.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c2.setCellEvent(new Questionnaire(id));
- c2.setBorder(Rectangle.TOP);
- c2.setPaddingTop(2);
- c2.setPaddingBottom(5);
- c2.setBackgroundColor(new BaseColor(242, 242, 242));
-
- table.addCell(c2);
-
-
-
- document.add(table);
- }
-
-
- //----------------------------------------------------------------------------------
-
- // step 5
- document.close();
-
- }
-
- @Override
- public void cellLayout(PdfPCell cell, Rectangle position,
- PdfContentByte[] canvases) {
- PdfWriter writer = canvases[0].getPdfWriter();
- PdfFormField radiogroup = PdfFormField.createRadioButton(writer, true);
- radiogroup.setFieldName(String.valueOf(tf));
- System.out.println(tf);
-
- float llx = position.getLeft();
- float lly = position.getBottom();
-
- float cell_h = cell.getHeight();
- float cell_w = cell.getWidth();
-
- Rectangle rect;
-
- for(int i=1 ; i<=5; i++){
-
- rect = new Rectangle(llx + (3+i)*cell_w/12, lly+cell_h/2-6, llx + (3+i)*cell_w/12+12 ,lly+cell_h/2+6);
-
- RadioCheckField radio = new RadioCheckField(writer, rect, null, String.valueOf(i));
- radio.setBorderColor(GrayColor.GRAYBLACK);
- radio.setCheckType(RadioCheckField.TYPE_SQUARE);
-
-
- try {
- PdfFormField field = radio.getRadioField();
- radiogroup.addKid(field);
-
- writer.addAnnotation(radiogroup);
- }
-
- catch(IOException ioe) {
- throw new ExceptionConverter(ioe);
- }
- catch(DocumentException de) {
- throw new ExceptionConverter(de);
- }
- }
-
-
-
- }
-
-
- public String getAnswers() throws IOException, DocumentException{
-
- reader.removeUsageRights();
- PdfStamper stamper = new PdfStamper(reader, new FileOutputStream("outputPDF/buttons_filled2.pdf"));
-
-
- AcroFields form = stamper.getAcroFields();
-
- StringBuilder sb = new StringBuilder();
-
-
- Set<String> fields = form.getFields().keySet();
- for(String key: fields){
- System.out.println("key = " + key);
- if(form.getFieldType(key)==AcroFields.FIELD_TYPE_RADIOBUTTON){
- sb.append(key);
- sb.append(",");
- sb.append(form.getField(key));
- sb.append(";");
- }
- }
- stamper.close();
- reader.close();
-
-
- return sb.toString();
-
- }
-
-
-// /**
-// * Manipulates a PDF file src with the file dest as result
-// * @param src the original PDF
-// * @param dest the resulting PDF
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public void manipulatePdf(String src, String dest) throws IOException, DocumentException {
-// PdfReader reader = new PdfReader(src);
-// PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(dest));
-// AcroFields form = stamper.getAcroFields();
-// String[] radiostates = form.getAppearanceStates("language");
-// form.setField("language", radiostates[4]);
-// for (int i = 0; i < LANGUAGES.length; i++) {
-// String[] checkboxstates = form.getAppearanceStates("English");
-// form.setField(LANGUAGES[i], checkboxstates[i % 2 == 0 ? 1 : 0]);
-// }
-// stamper.close();
-// reader.close();
-//
-// PdfReader r = new PdfReader(dest);
-// AcroFields f = r.getAcroFields();
-// Set<String> fields = form.getFields().keySet();
-// for(String key: fields){
-// if(f.getFieldType(key)==AcroFields.FIELD_TYPE_RADIOBUTTON){
-// System.out.println(key);
-// System.out.println(f.getField(key));
-//
-// }
-// }
-// r.close();
-//
-// }
-//
-// /**
-// * Main method
-// * @param args no arguments needed
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public static void main(String[] args) throws IOException, DocumentException {
-// Questionnaire buttons = new Questionnaire();
-// buttons.createPdf(RESULT1);
-// buttons.manipulatePdf(RESULT1, RESULT2);
-// }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/3d/107c542f4eac001410e2e30aa85db9d1 b/.metadata/.plugins/org.eclipse.core.resources/.history/3d/107c542f4eac001410e2e30aa85db9d1
deleted file mode 100644
index f7dcfde..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/3d/107c542f4eac001410e2e30aa85db9d1
+++ /dev/null
@@ -1,71 +0,0 @@
-package io;
-
-import io.serializer.url.URLParserDecrypt;
-import io.serializer.url.URLParserMaterial;
-import io.serializer.xml.XMLParserDecrypt;
-import io.serializer.xml.XMLParserMaterial;
-import io.serializer.xml.XMLParserSurvey;
-
-import java.util.logging.Logger;
-
-import framework.Type;
-import framework.reply.ReplyDecryption;
-import framework.reply.ReplyMaterial;
-import framework.reply.ReplySurvey;
-import framework.request.RequestDecryption;
-import framework.request.RequestMaterial;
-
-public class CommAdapter {
-
- @SuppressWarnings("unused")
- private static final Logger LOGGER = Logger.getLogger(CommAdapter.class.getName());
-
- public ClientConnection connectSPU = null;
-
- public CommAdapter(ClientConnection connectSPU) {
- this.connectSPU = connectSPU;
- }
-
- public ReplyDecryption callServiceDecrypt(RequestDecryption rqtDecrypt) {
- String requestString = URLParserDecrypt.requestToString(rqtDecrypt);
-// String replyString = "<awr_decrypt><patient>30351</patient><v_timestamp>1417188729390</v_timestamp><decrypt_val>,,,,,,,,,,,,,,,,2,AwHR3OO0/hkwgEHluLDFLtn4aaTBAwBEJjJpMegGa29ASgtyt1ha2OOyxvEvNgkIaY0xWXtTmqrqhSBKDG6J7Lps0g==,AwE/oifhonvUZDA4mqRK8K1WCkoepEuL9SidjdFXMNNZQXCMUvVN6pBUYVFgJeFX6mT2jruK8ic3y6yI14PfKl/Pvg==,AgBHs6HGF9AYNc5RlFTGv025WEaT91i/MPy+HXqhvHOrp0Ol9/aKyvv2BgAzeAdsdSEbVs2sahiyL/kbKjeUoI9tsA==,,,,,,,,,,,,,2,AgHIofEmf4aJMLBnKAY3/8WcLXUETF4y/68fzZR6hsS5btZTyI0E4ZTltDzV6hBzIT14cC4S/BMclo1aoLt5C9f+Cg==,AgDOXZAZAwO4KXslqU1wKctrVlH8CcGvpO8gGrPl3YjrY8SR3a6gStvZvjcUKXhvtDkRwSLAIkD3lFrKSXWestHSqQ==,AgG7Y5so9ZTRng2Xm3ziWx3+7zfaVLkIJ2v7g+qEUx5Vl2/udDOcg/was8W6qbKYeo/W0EGTlNXKTOdIatGVxyuoZA==,,,,,2,AgDAVy0/nE6X4iAengG9lCiYEBMtK6rAAiy7OwC7U/QSbokiEzH0RafH7rb+5L5R/ii9/3kZCcKmgOIoPzkmeloDfg==,AgHuvmLAeIFYm4ObEBO2v9xTK6tjYfdh+x4kwULBpDNlUiW4kNNaeoeziRA7nlRvcSfxPlR070N/3qzBMu3EKZ2csQ==,AgDk/CzCL4XUobuNaLsvrH5s0COMKYBqY/18YRR0d7mIsVVYrKVGF+IWnEluhbLt+BoRBdvL5UElgroyORJpiKz06w==,,,,,2,AgH0nW+2h+vcOZgPe3uR7jEHmEPi+g4izQ3OIU9An2vekwbG1liBFgTo33pEhyXhNWPhGCbSb73sJ7pt0JLL+hhWMw==,AgHG039OnpvmllkV6QBsmoMdqISrRuW2q5M3jfUp5TUbU6F/3S2FK1iSVKWgTsI291re6lz6KH5d8rWrnoCAozhIeg==,AwGjmnLUMd42F7a/tsSkeqcxoHMAXNKdvF4kOXoAxmc6ZSxaUhzkGkcgNOO8SFNiWqTKgtZCffJ7hfI0voAUX0TD1w==,,,,,2,AwHfYRjQFscHzOvVozackTaM3sybOjyd2aLc4B+WQ7KiWHoGKkzQScoDiy8hiA2cJpv8ngfitTqJRLlyegvuM+Ietw==,AwAP92OqrJFpFmdrMUUx6FeFhwVLYtAsfw3sem2RYu7ljPry+uJnvluuzTvVaFhs8BAAD8VBFs1vqrSHyQEq8Ocsmw==,AwDNXg/JA4QXA6wu30DUE7peOk1a10aHbd38iwjN1Q0DKy3BqS36+EQKg5hbwELxN2+/Yu4UA1IKWYJI0zNs6TJUtA==,,,,,2,AwBWFv3ivyQz4CGIilJ7CVtpQGOs1tnIW+0uxQyiWIO3HDjJtfxPyQ1AJWPsBQ9eYmaoKmPnN+euPCm7bP0LxBL/Tg==,AwHg7AZb5DV5OJrl0omtKx2OqckXcQEUT8pZ+Bmo9AyULgL5HOq2AVU04qhvbdy0W4OMYqxF3uBwqT6dNhFptsKEKQ==,AwG9dyMbI5EI8UCXuj5JkQRMimcT1u6zCBAfmRvANtT54yDtC8KS6VeOr7h/NP4qrf/mbl5tMaePbkkHrc6E39ntsA==,,,,,2,AwHkMyCOJm/RlYOybGhX3DchR/wSN2L3PuXKalMszgk3WOCiWSpYlP3SOPLWvJTRQaTxoN+oA5IkCTvlp02+Mduaxg==,AgHhR8HjavXjnsy+rHptc/JSI5pLFjM0RczUygxTX7vqV/yqwZ280Rq7YpXKp2GBfiZvFf0qIQoWe4vx5DBxwvHkdA==,AwEf2yisEpflVm8R2X08SCJM89apu7tUFzbpndsTIt5o9/xdoXKomMUk9REz+yrpkd+jFhlkJMQHHVMhgjiWYCEdpQ==,,,,,2,AwBaIc8ZWFm4O9QO0ofJeS9Q7tki7CAscBXRDnajEp7rmKNgrpRyyu1ezSpborwaloWR9kDKPLdYVV8SNk2V/1EudA==,AwGE8MPAnPKKXF15EyrAx1bRinwgoqYVO4Junz5IXQjGLyQpSr5NwO/hqu5E5egHte20jm380Wn2Qy6GgKNiRLy/gQ==,AwCAOjOQNdMN5uIB0POFzYS/fpxZ0Q5KfhlP5fijNmc/daO5frSrwhgcMH5lMKL4EGjBI1p6JMe3fuMqb5t1ImeTBg==,,,,,2,AgARSg2izcK6iZLFe4YkIS6yZgnt8cd9DFqpQ37gNmcccZwBI+mpsaijTUPo1GT+QUD8zC+6qr/GrzG9q+q7BPxpVw==,AwGM/jFdtoNViQXxgqeL27ZKobjsfyeuXrx8re3UfIe3c4XN16srSpcTfxEZNXDKo1Ff9fRvDVBOwdS6XU2nvo++ng==,AwAtK0eOqcVfzkdJIIkk7BORWwSDTAjtx4aEXwyZ0bla+2rIWDgXi3U5xlgnjeXJNtGsLokkvvX92BOBIw9SuCGhnw==,2,AgCWAAWTW+7jv2a2lc4pGFnumEgyH59wSDRXEYUASCVB249JBmeKFWRKNFTQlph5hTR5Rb+YHFP/qvzmwU11Hs2b0w==,AgANdxpkN+DS4De3aokNjt+e/Ou8GT+p8pUJA+6LHrDBXAddoCR8KpeXW7mESokq6BTEVQXxU3TdqavRkqaeFmpXkw==,AgDDDSEO3e8DCsm1n6dbj2PB9Z/tUzluDCt/utdSLrYFfdFY+Y5K7Vxo9F5/17CzaUbX172SGLt8TfCfuYBrtupgAg==,2,AgB1OG6bj+6kfRvLj8yjMQbl80FdZHZrRVRUfNVRwvjvvbRa5f9s9fNZ8J0a3s3hH+RyfZmGJ4Ufjh5mMiQkwiur6w==,AwBX4GFZNjUdtRdwtWgxyQz7h8Hk0ztaZeM8/e+8ll0o+RjYN+CNP8+lnXEw7wpuC4wcMX05mrjPvHOuy0hOFVNkhQ==,AgDf3el4vbMYIAFEH9WV151/uzl+gkfTQ79T8Iu4KxEVo6UJvCfqkjETlR6aXUJiqaCbSV5odMT50lURsmfgALf6AQ==,,,,,2,AgENmnviZkgQWXZ5QDgCCE2zq0IiXURTqK2UNPtEg3o64yjlrQQUd2rO/KgKolyCQcKYTVoMj7k2VeCSSVRr8KGC7w==,AwFv6ZJzhpV/Ms00QkrkNiCKVRFczn/yqnkiBFUHC1RQv3tqzzYSEUeXmDHmm0/kEBtnfgRWjHQm9zxS8Jzy7srDLQ==,AwB8aS5KA1dFLKCA1a/7Wsjhef+6kkNAB/GO9AOvRZbFW/dhl5fx04Alh+g78fwcVMX+eEIEJgSyH0jhv7kmiQh4ew==,,,,,2,AgG8fXrCra6UgP5G89TaE6PH5E0TANb/PJPbKwzdi78XEHRUmcTz6PIhYtclTmcdq5TH0IwQv+ra5ppf4qR4LtkGig==,AgEKzsmZrikmXzJywMpzkAdG9hAPlOiRY9oXKf4Sh50CL8btUItjfVJWg3ubNhotzJK+fnNlRrcMkWQEBD/aGKpf8A==,AwFi+2cGpuvVdR+pT1P9Ur8jAkzmjJK2XmUQbFpyMi5Jc9a5/fPnBWCxmTX8CH5wks0PicYC6rzZC3NEIt0EoM1Qfg==,,,,,2,AgHbTZgTAv8lLBsoX06Hkm9XPU+crlRqKl0xL8v18xeUUPY1YAvUYf2OAutmTtPRycXyzrDWSpn2h5xfk/dtq/BICg==,AwAjPydfoUhfSVFKWNI4Ox4a/psZGDIGzEEWh9HyVtAmjdNb5ctr/S6z+akiRfPlNCsVf6TdkzJ2Su6BO4sOX/SHKA==,AwBVmjn7AitCe4zQ/Fl0sYW2XqXkJxJBDviwl9jYhoq29v90n9escDsiA3Cy+1uW69MezdZBEszFdEWlX0EzbQZQ6A==,,,,,2,AwCG0RBHwHuame/1G7qtUjmwz0gkCP1tyZiEgm7aTKpsCjt7UsMirMmx/ZrNlvSzkGuVbRO97Szzr+9fo4baH1rEZA==,AwHyMK/q8FUUvoHTt7O7KJUxYz/ZHF6SntbmKfbygLVw4HWc/eFic4DXHKbEGWvrMO5b37GksqxfQHc2xlAuj8ZRIw==,AgB5x0BxqiMYxRvzlq0+/RkbOuNA7hYuMG+7D6wlMOxSskgqyfwA0MfW+AkXFqnqfqsoJRpDy15bABWhH6MIdJsPEA==,,,,,2,AwAS/nCH0pcrsllSy2duadUs1rMtL6vtz7VTUAVhn1/YYlZ068ysBi1Mdz9gJFewdyeGLnFhyg+W15rFB317nyeGHg==,AwBh6f5UVRMM5ekWqkrx6XiVOK/BL0TinjsSLna8BjkQPXU2DvGxiKPhA03/GtBdEpihEX4bVaHQhiOupTf7wh6bCQ==,AgGPDFH8Kv8hz2aUJ955nHu8NiAoTmDjqhlXuJ1T83h+O0sc2GieLhmXmpEjxjEAyxkqjb2nFxvDhi+YGs4MqI4S5A==,,,,,2,AwDqwFv6bqpM/6PTCJ/wgRALYVT+Rn54HIB2icP6ODNexaoqILBS9p1k1QENbQsBZ9LmJJwngRQXi07Q4P8br76Qfw==,AgG8yTiO8tFWZqQELBr+Zt1fKKA3bl08836nUEEpD55Sid0ZywCrWe+Va58xbMIWscISLPbBvXIdO48ZgoHsLgA7Jw==,AwCI1Ud0GJLnS86mSC58HNB91lH9kPpQbufGn+WJErGxAQubtSFBc3rnT0SNE3CbW+1MPjYBbdCgxpHjN/iQf96++w==,,,,;2,AgB9YhljgPngkwwYTBMUaMGR+rWMjvlK0tgrzkG8OT9NGNJfaaLP6AzfhWrT5oe9NRnabU25pQvDhAIGZCajDy8N2g==,AwE5Irce6LOSxfLgn4PZh1PeDPjAHb5wPTNfmQoWFY83dNQLYN44FupJaQRRUqBqyGNB0SL76GKzr8G9tKLAHOxRSQ==,BAG5iWHEhlWkvtyAlQy4bwKa1iNRzJq8WJTh2GE9oT4DeJRmO1pCHy9P+9YktDT+4RgV9s8AzOYih1LmHW14uP27HQGg1nTdHyab9/nFUe9BFxIi8xQTPG8et9++5I+gKIeWGCXBL31sBhpaMewvVhDjl2d3+7H2PUv9IY3lyIRFA6N16A==,2,AwAPIoQJqSbXFKXQAIG9J+/+/41NLX0rDINImk4eBgAnZ4V0R8YSqkHD3nd0IrEMyK7OpkCXkxTzOlwJlfEfti+vew==,AwAQ8KdMYsEOqM3eyGv/XbHnGf+TqCAG39Gz/juBcioOOJmLOFjl6oCITozJOyPusbTRXZ4eIwgQYkl12mt6saTpgQ==,BACkTO+3rRUF81w5yzZskFiIRyVxc6sdJfDFX6C+Jy5A+s/sfHskrFx2GYNklZaYztP0/B64a6v6HvFWVz8GuYj2wgHhiCL+QwLThFpaRxh8kUMSrt4VuXSIjtHwRXzhSdEbG2T6C/+CJZxIFh/ugEV9SS51l1HrLdnJDb2Kdu3QC3lRkQ==;2,AgC99VyiRLJ2kFf3oCkb+JPVV7B4tXVGI2NVT7fdKtB+gEjCcdkbS5YEXm/Sq6NAJEOKilMTFUDLYFDOe+7JHj/4pw==,AgAbT080sbKVHH9lim3tVCYS4cMz+rLownRKqtYZ7AfR8qy819R1GFywQ0kImgcdjEey5C4m0OPTwgtkO+C5uWtKfQ==,BADKYt9i0zTJeh3H8t6d8pZdncz3f28v1oWrssLZwAutkIcF3XKkPNmK3X75K3sImUSch//IIRIB1Yi5/MrZZeDrxQHhQZEg6AA8bDxgt0JdOEX2t4crzDu3gW5I8y+Ya0fZr1RmxvfMr2UxRhSsNsz949v/g+GPfsrEfDqIWTiNlJfwyg==,2,AgEPMjgCfgGRaZ/5I1hLqDoJ8nXYeTlnt9YeK4K8w+HnRAoAD09zkPcLMWajIjupe/CUFrHz00sAvs+vOPeKxGrLiQ==,AgDy7g2DcDwmIW7LtTTteHExD/cyP4BMWimEAM1RfAd/Y6P8XkmRGgglfdLJ7RGTR2YIMB1lxQ/LQUbmzyjTiiuWow==,BAHJ7oHVr/0wweyGlg4f9Dqmx8h0m35jMdrEFwVY8l/ENKpOTxG/oh9vAvo1uw39wUOn4CWGBmAFE2lsvWFW18gt+gHPFt5/9ihUFN9mtxFLT1Q3W4Uf8IdekHPMbNlxEp1wId7EH3XsAox3Eo8b3XnYpwfsAXoDwQa2wyiO5h104Ptvsg==;2,AwClCMGcHdd7rD8sYDC/GXyAtLmZ/JI4v+aOK4PXzjWJi/zvcsXT5dJUOm9bW6AAtzgOKPd0WwU3hSytJ+ATy146Uw==,AgADzN6ysOIC9GAuMF9suYNfkR027H/9OcpeVJb4HRHfZ/EOmQWSdJmJFw3F/NLUrreNnFCvuF1+1bbmHa3tvznjeA==,BADwaRJF9z3DW7HE3qhGu6Yd9d2WBfWy8opd7Mhkg7TpAQsn9oA3UcpCarn4DMSnVGG94Y3Pxsj5vlm5G7GMKiGoxAERnETH6pVgBxhtrnBU6l4vHl+X4rd8I/zheZiG0EFKJza41rmwKHTY4+42PJ8/3Y2rCanbY1RSAJEgiZR89k6nGg==,2,AgCK80PhKSC23aVKQ8uYm+79GWZiwpbV5lc8Fzcpwu8hdKGAMH4f62Y//cmrQmCIltm03PTVPMn6rMwkfoz+9M2LDQ==,AgH5aXThIKUjENFTGCGwcTRql7xIe8vR9h78KikTYkD8itQ+YBDrnx5OaNyWRjpIJHAZ2B61W2aVjZ5Rmo0d1B1Pcw==,BAAEZsEKw59QSRxN1QmWcx4X2LaK4+zBuawh+2CIRPljWyxK6XhIM6EEalr44Klce4OTK2QbxT5n3Kjnh5jNuwCOawAH/wiNrx09+HY8SZrRjCjv1+Lnicybrqg/IFDNoAGT5aguaGRIMmGOLe0QFJr0T0iW3RnYGlmSd/r6ex8+MpOgLw==</decrypt_val></awr_decrypt>";
- String replyString = connectSPU.sendReceive(Type.DECRYPT, requestString);
- System.out.println("REQUEST URL: " + requestString);
- System.out.println("REPLY: " + replyString);
- ReplyDecryption reply = (new XMLParserDecrypt()).stringToReply(replyString);
- return reply;
- }
-
- public ReplyMaterial callServiceMaterial(RequestMaterial rqtMaterial) {
- String requestString = URLParserMaterial.requestToString(rqtMaterial);
- String replyString = connectSPU.sendReceive(Type.MATERIAL, requestString);
-
- System.out.println("Material request:");
- System.out.println(replyString);
-
- ReplyMaterial reply = (new XMLParserMaterial()).stringToReply(replyString);
- return reply;
- }
-
- public ReplySurvey callServiceSurvey(){
-
-// String replyString = connectSPU.sendReceive(Type.SURVEY_Q,"");
- //4::What's your name?::1;5::Where are you from?::2;6::How old are you?::3;7::What's your name?::1;8::Where are you from?::2;9::How old are you?::3;10::What's your name?::1;11::Where are you from?::2;12::How old are you?::3;13::What's your name?::1;14::Where are you from?::2;15::How old are you?::3
- String replyString ="<awr_survey><v_questions>1::What's your name?::1;2::Where are you from?::2;3::How old are you?::3;4::What's your name?::1;5::Where are you from?::2;6::How old are you?::3;7::What's your name?::1;8::Where are you from?::2;9::How old are you?::3;10::What's your name?::1;11::Where are you from?::2;12::How old are you?::3;13::What's your name?::1;14::Where are you from?::2;15::How old are you?::3;</v_questions><v_locations>50::Lausanne;60::Basel;70::Zurich</v_locations></awr_survey>";
- ReplySurvey reply = (new XMLParserSurvey()).stringToReply(replyString);
- return reply;
- }
-
- public String callServiceSurveyAnswer(String survey, String id_loc, String id_p){
-
- StringBuilder sb = new StringBuilder();
- sb.append("id_p=").append(id_p);
- sb.append("&timestamp=").append(System.currentTimeMillis());
- sb.append("&id_loc=").append(id_loc);
- sb.append("&answer=").append(survey);
- String replyString = connectSPU.sendReceive(Type.SURVEY_A, sb.toString());
- return replyString;
-
- }
-
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/3e/4019067d71a8001419a38fd8608ce0e6 b/.metadata/.plugins/org.eclipse.core.resources/.history/3e/4019067d71a8001419a38fd8608ce0e6
deleted file mode 100644
index fbb9646..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/3e/4019067d71a8001419a38fd8608ce0e6
+++ /dev/null
@@ -1,118 +0,0 @@
-package utils;
-
-import java.io.File;
-
-public class ClientProperties extends ConfigProperties {
-
- public final static String KEY_PATH_PDF = "report.pathPDF";
- public final static String KEY_SHIFT_VAL = "shiftVal";
- public final static String KEY_PRECISION = "precision";
- public final static String KEY_DB_MS_ACCESS = "database.msaccess";
- public final static String KEY_SERVICE_MATERIAL = "service.material";
- public final static String KEY_SERVICE_DECRYPT = "service.decrypt";
- public final static String KEY_SERVICE_SURVEY_Q = "service.survey.q";
- public final static String KEY_SERVICE_SURVEY_A = "service.survey.a";
-
-// // MU address
-// private DatabaseConfig configMU;
-// private String ipMU;
-// private int portMU;
-
-// // SPU address
-// private String ipSPU;
-// private int portSPU;
-
- // saving paths for reports
- private String pathPDF;
-
- // access db
- private String databaseMsAccess;
-
- // web service
- private String urlWebAppMaterial;
- private String urlWebAppDecrypt;
- private String urlWebAppSurvey;
-
- private File reverseTableLoc;
-
- private int shiftVal;
- private int precision;
-
- public ClientProperties(String filepath) {
- super(filepath);
-
-// ipMU = getPropertyIPAddr(KEY_IP_MU);
-// portMU = getPropertyPort(KEY_PORT_MU);
-//
-// ipSPU = getPropertyIPAddr(KEY_IP_SPU);
-// portSPU = getPropertyPort(KEY_PORT_SPU);
-//
-// configMU = new DatabaseConfig(
-// ipMU,
-// getProperty(KEY_DB_MU),
-// getProperty(KEY_USER_MU),
-// getProperty(KEY_PASS_MU)
-// );
-
- pathPDF = getProperty(KEY_PATH_PDF);
-
- databaseMsAccess = getProperty(KEY_DB_MS_ACCESS);
-
- urlWebAppMaterial = getProperty(KEY_SERVICE_MATERIAL);
- urlWebAppDecrypt = getProperty(KEY_SERVICE_DECRYPT);
- urlWebAppSurvey = getProperty(KEY_SERVICE_SURVEY_Q);
-
- reverseTableLoc = new File(getProperty(ConfigProperties.KEY_REVERSE_TABLE));
-
- shiftVal = Integer.parseInt(getProperty(KEY_SHIFT_VAL));
- precision = Integer.parseInt(getProperty(KEY_PRECISION));
- }
-
-// public String getIpSPU() {
-// return ipSPU;
-// }
-// public int getPortSPU() {
-// return portSPU;
-// }
- public String getPathPDF() {
- return pathPDF;
- }
-// public DatabaseConfig getConfigMU() {
-// return configMU;
-// }
-// public String getIpMU() {
-// return ipMU;
-// }
-// public int getPortMU() {
-// return portMU;
-// }
-
- public int getShiftVal() {
- return shiftVal;
- }
-
- public int getPrecision() {
- return precision;
- }
-
- public File getReverseTableLoc() {
- return reverseTableLoc;
- }
-
- public String getDbMsAccess() {
- return databaseMsAccess;
- }
-
- public String getUrlWebAppMaterial() {
- return urlWebAppMaterial;
- }
-
- public String getUrlWebAppDecrypt() {
- return urlWebAppDecrypt;
- }
-
- public String getUrlWebAppSurvey(){
- return urlWebAppSurvey;
- }
-
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/4/400f2a9afaa60014162f978bbd19228b b/.metadata/.plugins/org.eclipse.core.resources/.history/4/400f2a9afaa60014162f978bbd19228b
deleted file mode 100644
index 98da7ab..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/4/400f2a9afaa60014162f978bbd19228b
+++ /dev/null
@@ -1,58 +0,0 @@
-package io;
-
-import io.serializer.url.URLParserDecrypt;
-import io.serializer.url.URLParserMaterial;
-import io.serializer.xml.XMLParserDecrypt;
-import io.serializer.xml.XMLParserMaterial;
-import io.serializer.xml.XMLParserSurvey;
-
-import java.util.logging.Logger;
-
-import framework.Type;
-import framework.reply.ReplyDecryption;
-import framework.reply.ReplyMaterial;
-import framework.reply.ReplySurvey;
-import framework.request.RequestDecryption;
-import framework.request.RequestMaterial;
-
-public class CommAdapter {
-
- @SuppressWarnings("unused")
- private static final Logger LOGGER = Logger.getLogger(CommAdapter.class.getName());
-
- public ClientConnection connectSPU = null;
-
- public CommAdapter(ClientConnection connectSPU) {
- this.connectSPU = connectSPU;
- }
-
- public ReplyDecryption callServiceDecrypt(RequestDecryption rqtDecrypt) {
- String requestString = URLParserDecrypt.requestToString(rqtDecrypt);
-// String replyString = "<awr_decrypt><patient>30351</patient><v_timestamp>1417188729390</v_timestamp><decrypt_val>,,,,,,,,,,,,,,,,2,AwHR3OO0/hkwgEHluLDFLtn4aaTBAwBEJjJpMegGa29ASgtyt1ha2OOyxvEvNgkIaY0xWXtTmqrqhSBKDG6J7Lps0g==,AwE/oifhonvUZDA4mqRK8K1WCkoepEuL9SidjdFXMNNZQXCMUvVN6pBUYVFgJeFX6mT2jruK8ic3y6yI14PfKl/Pvg==,AgBHs6HGF9AYNc5RlFTGv025WEaT91i/MPy+HXqhvHOrp0Ol9/aKyvv2BgAzeAdsdSEbVs2sahiyL/kbKjeUoI9tsA==,,,,,,,,,,,,,2,AgHIofEmf4aJMLBnKAY3/8WcLXUETF4y/68fzZR6hsS5btZTyI0E4ZTltDzV6hBzIT14cC4S/BMclo1aoLt5C9f+Cg==,AgDOXZAZAwO4KXslqU1wKctrVlH8CcGvpO8gGrPl3YjrY8SR3a6gStvZvjcUKXhvtDkRwSLAIkD3lFrKSXWestHSqQ==,AgG7Y5so9ZTRng2Xm3ziWx3+7zfaVLkIJ2v7g+qEUx5Vl2/udDOcg/was8W6qbKYeo/W0EGTlNXKTOdIatGVxyuoZA==,,,,,2,AgDAVy0/nE6X4iAengG9lCiYEBMtK6rAAiy7OwC7U/QSbokiEzH0RafH7rb+5L5R/ii9/3kZCcKmgOIoPzkmeloDfg==,AgHuvmLAeIFYm4ObEBO2v9xTK6tjYfdh+x4kwULBpDNlUiW4kNNaeoeziRA7nlRvcSfxPlR070N/3qzBMu3EKZ2csQ==,AgDk/CzCL4XUobuNaLsvrH5s0COMKYBqY/18YRR0d7mIsVVYrKVGF+IWnEluhbLt+BoRBdvL5UElgroyORJpiKz06w==,,,,,2,AgH0nW+2h+vcOZgPe3uR7jEHmEPi+g4izQ3OIU9An2vekwbG1liBFgTo33pEhyXhNWPhGCbSb73sJ7pt0JLL+hhWMw==,AgHG039OnpvmllkV6QBsmoMdqISrRuW2q5M3jfUp5TUbU6F/3S2FK1iSVKWgTsI291re6lz6KH5d8rWrnoCAozhIeg==,AwGjmnLUMd42F7a/tsSkeqcxoHMAXNKdvF4kOXoAxmc6ZSxaUhzkGkcgNOO8SFNiWqTKgtZCffJ7hfI0voAUX0TD1w==,,,,,2,AwHfYRjQFscHzOvVozackTaM3sybOjyd2aLc4B+WQ7KiWHoGKkzQScoDiy8hiA2cJpv8ngfitTqJRLlyegvuM+Ietw==,AwAP92OqrJFpFmdrMUUx6FeFhwVLYtAsfw3sem2RYu7ljPry+uJnvluuzTvVaFhs8BAAD8VBFs1vqrSHyQEq8Ocsmw==,AwDNXg/JA4QXA6wu30DUE7peOk1a10aHbd38iwjN1Q0DKy3BqS36+EQKg5hbwELxN2+/Yu4UA1IKWYJI0zNs6TJUtA==,,,,,2,AwBWFv3ivyQz4CGIilJ7CVtpQGOs1tnIW+0uxQyiWIO3HDjJtfxPyQ1AJWPsBQ9eYmaoKmPnN+euPCm7bP0LxBL/Tg==,AwHg7AZb5DV5OJrl0omtKx2OqckXcQEUT8pZ+Bmo9AyULgL5HOq2AVU04qhvbdy0W4OMYqxF3uBwqT6dNhFptsKEKQ==,AwG9dyMbI5EI8UCXuj5JkQRMimcT1u6zCBAfmRvANtT54yDtC8KS6VeOr7h/NP4qrf/mbl5tMaePbkkHrc6E39ntsA==,,,,,2,AwHkMyCOJm/RlYOybGhX3DchR/wSN2L3PuXKalMszgk3WOCiWSpYlP3SOPLWvJTRQaTxoN+oA5IkCTvlp02+Mduaxg==,AgHhR8HjavXjnsy+rHptc/JSI5pLFjM0RczUygxTX7vqV/yqwZ280Rq7YpXKp2GBfiZvFf0qIQoWe4vx5DBxwvHkdA==,AwEf2yisEpflVm8R2X08SCJM89apu7tUFzbpndsTIt5o9/xdoXKomMUk9REz+yrpkd+jFhlkJMQHHVMhgjiWYCEdpQ==,,,,,2,AwBaIc8ZWFm4O9QO0ofJeS9Q7tki7CAscBXRDnajEp7rmKNgrpRyyu1ezSpborwaloWR9kDKPLdYVV8SNk2V/1EudA==,AwGE8MPAnPKKXF15EyrAx1bRinwgoqYVO4Junz5IXQjGLyQpSr5NwO/hqu5E5egHte20jm380Wn2Qy6GgKNiRLy/gQ==,AwCAOjOQNdMN5uIB0POFzYS/fpxZ0Q5KfhlP5fijNmc/daO5frSrwhgcMH5lMKL4EGjBI1p6JMe3fuMqb5t1ImeTBg==,,,,,2,AgARSg2izcK6iZLFe4YkIS6yZgnt8cd9DFqpQ37gNmcccZwBI+mpsaijTUPo1GT+QUD8zC+6qr/GrzG9q+q7BPxpVw==,AwGM/jFdtoNViQXxgqeL27ZKobjsfyeuXrx8re3UfIe3c4XN16srSpcTfxEZNXDKo1Ff9fRvDVBOwdS6XU2nvo++ng==,AwAtK0eOqcVfzkdJIIkk7BORWwSDTAjtx4aEXwyZ0bla+2rIWDgXi3U5xlgnjeXJNtGsLokkvvX92BOBIw9SuCGhnw==,2,AgCWAAWTW+7jv2a2lc4pGFnumEgyH59wSDRXEYUASCVB249JBmeKFWRKNFTQlph5hTR5Rb+YHFP/qvzmwU11Hs2b0w==,AgANdxpkN+DS4De3aokNjt+e/Ou8GT+p8pUJA+6LHrDBXAddoCR8KpeXW7mESokq6BTEVQXxU3TdqavRkqaeFmpXkw==,AgDDDSEO3e8DCsm1n6dbj2PB9Z/tUzluDCt/utdSLrYFfdFY+Y5K7Vxo9F5/17CzaUbX172SGLt8TfCfuYBrtupgAg==,2,AgB1OG6bj+6kfRvLj8yjMQbl80FdZHZrRVRUfNVRwvjvvbRa5f9s9fNZ8J0a3s3hH+RyfZmGJ4Ufjh5mMiQkwiur6w==,AwBX4GFZNjUdtRdwtWgxyQz7h8Hk0ztaZeM8/e+8ll0o+RjYN+CNP8+lnXEw7wpuC4wcMX05mrjPvHOuy0hOFVNkhQ==,AgDf3el4vbMYIAFEH9WV151/uzl+gkfTQ79T8Iu4KxEVo6UJvCfqkjETlR6aXUJiqaCbSV5odMT50lURsmfgALf6AQ==,,,,,2,AgENmnviZkgQWXZ5QDgCCE2zq0IiXURTqK2UNPtEg3o64yjlrQQUd2rO/KgKolyCQcKYTVoMj7k2VeCSSVRr8KGC7w==,AwFv6ZJzhpV/Ms00QkrkNiCKVRFczn/yqnkiBFUHC1RQv3tqzzYSEUeXmDHmm0/kEBtnfgRWjHQm9zxS8Jzy7srDLQ==,AwB8aS5KA1dFLKCA1a/7Wsjhef+6kkNAB/GO9AOvRZbFW/dhl5fx04Alh+g78fwcVMX+eEIEJgSyH0jhv7kmiQh4ew==,,,,,2,AgG8fXrCra6UgP5G89TaE6PH5E0TANb/PJPbKwzdi78XEHRUmcTz6PIhYtclTmcdq5TH0IwQv+ra5ppf4qR4LtkGig==,AgEKzsmZrikmXzJywMpzkAdG9hAPlOiRY9oXKf4Sh50CL8btUItjfVJWg3ubNhotzJK+fnNlRrcMkWQEBD/aGKpf8A==,AwFi+2cGpuvVdR+pT1P9Ur8jAkzmjJK2XmUQbFpyMi5Jc9a5/fPnBWCxmTX8CH5wks0PicYC6rzZC3NEIt0EoM1Qfg==,,,,,2,AgHbTZgTAv8lLBsoX06Hkm9XPU+crlRqKl0xL8v18xeUUPY1YAvUYf2OAutmTtPRycXyzrDWSpn2h5xfk/dtq/BICg==,AwAjPydfoUhfSVFKWNI4Ox4a/psZGDIGzEEWh9HyVtAmjdNb5ctr/S6z+akiRfPlNCsVf6TdkzJ2Su6BO4sOX/SHKA==,AwBVmjn7AitCe4zQ/Fl0sYW2XqXkJxJBDviwl9jYhoq29v90n9escDsiA3Cy+1uW69MezdZBEszFdEWlX0EzbQZQ6A==,,,,,2,AwCG0RBHwHuame/1G7qtUjmwz0gkCP1tyZiEgm7aTKpsCjt7UsMirMmx/ZrNlvSzkGuVbRO97Szzr+9fo4baH1rEZA==,AwHyMK/q8FUUvoHTt7O7KJUxYz/ZHF6SntbmKfbygLVw4HWc/eFic4DXHKbEGWvrMO5b37GksqxfQHc2xlAuj8ZRIw==,AgB5x0BxqiMYxRvzlq0+/RkbOuNA7hYuMG+7D6wlMOxSskgqyfwA0MfW+AkXFqnqfqsoJRpDy15bABWhH6MIdJsPEA==,,,,,2,AwAS/nCH0pcrsllSy2duadUs1rMtL6vtz7VTUAVhn1/YYlZ068ysBi1Mdz9gJFewdyeGLnFhyg+W15rFB317nyeGHg==,AwBh6f5UVRMM5ekWqkrx6XiVOK/BL0TinjsSLna8BjkQPXU2DvGxiKPhA03/GtBdEpihEX4bVaHQhiOupTf7wh6bCQ==,AgGPDFH8Kv8hz2aUJ955nHu8NiAoTmDjqhlXuJ1T83h+O0sc2GieLhmXmpEjxjEAyxkqjb2nFxvDhi+YGs4MqI4S5A==,,,,,2,AwDqwFv6bqpM/6PTCJ/wgRALYVT+Rn54HIB2icP6ODNexaoqILBS9p1k1QENbQsBZ9LmJJwngRQXi07Q4P8br76Qfw==,AgG8yTiO8tFWZqQELBr+Zt1fKKA3bl08836nUEEpD55Sid0ZywCrWe+Va58xbMIWscISLPbBvXIdO48ZgoHsLgA7Jw==,AwCI1Ud0GJLnS86mSC58HNB91lH9kPpQbufGn+WJErGxAQubtSFBc3rnT0SNE3CbW+1MPjYBbdCgxpHjN/iQf96++w==,,,,;2,AgB9YhljgPngkwwYTBMUaMGR+rWMjvlK0tgrzkG8OT9NGNJfaaLP6AzfhWrT5oe9NRnabU25pQvDhAIGZCajDy8N2g==,AwE5Irce6LOSxfLgn4PZh1PeDPjAHb5wPTNfmQoWFY83dNQLYN44FupJaQRRUqBqyGNB0SL76GKzr8G9tKLAHOxRSQ==,BAG5iWHEhlWkvtyAlQy4bwKa1iNRzJq8WJTh2GE9oT4DeJRmO1pCHy9P+9YktDT+4RgV9s8AzOYih1LmHW14uP27HQGg1nTdHyab9/nFUe9BFxIi8xQTPG8et9++5I+gKIeWGCXBL31sBhpaMewvVhDjl2d3+7H2PUv9IY3lyIRFA6N16A==,2,AwAPIoQJqSbXFKXQAIG9J+/+/41NLX0rDINImk4eBgAnZ4V0R8YSqkHD3nd0IrEMyK7OpkCXkxTzOlwJlfEfti+vew==,AwAQ8KdMYsEOqM3eyGv/XbHnGf+TqCAG39Gz/juBcioOOJmLOFjl6oCITozJOyPusbTRXZ4eIwgQYkl12mt6saTpgQ==,BACkTO+3rRUF81w5yzZskFiIRyVxc6sdJfDFX6C+Jy5A+s/sfHskrFx2GYNklZaYztP0/B64a6v6HvFWVz8GuYj2wgHhiCL+QwLThFpaRxh8kUMSrt4VuXSIjtHwRXzhSdEbG2T6C/+CJZxIFh/ugEV9SS51l1HrLdnJDb2Kdu3QC3lRkQ==;2,AgC99VyiRLJ2kFf3oCkb+JPVV7B4tXVGI2NVT7fdKtB+gEjCcdkbS5YEXm/Sq6NAJEOKilMTFUDLYFDOe+7JHj/4pw==,AgAbT080sbKVHH9lim3tVCYS4cMz+rLownRKqtYZ7AfR8qy819R1GFywQ0kImgcdjEey5C4m0OPTwgtkO+C5uWtKfQ==,BADKYt9i0zTJeh3H8t6d8pZdncz3f28v1oWrssLZwAutkIcF3XKkPNmK3X75K3sImUSch//IIRIB1Yi5/MrZZeDrxQHhQZEg6AA8bDxgt0JdOEX2t4crzDu3gW5I8y+Ya0fZr1RmxvfMr2UxRhSsNsz949v/g+GPfsrEfDqIWTiNlJfwyg==,2,AgEPMjgCfgGRaZ/5I1hLqDoJ8nXYeTlnt9YeK4K8w+HnRAoAD09zkPcLMWajIjupe/CUFrHz00sAvs+vOPeKxGrLiQ==,AgDy7g2DcDwmIW7LtTTteHExD/cyP4BMWimEAM1RfAd/Y6P8XkmRGgglfdLJ7RGTR2YIMB1lxQ/LQUbmzyjTiiuWow==,BAHJ7oHVr/0wweyGlg4f9Dqmx8h0m35jMdrEFwVY8l/ENKpOTxG/oh9vAvo1uw39wUOn4CWGBmAFE2lsvWFW18gt+gHPFt5/9ihUFN9mtxFLT1Q3W4Uf8IdekHPMbNlxEp1wId7EH3XsAox3Eo8b3XnYpwfsAXoDwQa2wyiO5h104Ptvsg==;2,AwClCMGcHdd7rD8sYDC/GXyAtLmZ/JI4v+aOK4PXzjWJi/zvcsXT5dJUOm9bW6AAtzgOKPd0WwU3hSytJ+ATy146Uw==,AgADzN6ysOIC9GAuMF9suYNfkR027H/9OcpeVJb4HRHfZ/EOmQWSdJmJFw3F/NLUrreNnFCvuF1+1bbmHa3tvznjeA==,BADwaRJF9z3DW7HE3qhGu6Yd9d2WBfWy8opd7Mhkg7TpAQsn9oA3UcpCarn4DMSnVGG94Y3Pxsj5vlm5G7GMKiGoxAERnETH6pVgBxhtrnBU6l4vHl+X4rd8I/zheZiG0EFKJza41rmwKHTY4+42PJ8/3Y2rCanbY1RSAJEgiZR89k6nGg==,2,AgCK80PhKSC23aVKQ8uYm+79GWZiwpbV5lc8Fzcpwu8hdKGAMH4f62Y//cmrQmCIltm03PTVPMn6rMwkfoz+9M2LDQ==,AgH5aXThIKUjENFTGCGwcTRql7xIe8vR9h78KikTYkD8itQ+YBDrnx5OaNyWRjpIJHAZ2B61W2aVjZ5Rmo0d1B1Pcw==,BAAEZsEKw59QSRxN1QmWcx4X2LaK4+zBuawh+2CIRPljWyxK6XhIM6EEalr44Klce4OTK2QbxT5n3Kjnh5jNuwCOawAH/wiNrx09+HY8SZrRjCjv1+Lnicybrqg/IFDNoAGT5aguaGRIMmGOLe0QFJr0T0iW3RnYGlmSd/r6ex8+MpOgLw==</decrypt_val></awr_decrypt>";
- String replyString = connectSPU.sendReceive(Type.DECRYPT, requestString);
- System.out.println("REQUEST URL: " + requestString);
- System.out.println("REPLY: " + replyString);
- ReplyDecryption reply = (new XMLParserDecrypt()).stringToReply(replyString);
- return reply;
- }
-
- public ReplyMaterial callServiceMaterial(RequestMaterial rqtMaterial) {
- String requestString = URLParserMaterial.requestToString(rqtMaterial);
- String replyString = connectSPU.sendReceive(Type.MATERIAL, requestString);
-
- System.out.println("Material request:");
- System.out.println(replyString);
-
- ReplyMaterial reply = (new XMLParserMaterial()).stringToReply(replyString);
- return reply;
- }
-
- public ReplySurvey callServiceSurvey(){
-
-// String replyString = connectSPU.sendReceive(Type.SURVEY,"");
- String replyString ="<awr_survey><v_questions>1::What's your name?::1;2::Where are you from?::2;3::How old are you?::3;4::How old are you?::3;5::How old are you?::3;6::How old are you?::3</v_questions><v_locations>Lausanne;Basel;Zurich</v_locations></awr_survey>";
- ReplySurvey reply = (new XMLParserSurvey()).stringToReply(replyString);
- return reply;
- }
-
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/41/2050d5775aac001410e2e30aa85db9d1 b/.metadata/.plugins/org.eclipse.core.resources/.history/41/2050d5775aac001410e2e30aa85db9d1
deleted file mode 100644
index 842b131..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/41/2050d5775aac001410e2e30aa85db9d1
+++ /dev/null
@@ -1,71 +0,0 @@
-package io;
-
-import io.serializer.url.URLParserDecrypt;
-import io.serializer.url.URLParserMaterial;
-import io.serializer.xml.XMLParserDecrypt;
-import io.serializer.xml.XMLParserMaterial;
-import io.serializer.xml.XMLParserSurvey;
-
-import java.util.logging.Logger;
-
-import framework.Type;
-import framework.reply.ReplyDecryption;
-import framework.reply.ReplyMaterial;
-import framework.reply.ReplySurvey;
-import framework.request.RequestDecryption;
-import framework.request.RequestMaterial;
-
-public class CommAdapter {
-
- @SuppressWarnings("unused")
- private static final Logger LOGGER = Logger.getLogger(CommAdapter.class.getName());
-
- public ClientConnection connectSPU = null;
-
- public CommAdapter(ClientConnection connectSPU) {
- this.connectSPU = connectSPU;
- }
-
- public ReplyDecryption callServiceDecrypt(RequestDecryption rqtDecrypt) {
- String requestString = URLParserDecrypt.requestToString(rqtDecrypt);
-// String replyString = "<awr_decrypt><patient>30351</patient><v_timestamp>1417188729390</v_timestamp><decrypt_val>,,,,,,,,,,,,,,,,2,AwHR3OO0/hkwgEHluLDFLtn4aaTBAwBEJjJpMegGa29ASgtyt1ha2OOyxvEvNgkIaY0xWXtTmqrqhSBKDG6J7Lps0g==,AwE/oifhonvUZDA4mqRK8K1WCkoepEuL9SidjdFXMNNZQXCMUvVN6pBUYVFgJeFX6mT2jruK8ic3y6yI14PfKl/Pvg==,AgBHs6HGF9AYNc5RlFTGv025WEaT91i/MPy+HXqhvHOrp0Ol9/aKyvv2BgAzeAdsdSEbVs2sahiyL/kbKjeUoI9tsA==,,,,,,,,,,,,,2,AgHIofEmf4aJMLBnKAY3/8WcLXUETF4y/68fzZR6hsS5btZTyI0E4ZTltDzV6hBzIT14cC4S/BMclo1aoLt5C9f+Cg==,AgDOXZAZAwO4KXslqU1wKctrVlH8CcGvpO8gGrPl3YjrY8SR3a6gStvZvjcUKXhvtDkRwSLAIkD3lFrKSXWestHSqQ==,AgG7Y5so9ZTRng2Xm3ziWx3+7zfaVLkIJ2v7g+qEUx5Vl2/udDOcg/was8W6qbKYeo/W0EGTlNXKTOdIatGVxyuoZA==,,,,,2,AgDAVy0/nE6X4iAengG9lCiYEBMtK6rAAiy7OwC7U/QSbokiEzH0RafH7rb+5L5R/ii9/3kZCcKmgOIoPzkmeloDfg==,AgHuvmLAeIFYm4ObEBO2v9xTK6tjYfdh+x4kwULBpDNlUiW4kNNaeoeziRA7nlRvcSfxPlR070N/3qzBMu3EKZ2csQ==,AgDk/CzCL4XUobuNaLsvrH5s0COMKYBqY/18YRR0d7mIsVVYrKVGF+IWnEluhbLt+BoRBdvL5UElgroyORJpiKz06w==,,,,,2,AgH0nW+2h+vcOZgPe3uR7jEHmEPi+g4izQ3OIU9An2vekwbG1liBFgTo33pEhyXhNWPhGCbSb73sJ7pt0JLL+hhWMw==,AgHG039OnpvmllkV6QBsmoMdqISrRuW2q5M3jfUp5TUbU6F/3S2FK1iSVKWgTsI291re6lz6KH5d8rWrnoCAozhIeg==,AwGjmnLUMd42F7a/tsSkeqcxoHMAXNKdvF4kOXoAxmc6ZSxaUhzkGkcgNOO8SFNiWqTKgtZCffJ7hfI0voAUX0TD1w==,,,,,2,AwHfYRjQFscHzOvVozackTaM3sybOjyd2aLc4B+WQ7KiWHoGKkzQScoDiy8hiA2cJpv8ngfitTqJRLlyegvuM+Ietw==,AwAP92OqrJFpFmdrMUUx6FeFhwVLYtAsfw3sem2RYu7ljPry+uJnvluuzTvVaFhs8BAAD8VBFs1vqrSHyQEq8Ocsmw==,AwDNXg/JA4QXA6wu30DUE7peOk1a10aHbd38iwjN1Q0DKy3BqS36+EQKg5hbwELxN2+/Yu4UA1IKWYJI0zNs6TJUtA==,,,,,2,AwBWFv3ivyQz4CGIilJ7CVtpQGOs1tnIW+0uxQyiWIO3HDjJtfxPyQ1AJWPsBQ9eYmaoKmPnN+euPCm7bP0LxBL/Tg==,AwHg7AZb5DV5OJrl0omtKx2OqckXcQEUT8pZ+Bmo9AyULgL5HOq2AVU04qhvbdy0W4OMYqxF3uBwqT6dNhFptsKEKQ==,AwG9dyMbI5EI8UCXuj5JkQRMimcT1u6zCBAfmRvANtT54yDtC8KS6VeOr7h/NP4qrf/mbl5tMaePbkkHrc6E39ntsA==,,,,,2,AwHkMyCOJm/RlYOybGhX3DchR/wSN2L3PuXKalMszgk3WOCiWSpYlP3SOPLWvJTRQaTxoN+oA5IkCTvlp02+Mduaxg==,AgHhR8HjavXjnsy+rHptc/JSI5pLFjM0RczUygxTX7vqV/yqwZ280Rq7YpXKp2GBfiZvFf0qIQoWe4vx5DBxwvHkdA==,AwEf2yisEpflVm8R2X08SCJM89apu7tUFzbpndsTIt5o9/xdoXKomMUk9REz+yrpkd+jFhlkJMQHHVMhgjiWYCEdpQ==,,,,,2,AwBaIc8ZWFm4O9QO0ofJeS9Q7tki7CAscBXRDnajEp7rmKNgrpRyyu1ezSpborwaloWR9kDKPLdYVV8SNk2V/1EudA==,AwGE8MPAnPKKXF15EyrAx1bRinwgoqYVO4Junz5IXQjGLyQpSr5NwO/hqu5E5egHte20jm380Wn2Qy6GgKNiRLy/gQ==,AwCAOjOQNdMN5uIB0POFzYS/fpxZ0Q5KfhlP5fijNmc/daO5frSrwhgcMH5lMKL4EGjBI1p6JMe3fuMqb5t1ImeTBg==,,,,,2,AgARSg2izcK6iZLFe4YkIS6yZgnt8cd9DFqpQ37gNmcccZwBI+mpsaijTUPo1GT+QUD8zC+6qr/GrzG9q+q7BPxpVw==,AwGM/jFdtoNViQXxgqeL27ZKobjsfyeuXrx8re3UfIe3c4XN16srSpcTfxEZNXDKo1Ff9fRvDVBOwdS6XU2nvo++ng==,AwAtK0eOqcVfzkdJIIkk7BORWwSDTAjtx4aEXwyZ0bla+2rIWDgXi3U5xlgnjeXJNtGsLokkvvX92BOBIw9SuCGhnw==,2,AgCWAAWTW+7jv2a2lc4pGFnumEgyH59wSDRXEYUASCVB249JBmeKFWRKNFTQlph5hTR5Rb+YHFP/qvzmwU11Hs2b0w==,AgANdxpkN+DS4De3aokNjt+e/Ou8GT+p8pUJA+6LHrDBXAddoCR8KpeXW7mESokq6BTEVQXxU3TdqavRkqaeFmpXkw==,AgDDDSEO3e8DCsm1n6dbj2PB9Z/tUzluDCt/utdSLrYFfdFY+Y5K7Vxo9F5/17CzaUbX172SGLt8TfCfuYBrtupgAg==,2,AgB1OG6bj+6kfRvLj8yjMQbl80FdZHZrRVRUfNVRwvjvvbRa5f9s9fNZ8J0a3s3hH+RyfZmGJ4Ufjh5mMiQkwiur6w==,AwBX4GFZNjUdtRdwtWgxyQz7h8Hk0ztaZeM8/e+8ll0o+RjYN+CNP8+lnXEw7wpuC4wcMX05mrjPvHOuy0hOFVNkhQ==,AgDf3el4vbMYIAFEH9WV151/uzl+gkfTQ79T8Iu4KxEVo6UJvCfqkjETlR6aXUJiqaCbSV5odMT50lURsmfgALf6AQ==,,,,,2,AgENmnviZkgQWXZ5QDgCCE2zq0IiXURTqK2UNPtEg3o64yjlrQQUd2rO/KgKolyCQcKYTVoMj7k2VeCSSVRr8KGC7w==,AwFv6ZJzhpV/Ms00QkrkNiCKVRFczn/yqnkiBFUHC1RQv3tqzzYSEUeXmDHmm0/kEBtnfgRWjHQm9zxS8Jzy7srDLQ==,AwB8aS5KA1dFLKCA1a/7Wsjhef+6kkNAB/GO9AOvRZbFW/dhl5fx04Alh+g78fwcVMX+eEIEJgSyH0jhv7kmiQh4ew==,,,,,2,AgG8fXrCra6UgP5G89TaE6PH5E0TANb/PJPbKwzdi78XEHRUmcTz6PIhYtclTmcdq5TH0IwQv+ra5ppf4qR4LtkGig==,AgEKzsmZrikmXzJywMpzkAdG9hAPlOiRY9oXKf4Sh50CL8btUItjfVJWg3ubNhotzJK+fnNlRrcMkWQEBD/aGKpf8A==,AwFi+2cGpuvVdR+pT1P9Ur8jAkzmjJK2XmUQbFpyMi5Jc9a5/fPnBWCxmTX8CH5wks0PicYC6rzZC3NEIt0EoM1Qfg==,,,,,2,AgHbTZgTAv8lLBsoX06Hkm9XPU+crlRqKl0xL8v18xeUUPY1YAvUYf2OAutmTtPRycXyzrDWSpn2h5xfk/dtq/BICg==,AwAjPydfoUhfSVFKWNI4Ox4a/psZGDIGzEEWh9HyVtAmjdNb5ctr/S6z+akiRfPlNCsVf6TdkzJ2Su6BO4sOX/SHKA==,AwBVmjn7AitCe4zQ/Fl0sYW2XqXkJxJBDviwl9jYhoq29v90n9escDsiA3Cy+1uW69MezdZBEszFdEWlX0EzbQZQ6A==,,,,,2,AwCG0RBHwHuame/1G7qtUjmwz0gkCP1tyZiEgm7aTKpsCjt7UsMirMmx/ZrNlvSzkGuVbRO97Szzr+9fo4baH1rEZA==,AwHyMK/q8FUUvoHTt7O7KJUxYz/ZHF6SntbmKfbygLVw4HWc/eFic4DXHKbEGWvrMO5b37GksqxfQHc2xlAuj8ZRIw==,AgB5x0BxqiMYxRvzlq0+/RkbOuNA7hYuMG+7D6wlMOxSskgqyfwA0MfW+AkXFqnqfqsoJRpDy15bABWhH6MIdJsPEA==,,,,,2,AwAS/nCH0pcrsllSy2duadUs1rMtL6vtz7VTUAVhn1/YYlZ068ysBi1Mdz9gJFewdyeGLnFhyg+W15rFB317nyeGHg==,AwBh6f5UVRMM5ekWqkrx6XiVOK/BL0TinjsSLna8BjkQPXU2DvGxiKPhA03/GtBdEpihEX4bVaHQhiOupTf7wh6bCQ==,AgGPDFH8Kv8hz2aUJ955nHu8NiAoTmDjqhlXuJ1T83h+O0sc2GieLhmXmpEjxjEAyxkqjb2nFxvDhi+YGs4MqI4S5A==,,,,,2,AwDqwFv6bqpM/6PTCJ/wgRALYVT+Rn54HIB2icP6ODNexaoqILBS9p1k1QENbQsBZ9LmJJwngRQXi07Q4P8br76Qfw==,AgG8yTiO8tFWZqQELBr+Zt1fKKA3bl08836nUEEpD55Sid0ZywCrWe+Va58xbMIWscISLPbBvXIdO48ZgoHsLgA7Jw==,AwCI1Ud0GJLnS86mSC58HNB91lH9kPpQbufGn+WJErGxAQubtSFBc3rnT0SNE3CbW+1MPjYBbdCgxpHjN/iQf96++w==,,,,;2,AgB9YhljgPngkwwYTBMUaMGR+rWMjvlK0tgrzkG8OT9NGNJfaaLP6AzfhWrT5oe9NRnabU25pQvDhAIGZCajDy8N2g==,AwE5Irce6LOSxfLgn4PZh1PeDPjAHb5wPTNfmQoWFY83dNQLYN44FupJaQRRUqBqyGNB0SL76GKzr8G9tKLAHOxRSQ==,BAG5iWHEhlWkvtyAlQy4bwKa1iNRzJq8WJTh2GE9oT4DeJRmO1pCHy9P+9YktDT+4RgV9s8AzOYih1LmHW14uP27HQGg1nTdHyab9/nFUe9BFxIi8xQTPG8et9++5I+gKIeWGCXBL31sBhpaMewvVhDjl2d3+7H2PUv9IY3lyIRFA6N16A==,2,AwAPIoQJqSbXFKXQAIG9J+/+/41NLX0rDINImk4eBgAnZ4V0R8YSqkHD3nd0IrEMyK7OpkCXkxTzOlwJlfEfti+vew==,AwAQ8KdMYsEOqM3eyGv/XbHnGf+TqCAG39Gz/juBcioOOJmLOFjl6oCITozJOyPusbTRXZ4eIwgQYkl12mt6saTpgQ==,BACkTO+3rRUF81w5yzZskFiIRyVxc6sdJfDFX6C+Jy5A+s/sfHskrFx2GYNklZaYztP0/B64a6v6HvFWVz8GuYj2wgHhiCL+QwLThFpaRxh8kUMSrt4VuXSIjtHwRXzhSdEbG2T6C/+CJZxIFh/ugEV9SS51l1HrLdnJDb2Kdu3QC3lRkQ==;2,AgC99VyiRLJ2kFf3oCkb+JPVV7B4tXVGI2NVT7fdKtB+gEjCcdkbS5YEXm/Sq6NAJEOKilMTFUDLYFDOe+7JHj/4pw==,AgAbT080sbKVHH9lim3tVCYS4cMz+rLownRKqtYZ7AfR8qy819R1GFywQ0kImgcdjEey5C4m0OPTwgtkO+C5uWtKfQ==,BADKYt9i0zTJeh3H8t6d8pZdncz3f28v1oWrssLZwAutkIcF3XKkPNmK3X75K3sImUSch//IIRIB1Yi5/MrZZeDrxQHhQZEg6AA8bDxgt0JdOEX2t4crzDu3gW5I8y+Ya0fZr1RmxvfMr2UxRhSsNsz949v/g+GPfsrEfDqIWTiNlJfwyg==,2,AgEPMjgCfgGRaZ/5I1hLqDoJ8nXYeTlnt9YeK4K8w+HnRAoAD09zkPcLMWajIjupe/CUFrHz00sAvs+vOPeKxGrLiQ==,AgDy7g2DcDwmIW7LtTTteHExD/cyP4BMWimEAM1RfAd/Y6P8XkmRGgglfdLJ7RGTR2YIMB1lxQ/LQUbmzyjTiiuWow==,BAHJ7oHVr/0wweyGlg4f9Dqmx8h0m35jMdrEFwVY8l/ENKpOTxG/oh9vAvo1uw39wUOn4CWGBmAFE2lsvWFW18gt+gHPFt5/9ihUFN9mtxFLT1Q3W4Uf8IdekHPMbNlxEp1wId7EH3XsAox3Eo8b3XnYpwfsAXoDwQa2wyiO5h104Ptvsg==;2,AwClCMGcHdd7rD8sYDC/GXyAtLmZ/JI4v+aOK4PXzjWJi/zvcsXT5dJUOm9bW6AAtzgOKPd0WwU3hSytJ+ATy146Uw==,AgADzN6ysOIC9GAuMF9suYNfkR027H/9OcpeVJb4HRHfZ/EOmQWSdJmJFw3F/NLUrreNnFCvuF1+1bbmHa3tvznjeA==,BADwaRJF9z3DW7HE3qhGu6Yd9d2WBfWy8opd7Mhkg7TpAQsn9oA3UcpCarn4DMSnVGG94Y3Pxsj5vlm5G7GMKiGoxAERnETH6pVgBxhtrnBU6l4vHl+X4rd8I/zheZiG0EFKJza41rmwKHTY4+42PJ8/3Y2rCanbY1RSAJEgiZR89k6nGg==,2,AgCK80PhKSC23aVKQ8uYm+79GWZiwpbV5lc8Fzcpwu8hdKGAMH4f62Y//cmrQmCIltm03PTVPMn6rMwkfoz+9M2LDQ==,AgH5aXThIKUjENFTGCGwcTRql7xIe8vR9h78KikTYkD8itQ+YBDrnx5OaNyWRjpIJHAZ2B61W2aVjZ5Rmo0d1B1Pcw==,BAAEZsEKw59QSRxN1QmWcx4X2LaK4+zBuawh+2CIRPljWyxK6XhIM6EEalr44Klce4OTK2QbxT5n3Kjnh5jNuwCOawAH/wiNrx09+HY8SZrRjCjv1+Lnicybrqg/IFDNoAGT5aguaGRIMmGOLe0QFJr0T0iW3RnYGlmSd/r6ex8+MpOgLw==</decrypt_val></awr_decrypt>";
- String replyString = connectSPU.sendReceive(Type.DECRYPT, requestString);
- System.out.println("REQUEST URL: " + requestString);
- System.out.println("REPLY: " + replyString);
- ReplyDecryption reply = (new XMLParserDecrypt()).stringToReply(replyString);
- return reply;
- }
-
- public ReplyMaterial callServiceMaterial(RequestMaterial rqtMaterial) {
- String requestString = URLParserMaterial.requestToString(rqtMaterial);
- String replyString = connectSPU.sendReceive(Type.MATERIAL, requestString);
-
- System.out.println("Material request:");
- System.out.println(replyString);
-
- ReplyMaterial reply = (new XMLParserMaterial()).stringToReply(replyString);
- return reply;
- }
-
- public ReplySurvey callServiceSurvey(){
-
- String replyString = connectSPU.sendReceive(Type.SURVEY_Q,"");
- //4::What's your name?::1;5::Where are you from?::2;6::How old are you?::3;7::What's your name?::1;8::Where are you from?::2;9::How old are you?::3;10::What's your name?::1;11::Where are you from?::2;12::How old are you?::3;13::What's your name?::1;14::Where are you from?::2;15::How old are you?::3
-// String replyString ="<awr_survey><v_questions>1::What's your name?::1;2::Where are you from?::2;3::How old are you?::3;4::A hacker or a disgruntled employee steals from a hospital database the unprotected genome of a known personality. He finds out this person's ethnicity and predisposition to diseases. As a result, he sells this information to tabloids and newspapers. Theft of unprotected medical data is an important concern and hospitals should take more steps to make sure that unauthorized people cannot access personal information in their computers.::3;4::A hacker or a disgruntled employee steals from a hospital database the unprotected genome of a known personality. He finds out this person's ethnicity and predisposition to diseases. As a result, he sells this information to tabloids and newspapers. Theft of unprotected medical data is an important concern and hospitals should take more steps to make sure that unauthorized people cannot access personal information in their computers.::3;5::A hacker or a disgruntled employee steals from a hospital database the unprotected genome of a known personality. He finds out this person's ethnicity and predisposition to diseases. As a result, he sells this information to tabloids and newspapers. Theft of unprotected medical data is an important concern and hospitals should take more steps to make sure that unauthorized people cannot access personal information in their computers.::3;6::How old are you?::3;7::What's your name?::1;8::Where are you from?::2;9::How old are you?::3;10::What's your name?::1;11::Where are you from?::2;12::How old are you?::3;13::What's your name?::1;14::Where are you from?::2;15::How old are you?::3;</v_questions><v_locations>50::Lausanne;60::Basel;70::Zurich</v_locations></awr_survey>";
- ReplySurvey reply = (new XMLParserSurvey()).stringToReply(replyString);
- return reply;
- }
-
- public String callServiceSurveyAnswer(String survey, String id_loc, String id_p){
-
- StringBuilder sb = new StringBuilder();
- sb.append("id_p=").append(id_p);
- sb.append("&timestamp=").append(System.currentTimeMillis());
- sb.append("&id_loc=").append(id_loc);
- sb.append("&answer=").append(survey);
- String replyString = connectSPU.sendReceive(Type.SURVEY_A, sb.toString());
- return replyString;
-
- }
-
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/41/a0b1b78e4dac001410e2e30aa85db9d1 b/.metadata/.plugins/org.eclipse.core.resources/.history/41/a0b1b78e4dac001410e2e30aa85db9d1
deleted file mode 100644
index 537d243..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/41/a0b1b78e4dac001410e2e30aa85db9d1
+++ /dev/null
@@ -1,892 +0,0 @@
-package ui;
-
-import io.ClientConnection;
-import io.CommAdapter;
-import io.Questionnaire;
-
-import java.awt.BorderLayout;
-import java.awt.Color;
-import java.awt.Component;
-import java.awt.Dimension;
-import java.awt.FlowLayout;
-import java.awt.Font;
-import java.awt.SystemColor;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.awt.event.WindowAdapter;
-import java.io.File;
-import java.io.IOException;
-import java.sql.SQLException;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.LinkedList;
-import java.util.Map;
-import java.util.Set;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
-import javax.swing.Box;
-import javax.swing.BoxLayout;
-import javax.swing.ButtonGroup;
-import javax.swing.DefaultComboBoxModel;
-import javax.swing.GroupLayout;
-import javax.swing.GroupLayout.Alignment;
-import javax.swing.ImageIcon;
-import javax.swing.JButton;
-import javax.swing.JComboBox;
-import javax.swing.JDialog;
-import javax.swing.JFileChooser;
-import javax.swing.JFrame;
-import javax.swing.JLabel;
-import javax.swing.JOptionPane;
-import javax.swing.JPanel;
-import javax.swing.JRadioButton;
-import javax.swing.JScrollPane;
-import javax.swing.JSeparator;
-import javax.swing.JTabbedPane;
-import javax.swing.JTextArea;
-import javax.swing.JTextPane;
-import javax.swing.JTree;
-import javax.swing.LayoutStyle.ComponentPlacement;
-import javax.swing.SwingConstants;
-import javax.swing.UIManager;
-import javax.swing.border.BevelBorder;
-import javax.swing.border.EmptyBorder;
-import javax.swing.border.EtchedBorder;
-import javax.swing.tree.DefaultMutableTreeNode;
-import javax.swing.tree.TreeModel;
-import javax.swing.tree.TreePath;
-
-import org.jpedal.examples.viewer.Commands;
-import org.jpedal.examples.viewer.Viewer;
-
-import utils.ClientProperties;
-
-import com.itextpdf.text.DocumentException;
-
-import database.DBconnectorClient;
-import framework.Diagnostic;
-import framework.MedUnit;
-import framework.Question;
-import framework.reply.ReplySurvey;
-import framework.test.TestName;
-
-/**
- *
- * @author youssef, raisaro
- */
-public class GUI extends javax.swing.JFrame {
-
- private static final Logger LOGGER = Logger.getLogger(GUI.class.getName());
-
- private static final long serialVersionUID = -4582280515597700650L;
-
- // configuration
- private ClientProperties props;
-
- private JTree jTree;
- private DBconnectorClient connectorClientDB;
- private LinkedList<Integer> patients;
-
- /** List of all relevant tests */
- private HashMap<String, TestName> testsByName;
- private Viewer viewer;
- private JDialog dialog;
- private JFrame frame;
- private boolean survey_submitted;
- private int close_trials;
- private Map<Integer, ButtonGroup> buttonGroupMap;
- private Questionnaire quest;
- private Map<Integer, Question> map;
- private Set<Integer> ids;
- private Map<String,String> answers;
- private Map<Integer, String> locations;
-
-
- /**
- * Creates new form GUI
- */
- public GUI(ClientProperties props){
-
- frame = this;
- this.props = props;
- this.connectorClientDB = new DBconnectorClient(props.getDbMsAccess());
- survey_submitted = false;
- close_trials = 0;
-
-
- try {
- initComponents();
-
- viewer = new Viewer(jScrollPane2, null);
- viewer.setupViewer();
-
- // create questionnare
-
-
- System.out.println("#of questions: " + ids.size());
-
-// viewer_q = new Viewer(jScrollPane4, null);
-// viewer_q.setupViewer();
-//
-// // specify file you wish to open (JPedal handles getting the byte data)
-// String filepathReport = "outputPDF/buttons_filled.pdf";
-//
-// // open generated PDF
-// // object must be either String in full filepath, or
-// // File object which can be relative
-// Object[] input = new Object[]{ new File(filepathReport) };
-// viewer_q.executeCommand(Commands.OPENFILE, input);
-
- JButton btnSubmitQuestionnaire = new JButton("Submit Questionnaire");
- btnSubmitQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- btnSubmitQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- submitButtonActionPerformed(arg0);
- }
- });
- JButton btnResetQuestionnaire = new JButton("Save as PDF");
- btnResetQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- savePDFButtonActionPerformed(arg0);
- }
- });
- btnResetQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- JPanel panel_button = new JPanel();
- panel_button.setLayout(new BoxLayout(panel_button, BoxLayout.X_AXIS));
-
- lblNewLabel_3 = new JLabel("");
- lblNewLabel_3.setIcon(new ImageIcon("res/location_icon.png"));
- panel_button.add(lblNewLabel_3);
-
-
-
- comboBox = new JComboBox<String>();
- comboBox.setFont(new Font("Tahoma", Font.BOLD, 12));
- comboBox.setModel(new DefaultComboBoxModel<String>(new String[] {"Select Location"}));
- for(Integer id_loc : locations.keySet()){
- comboBox.addItem(locations.get(id_loc));
- }
-
-
- panel_button.add(comboBox);
-
- rigidArea = Box.createRigidArea(new Dimension(10, 0));
- panel_button.add(rigidArea);
-
- lblNewLabel_1 = new JLabel("");
- lblNewLabel_1.setIcon(new ImageIcon("res/submit.png"));
- panel_button.add(lblNewLabel_1);
- panel_button.add(btnSubmitQuestionnaire);
-
- panel_button.add(Box.createRigidArea(new Dimension(10,0)));
-
- lblNewLabel_2 = new JLabel("");
- lblNewLabel_2.setIcon(new ImageIcon("res/pdf.png"));
- panel_button.add(lblNewLabel_2);
- panel_button.add(btnResetQuestionnaire);
- panel_button.setPreferredSize(new Dimension(211, 35));
- panel_button.validate();
-
- JPanel panel_3 = new JPanel();
- GroupLayout gl_panel = new GroupLayout(panel);
- gl_panel.setHorizontalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(41)
- .addGroup(gl_panel.createParallelGroup(Alignment.TRAILING)
- .addComponent(jScrollPane4, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE)
- .addComponent(panel_1, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE))
- .addGap(32))
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(63)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addGap(103)
- .addComponent(panel_button, GroupLayout.DEFAULT_SIZE, 488, Short.MAX_VALUE)
- .addGap(241))
- );
- gl_panel.setVerticalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(22)
- .addComponent(panel_1, GroupLayout.DEFAULT_SIZE, 192, Short.MAX_VALUE)
- .addGap(18)
- .addComponent(jScrollPane4, GroupLayout.DEFAULT_SIZE, 437, Short.MAX_VALUE)
- .addGap(26)
- .addGroup(gl_panel.createParallelGroup(Alignment.LEADING)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(panel_button, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE)))
- );
- panel_3.setLayout(new BoxLayout(panel_3, BoxLayout.X_AXIS));
-
-
- panel.setLayout(gl_panel);
-
-
-
-
-
-
- /////////////////////////////////////////////////////////
- // display the tests available
-
- // get the tests
- HashMap<String, ArrayList<TestName>> testsRelevantByGroup = connectorClientDB.getRelevantTestsByGroup();
- ArrayList<String> groups = new ArrayList<String>(testsRelevantByGroup.keySet());
-
- // flatten hashmap into linkedlist
-// tests = new LinkedList<>();
- testsByName = new HashMap<String, TestName>();
- for (String group : groups) {
-// tests.addAll(testsRelevantByGroup.get(group));
- for (TestName test : testsRelevantByGroup.get(group)) {
- testsByName.put(test.getName(), test);
- }
- }
-
- // define tree structure of the tests
- DefaultMutableTreeNode root = new DefaultMutableTreeNode("All");
-
- for (String group : groups) {
- DefaultMutableTreeNode child = new DefaultMutableTreeNode(group);
- root.add(child);
-
- for (TestName test : testsRelevantByGroup.get(group)) {
- DefaultMutableTreeNode grandChild = new DefaultMutableTreeNode(test.getName());
- child.add(grandChild);
- }
- }
-
- // define swing object
- jTree = new JTree(root);
-
- for(int i=0;i<jTree.getRowCount();i++){
- jTree.expandRow(i);
- }
-
- jScrollPane3.setViewportView(jTree);
-// jTree.addTreeSelectionListener(new TreeSelectionListener() {
-//
-// @Override
-// public void valueChanged(TreeSelectionEvent e) {
-// tp = jTree.getSelectionPaths();
-// }
-// });
- jScrollPane3.setViewportView(jTree);
-
- /////////////////////////////////////////////////////////
- // display the patients registered
-
- patients = connectorClientDB.getPatients();
- for (Integer patientId : patients) {
- jComboBox1.addItem(patientId.toString());
- }
-
- } catch (SQLException ex) {
- Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex);
- ex.printStackTrace();
-// } catch (IOException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
-// } catch (DocumentException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
- }
-
- }
-
- /**
- * 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() {
-
- jPanel1 = new javax.swing.JPanel();
- jLabel2 = new javax.swing.JLabel();
- jLabel1 = new javax.swing.JLabel();
- jPanel2 = new javax.swing.JPanel();
- jComboBox1 = new javax.swing.JComboBox<String>();
- jButton1 = new javax.swing.JButton();
- jButton1.setFont(new Font("Tahoma", Font.BOLD, 12));
- jLabel3 = new javax.swing.JLabel();
- jLabel4 = new javax.swing.JLabel();
- jScrollPane3 = new javax.swing.JScrollPane();
- jScrollPane2 = new javax.swing.JScrollPane();
- jMenuBar1 = new javax.swing.JMenuBar();
- jMenu1 = new javax.swing.JMenu();
- jMenuItem1 = new javax.swing.JMenuItem();
- jMenu2 = new javax.swing.JMenu();
- dialog = new JDialog();
- tabbedPane = new JTabbedPane(JTabbedPane.TOP);
-
- setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
- addWindowListener(new WindowAdapter() {
- @Override
- public void windowClosing(java.awt.event.WindowEvent windowEvent) {
- if (!survey_submitted && close_trials <= 2){
- JOptionPane.showMessageDialog(frame, "Before closing the application, please fill in and submit the questionnaire.");
- close_trials++;
- tabbedPane.setSelectedIndex(1);
- }else{
- System.exit(0);
- }
- }
- });
- setTitle("HIV Pharmacogenomics\n");
-
- jLabel2.setIcon(new javax.swing.ImageIcon("res/shcs_logo2_small.gif")); // NOI18N
-
- jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
- jLabel1.setText("HIV Pharmacogenomics | Project #693");
-
- javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
- jPanel1.setLayout(jPanel1Layout);
- jPanel1Layout.setHorizontalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap(71, Short.MAX_VALUE)
- .addComponent(jLabel1)
- .addGap(18, 18, 18)
- .addComponent(jLabel2))
- );
- jPanel1Layout.setVerticalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jLabel1)
- .addGap(11, 11, 11))
- .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)
- );
-
- jPanel2.setBackground(new java.awt.Color(255, 255, 255));
- jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
-
- jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<String>(new String[]{"Select Patient"}));
-
- jButton1.setText("Run Test");
- jButton1.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton1ActionPerformed(evt);
- }
- });
-
- JLabel lblNewLabel = new JLabel("");
- lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
- lblNewLabel.setIcon(new javax.swing.ImageIcon("res/gears.png"));
-
-
-
- javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
- jPanel2Layout.setHorizontalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addComponent(jComboBox1, 0, 248, Short.MAX_VALUE)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addGap(75)
- .addGroup(jPanel2Layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jButton1)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 75, GroupLayout.PREFERRED_SIZE))
- .addContainerGap(98, Short.MAX_VALUE))
- );
- jPanel2Layout.setVerticalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addComponent(jComboBox1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED, 223, Short.MAX_VALUE)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jButton1)
- .addGap(19))
- );
- jPanel2.setLayout(jPanel2Layout);
-
- jLabel3.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel3.setText("Select Patient");
-
- jLabel4.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel4.setText("Select Test");
-
- jScrollPane3.setBackground(new java.awt.Color(255, 255, 255));
-
- jMenu1.setText("File");
-
- jMenuItem1.setText("Exit");
- jMenu1.add(jMenuItem1);
-
- jMenuBar1.add(jMenu1);
-
- jMenu2.setText("Edit");
- jMenuBar1.add(jMenu2);
-
- setJMenuBar(jMenuBar1);
-
-
-
- javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
- layout.setHorizontalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(layout.createParallelGroup(Alignment.LEADING, false)
- .addComponent(jLabel3)
- .addComponent(jLabel4)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, 244, Short.MAX_VALUE)
- .addComponent(jScrollPane3))
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 970, Short.MAX_VALUE))
- .addContainerGap())
- );
- layout.setVerticalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel4))
- .addPreferredGap(ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addComponent(jScrollPane3, GroupLayout.PREFERRED_SIZE, 388, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jLabel3)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 785, Short.MAX_VALUE))
- .addContainerGap())
- );
-
-
- jScrollPane2.setAutoscrolls(true);
- jScrollPane3.setAutoscrolls(true);
- tabbedPane.addTab("Report", new ImageIcon("res/report_icon.gif"), jScrollPane2, null);
- tabbedPane.setBackgroundAt(0, new Color(255, 255, 255));
-
- panel = new JPanel();
- tabbedPane.addTab("Survey", new ImageIcon("res/survey_icon.png"), panel, null);
- tabbedPane.setBackgroundAt(1, new Color(255, 255, 255));
- tabbedPane.setEnabledAt(1, true);
-
- panel_1 = new JPanel();
- panel_1.setBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null));
- panel_1.setBackground(UIManager.getColor("Button.background"));
-
- JLabel label = new JLabel("");
- label.setIcon(new ImageIcon("res/shcs_logo2_medium.gif"));
-
- lblDearDoctor = new JLabel("Dear Doctor,");
- lblDearDoctor.setFont(new Font("Tahoma", Font.BOLD, 14));
-
- JScrollPane scrollPane = new JScrollPane();
- scrollPane.setBorder(null);
- GroupLayout gl_panel_1 = new GroupLayout(panel_1);
- gl_panel_1.setHorizontalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(25)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 666, Short.MAX_VALUE)
- .addComponent(lblDearDoctor))
- .addContainerGap())
- );
- gl_panel_1.setVerticalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(22)
- .addComponent(lblDearDoctor)
- .addGap(18)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 120, Short.MAX_VALUE)
- .addContainerGap())
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(36)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 96, GroupLayout.PREFERRED_SIZE)
- .addContainerGap(56, Short.MAX_VALUE))
- );
-
- JTextPane txtpnTodayYouAre = new JTextPane();
- txtpnTodayYouAre.setBorder(null);
- txtpnTodayYouAre.setText("Today you are receiving a pharmacogenetic report based on the genetic information of your patient. Because the human genome contains extremely private and sensitive information of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier, it must be managed with care.\r\nToday you are receiving a pharmacogenetic report based on the genetic information of your patient. Because the human genome contains extremely private and sensitive information of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier, it must be managed with care.\r\nToday you are receiving a pharmacogenetic report based on the genetic information of your patient. Because the human genome contains extremely private and sensitive information of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier, it must be managed with care.");
- txtpnTodayYouAre.setFont(new Font("Tahoma", Font.PLAIN, 13));
- txtpnTodayYouAre.setEditable(false);
- txtpnTodayYouAre.setBackground(SystemColor.menu);
- scrollPane.setViewportView(txtpnTodayYouAre);
- panel_1.setLayout(gl_panel_1);
- jScrollPane4 = new javax.swing.JScrollPane();
- getContentPane().setLayout(layout);
-
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
- ReplySurvey replySurvey = commHandlerAdapter.callServiceSurvey();
-
- map = replySurvey.getQuestions();
- ids = map.keySet();
- locations = replySurvey.getLocations();
-
- panel_2 = new JPanel();
- panel_2.setBackground(Color.WHITE);
- panel_2.setBorder(new BevelBorder(BevelBorder.LOWERED, null, null, null, null));
- jScrollPane4.setViewportView(panel_2);
- panel_2.setLayout(new BoxLayout(panel_2, BoxLayout.Y_AXIS));
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
-
-
- for(Integer id : ids){
- ButtonGroup group = new ButtonGroup();
- JRadioButton r1 = new JRadioButton("1"); r1.setActionCommand("1"); r1.setBackground(Color.WHITE);
- JRadioButton r2 = new JRadioButton("2"); r2.setActionCommand("2"); r2.setBackground(Color.WHITE);
- JRadioButton r3 = new JRadioButton("3"); r3.setActionCommand("3"); r3.setBackground(Color.WHITE);
- JRadioButton r4 = new JRadioButton("4"); r4.setActionCommand("4"); r4.setBackground(Color.WHITE);
- JRadioButton r5 = new JRadioButton("5"); r5.setActionCommand("5"); r5.setBackground(Color.WHITE);
- group.add(r1);
- group.add(r2);
- group.add(r3);
- group.add(r4);
- group.add(r5);
- JPanel radio_panel = new JPanel();
- radio_panel.setLayout((new BoxLayout(radio_panel, BoxLayout.X_AXIS)));
- radio_panel.setBackground(Color.WHITE);
- radio_panel.setAlignmentX(Component.CENTER_ALIGNMENT);
- radio_panel.add(r1);
- radio_panel.add(r2);
- radio_panel.add(r3);
- radio_panel.add(r4);
- radio_panel.add(r5);
- radio_panel.doLayout();
- radio_panel.setPreferredSize(radio_panel.getPreferredSize());
- JTextArea question = new JTextArea(id + ") " + map.get(id).getQuestion());
- question.setLineWrap(true);
- question.setWrapStyleWord(true);
- question.setAlignmentX(Component.CENTER_ALIGNMENT);
- question.setFont(new Font("Tahoma", Font.PLAIN, 13));
- JPanel row_panel = new JPanel();
- row_panel.setLayout(new BoxLayout(row_panel, BoxLayout.X_AXIS));
- row_panel.add(question);
- row_panel.add(Box.createRigidArea(new Dimension(10,0)));
- row_panel.add(radio_panel);
-
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- panel_2.add(row_panel);
-// panel_2.add(Box.createRigidArea(new Dimension(0,5)));
-// panel_2.add(radio_panel);
- panel_2.add(new JSeparator());
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- buttonGroupMap.put(id, group);
-
- }
-
-
-
- this.setSize(new Dimension(1200, 865));
-// pack();
- }// </editor-fold>//GEN-END:initComponents
-
-
- private void submitButtonActionPerformed(java.awt.event.ActionEvent evt){
-
- try{
- answers = new HashMap<String, String>();
- StringBuilder sb = new StringBuilder();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- sb.append(q).append(",");
- sb.append(bg.getSelection().getActionCommand()).append(";");
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- String answer = sb.toString();
- Integer id_loc = null;
- for(Integer i: locations.keySet()){
- if(locations.get(i).equals(comboBox.getSelectedItem().toString()))
- id_loc = i;
- }
-
- String id_p;
- if(jComboBox1.getSelectedItem().toString().equals("Select Patient"))
- id_p = "0";
- else
- id_p = jComboBox1.getSelectedItem().toString();
-
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
-
- String reply = commHandlerAdapter.callServiceSurveyAnswer(answer, id_loc.toString(), id_p);
-
- if(reply.equals("1")){
- survey_submitted = true;
-
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Congrats! Your aswers have been sent to the SHCS datacenter.",
- "Information Message",
- JOptionPane.INFORMATION_MESSAGE);
- }
- else{
- throw new IOException();
- }
-
-
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "The SHCS datacenter does not respond. Please save the survey and send it to jean.raisaro@epfl.ch.",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
- private void savePDFButtonActionPerformed(java.awt.event.ActionEvent evt){
- try {
-
- answers = new HashMap<String, String>();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- JFileChooser chooser = new JFileChooser();
- // Note: source for ExampleFileFilter can be found in FileChooserDemo,
- // under the demo/jfc directory in the JDK.
-
- int returnVal = chooser.showSaveDialog(this);
- System.out.println(returnVal);
- if(returnVal == JFileChooser.APPROVE_OPTION) {
- System.out.println("You chose to open this file: " +
- chooser.getSelectedFile().getPath());
- quest = new Questionnaire(chooser.getSelectedFile().getPath() + ".pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }else{
- quest = new Questionnaire("outputPDF/survey.pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }
-
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (DocumentException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (NullPointerException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
-
- private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
-
- JPanel contentPanel = new JPanel();
-
- dialog.setBounds(100, 100, 410, 80);
- dialog.getContentPane().setLayout(new BorderLayout());
- contentPanel.setLayout(new FlowLayout());
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- dialog.getContentPane().add(contentPanel, BorderLayout.CENTER);
- {
- JLabel label = new JLabel("Please wait...The overall computation can take few seconds");
- label.setHorizontalAlignment(SwingConstants.CENTER);
- label.setFont(new Font("Tahoma", Font.PLAIN, 12));
- contentPanel.add(label);
- }
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
- dialog.getContentPane().add(buttonPane, BorderLayout.SOUTH);
- }
- dialog.setLocationRelativeTo(this);
- dialog.setVisible(true);
-
- GUIWorker gw = new GUIWorker(this, props);
- Thread t = new Thread(gw);
- t.start();
-
- }
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JButton jButton1;
- private javax.swing.JComboBox<String> jComboBox1;
- private javax.swing.JLabel jLabel1;
- private javax.swing.JLabel jLabel2;
- private javax.swing.JLabel jLabel3;
- private javax.swing.JLabel jLabel4;
- private javax.swing.JMenu jMenu1;
- private javax.swing.JMenu jMenu2;
- private javax.swing.JMenuBar jMenuBar1;
- private javax.swing.JMenuItem jMenuItem1;
- private javax.swing.JPanel jPanel1;
- private javax.swing.JPanel jPanel2;
- private javax.swing.JScrollPane jScrollPane3;
- private javax.swing.JTabbedPane tabbedPane;
- private javax.swing.JScrollPane jScrollPane2;
- private javax.swing.JScrollPane jScrollPane4;
- private JPanel panel;
- private JPanel panel_1;
- private JPanel panel_2;
- private JLabel lblDearDoctor;
- private JLabel lblNewLabel_1;
- private JLabel lblNewLabel_2;
- private JLabel lblNewLabel_3;
- private JComboBox<String> comboBox;
- private Component rigidArea;
-
- // End of variables declaration//GEN-END:variables
-
-
- class GUIWorker implements Runnable{
-
- private JFrame mainFrame;
- private ClientProperties props;
- private MedUnit mu;
-
- public GUIWorker(GUI gui, ClientProperties props) {
- mainFrame = gui;
-
- this.props = props;
- this.mu = new MedUnit(props, 0);
- }
-
- @Override
- public void run() {
-
- try{
- int patientId = Integer.parseInt((String) jComboBox1.getSelectedItem());
-
- // convert selected tests to test identifiers
- ArrayList<TestName> selectedTests = new ArrayList<TestName>();
- for (String currentName : getSelectedTests()) {
- TestName currentTest = testsByName.get(currentName);
-
- if (currentTest == null) {
- throw new IllegalStateException("Trying to run unknown test: " + currentTest);
- }
-
- selectedTests.add(currentTest);
- }
-
- // run tests
- Diagnostic diagnostic = mu.runTests(patientId, selectedTests);
-
- // warn for tests with missing material
- warnFailedTests(diagnostic, selectedTests);
-
- // create report
- mu.createReport(patientId, selectedTests, diagnostic);
-
- dialog.setVisible(false);
-
- // specify file you wish to open (JPedal handles getting the byte data)
- String filepathReport = props.getPathPDF() + patientId + ".pdf";
-
- // open generated PDF
- // object must be either String in full filepath, or
- // File object which can be relative
- Object[] input = new Object[]{ new File(filepathReport) };
- viewer.executeCommand(Commands.OPENFILE, input);
-
- // display CAD result as bar plot
- if (diagnostic.hasCAD()) {
- System.out.println("CAD = " + diagnostic.getResultCAD());
- BarPlotFrame frame = new BarPlotFrame(diagnostic.getResultCAD(), patientId);
- frame.setVisible(true);
- frame.setAlwaysOnTop(true);
- }
-
-
- } catch (SQLException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Please select a patient.");
- }
-
- }
-
- private void warnFailedTests(Diagnostic diagnostic, ArrayList<TestName> selectedTests) {
- ArrayList<Integer> failedTests = diagnostic.getInvalidTests();
-
- if (!failedTests.isEmpty()) {
- String msg = "Could not complete tests: ";
- boolean first = true;
- for (TestName testName : selectedTests) {
- if (failedTests.contains(testName.getId())) {
- if (first) {
- first = false;
- } else {
- msg += ", ";
- }
- msg += testName.getName();
- }
- }
- displayError(msg);
- }
-
- }
-
- private void displayError(String msg) {
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- mainFrame,
- msg,
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
-
- private ArrayList<String> getSelectedTests() {
- ArrayList<String> tests = new ArrayList<String>();
-
- for (TreePath treePath : jTree.getSelectionPaths()) {
- tests.addAll(getChildrenTests(jTree.getModel(), treePath.getLastPathComponent()));
- }
-
- return tests;
- }
-
- private ArrayList<String> getChildrenTests(TreeModel model, Object node) {
- ArrayList<String> tests = new ArrayList<String>();
-
- if (model.isLeaf(node)) { // leaf
- DefaultMutableTreeNode leaf = (DefaultMutableTreeNode) node;
- tests.add(leaf.toString());
- }
- else { // iterate over children
- for (int i = 0; i < model.getChildCount(node); i++) {
- tests.addAll(getChildrenTests(model, model.getChild(node, i)));
- }
- }
-
- return tests;
- }
-
- }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/b6/f02659636cac00141cc3aa66275e9c24 b/.metadata/.plugins/org.eclipse.core.resources/.history/43/b089339a54b80014199a8682e9990d0e
similarity index 75%
rename from .metadata/.plugins/org.eclipse.core.resources/.history/b6/f02659636cac00141cc3aa66275e9c24
rename to .metadata/.plugins/org.eclipse.core.resources/.history/43/b089339a54b80014199a8682e9990d0e
index 6657324..b8e2ba9 100644
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/b6/f02659636cac00141cc3aa66275e9c24
+++ b/.metadata/.plugins/org.eclipse.core.resources/.history/43/b089339a54b80014199a8682e9990d0e
@@ -1,921 +1,940 @@
package ui;
import io.ClientConnection;
import io.CommAdapter;
import io.Questionnaire;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Font;
import java.awt.SystemColor;
+import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowAdapter;
import java.io.File;
import java.io.IOException;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.Map;
import java.util.Set;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.Box;
import javax.swing.BoxLayout;
import javax.swing.ButtonGroup;
import javax.swing.DefaultComboBoxModel;
import javax.swing.GroupLayout;
import javax.swing.GroupLayout.Alignment;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JDialog;
import javax.swing.JFileChooser;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JRadioButton;
import javax.swing.JScrollPane;
import javax.swing.JSeparator;
import javax.swing.JTabbedPane;
import javax.swing.JTextArea;
import javax.swing.JTextPane;
import javax.swing.JTree;
import javax.swing.LayoutStyle.ComponentPlacement;
import javax.swing.SwingConstants;
import javax.swing.border.EmptyBorder;
import javax.swing.border.LineBorder;
import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.tree.TreeModel;
import javax.swing.tree.TreePath;
import org.jpedal.examples.viewer.Commands;
import org.jpedal.examples.viewer.Viewer;
import utils.ClientProperties;
import com.itextpdf.text.DocumentException;
import database.DBconnectorClient;
import framework.Diagnostic;
import framework.MedUnit;
import framework.Question;
import framework.reply.ReplySurvey;
import framework.test.TestName;
+import javax.swing.JSplitPane;
+import java.awt.event.MouseAdapter;
+import java.awt.event.MouseEvent;
/**
*
- * @author youssef, raisaro
+ * @author raisaro
*/
public class GUI extends javax.swing.JFrame {
private static final Logger LOGGER = Logger.getLogger(GUI.class.getName());
private static final long serialVersionUID = -4582280515597700650L;
// configuration
private ClientProperties props;
private JTree jTree;
private DBconnectorClient connectorClientDB;
private LinkedList<Integer> patients;
/** List of all relevant tests */
private HashMap<String, TestName> testsByName;
private Viewer viewer;
private JDialog dialog;
private JFrame frame;
private boolean survey_submitted;
private int close_trials;
private Map<Integer, ButtonGroup> buttonGroupMap;
private Questionnaire quest;
private Map<Integer, Question> map;
private Set<Integer> ids;
private Map<String,String> answers;
private Map<Integer, String> locations;
+ private JButton btnSubmitQuestionnaire;
/**
* Creates new form GUI
*/
public GUI(ClientProperties props){
+ setLocationByPlatform(true);
+ setIconImage(Toolkit.getDefaultToolkit().getImage("res/shcs_logo2_icon.png"));
frame = this;
this.props = props;
this.connectorClientDB = new DBconnectorClient(props.getDbMsAccess());
survey_submitted = false;
close_trials = 0;
try {
initComponents();
viewer = new Viewer(jScrollPane2, null);
viewer.setupViewer();
- // create questionnare
-
+ // create questionnare
+
System.out.println("#of questions: " + ids.size());
-// viewer_q = new Viewer(jScrollPane4, null);
-// viewer_q.setupViewer();
-//
-// // specify file you wish to open (JPedal handles getting the byte data)
-// String filepathReport = "outputPDF/buttons_filled.pdf";
-//
-// // open generated PDF
-// // object must be either String in full filepath, or
-// // File object which can be relative
-// Object[] input = new Object[]{ new File(filepathReport) };
-// viewer_q.executeCommand(Commands.OPENFILE, input);
-
- JButton btnSubmitQuestionnaire = new JButton("Submit Questionnaire");
+
+ btnSubmitQuestionnaire = new JButton("Submit Questionnaire");
btnSubmitQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
btnSubmitQuestionnaire.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
submitButtonActionPerformed(arg0);
}
});
JButton btnResetQuestionnaire = new JButton("Save as PDF");
btnResetQuestionnaire.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
savePDFButtonActionPerformed(arg0);
}
});
btnResetQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
JPanel panel_button = new JPanel();
panel_button.setLayout(new BoxLayout(panel_button, BoxLayout.X_AXIS));
lblNewLabel_3 = new JLabel("");
lblNewLabel_3.setIcon(new ImageIcon("res/location_icon.png"));
panel_button.add(lblNewLabel_3);
comboBox = new JComboBox<String>();
comboBox.setFont(new Font("Tahoma", Font.BOLD, 12));
comboBox.setModel(new DefaultComboBoxModel<String>(new String[] {"Select Location"}));
for(Integer id_loc : locations.keySet()){
comboBox.addItem(locations.get(id_loc));
}
panel_button.add(comboBox);
rigidArea = Box.createRigidArea(new Dimension(10, 0));
panel_button.add(rigidArea);
lblNewLabel_1 = new JLabel("");
lblNewLabel_1.setIcon(new ImageIcon("res/submit.png"));
panel_button.add(lblNewLabel_1);
panel_button.add(btnSubmitQuestionnaire);
panel_button.add(Box.createRigidArea(new Dimension(10,0)));
lblNewLabel_2 = new JLabel("");
lblNewLabel_2.setIcon(new ImageIcon("res/pdf.png"));
panel_button.add(lblNewLabel_2);
panel_button.add(btnResetQuestionnaire);
panel_button.setPreferredSize(new Dimension(211, 35));
panel_button.validate();
- JPanel panel_3 = new JPanel();
+ splitPane = new JSplitPane();
+ splitPane.setOneTouchExpandable(true);
+ splitPane.setResizeWeight(0.52);
+ splitPane.setOrientation(JSplitPane.VERTICAL_SPLIT);
+
GroupLayout gl_panel = new GroupLayout(panel);
gl_panel.setHorizontalGroup(
- gl_panel.createParallelGroup(Alignment.TRAILING)
+ gl_panel.createParallelGroup(Alignment.LEADING)
.addGroup(gl_panel.createSequentialGroup()
- .addGap(63)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addGap(103)
- .addComponent(panel_button, GroupLayout.DEFAULT_SIZE, 498, Short.MAX_VALUE)
- .addGap(241))
+ .addGap(165)
+ .addComponent(panel_button, GroupLayout.DEFAULT_SIZE, 421, Short.MAX_VALUE)
+ .addGap(242))
.addGroup(gl_panel.createSequentialGroup()
- .addGap(41)
- .addGroup(gl_panel.createParallelGroup(Alignment.TRAILING)
- .addComponent(jScrollPane4, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE)
- .addComponent(panel_1, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE))
- .addGap(32))
+ .addContainerGap()
+ .addComponent(splitPane, GroupLayout.DEFAULT_SIZE, 738, Short.MAX_VALUE)
+ .addGap(80))
);
gl_panel.setVerticalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
+ gl_panel.createParallelGroup(Alignment.TRAILING)
.addGroup(gl_panel.createSequentialGroup()
- .addGap(22)
- .addComponent(panel_1, GroupLayout.PREFERRED_SIZE, 235, GroupLayout.PREFERRED_SIZE)
- .addGap(37)
- .addComponent(jScrollPane4, GroupLayout.DEFAULT_SIZE, 379, Short.MAX_VALUE)
- .addGap(26)
- .addGroup(gl_panel.createParallelGroup(Alignment.LEADING)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(panel_button, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE)))
+ .addContainerGap()
+ .addComponent(splitPane, GroupLayout.DEFAULT_SIZE, 603, Short.MAX_VALUE)
+ .addPreferredGap(ComponentPlacement.RELATED)
+ .addComponent(panel_button, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE)
+ .addGap(11))
+ );
+
+ panel_1 = new JPanel();
+ panel_1.setMinimumSize(new Dimension(10, 0));
+ panel_1.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
+ panel_1.setBackground(SystemColor.menu);
+ splitPane.setLeftComponent(panel_1);
+
+ label_1 = new JLabel("");
+ label_1.setIcon(new ImageIcon("res/shcs_logo2_medium.gif"));
+
+ label_2 = new JLabel("");
+ label_2.setIcon(new ImageIcon("res/EPFL_logo.png"));
+
+ label_3 = new JLabel("");
+ label_3.setIcon(new ImageIcon("res/chuv_logo.png"));
+
+ label_4 = new JLabel("Dear Doctor,");
+ label_4.setFont(new Font("Tahoma", Font.BOLD, 14));
+
+ scrollPane = new JScrollPane();
+ scrollPane.setBorder(null);
+ GroupLayout gl_panel_1 = new GroupLayout(panel_1);
+ gl_panel_1.setHorizontalGroup(
+ gl_panel_1.createParallelGroup(Alignment.LEADING)
+ .addGroup(gl_panel_1.createSequentialGroup()
+ .addGap(25)
+ .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
+ .addComponent(label_3)
+ .addComponent(label_2)
+ .addComponent(label_1, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE))
+ .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
+ .addGroup(gl_panel_1.createSequentialGroup()
+ .addGap(20)
+ .addComponent(label_4)
+ .addGap(109))
+ .addGroup(gl_panel_1.createSequentialGroup()
+ .addGap(10)
+ .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 557, Short.MAX_VALUE)
+ .addContainerGap())))
);
- panel_3.setLayout(new BoxLayout(panel_3, BoxLayout.X_AXIS));
+ gl_panel_1.setVerticalGroup(
+ gl_panel_1.createParallelGroup(Alignment.LEADING)
+ .addGroup(gl_panel_1.createSequentialGroup()
+ .addContainerGap()
+ .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
+ .addGroup(gl_panel_1.createSequentialGroup()
+ .addComponent(label_4)
+ .addPreferredGap(ComponentPlacement.UNRELATED)
+ .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 416, Short.MAX_VALUE))
+ .addGroup(gl_panel_1.createSequentialGroup()
+ .addGap(9)
+ .addComponent(label_1, GroupLayout.PREFERRED_SIZE, 96, GroupLayout.PREFERRED_SIZE)
+ .addGap(18)
+ .addComponent(label_2)
+ .addGap(28)
+ .addComponent(label_3)))
+ .addContainerGap(114, GroupLayout.PREFERRED_SIZE))
+ );
+
+ introduction = new JTextPane();
+ introduction.setBackground(SystemColor.control);
+ introduction.setContentType("text/html");
+ introduction.setText("You are receiving a pharmacogenetics report based on the genome of your patient. Because of its highly sensitive nature, the genetic information you are provided with is processed in a privacy-preserving way. In particular, to protect patients\u2019 genomic privacy, their genetic and clinical data are stored encrypted at the SHCS data center, and securely analyzed through a sophisticated algorithm designed and developed at EPFL [1, 2]. The actual clinical and genetic information is never revealed. Only the authorized users, such as you, can get some processed information, for example, the interpreted final result of a pharmacogenetics risk test.\r\nThis mechanism protects the data against insiders or hackers trying to illegally access patients\u2019 medical information, while still allowing authorized users to obtain the information they need.\r\n<br><br>\r\n<b>To help us better understanding the importance of genomic privacy in the medical domain, and the impact of privacy-enhancing technologies in daily clinical practice, please complete the following survey. Answers are on a scale from 1 (Strongly Disagree) to 5 (Strongly Agree).</b>\r\n<font size=\"2\">\r\n<br><br>\r\nNote: this work is part of Project #693, funded by the Swiss HIV Cohort. PIs: Prof. A. Telenti, formerly at CHUV, and Prof. J.-P. Hubaux, at EPFL.\r\n<br><br>\r\n[1] J. L. Raisaro, E. Ayday, P. J. McLaren, J.-P. Hubaux, and A. Telenti. Privacy-Preserving HIV Pharmacogenetics: A Real Use Case of Genomic Data Protection. GenoPri 2014<br>\r\n[2] E. Ayday, J. L. Raisaro, J. Rougemont, and J.-P. Hubaux. Protecting and Evaluating Genomic Privacy in Medical Tests and Personalized Medicine. WPES 2013\r\n</font>");
+ scrollPane.setViewportView(introduction);
+ panel_1.setLayout(gl_panel_1);
+
+ jScrollPane4 = new JScrollPane();
+ jScrollPane4.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
+ splitPane.setRightComponent(jScrollPane4);
+
+
+ jScrollPane4.setViewportView(panel_2);
+ javax.swing.SwingUtilities.invokeLater(new Runnable() {
+ public void run() {
+ jScrollPane4.getVerticalScrollBar().setValue(0);
+ }
+ });
+ introduction.setCaretPosition(0);
panel.setLayout(gl_panel);
/////////////////////////////////////////////////////////
// display the tests available
// get the tests
HashMap<String, ArrayList<TestName>> testsRelevantByGroup = connectorClientDB.getRelevantTestsByGroup();
ArrayList<String> groups = new ArrayList<String>(testsRelevantByGroup.keySet());
// flatten hashmap into linkedlist
// tests = new LinkedList<>();
testsByName = new HashMap<String, TestName>();
for (String group : groups) {
// tests.addAll(testsRelevantByGroup.get(group));
for (TestName test : testsRelevantByGroup.get(group)) {
testsByName.put(test.getName(), test);
}
}
// define tree structure of the tests
DefaultMutableTreeNode root = new DefaultMutableTreeNode("All");
for (String group : groups) {
DefaultMutableTreeNode child = new DefaultMutableTreeNode(group);
root.add(child);
for (TestName test : testsRelevantByGroup.get(group)) {
DefaultMutableTreeNode grandChild = new DefaultMutableTreeNode(test.getName());
child.add(grandChild);
}
}
// define swing object
jTree = new JTree(root);
+ jTree.setFont(new Font("Tahoma", Font.PLAIN, 11));
for(int i=0;i<jTree.getRowCount();i++){
jTree.expandRow(i);
}
jScrollPane3.setViewportView(jTree);
// jTree.addTreeSelectionListener(new TreeSelectionListener() {
//
// @Override
// public void valueChanged(TreeSelectionEvent e) {
// tp = jTree.getSelectionPaths();
// }
// });
jScrollPane3.setViewportView(jTree);
/////////////////////////////////////////////////////////
// display the patients registered
patients = connectorClientDB.getPatients();
for (Integer patientId : patients) {
jComboBox1.addItem(patientId.toString());
}
} catch (SQLException ex) {
Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex);
ex.printStackTrace();
// } catch (IOException e) {
// // TODO Auto-generated catch block
// e.printStackTrace();
// } catch (DocumentException e) {
// // TODO Auto-generated catch block
// e.printStackTrace();
}
}
/**
* 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() {
-
- jPanel1 = new javax.swing.JPanel();
- jLabel2 = new javax.swing.JLabel();
- jLabel1 = new javax.swing.JLabel();
jPanel2 = new javax.swing.JPanel();
jComboBox1 = new javax.swing.JComboBox<String>();
+ jComboBox1.setFont(new Font("Tahoma", Font.BOLD, 12));
jButton1 = new javax.swing.JButton();
jButton1.setFont(new Font("Tahoma", Font.BOLD, 12));
jLabel3 = new javax.swing.JLabel();
jLabel4 = new javax.swing.JLabel();
jScrollPane3 = new javax.swing.JScrollPane();
jScrollPane2 = new javax.swing.JScrollPane();
+ jScrollPane2.setMinimumSize(new Dimension(5, 5));
jMenuBar1 = new javax.swing.JMenuBar();
jMenu1 = new javax.swing.JMenu();
jMenuItem1 = new javax.swing.JMenuItem();
jMenu2 = new javax.swing.JMenu();
dialog = new JDialog();
tabbedPane = new JTabbedPane(JTabbedPane.TOP);
+ tabbedPane.setFont(new Font("Tahoma", Font.BOLD, 12));
setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
addWindowListener(new WindowAdapter() {
@Override
public void windowClosing(java.awt.event.WindowEvent windowEvent) {
if (!survey_submitted && close_trials <= 2){
JOptionPane.showMessageDialog(frame, "Before closing the application, please fill in and submit the questionnaire.");
close_trials++;
tabbedPane.setSelectedIndex(1);
}else{
System.exit(0);
}
}
});
- setTitle("HIV Pharmacogenomics\n");
-
- jLabel2.setIcon(new javax.swing.ImageIcon("res/shcs_logo2_small.gif")); // NOI18N
-
- jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
- jLabel1.setText("HIV Pharmacogenomics | Project #693");
-
- javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
- jPanel1.setLayout(jPanel1Layout);
- jPanel1Layout.setHorizontalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap(71, Short.MAX_VALUE)
- .addComponent(jLabel1)
- .addGap(18, 18, 18)
- .addComponent(jLabel2))
- );
- jPanel1Layout.setVerticalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jLabel1)
- .addGap(11, 11, 11))
- .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)
- );
+ setTitle("Privacy-Preserving HIV Pharmacogenomics\r\n");
jPanel2.setBackground(new java.awt.Color(255, 255, 255));
jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<String>(new String[]{"Select Patient"}));
jButton1.setText("Run Test");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});
JLabel lblNewLabel = new JLabel("");
lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
lblNewLabel.setIcon(new javax.swing.ImageIcon("res/gears.png"));
javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
jPanel2Layout.setHorizontalGroup(
jPanel2Layout.createParallelGroup(Alignment.LEADING)
.addComponent(jComboBox1, 0, 248, Short.MAX_VALUE)
.addGroup(jPanel2Layout.createSequentialGroup()
.addGap(75)
.addGroup(jPanel2Layout.createParallelGroup(Alignment.TRAILING)
.addComponent(jButton1)
.addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 75, GroupLayout.PREFERRED_SIZE))
.addContainerGap(98, Short.MAX_VALUE))
);
jPanel2Layout.setVerticalGroup(
jPanel2Layout.createParallelGroup(Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addComponent(jComboBox1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
.addPreferredGap(ComponentPlacement.RELATED, 223, Short.MAX_VALUE)
.addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE)
.addPreferredGap(ComponentPlacement.RELATED)
.addComponent(jButton1)
.addGap(19))
);
jPanel2.setLayout(jPanel2Layout);
jLabel3.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
jLabel3.setText("Select Patient");
jLabel4.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
jLabel4.setText("Select Test");
jScrollPane3.setBackground(new java.awt.Color(255, 255, 255));
jMenu1.setText("File");
jMenuItem1.setText("Exit");
jMenu1.add(jMenuItem1);
jMenuBar1.add(jMenu1);
jMenu2.setText("Edit");
jMenuBar1.add(jMenu2);
setJMenuBar(jMenuBar1);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
layout.setHorizontalGroup(
layout.createParallelGroup(Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addGroup(layout.createParallelGroup(Alignment.LEADING, false)
- .addComponent(jLabel3)
.addComponent(jLabel4)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, 244, Short.MAX_VALUE)
- .addComponent(jScrollPane3))
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 970, Short.MAX_VALUE))
- .addContainerGap())
+ .addComponent(jLabel3)
+ .addComponent(jScrollPane3, GroupLayout.DEFAULT_SIZE, 234, Short.MAX_VALUE)
+ .addComponent(jPanel2, 0, 0, Short.MAX_VALUE))
+ .addPreferredGap(ComponentPlacement.RELATED)
+ .addComponent(tabbedPane, GroupLayout.PREFERRED_SIZE, 751, Short.MAX_VALUE)
+ .addGap(19))
);
layout.setVerticalGroup(
- layout.createParallelGroup(Alignment.LEADING)
+ layout.createParallelGroup(Alignment.TRAILING)
.addGroup(layout.createSequentialGroup()
+ .addContainerGap()
.addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel4))
- .addPreferredGap(ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(Alignment.LEADING)
+ .addComponent(tabbedPane, Alignment.LEADING, GroupLayout.PREFERRED_SIZE, 687, Short.MAX_VALUE)
.addGroup(layout.createSequentialGroup()
- .addComponent(jScrollPane3, GroupLayout.PREFERRED_SIZE, 388, GroupLayout.PREFERRED_SIZE)
+ .addComponent(jLabel4)
+ .addPreferredGap(ComponentPlacement.RELATED)
+ .addComponent(jScrollPane3, GroupLayout.PREFERRED_SIZE, 356, GroupLayout.PREFERRED_SIZE)
.addPreferredGap(ComponentPlacement.RELATED)
.addComponent(jLabel3)
.addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 785, Short.MAX_VALUE))
+ .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, 283, Short.MAX_VALUE)))
.addContainerGap())
);
jScrollPane2.setAutoscrolls(true);
jScrollPane3.setAutoscrolls(true);
tabbedPane.addTab("Report", new ImageIcon("res/report_icon.gif"), jScrollPane2, null);
tabbedPane.setBackgroundAt(0, new Color(255, 255, 255));
panel = new JPanel();
+ panel.setPreferredSize(new Dimension(0, 0));
tabbedPane.addTab("Survey", new ImageIcon("res/survey_icon.png"), panel, null);
tabbedPane.setBackgroundAt(1, new Color(255, 255, 255));
tabbedPane.setEnabledAt(1, true);
-
- panel_1 = new JPanel();
- panel_1.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
- panel_1.setBackground(SystemColor.control);
-
- JLabel label = new JLabel("");
- label.setIcon(new ImageIcon("res/shcs_logo2_medium.gif"));
-
- lblDearDoctor = new JLabel("Dear Doctor,");
- lblDearDoctor.setFont(new Font("Tahoma", Font.BOLD, 14));
-
- JScrollPane scrollPane = new JScrollPane();
- scrollPane.setBorder(null);
- GroupLayout gl_panel_1 = new GroupLayout(panel_1);
- gl_panel_1.setHorizontalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(Alignment.LEADING, gl_panel_1.createSequentialGroup()
- .addGap(25)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addComponent(lblDearDoctor)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 661, Short.MAX_VALUE))
- .addContainerGap())
- );
- gl_panel_1.setVerticalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addContainerGap()
- .addComponent(lblDearDoctor)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 203, Short.MAX_VALUE))
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(36)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 96, GroupLayout.PREFERRED_SIZE)))
- .addContainerGap())
- );
-
- JTextPane txtpnTodayYouAre = new JTextPane();
- txtpnTodayYouAre.setContentType("text/html");
- txtpnTodayYouAre.setBorder(null);
- txtpnTodayYouAre.setText("<font face=\"Tahoma\" size=\"4\" >Today you are receiving a pharmacogenetics report based on the genome of your patient. Because of its highly sensitive nature, the genetic information you are provided with is processed in a privacy-preserving way. In particular, to protect patients\u2019 genomic privacy, their genetic and clinical data is stored encrypted at the SHCS data center, and securely analyzed through a sophisticated algorithm designed and developed at <a href=\"http://www.epfl.ch/index.en.html\">EPFL</a>. <br>The actual clinical and genetic information is never revealed. Only the authorized users, such as you, can get some processed information, for example, the final result of a pharmacogenetics risk test.\r\nThis mechanism protects the data against insiders or hackers trying to illegally access patients\u2019 medical information, while still allowing authorized users to obtain the information they need.\r\n<br><br>\r\nTo help us understanding the importance of genomic privacy in the medical domain, and the impact of privacy-enhancing technologies in daily clinical practice, please complete the following survey.</font>");
- txtpnTodayYouAre.setFont(new Font("Tahoma", Font.PLAIN, 13));
- txtpnTodayYouAre.setBackground(SystemColor.control);
- scrollPane.setViewportView(txtpnTodayYouAre);
- panel_1.setLayout(gl_panel_1);
- jScrollPane4 = new javax.swing.JScrollPane();
- jScrollPane4.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
getContentPane().setLayout(layout);
buttonGroupMap = new HashMap<Integer, ButtonGroup>();
ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
CommAdapter commHandlerAdapter = new CommAdapter(connection);
ReplySurvey replySurvey = commHandlerAdapter.callServiceSurvey();
map = replySurvey.getQuestions();
ids = map.keySet();
locations = replySurvey.getLocations();
+ buttonGroupMap = new HashMap<Integer, ButtonGroup>();
+
panel_2 = new JPanel();
- panel_2.setBackground(Color.WHITE);
+ panel_2.addMouseListener(new MouseAdapter() {
+ @Override
+ public void mouseClicked(MouseEvent arg0) {
+ splitPane.setDividerLocation(0.0);
+ }
+ });
panel_2.setBorder(null);
- jScrollPane4.setViewportView(panel_2);
+ panel_2.setBackground(Color.WHITE);
panel_2.setLayout(new BoxLayout(panel_2, BoxLayout.Y_AXIS));
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
-
+
+ JLabel expand_icon = new JLabel("");
+ expand_icon.setIcon(new ImageIcon("res/expand_icon.jpg"));
+ panel_2.add(expand_icon);
+
+ //dynamic question generation
int type = 0;
for(Integer id : ids){
ButtonGroup group = new ButtonGroup();
- JRadioButton r1 = new JRadioButton("1"); r1.setActionCommand("1"); r1.setBackground(Color.WHITE);
- JRadioButton r2 = new JRadioButton("2"); r2.setActionCommand("2"); r2.setBackground(Color.WHITE);
- JRadioButton r3 = new JRadioButton("3"); r3.setActionCommand("3"); r3.setBackground(Color.WHITE);
- JRadioButton r4 = new JRadioButton("4"); r4.setActionCommand("4"); r4.setBackground(Color.WHITE);
- JRadioButton r5 = new JRadioButton("5"); r5.setActionCommand("5"); r5.setBackground(Color.WHITE);
+ JRadioButton r1 = new JRadioButton("1"); r1.setActionCommand("1"); r1.setBackground(Color.WHITE);
+ JRadioButton r2 = new JRadioButton("2"); r2.setActionCommand("2"); r2.setBackground(Color.WHITE);
+ JRadioButton r3 = new JRadioButton("3"); r3.setActionCommand("3"); r3.setBackground(Color.WHITE);
+ JRadioButton r4 = new JRadioButton("4"); r4.setActionCommand("4"); r4.setBackground(Color.WHITE);
+ JRadioButton r5 = new JRadioButton("5"); r5.setActionCommand("5"); r5.setBackground(Color.WHITE);
group.add(r1);
group.add(r2);
group.add(r3);
group.add(r4);
group.add(r5);
JPanel radio_panel = new JPanel();
radio_panel.setLayout((new BoxLayout(radio_panel, BoxLayout.X_AXIS)));
radio_panel.setBackground(Color.WHITE);
radio_panel.setAlignmentX(Component.CENTER_ALIGNMENT);
radio_panel.add(r1);
radio_panel.add(r2);
radio_panel.add(r3);
radio_panel.add(r4);
radio_panel.add(r5);
radio_panel.doLayout();
radio_panel.setPreferredSize(radio_panel.getPreferredSize());
JTextArea question = new JTextArea(id + ") " + map.get(id).getQuestion());
question.setEditable(false);
question.setLineWrap(true);
question.setWrapStyleWord(true);
question.setFont(new Font("Tahoma", Font.PLAIN, 13));
JPanel row_panel = new JPanel();
row_panel.setLayout(new BoxLayout(row_panel, BoxLayout.X_AXIS));
row_panel.add(Box.createRigidArea(new Dimension(20,0)));
row_panel.add(question);
row_panel.add(Box.createRigidArea(new Dimension(20,0)));
row_panel.add(radio_panel);
row_panel.add(Box.createRigidArea(new Dimension(20,0)));
row_panel.setBackground(Color.WHITE);
int type_new = map.get(id).getType();
if(type_new != type){
type = type_new;
JLabel question_group = new JLabel("");
switch(type){
case 1:
question_group.setText("Clinical Utility");
break;
case 2:
question_group.setText("Privacy Concerns");
break;
case 3:
question_group.setText("Usability Assessment");
break;
}
question_group.setAlignmentX(Component.CENTER_ALIGNMENT);
question_group.setFont(new Font("Tahoma", Font.BOLD, 13));
+ panel_2.add(new JSeparator());
panel_2.add(Box.createRigidArea(new Dimension(0,5)));
panel_2.add(question_group);
panel_2.add(Box.createRigidArea(new Dimension(0,5)));
panel_2.add(new JSeparator());
panel_2.add(Box.createRigidArea(new Dimension(0,5)));
}
panel_2.add(Box.createRigidArea(new Dimension(0,5)));
panel_2.add(row_panel);
panel_2.add(Box.createRigidArea(new Dimension(0,5)));
// panel_2.add(radio_panel);
- panel_2.add(new JSeparator());
+// panel_2.add(new JSeparator());
panel_2.add(Box.createRigidArea(new Dimension(0,5)));
// panel_2.setPreferredSize(panel_2.getPreferredSize());
buttonGroupMap.put(id, group);
}
+
+
+
-
- this.setSize(new Dimension(1300, 865));
-// pack();
+ this.setSize(new Dimension(1118, 768));
+// this.pack();
}// </editor-fold>//GEN-END:initComponents
private void submitButtonActionPerformed(java.awt.event.ActionEvent evt){
try{
answers = new HashMap<String, String>();
StringBuilder sb = new StringBuilder();
Set<Integer> questions_id = buttonGroupMap.keySet();
for(Integer q: questions_id){
ButtonGroup bg = buttonGroupMap.get(q);
sb.append(q).append(",");
sb.append(bg.getSelection().getActionCommand()).append(";");
answers.put(q.toString(),bg.getSelection().getActionCommand());
}
String answer = sb.toString();
Integer id_loc = null;
for(Integer i: locations.keySet()){
if(locations.get(i).equals(comboBox.getSelectedItem().toString()))
id_loc = i;
}
String id_p;
if(jComboBox1.getSelectedItem().toString().equals("Select Patient"))
id_p = "0";
else
id_p = jComboBox1.getSelectedItem().toString();
ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
CommAdapter commHandlerAdapter = new CommAdapter(connection);
String reply = commHandlerAdapter.callServiceSurveyAnswer(answer, id_loc.toString(), id_p);
if(reply.equals("1")){
survey_submitted = true;
dialog.setVisible(false);
JOptionPane.showMessageDialog(
this,
"Congrats! Your aswers have been sent to the SHCS datacenter.",
"Information Message",
JOptionPane.INFORMATION_MESSAGE);
+ btnSubmitQuestionnaire.setEnabled(false);
}
else{
throw new IOException();
}
} catch (NullPointerException e){
LOGGER.log(Level.SEVERE, null, e);
dialog.setVisible(false);
JOptionPane.showMessageDialog(
this,
"Please respond to all the questions!",
"Error Message",
JOptionPane.ERROR_MESSAGE);
} catch (IOException e) {
LOGGER.log(Level.SEVERE, null, e);
dialog.setVisible(false);
JOptionPane.showMessageDialog(
this,
"The SHCS datacenter does not respond. Please save the survey and send it to jean.raisaro@epfl.ch.",
"Error Message",
JOptionPane.ERROR_MESSAGE);
}
}
private void savePDFButtonActionPerformed(java.awt.event.ActionEvent evt){
try {
answers = new HashMap<String, String>();
Set<Integer> questions_id = buttonGroupMap.keySet();
for(Integer q: questions_id){
ButtonGroup bg = buttonGroupMap.get(q);
answers.put(q.toString(),bg.getSelection().getActionCommand());
}
JFileChooser chooser = new JFileChooser();
// Note: source for ExampleFileFilter can be found in FileChooserDemo,
// under the demo/jfc directory in the JDK.
int returnVal = chooser.showSaveDialog(this);
System.out.println(returnVal);
if(returnVal == JFileChooser.APPROVE_OPTION) {
System.out.println("You chose to open this file: " +
chooser.getSelectedFile().getPath());
quest = new Questionnaire(chooser.getSelectedFile().getPath() + ".pdf");
quest.createPdf(map, ids);
quest.writeAnswers(answers);
survey_submitted = true;
}else{
quest = new Questionnaire("outputPDF/survey.pdf");
quest.createPdf(map, ids);
quest.writeAnswers(answers);
survey_submitted = true;
}
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (DocumentException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (NullPointerException e) {
LOGGER.log(Level.SEVERE, null, e);
dialog.setVisible(false);
JOptionPane.showMessageDialog(
this,
"Please respond to all the questions!",
"Error Message",
JOptionPane.ERROR_MESSAGE);
}
}
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
JPanel contentPanel = new JPanel();
- dialog.setBounds(100, 100, 410, 80);
+ dialog.setBounds(100, 100, 420, 100);
dialog.getContentPane().setLayout(new BorderLayout());
contentPanel.setLayout(new FlowLayout());
contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
dialog.getContentPane().add(contentPanel, BorderLayout.CENTER);
{
- JLabel label = new JLabel("Please wait...The overall computation can take few seconds");
+ JLabel label = new JLabel("Please wait...The overall computation can take some seconds!");
+ JLabel label2 = new JLabel("Cryptographic operations are being performed at the SHCS...");
label.setHorizontalAlignment(SwingConstants.CENTER);
- label.setFont(new Font("Tahoma", Font.PLAIN, 12));
+ label.setFont(new Font("Tahoma", Font.BOLD, 12));
+ label2.setHorizontalAlignment(SwingConstants.CENTER);
+ label2.setFont(new Font("Tahoma", Font.PLAIN, 12));
contentPanel.add(label);
+ contentPanel.add(label2);
}
{
JPanel buttonPane = new JPanel();
buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
dialog.getContentPane().add(buttonPane, BorderLayout.SOUTH);
}
dialog.setLocationRelativeTo(this);
dialog.setVisible(true);
GUIWorker gw = new GUIWorker(this, props);
Thread t = new Thread(gw);
t.start();
}
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JButton jButton1;
private javax.swing.JComboBox<String> jComboBox1;
- private javax.swing.JLabel jLabel1;
- private javax.swing.JLabel jLabel2;
private javax.swing.JLabel jLabel3;
private javax.swing.JLabel jLabel4;
private javax.swing.JMenu jMenu1;
private javax.swing.JMenu jMenu2;
private javax.swing.JMenuBar jMenuBar1;
private javax.swing.JMenuItem jMenuItem1;
- private javax.swing.JPanel jPanel1;
private javax.swing.JPanel jPanel2;
private javax.swing.JScrollPane jScrollPane3;
private javax.swing.JTabbedPane tabbedPane;
private javax.swing.JScrollPane jScrollPane2;
- private javax.swing.JScrollPane jScrollPane4;
private JPanel panel;
- private JPanel panel_1;
- private JPanel panel_2;
- private JLabel lblDearDoctor;
private JLabel lblNewLabel_1;
private JLabel lblNewLabel_2;
private JLabel lblNewLabel_3;
private JComboBox<String> comboBox;
private Component rigidArea;
+ private JSplitPane splitPane;
+ private JPanel panel_1;
+ private JLabel label_1;
+ private JLabel label_2;
+ private JLabel label_3;
+ private JLabel label_4;
+ private JScrollPane scrollPane;
+ private JTextPane introduction;
+ private JScrollPane jScrollPane4;
+ private JPanel panel_2;
// End of variables declaration//GEN-END:variables
class GUIWorker implements Runnable{
private JFrame mainFrame;
private ClientProperties props;
private MedUnit mu;
public GUIWorker(GUI gui, ClientProperties props) {
mainFrame = gui;
this.props = props;
this.mu = new MedUnit(props, 0);
}
@Override
public void run() {
try{
int patientId = Integer.parseInt((String) jComboBox1.getSelectedItem());
// convert selected tests to test identifiers
ArrayList<TestName> selectedTests = new ArrayList<TestName>();
for (String currentName : getSelectedTests()) {
TestName currentTest = testsByName.get(currentName);
if (currentTest == null) {
throw new IllegalStateException("Trying to run unknown test: " + currentTest);
}
selectedTests.add(currentTest);
}
// run tests
Diagnostic diagnostic = mu.runTests(patientId, selectedTests);
// warn for tests with missing material
warnFailedTests(diagnostic, selectedTests);
// create report
mu.createReport(patientId, selectedTests, diagnostic);
dialog.setVisible(false);
// specify file you wish to open (JPedal handles getting the byte data)
String filepathReport = props.getPathPDF() + patientId + ".pdf";
// open generated PDF
// object must be either String in full filepath, or
// File object which can be relative
Object[] input = new Object[]{ new File(filepathReport) };
viewer.executeCommand(Commands.OPENFILE, input);
// display CAD result as bar plot
if (diagnostic.hasCAD()) {
System.out.println("CAD = " + diagnostic.getResultCAD());
BarPlotFrame frame = new BarPlotFrame(diagnostic.getResultCAD(), patientId);
frame.setVisible(true);
frame.setAlwaysOnTop(true);
}
} catch (SQLException e) {
LOGGER.log(Level.SEVERE, null, e);
displayError("Not able to connect to service. Please try again.");
} catch (IOException e) {
LOGGER.log(Level.SEVERE, null, e);
displayError("Not able to connect to service. Please try again.");
} catch (NullPointerException e){
LOGGER.log(Level.SEVERE, null, e);
- displayError("Please select a patient.");
+ displayError("Please select a patient and one or multiple tests.");
+ } catch (NumberFormatException e){
+ LOGGER.log(Level.SEVERE, null, e);
+ displayError("Please select a patient and one or multiple tests.");
}
}
private void warnFailedTests(Diagnostic diagnostic, ArrayList<TestName> selectedTests) {
ArrayList<Integer> failedTests = diagnostic.getInvalidTests();
if (!failedTests.isEmpty()) {
String msg = "Could not complete tests: ";
boolean first = true;
for (TestName testName : selectedTests) {
if (failedTests.contains(testName.getId())) {
if (first) {
first = false;
} else {
msg += ", ";
}
msg += testName.getName();
}
}
displayError(msg);
}
}
private void displayError(String msg) {
dialog.setVisible(false);
JOptionPane.showMessageDialog(
mainFrame,
msg,
"Error Message",
JOptionPane.ERROR_MESSAGE);
}
private ArrayList<String> getSelectedTests() {
ArrayList<String> tests = new ArrayList<String>();
for (TreePath treePath : jTree.getSelectionPaths()) {
tests.addAll(getChildrenTests(jTree.getModel(), treePath.getLastPathComponent()));
}
return tests;
}
private ArrayList<String> getChildrenTests(TreeModel model, Object node) {
ArrayList<String> tests = new ArrayList<String>();
if (model.isLeaf(node)) { // leaf
DefaultMutableTreeNode leaf = (DefaultMutableTreeNode) node;
tests.add(leaf.toString());
}
else { // iterate over children
for (int i = 0; i < model.getChildCount(node); i++) {
tests.addAll(getChildrenTests(model, model.getChild(node, i)));
}
}
return tests;
}
}
}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/44/507256a955ac001410e2e30aa85db9d1 b/.metadata/.plugins/org.eclipse.core.resources/.history/44/507256a955ac001410e2e30aa85db9d1
deleted file mode 100644
index eec3d3a..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/44/507256a955ac001410e2e30aa85db9d1
+++ /dev/null
@@ -1,928 +0,0 @@
-package ui;
-
-import io.ClientConnection;
-import io.CommAdapter;
-import io.Questionnaire;
-
-import java.awt.BorderLayout;
-import java.awt.Color;
-import java.awt.Component;
-import java.awt.Dimension;
-import java.awt.FlowLayout;
-import java.awt.Font;
-import java.awt.SystemColor;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.awt.event.WindowAdapter;
-import java.io.File;
-import java.io.IOException;
-import java.sql.SQLException;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.LinkedList;
-import java.util.Map;
-import java.util.Set;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
-import javax.swing.Box;
-import javax.swing.BoxLayout;
-import javax.swing.ButtonGroup;
-import javax.swing.DefaultComboBoxModel;
-import javax.swing.GroupLayout;
-import javax.swing.GroupLayout.Alignment;
-import javax.swing.ImageIcon;
-import javax.swing.JButton;
-import javax.swing.JComboBox;
-import javax.swing.JDialog;
-import javax.swing.JFileChooser;
-import javax.swing.JFrame;
-import javax.swing.JLabel;
-import javax.swing.JOptionPane;
-import javax.swing.JPanel;
-import javax.swing.JRadioButton;
-import javax.swing.JScrollPane;
-import javax.swing.JSeparator;
-import javax.swing.JTabbedPane;
-import javax.swing.JTextArea;
-import javax.swing.JTextPane;
-import javax.swing.JTree;
-import javax.swing.LayoutStyle.ComponentPlacement;
-import javax.swing.SwingConstants;
-import javax.swing.border.EmptyBorder;
-import javax.swing.border.LineBorder;
-import javax.swing.tree.DefaultMutableTreeNode;
-import javax.swing.tree.TreeModel;
-import javax.swing.tree.TreePath;
-
-import org.jpedal.examples.viewer.Commands;
-import org.jpedal.examples.viewer.Viewer;
-
-import utils.ClientProperties;
-
-import com.itextpdf.text.DocumentException;
-
-import database.DBconnectorClient;
-import framework.Diagnostic;
-import framework.MedUnit;
-import framework.Question;
-import framework.reply.ReplySurvey;
-import framework.test.TestName;
-
-/**
- *
- * @author youssef, raisaro
- */
-public class GUI extends javax.swing.JFrame {
-
- private static final Logger LOGGER = Logger.getLogger(GUI.class.getName());
-
- private static final long serialVersionUID = -4582280515597700650L;
-
- // configuration
- private ClientProperties props;
-
- private JTree jTree;
- private DBconnectorClient connectorClientDB;
- private LinkedList<Integer> patients;
-
- /** List of all relevant tests */
- private HashMap<String, TestName> testsByName;
- private Viewer viewer;
- private JDialog dialog;
- private JFrame frame;
- private boolean survey_submitted;
- private int close_trials;
- private Map<Integer, ButtonGroup> buttonGroupMap;
- private Questionnaire quest;
- private Map<Integer, Question> map;
- private Set<Integer> ids;
- private Map<String,String> answers;
- private Map<Integer, String> locations;
-
-
- /**
- * Creates new form GUI
- */
- public GUI(ClientProperties props){
-
- frame = this;
- this.props = props;
- this.connectorClientDB = new DBconnectorClient(props.getDbMsAccess());
- survey_submitted = false;
- close_trials = 0;
-
-
- try {
- initComponents();
-
- viewer = new Viewer(jScrollPane2, null);
- viewer.setupViewer();
-
- // create questionnare
-
-
- System.out.println("#of questions: " + ids.size());
-
-// viewer_q = new Viewer(jScrollPane4, null);
-// viewer_q.setupViewer();
-//
-// // specify file you wish to open (JPedal handles getting the byte data)
-// String filepathReport = "outputPDF/buttons_filled.pdf";
-//
-// // open generated PDF
-// // object must be either String in full filepath, or
-// // File object which can be relative
-// Object[] input = new Object[]{ new File(filepathReport) };
-// viewer_q.executeCommand(Commands.OPENFILE, input);
-
- JButton btnSubmitQuestionnaire = new JButton("Submit Questionnaire");
- btnSubmitQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- btnSubmitQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- submitButtonActionPerformed(arg0);
- }
- });
- JButton btnResetQuestionnaire = new JButton("Save as PDF");
- btnResetQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- savePDFButtonActionPerformed(arg0);
- }
- });
- btnResetQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- JPanel panel_button = new JPanel();
- panel_button.setLayout(new BoxLayout(panel_button, BoxLayout.X_AXIS));
-
- lblNewLabel_3 = new JLabel("");
- lblNewLabel_3.setIcon(new ImageIcon("res/location_icon.png"));
- panel_button.add(lblNewLabel_3);
-
-
-
- comboBox = new JComboBox<String>();
- comboBox.setFont(new Font("Tahoma", Font.BOLD, 12));
- comboBox.setModel(new DefaultComboBoxModel<String>(new String[] {"Select Location"}));
- for(Integer id_loc : locations.keySet()){
- comboBox.addItem(locations.get(id_loc));
- }
-
-
- panel_button.add(comboBox);
-
- rigidArea = Box.createRigidArea(new Dimension(10, 0));
- panel_button.add(rigidArea);
-
- lblNewLabel_1 = new JLabel("");
- lblNewLabel_1.setIcon(new ImageIcon("res/submit.png"));
- panel_button.add(lblNewLabel_1);
- panel_button.add(btnSubmitQuestionnaire);
-
- panel_button.add(Box.createRigidArea(new Dimension(10,0)));
-
- lblNewLabel_2 = new JLabel("");
- lblNewLabel_2.setIcon(new ImageIcon("res/pdf.png"));
- panel_button.add(lblNewLabel_2);
- panel_button.add(btnResetQuestionnaire);
- panel_button.setPreferredSize(new Dimension(211, 35));
- panel_button.validate();
-
- JPanel panel_3 = new JPanel();
- GroupLayout gl_panel = new GroupLayout(panel);
- gl_panel.setHorizontalGroup(
- gl_panel.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(63)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addGap(103)
- .addComponent(panel_button, GroupLayout.DEFAULT_SIZE, 498, Short.MAX_VALUE)
- .addGap(241))
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(41)
- .addGroup(gl_panel.createParallelGroup(Alignment.TRAILING)
- .addComponent(jScrollPane4, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE)
- .addComponent(panel_1, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE))
- .addGap(32))
- );
- gl_panel.setVerticalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(22)
- .addComponent(panel_1, GroupLayout.PREFERRED_SIZE, 235, GroupLayout.PREFERRED_SIZE)
- .addGap(37)
- .addComponent(jScrollPane4, GroupLayout.DEFAULT_SIZE, 379, Short.MAX_VALUE)
- .addGap(26)
- .addGroup(gl_panel.createParallelGroup(Alignment.LEADING)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(panel_button, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE)))
- );
- panel_3.setLayout(new BoxLayout(panel_3, BoxLayout.X_AXIS));
-
-
- panel.setLayout(gl_panel);
-
-
-
-
-
-
- /////////////////////////////////////////////////////////
- // display the tests available
-
- // get the tests
- HashMap<String, ArrayList<TestName>> testsRelevantByGroup = connectorClientDB.getRelevantTestsByGroup();
- ArrayList<String> groups = new ArrayList<String>(testsRelevantByGroup.keySet());
-
- // flatten hashmap into linkedlist
-// tests = new LinkedList<>();
- testsByName = new HashMap<String, TestName>();
- for (String group : groups) {
-// tests.addAll(testsRelevantByGroup.get(group));
- for (TestName test : testsRelevantByGroup.get(group)) {
- testsByName.put(test.getName(), test);
- }
- }
-
- // define tree structure of the tests
- DefaultMutableTreeNode root = new DefaultMutableTreeNode("All");
-
- for (String group : groups) {
- DefaultMutableTreeNode child = new DefaultMutableTreeNode(group);
- root.add(child);
-
- for (TestName test : testsRelevantByGroup.get(group)) {
- DefaultMutableTreeNode grandChild = new DefaultMutableTreeNode(test.getName());
- child.add(grandChild);
- }
- }
-
- // define swing object
- jTree = new JTree(root);
-
- for(int i=0;i<jTree.getRowCount();i++){
- jTree.expandRow(i);
- }
-
- jScrollPane3.setViewportView(jTree);
-// jTree.addTreeSelectionListener(new TreeSelectionListener() {
-//
-// @Override
-// public void valueChanged(TreeSelectionEvent e) {
-// tp = jTree.getSelectionPaths();
-// }
-// });
- jScrollPane3.setViewportView(jTree);
-
- /////////////////////////////////////////////////////////
- // display the patients registered
-
- patients = connectorClientDB.getPatients();
- for (Integer patientId : patients) {
- jComboBox1.addItem(patientId.toString());
- }
-
- } catch (SQLException ex) {
- Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex);
- ex.printStackTrace();
-// } catch (IOException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
-// } catch (DocumentException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
- }
-
- }
-
- /**
- * 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() {
-
- jPanel1 = new javax.swing.JPanel();
- jLabel2 = new javax.swing.JLabel();
- jLabel1 = new javax.swing.JLabel();
- jPanel2 = new javax.swing.JPanel();
- jComboBox1 = new javax.swing.JComboBox<String>();
- jButton1 = new javax.swing.JButton();
- jButton1.setFont(new Font("Tahoma", Font.BOLD, 12));
- jLabel3 = new javax.swing.JLabel();
- jLabel4 = new javax.swing.JLabel();
- jScrollPane3 = new javax.swing.JScrollPane();
- jScrollPane2 = new javax.swing.JScrollPane();
- jMenuBar1 = new javax.swing.JMenuBar();
- jMenu1 = new javax.swing.JMenu();
- jMenuItem1 = new javax.swing.JMenuItem();
- jMenu2 = new javax.swing.JMenu();
- dialog = new JDialog();
- tabbedPane = new JTabbedPane(JTabbedPane.TOP);
-
- setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
- addWindowListener(new WindowAdapter() {
- @Override
- public void windowClosing(java.awt.event.WindowEvent windowEvent) {
- if (!survey_submitted && close_trials <= 2){
- JOptionPane.showMessageDialog(frame, "Before closing the application, please fill in and submit the questionnaire.");
- close_trials++;
- tabbedPane.setSelectedIndex(1);
- }else{
- System.exit(0);
- }
- }
- });
- setTitle("HIV Pharmacogenomics\n");
-
- jLabel2.setIcon(new javax.swing.ImageIcon("res/shcs_logo2_small.gif")); // NOI18N
-
- jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
- jLabel1.setText("HIV Pharmacogenomics | Project #693");
-
- javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
- jPanel1.setLayout(jPanel1Layout);
- jPanel1Layout.setHorizontalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap(71, Short.MAX_VALUE)
- .addComponent(jLabel1)
- .addGap(18, 18, 18)
- .addComponent(jLabel2))
- );
- jPanel1Layout.setVerticalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jLabel1)
- .addGap(11, 11, 11))
- .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)
- );
-
- jPanel2.setBackground(new java.awt.Color(255, 255, 255));
- jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
-
- jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<String>(new String[]{"Select Patient"}));
-
- jButton1.setText("Run Test");
- jButton1.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton1ActionPerformed(evt);
- }
- });
-
- JLabel lblNewLabel = new JLabel("");
- lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
- lblNewLabel.setIcon(new javax.swing.ImageIcon("res/gears.png"));
-
-
-
- javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
- jPanel2Layout.setHorizontalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addComponent(jComboBox1, 0, 248, Short.MAX_VALUE)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addGap(75)
- .addGroup(jPanel2Layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jButton1)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 75, GroupLayout.PREFERRED_SIZE))
- .addContainerGap(98, Short.MAX_VALUE))
- );
- jPanel2Layout.setVerticalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addComponent(jComboBox1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED, 223, Short.MAX_VALUE)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jButton1)
- .addGap(19))
- );
- jPanel2.setLayout(jPanel2Layout);
-
- jLabel3.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel3.setText("Select Patient");
-
- jLabel4.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel4.setText("Select Test");
-
- jScrollPane3.setBackground(new java.awt.Color(255, 255, 255));
-
- jMenu1.setText("File");
-
- jMenuItem1.setText("Exit");
- jMenu1.add(jMenuItem1);
-
- jMenuBar1.add(jMenu1);
-
- jMenu2.setText("Edit");
- jMenuBar1.add(jMenu2);
-
- setJMenuBar(jMenuBar1);
-
-
-
- javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
- layout.setHorizontalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(layout.createParallelGroup(Alignment.LEADING, false)
- .addComponent(jLabel3)
- .addComponent(jLabel4)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, 244, Short.MAX_VALUE)
- .addComponent(jScrollPane3))
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 970, Short.MAX_VALUE))
- .addContainerGap())
- );
- layout.setVerticalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel4))
- .addPreferredGap(ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addComponent(jScrollPane3, GroupLayout.PREFERRED_SIZE, 388, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jLabel3)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 785, Short.MAX_VALUE))
- .addContainerGap())
- );
-
-
- jScrollPane2.setAutoscrolls(true);
- jScrollPane3.setAutoscrolls(true);
- tabbedPane.addTab("Report", new ImageIcon("res/report_icon.gif"), jScrollPane2, null);
- tabbedPane.setBackgroundAt(0, new Color(255, 255, 255));
-
- panel = new JPanel();
- tabbedPane.addTab("Survey", new ImageIcon("res/survey_icon.png"), panel, null);
- tabbedPane.setBackgroundAt(1, new Color(255, 255, 255));
- tabbedPane.setEnabledAt(1, true);
-
- panel_1 = new JPanel();
- panel_1.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
- panel_1.setBackground(SystemColor.control);
-
- JLabel label = new JLabel("");
- label.setIcon(new ImageIcon("res/shcs_logo2_medium.gif"));
-
- lblDearDoctor = new JLabel("Dear Doctor,");
- lblDearDoctor.setFont(new Font("Tahoma", Font.BOLD, 14));
-
- JScrollPane scrollPane = new JScrollPane();
- scrollPane.setBorder(null);
- GroupLayout gl_panel_1 = new GroupLayout(panel_1);
- gl_panel_1.setHorizontalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(Alignment.LEADING, gl_panel_1.createSequentialGroup()
- .addGap(25)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addComponent(lblDearDoctor)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 661, Short.MAX_VALUE))
- .addContainerGap())
- );
- gl_panel_1.setVerticalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addContainerGap()
- .addComponent(lblDearDoctor)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 203, Short.MAX_VALUE))
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(36)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 96, GroupLayout.PREFERRED_SIZE)))
- .addContainerGap())
- );
-
- JTextPane txtpnTodayYouAre = new JTextPane();
- txtpnTodayYouAre.setBorder(null);
- txtpnTodayYouAre.setText("Today you are receiving a pharmacogenetics report based on the genome of your patient. Because of its highly sensitive nature, " +
- "the genetic information you are provided with is processed in a privacy-preserving way. In particular, to protect patients’ genomic privacy, " +
- "their genetic and clinical data is stored encrypted at the SHCS data center, and securely analyzed through a sophisticated algorithm designed and developed at EPFL [1, 2]. " +
- "The actual clinical and genetic information is never revealed. Only the authorized users, such as you, can get some processed information, for example, the final result of a " +
- "pharmacogenetics risk test.\nThis mechanism protects the data against insiders or hackers trying to illegally access patients’ medical information, while still allowing authorized " +
- "users to obtain the information they need." +
- "\n\nTo help us understanding the importance of genomic privacy in the medical domain, and the impact of privacy-enhancing technologies in daily clinical practice, please complete the following survey.");
- txtpnTodayYouAre.setFont(new Font("Tahoma", Font.PLAIN, 13));
- txtpnTodayYouAre.setEditable(false);
- txtpnTodayYouAre.setBackground(SystemColor.control);
- scrollPane.setViewportView(txtpnTodayYouAre);
- panel_1.setLayout(gl_panel_1);
- jScrollPane4 = new javax.swing.JScrollPane();
- jScrollPane4.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
- getContentPane().setLayout(layout);
-
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
- ReplySurvey replySurvey = commHandlerAdapter.callServiceSurvey();
-
- map = replySurvey.getQuestions();
- ids = map.keySet();
- locations = replySurvey.getLocations();
-
- panel_2 = new JPanel();
- panel_2.setBackground(Color.WHITE);
- panel_2.setBorder(null);
- jScrollPane4.setViewportView(panel_2);
- panel_2.setLayout(new BoxLayout(panel_2, BoxLayout.Y_AXIS));
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
-
- int type = 0;
- for(Integer id : ids){
- ButtonGroup group = new ButtonGroup();
- JRadioButton r1 = new JRadioButton("1"); r1.setActionCommand("1"); r1.setBackground(Color.WHITE);
- JRadioButton r2 = new JRadioButton("2"); r2.setActionCommand("2"); r2.setBackground(Color.WHITE);
- JRadioButton r3 = new JRadioButton("3"); r3.setActionCommand("3"); r3.setBackground(Color.WHITE);
- JRadioButton r4 = new JRadioButton("4"); r4.setActionCommand("4"); r4.setBackground(Color.WHITE);
- JRadioButton r5 = new JRadioButton("5"); r5.setActionCommand("5"); r5.setBackground(Color.WHITE);
- group.add(r1);
- group.add(r2);
- group.add(r3);
- group.add(r4);
- group.add(r5);
-
- JPanel radio_panel = new JPanel();
- radio_panel.setLayout((new BoxLayout(radio_panel, BoxLayout.X_AXIS)));
- radio_panel.setBackground(SystemColor.control);
- radio_panel.setAlignmentX(Component.CENTER_ALIGNMENT);
- radio_panel.add(r1);
- radio_panel.add(r2);
- radio_panel.add(r3);
- radio_panel.add(r4);
- radio_panel.add(r5);
- radio_panel.doLayout();
- radio_panel.setPreferredSize(radio_panel.getPreferredSize());
- JTextArea question = new JTextArea(id + ") " + map.get(id).getQuestion());
- question.setEditable(false);
- question.setLineWrap(true);
- question.setWrapStyleWord(true);
- question.setBackground(SystemColor.control);
-
- JPanel row_panel = new JPanel();
- row_panel.setLayout(new BoxLayout(row_panel, BoxLayout.X_AXIS));
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.add(question);
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.add(radio_panel);
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.setBackground(Color.WHITE);
-
- int type_new = map.get(id).getType();
-
- if(type_new != type){
- type = type_new;
- JLabel question_group = new JLabel("");
- switch(type){
- case 1:
- question_group.setText("Clinical Utility");
- break;
- case 2:
- question_group.setText("Privacy Concerns");
- break;
- case 3:
- question_group.setText("Usability Assessment");
- break;
- }
- question_group.setAlignmentX(Component.CENTER_ALIGNMENT);
- question_group.setFont(new Font("Tahoma", Font.BOLD, 13));
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- panel_2.add(question_group);
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- panel_2.add(new JSeparator());
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- }
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- panel_2.add(row_panel);
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
-// panel_2.add(radio_panel);
- panel_2.add(new JSeparator());
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
-// panel_2.setPreferredSize(panel_2.getPreferredSize());
- buttonGroupMap.put(id, group);
-
- }
-
-
-
- this.setSize(new Dimension(1300, 865));
-// pack();
- }// </editor-fold>//GEN-END:initComponents
-
-
- private void submitButtonActionPerformed(java.awt.event.ActionEvent evt){
-
- try{
- answers = new HashMap<String, String>();
- StringBuilder sb = new StringBuilder();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- sb.append(q).append(",");
- sb.append(bg.getSelection().getActionCommand()).append(";");
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- String answer = sb.toString();
- Integer id_loc = null;
- for(Integer i: locations.keySet()){
- if(locations.get(i).equals(comboBox.getSelectedItem().toString()))
- id_loc = i;
- }
-
- String id_p;
- if(jComboBox1.getSelectedItem().toString().equals("Select Patient"))
- id_p = "0";
- else
- id_p = jComboBox1.getSelectedItem().toString();
-
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
-
- String reply = commHandlerAdapter.callServiceSurveyAnswer(answer, id_loc.toString(), id_p);
-
- if(reply.equals("1")){
- survey_submitted = true;
-
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Congrats! Your aswers have been sent to the SHCS datacenter.",
- "Information Message",
- JOptionPane.INFORMATION_MESSAGE);
- }
- else{
- throw new IOException();
- }
-
-
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "The SHCS datacenter does not respond. Please save the survey and send it to jean.raisaro@epfl.ch.",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
- private void savePDFButtonActionPerformed(java.awt.event.ActionEvent evt){
- try {
-
- answers = new HashMap<String, String>();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- JFileChooser chooser = new JFileChooser();
- // Note: source for ExampleFileFilter can be found in FileChooserDemo,
- // under the demo/jfc directory in the JDK.
-
- int returnVal = chooser.showSaveDialog(this);
- System.out.println(returnVal);
- if(returnVal == JFileChooser.APPROVE_OPTION) {
- System.out.println("You chose to open this file: " +
- chooser.getSelectedFile().getPath());
- quest = new Questionnaire(chooser.getSelectedFile().getPath() + ".pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }else{
- quest = new Questionnaire("outputPDF/survey.pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }
-
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (DocumentException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (NullPointerException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
-
- private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
-
- JPanel contentPanel = new JPanel();
-
- dialog.setBounds(100, 100, 410, 80);
- dialog.getContentPane().setLayout(new BorderLayout());
- contentPanel.setLayout(new FlowLayout());
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- dialog.getContentPane().add(contentPanel, BorderLayout.CENTER);
- {
- JLabel label = new JLabel("Please wait...The overall computation can take few seconds");
- label.setHorizontalAlignment(SwingConstants.CENTER);
- label.setFont(new Font("Tahoma", Font.PLAIN, 12));
- contentPanel.add(label);
- }
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
- dialog.getContentPane().add(buttonPane, BorderLayout.SOUTH);
- }
- dialog.setLocationRelativeTo(this);
- dialog.setVisible(true);
-
- GUIWorker gw = new GUIWorker(this, props);
- Thread t = new Thread(gw);
- t.start();
-
- }
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JButton jButton1;
- private javax.swing.JComboBox<String> jComboBox1;
- private javax.swing.JLabel jLabel1;
- private javax.swing.JLabel jLabel2;
- private javax.swing.JLabel jLabel3;
- private javax.swing.JLabel jLabel4;
- private javax.swing.JMenu jMenu1;
- private javax.swing.JMenu jMenu2;
- private javax.swing.JMenuBar jMenuBar1;
- private javax.swing.JMenuItem jMenuItem1;
- private javax.swing.JPanel jPanel1;
- private javax.swing.JPanel jPanel2;
- private javax.swing.JScrollPane jScrollPane3;
- private javax.swing.JTabbedPane tabbedPane;
- private javax.swing.JScrollPane jScrollPane2;
- private javax.swing.JScrollPane jScrollPane4;
- private JPanel panel;
- private JPanel panel_1;
- private JPanel panel_2;
- private JLabel lblDearDoctor;
- private JLabel lblNewLabel_1;
- private JLabel lblNewLabel_2;
- private JLabel lblNewLabel_3;
- private JComboBox<String> comboBox;
- private Component rigidArea;
-
- // End of variables declaration//GEN-END:variables
-
-
- class GUIWorker implements Runnable{
-
- private JFrame mainFrame;
- private ClientProperties props;
- private MedUnit mu;
-
- public GUIWorker(GUI gui, ClientProperties props) {
- mainFrame = gui;
-
- this.props = props;
- this.mu = new MedUnit(props, 0);
- }
-
- @Override
- public void run() {
-
- try{
- int patientId = Integer.parseInt((String) jComboBox1.getSelectedItem());
-
- // convert selected tests to test identifiers
- ArrayList<TestName> selectedTests = new ArrayList<TestName>();
- for (String currentName : getSelectedTests()) {
- TestName currentTest = testsByName.get(currentName);
-
- if (currentTest == null) {
- throw new IllegalStateException("Trying to run unknown test: " + currentTest);
- }
-
- selectedTests.add(currentTest);
- }
-
- // run tests
- Diagnostic diagnostic = mu.runTests(patientId, selectedTests);
-
- // warn for tests with missing material
- warnFailedTests(diagnostic, selectedTests);
-
- // create report
- mu.createReport(patientId, selectedTests, diagnostic);
-
- dialog.setVisible(false);
-
- // specify file you wish to open (JPedal handles getting the byte data)
- String filepathReport = props.getPathPDF() + patientId + ".pdf";
-
- // open generated PDF
- // object must be either String in full filepath, or
- // File object which can be relative
- Object[] input = new Object[]{ new File(filepathReport) };
- viewer.executeCommand(Commands.OPENFILE, input);
-
- // display CAD result as bar plot
- if (diagnostic.hasCAD()) {
- System.out.println("CAD = " + diagnostic.getResultCAD());
- BarPlotFrame frame = new BarPlotFrame(diagnostic.getResultCAD(), patientId);
- frame.setVisible(true);
- frame.setAlwaysOnTop(true);
- }
-
-
- } catch (SQLException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Please select a patient.");
- }
-
- }
-
- private void warnFailedTests(Diagnostic diagnostic, ArrayList<TestName> selectedTests) {
- ArrayList<Integer> failedTests = diagnostic.getInvalidTests();
-
- if (!failedTests.isEmpty()) {
- String msg = "Could not complete tests: ";
- boolean first = true;
- for (TestName testName : selectedTests) {
- if (failedTests.contains(testName.getId())) {
- if (first) {
- first = false;
- } else {
- msg += ", ";
- }
- msg += testName.getName();
- }
- }
- displayError(msg);
- }
-
- }
-
- private void displayError(String msg) {
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- mainFrame,
- msg,
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
-
- private ArrayList<String> getSelectedTests() {
- ArrayList<String> tests = new ArrayList<String>();
-
- for (TreePath treePath : jTree.getSelectionPaths()) {
- tests.addAll(getChildrenTests(jTree.getModel(), treePath.getLastPathComponent()));
- }
-
- return tests;
- }
-
- private ArrayList<String> getChildrenTests(TreeModel model, Object node) {
- ArrayList<String> tests = new ArrayList<String>();
-
- if (model.isLeaf(node)) { // leaf
- DefaultMutableTreeNode leaf = (DefaultMutableTreeNode) node;
- tests.add(leaf.toString());
- }
- else { // iterate over children
- for (int i = 0; i < model.getChildCount(node); i++) {
- tests.addAll(getChildrenTests(model, model.getChild(node, i)));
- }
- }
-
- return tests;
- }
-
- }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/45/3070e4577ba8001419a38fd8608ce0e6 b/.metadata/.plugins/org.eclipse.core.resources/.history/45/3070e4577ba8001419a38fd8608ce0e6
deleted file mode 100644
index f01fa6d..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/45/3070e4577ba8001419a38fd8608ce0e6
+++ /dev/null
@@ -1,143 +0,0 @@
-package io.serializer.xml;
-
-import io.serializer.ParserNamespace;
-
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.Map;
-import java.util.Set;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
-import org.jdom2.Document;
-import org.jdom2.Element;
-import org.jdom2.JDOMException;
-
-import utils.StringUtils;
-import framework.Question;
-import framework.reply.ReplySurvey;
-
-public class XMLParserSurvey extends XMLParser{
-
- private static final Logger LOGGER = Logger.getLogger(XMLParserSurvey.class.getName());
-
- public String replyToString(ReplySurvey reply) throws IOException {
- Element elemRoot = new Element(ParserNamespace.CNAME_AWR_SURVEY);
- Document doc = new Document(elemRoot);
-
- // add questions
- Element elemQuestionList = new Element(ParserNamespace.CNAME_QUESTION_LIST);
- elemQuestionList.setText(concatQuestionList(reply.getQuestions()));
- elemRoot.addContent(elemQuestionList);
-
- // add locations
- Element elemLocationList = new Element(ParserNamespace.CNAME_LOCATION_LIST);
- elemLocationList.setText(concatLocationList(reply.getLocations()));
- elemRoot.addContent(elemLocationList);
-
-
- return documentToString(doc);
- }
-
-
- public ReplySurvey stringToReply(String replyString) {
- ReplySurvey reply = null;
-
- try {
- Document doc = stringToDocument(replyString);
- Element elemRoot = doc.getRootElement();
-
- Element elemQuestionList = elemRoot.getChild(ParserNamespace.CNAME_QUESTION_LIST);
- Element elemLocationList = elemRoot.getChild(ParserNamespace.CNAME_LOCATION_LIST);
-
-
- Map<Integer, Question> questions = parseConcatQuestionList(elemQuestionList.getText());
- Map<Integer, String> locations = parseConcatLocationList(elemLocationList.getText());
-
-
- reply = new ReplySurvey(questions, locations);
- } catch (JDOMException e) {
- LOGGER.log(Level.SEVERE, null, e);
- }
-
- return reply;
- }
-
- private String concatLocationList(ArrayList<String> list) {
- if (list == null || list.isEmpty()) {
- return "";
- }
-
- return StringUtils.join(SEP_EXT, list);
- }
-
- private String concatQuestionList(Map<Integer, Question> map){
- if(map == null || map.isEmpty()){
- return "";
- }
- StringBuilder sb = new StringBuilder();
- Set<Integer> ids = map.keySet();
-
- boolean first = true;
- for (Integer id : ids) {
- if (first) {
- first = false;
- } else {
- sb.append(SEP_EXT);
- }
-
- sb.append(id).append(SEP_INT_QUESTIONS).append(map.get(id).getQuestion())
- .append(SEP_INT_QUESTIONS).append(map.get(id).getType());
-
- }
-
- return sb.toString();
-
- }
-
- private Map<Integer, String> parseConcatLocationList(String val) {
- if (val.equals("")) {
- return new HashMap<Integer, String>();
- }
- HashMap<Integer, String> map = new HashMap<Integer, String>();
-
- String[] strings = val.split(SEP_EXT, -1);
-
- for(int i = 0; i<strings.length; i++){
- if (strings[i].equals("")) map.put(null, null);
- else{
- String[] values = strings[i].split(SEP_INT_QUESTIONS);
- int id = Integer.parseInt(values[0]);
- String location = values[1];
- map.put(id, location);
- }
- }
-
- return map;
- }
-
- private Map<Integer, Question> parseConcatQuestionList(String val){
- if (val.equals("")) {
- return new HashMap<Integer, Question>();
- }
-
- Map<Integer, Question> map = new HashMap<Integer, Question>();
-
- String[] strings = val.split(SEP_EXT,-1);
- for(int i = 0; i<strings.length-1; i++){
- if (strings[i].equals("")) map.put(null, null);
- else{
- String[] values = strings[i].split(SEP_INT_QUESTIONS);
- int id = Integer.parseInt(values[0]);
- String question = values[1];
- int type = Integer.parseInt(values[2]);
-
- map.put(id, new Question(type, question));
- }
- }
- return map;
-
- }
-
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/29/a0468d3253ac001410e2e30aa85db9d1 b/.metadata/.plugins/org.eclipse.core.resources/.history/45/d0642ad083ac0014196ed64c9de95c51
similarity index 98%
rename from .metadata/.plugins/org.eclipse.core.resources/.history/29/a0468d3253ac001410e2e30aa85db9d1
rename to .metadata/.plugins/org.eclipse.core.resources/.history/45/d0642ad083ac0014196ed64c9de95c51
index 23af7e0..f3e2350 100644
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/29/a0468d3253ac001410e2e30aa85db9d1
+++ b/.metadata/.plugins/org.eclipse.core.resources/.history/45/d0642ad083ac0014196ed64c9de95c51
@@ -1,71 +1,71 @@
package io;
import io.serializer.url.URLParserDecrypt;
import io.serializer.url.URLParserMaterial;
import io.serializer.xml.XMLParserDecrypt;
import io.serializer.xml.XMLParserMaterial;
import io.serializer.xml.XMLParserSurvey;
import java.util.logging.Logger;
import framework.Type;
import framework.reply.ReplyDecryption;
import framework.reply.ReplyMaterial;
import framework.reply.ReplySurvey;
import framework.request.RequestDecryption;
import framework.request.RequestMaterial;
public class CommAdapter {
@SuppressWarnings("unused")
private static final Logger LOGGER = Logger.getLogger(CommAdapter.class.getName());
public ClientConnection connectSPU = null;
public CommAdapter(ClientConnection connectSPU) {
this.connectSPU = connectSPU;
}
public ReplyDecryption callServiceDecrypt(RequestDecryption rqtDecrypt) {
String requestString = URLParserDecrypt.requestToString(rqtDecrypt);
// String replyString = "<awr_decrypt><patient>30351</patient><v_timestamp>1417188729390</v_timestamp><decrypt_val>,,,,,,,,,,,,,,,,2,AwHR3OO0/hkwgEHluLDFLtn4aaTBAwBEJjJpMegGa29ASgtyt1ha2OOyxvEvNgkIaY0xWXtTmqrqhSBKDG6J7Lps0g==,AwE/oifhonvUZDA4mqRK8K1WCkoepEuL9SidjdFXMNNZQXCMUvVN6pBUYVFgJeFX6mT2jruK8ic3y6yI14PfKl/Pvg==,AgBHs6HGF9AYNc5RlFTGv025WEaT91i/MPy+HXqhvHOrp0Ol9/aKyvv2BgAzeAdsdSEbVs2sahiyL/kbKjeUoI9tsA==,,,,,,,,,,,,,2,AgHIofEmf4aJMLBnKAY3/8WcLXUETF4y/68fzZR6hsS5btZTyI0E4ZTltDzV6hBzIT14cC4S/BMclo1aoLt5C9f+Cg==,AgDOXZAZAwO4KXslqU1wKctrVlH8CcGvpO8gGrPl3YjrY8SR3a6gStvZvjcUKXhvtDkRwSLAIkD3lFrKSXWestHSqQ==,AgG7Y5so9ZTRng2Xm3ziWx3+7zfaVLkIJ2v7g+qEUx5Vl2/udDOcg/was8W6qbKYeo/W0EGTlNXKTOdIatGVxyuoZA==,,,,,2,AgDAVy0/nE6X4iAengG9lCiYEBMtK6rAAiy7OwC7U/QSbokiEzH0RafH7rb+5L5R/ii9/3kZCcKmgOIoPzkmeloDfg==,AgHuvmLAeIFYm4ObEBO2v9xTK6tjYfdh+x4kwULBpDNlUiW4kNNaeoeziRA7nlRvcSfxPlR070N/3qzBMu3EKZ2csQ==,AgDk/CzCL4XUobuNaLsvrH5s0COMKYBqY/18YRR0d7mIsVVYrKVGF+IWnEluhbLt+BoRBdvL5UElgroyORJpiKz06w==,,,,,2,AgH0nW+2h+vcOZgPe3uR7jEHmEPi+g4izQ3OIU9An2vekwbG1liBFgTo33pEhyXhNWPhGCbSb73sJ7pt0JLL+hhWMw==,AgHG039OnpvmllkV6QBsmoMdqISrRuW2q5M3jfUp5TUbU6F/3S2FK1iSVKWgTsI291re6lz6KH5d8rWrnoCAozhIeg==,AwGjmnLUMd42F7a/tsSkeqcxoHMAXNKdvF4kOXoAxmc6ZSxaUhzkGkcgNOO8SFNiWqTKgtZCffJ7hfI0voAUX0TD1w==,,,,,2,AwHfYRjQFscHzOvVozackTaM3sybOjyd2aLc4B+WQ7KiWHoGKkzQScoDiy8hiA2cJpv8ngfitTqJRLlyegvuM+Ietw==,AwAP92OqrJFpFmdrMUUx6FeFhwVLYtAsfw3sem2RYu7ljPry+uJnvluuzTvVaFhs8BAAD8VBFs1vqrSHyQEq8Ocsmw==,AwDNXg/JA4QXA6wu30DUE7peOk1a10aHbd38iwjN1Q0DKy3BqS36+EQKg5hbwELxN2+/Yu4UA1IKWYJI0zNs6TJUtA==,,,,,2,AwBWFv3ivyQz4CGIilJ7CVtpQGOs1tnIW+0uxQyiWIO3HDjJtfxPyQ1AJWPsBQ9eYmaoKmPnN+euPCm7bP0LxBL/Tg==,AwHg7AZb5DV5OJrl0omtKx2OqckXcQEUT8pZ+Bmo9AyULgL5HOq2AVU04qhvbdy0W4OMYqxF3uBwqT6dNhFptsKEKQ==,AwG9dyMbI5EI8UCXuj5JkQRMimcT1u6zCBAfmRvANtT54yDtC8KS6VeOr7h/NP4qrf/mbl5tMaePbkkHrc6E39ntsA==,,,,,2,AwHkMyCOJm/RlYOybGhX3DchR/wSN2L3PuXKalMszgk3WOCiWSpYlP3SOPLWvJTRQaTxoN+oA5IkCTvlp02+Mduaxg==,AgHhR8HjavXjnsy+rHptc/JSI5pLFjM0RczUygxTX7vqV/yqwZ280Rq7YpXKp2GBfiZvFf0qIQoWe4vx5DBxwvHkdA==,AwEf2yisEpflVm8R2X08SCJM89apu7tUFzbpndsTIt5o9/xdoXKomMUk9REz+yrpkd+jFhlkJMQHHVMhgjiWYCEdpQ==,,,,,2,AwBaIc8ZWFm4O9QO0ofJeS9Q7tki7CAscBXRDnajEp7rmKNgrpRyyu1ezSpborwaloWR9kDKPLdYVV8SNk2V/1EudA==,AwGE8MPAnPKKXF15EyrAx1bRinwgoqYVO4Junz5IXQjGLyQpSr5NwO/hqu5E5egHte20jm380Wn2Qy6GgKNiRLy/gQ==,AwCAOjOQNdMN5uIB0POFzYS/fpxZ0Q5KfhlP5fijNmc/daO5frSrwhgcMH5lMKL4EGjBI1p6JMe3fuMqb5t1ImeTBg==,,,,,2,AgARSg2izcK6iZLFe4YkIS6yZgnt8cd9DFqpQ37gNmcccZwBI+mpsaijTUPo1GT+QUD8zC+6qr/GrzG9q+q7BPxpVw==,AwGM/jFdtoNViQXxgqeL27ZKobjsfyeuXrx8re3UfIe3c4XN16srSpcTfxEZNXDKo1Ff9fRvDVBOwdS6XU2nvo++ng==,AwAtK0eOqcVfzkdJIIkk7BORWwSDTAjtx4aEXwyZ0bla+2rIWDgXi3U5xlgnjeXJNtGsLokkvvX92BOBIw9SuCGhnw==,2,AgCWAAWTW+7jv2a2lc4pGFnumEgyH59wSDRXEYUASCVB249JBmeKFWRKNFTQlph5hTR5Rb+YHFP/qvzmwU11Hs2b0w==,AgANdxpkN+DS4De3aokNjt+e/Ou8GT+p8pUJA+6LHrDBXAddoCR8KpeXW7mESokq6BTEVQXxU3TdqavRkqaeFmpXkw==,AgDDDSEO3e8DCsm1n6dbj2PB9Z/tUzluDCt/utdSLrYFfdFY+Y5K7Vxo9F5/17CzaUbX172SGLt8TfCfuYBrtupgAg==,2,AgB1OG6bj+6kfRvLj8yjMQbl80FdZHZrRVRUfNVRwvjvvbRa5f9s9fNZ8J0a3s3hH+RyfZmGJ4Ufjh5mMiQkwiur6w==,AwBX4GFZNjUdtRdwtWgxyQz7h8Hk0ztaZeM8/e+8ll0o+RjYN+CNP8+lnXEw7wpuC4wcMX05mrjPvHOuy0hOFVNkhQ==,AgDf3el4vbMYIAFEH9WV151/uzl+gkfTQ79T8Iu4KxEVo6UJvCfqkjETlR6aXUJiqaCbSV5odMT50lURsmfgALf6AQ==,,,,,2,AgENmnviZkgQWXZ5QDgCCE2zq0IiXURTqK2UNPtEg3o64yjlrQQUd2rO/KgKolyCQcKYTVoMj7k2VeCSSVRr8KGC7w==,AwFv6ZJzhpV/Ms00QkrkNiCKVRFczn/yqnkiBFUHC1RQv3tqzzYSEUeXmDHmm0/kEBtnfgRWjHQm9zxS8Jzy7srDLQ==,AwB8aS5KA1dFLKCA1a/7Wsjhef+6kkNAB/GO9AOvRZbFW/dhl5fx04Alh+g78fwcVMX+eEIEJgSyH0jhv7kmiQh4ew==,,,,,2,AgG8fXrCra6UgP5G89TaE6PH5E0TANb/PJPbKwzdi78XEHRUmcTz6PIhYtclTmcdq5TH0IwQv+ra5ppf4qR4LtkGig==,AgEKzsmZrikmXzJywMpzkAdG9hAPlOiRY9oXKf4Sh50CL8btUItjfVJWg3ubNhotzJK+fnNlRrcMkWQEBD/aGKpf8A==,AwFi+2cGpuvVdR+pT1P9Ur8jAkzmjJK2XmUQbFpyMi5Jc9a5/fPnBWCxmTX8CH5wks0PicYC6rzZC3NEIt0EoM1Qfg==,,,,,2,AgHbTZgTAv8lLBsoX06Hkm9XPU+crlRqKl0xL8v18xeUUPY1YAvUYf2OAutmTtPRycXyzrDWSpn2h5xfk/dtq/BICg==,AwAjPydfoUhfSVFKWNI4Ox4a/psZGDIGzEEWh9HyVtAmjdNb5ctr/S6z+akiRfPlNCsVf6TdkzJ2Su6BO4sOX/SHKA==,AwBVmjn7AitCe4zQ/Fl0sYW2XqXkJxJBDviwl9jYhoq29v90n9escDsiA3Cy+1uW69MezdZBEszFdEWlX0EzbQZQ6A==,,,,,2,AwCG0RBHwHuame/1G7qtUjmwz0gkCP1tyZiEgm7aTKpsCjt7UsMirMmx/ZrNlvSzkGuVbRO97Szzr+9fo4baH1rEZA==,AwHyMK/q8FUUvoHTt7O7KJUxYz/ZHF6SntbmKfbygLVw4HWc/eFic4DXHKbEGWvrMO5b37GksqxfQHc2xlAuj8ZRIw==,AgB5x0BxqiMYxRvzlq0+/RkbOuNA7hYuMG+7D6wlMOxSskgqyfwA0MfW+AkXFqnqfqsoJRpDy15bABWhH6MIdJsPEA==,,,,,2,AwAS/nCH0pcrsllSy2duadUs1rMtL6vtz7VTUAVhn1/YYlZ068ysBi1Mdz9gJFewdyeGLnFhyg+W15rFB317nyeGHg==,AwBh6f5UVRMM5ekWqkrx6XiVOK/BL0TinjsSLna8BjkQPXU2DvGxiKPhA03/GtBdEpihEX4bVaHQhiOupTf7wh6bCQ==,AgGPDFH8Kv8hz2aUJ955nHu8NiAoTmDjqhlXuJ1T83h+O0sc2GieLhmXmpEjxjEAyxkqjb2nFxvDhi+YGs4MqI4S5A==,,,,,2,AwDqwFv6bqpM/6PTCJ/wgRALYVT+Rn54HIB2icP6ODNexaoqILBS9p1k1QENbQsBZ9LmJJwngRQXi07Q4P8br76Qfw==,AgG8yTiO8tFWZqQELBr+Zt1fKKA3bl08836nUEEpD55Sid0ZywCrWe+Va58xbMIWscISLPbBvXIdO48ZgoHsLgA7Jw==,AwCI1Ud0GJLnS86mSC58HNB91lH9kPpQbufGn+WJErGxAQubtSFBc3rnT0SNE3CbW+1MPjYBbdCgxpHjN/iQf96++w==,,,,;2,AgB9YhljgPngkwwYTBMUaMGR+rWMjvlK0tgrzkG8OT9NGNJfaaLP6AzfhWrT5oe9NRnabU25pQvDhAIGZCajDy8N2g==,AwE5Irce6LOSxfLgn4PZh1PeDPjAHb5wPTNfmQoWFY83dNQLYN44FupJaQRRUqBqyGNB0SL76GKzr8G9tKLAHOxRSQ==,BAG5iWHEhlWkvtyAlQy4bwKa1iNRzJq8WJTh2GE9oT4DeJRmO1pCHy9P+9YktDT+4RgV9s8AzOYih1LmHW14uP27HQGg1nTdHyab9/nFUe9BFxIi8xQTPG8et9++5I+gKIeWGCXBL31sBhpaMewvVhDjl2d3+7H2PUv9IY3lyIRFA6N16A==,2,AwAPIoQJqSbXFKXQAIG9J+/+/41NLX0rDINImk4eBgAnZ4V0R8YSqkHD3nd0IrEMyK7OpkCXkxTzOlwJlfEfti+vew==,AwAQ8KdMYsEOqM3eyGv/XbHnGf+TqCAG39Gz/juBcioOOJmLOFjl6oCITozJOyPusbTRXZ4eIwgQYkl12mt6saTpgQ==,BACkTO+3rRUF81w5yzZskFiIRyVxc6sdJfDFX6C+Jy5A+s/sfHskrFx2GYNklZaYztP0/B64a6v6HvFWVz8GuYj2wgHhiCL+QwLThFpaRxh8kUMSrt4VuXSIjtHwRXzhSdEbG2T6C/+CJZxIFh/ugEV9SS51l1HrLdnJDb2Kdu3QC3lRkQ==;2,AgC99VyiRLJ2kFf3oCkb+JPVV7B4tXVGI2NVT7fdKtB+gEjCcdkbS5YEXm/Sq6NAJEOKilMTFUDLYFDOe+7JHj/4pw==,AgAbT080sbKVHH9lim3tVCYS4cMz+rLownRKqtYZ7AfR8qy819R1GFywQ0kImgcdjEey5C4m0OPTwgtkO+C5uWtKfQ==,BADKYt9i0zTJeh3H8t6d8pZdncz3f28v1oWrssLZwAutkIcF3XKkPNmK3X75K3sImUSch//IIRIB1Yi5/MrZZeDrxQHhQZEg6AA8bDxgt0JdOEX2t4crzDu3gW5I8y+Ya0fZr1RmxvfMr2UxRhSsNsz949v/g+GPfsrEfDqIWTiNlJfwyg==,2,AgEPMjgCfgGRaZ/5I1hLqDoJ8nXYeTlnt9YeK4K8w+HnRAoAD09zkPcLMWajIjupe/CUFrHz00sAvs+vOPeKxGrLiQ==,AgDy7g2DcDwmIW7LtTTteHExD/cyP4BMWimEAM1RfAd/Y6P8XkmRGgglfdLJ7RGTR2YIMB1lxQ/LQUbmzyjTiiuWow==,BAHJ7oHVr/0wweyGlg4f9Dqmx8h0m35jMdrEFwVY8l/ENKpOTxG/oh9vAvo1uw39wUOn4CWGBmAFE2lsvWFW18gt+gHPFt5/9ihUFN9mtxFLT1Q3W4Uf8IdekHPMbNlxEp1wId7EH3XsAox3Eo8b3XnYpwfsAXoDwQa2wyiO5h104Ptvsg==;2,AwClCMGcHdd7rD8sYDC/GXyAtLmZ/JI4v+aOK4PXzjWJi/zvcsXT5dJUOm9bW6AAtzgOKPd0WwU3hSytJ+ATy146Uw==,AgADzN6ysOIC9GAuMF9suYNfkR027H/9OcpeVJb4HRHfZ/EOmQWSdJmJFw3F/NLUrreNnFCvuF1+1bbmHa3tvznjeA==,BADwaRJF9z3DW7HE3qhGu6Yd9d2WBfWy8opd7Mhkg7TpAQsn9oA3UcpCarn4DMSnVGG94Y3Pxsj5vlm5G7GMKiGoxAERnETH6pVgBxhtrnBU6l4vHl+X4rd8I/zheZiG0EFKJza41rmwKHTY4+42PJ8/3Y2rCanbY1RSAJEgiZR89k6nGg==,2,AgCK80PhKSC23aVKQ8uYm+79GWZiwpbV5lc8Fzcpwu8hdKGAMH4f62Y//cmrQmCIltm03PTVPMn6rMwkfoz+9M2LDQ==,AgH5aXThIKUjENFTGCGwcTRql7xIe8vR9h78KikTYkD8itQ+YBDrnx5OaNyWRjpIJHAZ2B61W2aVjZ5Rmo0d1B1Pcw==,BAAEZsEKw59QSRxN1QmWcx4X2LaK4+zBuawh+2CIRPljWyxK6XhIM6EEalr44Klce4OTK2QbxT5n3Kjnh5jNuwCOawAH/wiNrx09+HY8SZrRjCjv1+Lnicybrqg/IFDNoAGT5aguaGRIMmGOLe0QFJr0T0iW3RnYGlmSd/r6ex8+MpOgLw==</decrypt_val></awr_decrypt>";
String replyString = connectSPU.sendReceive(Type.DECRYPT, requestString);
System.out.println("REQUEST URL: " + requestString);
System.out.println("REPLY: " + replyString);
ReplyDecryption reply = (new XMLParserDecrypt()).stringToReply(replyString);
return reply;
}
public ReplyMaterial callServiceMaterial(RequestMaterial rqtMaterial) {
String requestString = URLParserMaterial.requestToString(rqtMaterial);
String replyString = connectSPU.sendReceive(Type.MATERIAL, requestString);
System.out.println("Material request:");
System.out.println(replyString);
ReplyMaterial reply = (new XMLParserMaterial()).stringToReply(replyString);
return reply;
}
public ReplySurvey callServiceSurvey(){
// String replyString = connectSPU.sendReceive(Type.SURVEY_Q,"");
//4::What's your name?::1;5::Where are you from?::2;6::How old are you?::3;7::What's your name?::1;8::Where are you from?::2;9::How old are you?::3;10::What's your name?::1;11::Where are you from?::2;12::How old are you?::3;13::What's your name?::1;14::Where are you from?::2;15::How old are you?::3
String replyString ="<awr_survey><v_questions>1::What's your name?::1;2::Where are you from?::2;3::How old are you?::3;4::A hacker or a disgruntled employee steals from a hospital database the unprotected genome of a known personality. He finds out this person's ethnicity and predisposition to diseases. As a result, he sells this information to tabloids and newspapers. Theft of unprotected medical data is an important concern and hospitals should take more steps to make sure that unauthorized people cannot access personal information in their computers.::3;4::A hacker or a disgruntled employee steals from a hospital database the unprotected genome of a known personality. He finds out this person's ethnicity and predisposition to diseases. As a result, he sells this information to tabloids and newspapers. Theft of unprotected medical data is an important concern and hospitals should take more steps to make sure that unauthorized people cannot access personal information in their computers.::3;5::A hacker or a disgruntled employee steals from a hospital database the unprotected genome of a known personality. He finds out this person's ethnicity and predisposition to diseases. As a result, he sells this information to tabloids and newspapers. Theft of unprotected medical data is an important concern and hospitals should take more steps to make sure that unauthorized people cannot access personal information in their computers.::3;6::How old are you?::3;7::What's your name?::1;8::Where are you from?::2;9::How old are you?::3;10::What's your name?::1;11::Where are you from?::2;12::How old are you?::3;13::What's your name?::1;14::Where are you from?::2;15::How old are you?::3;</v_questions><v_locations>50::Lausanne;60::Basel;70::Zurich</v_locations></awr_survey>";
ReplySurvey reply = (new XMLParserSurvey()).stringToReply(replyString);
return reply;
}
public String callServiceSurveyAnswer(String survey, String id_loc, String id_p){
StringBuilder sb = new StringBuilder();
- sb.append("id_p=").append(id_p);
- sb.append("&timestamp=").append(System.currentTimeMillis());
- sb.append("&id_loc=").append(id_loc);
- sb.append("&answer=").append(survey);
+ sb.append("v_id_p=").append(id_p);
+ sb.append("&v_timestamp=").append(System.currentTimeMillis());
+ sb.append("&v_id_loc=").append(id_loc);
+ sb.append("&v_answer=").append(survey);
String replyString = connectSPU.sendReceive(Type.SURVEY_A, sb.toString());
return replyString;
}
}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/46/60712b044eac001410e2e30aa85db9d1 b/.metadata/.plugins/org.eclipse.core.resources/.history/46/60712b044eac001410e2e30aa85db9d1
deleted file mode 100644
index f1e50c5..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/46/60712b044eac001410e2e30aa85db9d1
+++ /dev/null
@@ -1,893 +0,0 @@
-package ui;
-
-import io.ClientConnection;
-import io.CommAdapter;
-import io.Questionnaire;
-
-import java.awt.BorderLayout;
-import java.awt.Color;
-import java.awt.Component;
-import java.awt.Dimension;
-import java.awt.FlowLayout;
-import java.awt.Font;
-import java.awt.SystemColor;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.awt.event.WindowAdapter;
-import java.io.File;
-import java.io.IOException;
-import java.sql.SQLException;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.LinkedList;
-import java.util.Map;
-import java.util.Set;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
-import javax.swing.Box;
-import javax.swing.BoxLayout;
-import javax.swing.ButtonGroup;
-import javax.swing.DefaultComboBoxModel;
-import javax.swing.GroupLayout;
-import javax.swing.GroupLayout.Alignment;
-import javax.swing.ImageIcon;
-import javax.swing.JButton;
-import javax.swing.JComboBox;
-import javax.swing.JDialog;
-import javax.swing.JFileChooser;
-import javax.swing.JFrame;
-import javax.swing.JLabel;
-import javax.swing.JOptionPane;
-import javax.swing.JPanel;
-import javax.swing.JRadioButton;
-import javax.swing.JScrollPane;
-import javax.swing.JSeparator;
-import javax.swing.JTabbedPane;
-import javax.swing.JTextArea;
-import javax.swing.JTextPane;
-import javax.swing.JTree;
-import javax.swing.LayoutStyle.ComponentPlacement;
-import javax.swing.SwingConstants;
-import javax.swing.UIManager;
-import javax.swing.border.BevelBorder;
-import javax.swing.border.EmptyBorder;
-import javax.swing.border.EtchedBorder;
-import javax.swing.tree.DefaultMutableTreeNode;
-import javax.swing.tree.TreeModel;
-import javax.swing.tree.TreePath;
-
-import org.jpedal.examples.viewer.Commands;
-import org.jpedal.examples.viewer.Viewer;
-
-import utils.ClientProperties;
-
-import com.itextpdf.text.DocumentException;
-
-import database.DBconnectorClient;
-import framework.Diagnostic;
-import framework.MedUnit;
-import framework.Question;
-import framework.reply.ReplySurvey;
-import framework.test.TestName;
-
-/**
- *
- * @author youssef, raisaro
- */
-public class GUI extends javax.swing.JFrame {
-
- private static final Logger LOGGER = Logger.getLogger(GUI.class.getName());
-
- private static final long serialVersionUID = -4582280515597700650L;
-
- // configuration
- private ClientProperties props;
-
- private JTree jTree;
- private DBconnectorClient connectorClientDB;
- private LinkedList<Integer> patients;
-
- /** List of all relevant tests */
- private HashMap<String, TestName> testsByName;
- private Viewer viewer;
- private JDialog dialog;
- private JFrame frame;
- private boolean survey_submitted;
- private int close_trials;
- private Map<Integer, ButtonGroup> buttonGroupMap;
- private Questionnaire quest;
- private Map<Integer, Question> map;
- private Set<Integer> ids;
- private Map<String,String> answers;
- private Map<Integer, String> locations;
-
-
- /**
- * Creates new form GUI
- */
- public GUI(ClientProperties props){
-
- frame = this;
- this.props = props;
- this.connectorClientDB = new DBconnectorClient(props.getDbMsAccess());
- survey_submitted = false;
- close_trials = 0;
-
-
- try {
- initComponents();
-
- viewer = new Viewer(jScrollPane2, null);
- viewer.setupViewer();
-
- // create questionnare
-
-
- System.out.println("#of questions: " + ids.size());
-
-// viewer_q = new Viewer(jScrollPane4, null);
-// viewer_q.setupViewer();
-//
-// // specify file you wish to open (JPedal handles getting the byte data)
-// String filepathReport = "outputPDF/buttons_filled.pdf";
-//
-// // open generated PDF
-// // object must be either String in full filepath, or
-// // File object which can be relative
-// Object[] input = new Object[]{ new File(filepathReport) };
-// viewer_q.executeCommand(Commands.OPENFILE, input);
-
- JButton btnSubmitQuestionnaire = new JButton("Submit Questionnaire");
- btnSubmitQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- btnSubmitQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- submitButtonActionPerformed(arg0);
- }
- });
- JButton btnResetQuestionnaire = new JButton("Save as PDF");
- btnResetQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- savePDFButtonActionPerformed(arg0);
- }
- });
- btnResetQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- JPanel panel_button = new JPanel();
- panel_button.setLayout(new BoxLayout(panel_button, BoxLayout.X_AXIS));
-
- lblNewLabel_3 = new JLabel("");
- lblNewLabel_3.setIcon(new ImageIcon("res/location_icon.png"));
- panel_button.add(lblNewLabel_3);
-
-
-
- comboBox = new JComboBox<String>();
- comboBox.setFont(new Font("Tahoma", Font.BOLD, 12));
- comboBox.setModel(new DefaultComboBoxModel<String>(new String[] {"Select Location"}));
- for(Integer id_loc : locations.keySet()){
- comboBox.addItem(locations.get(id_loc));
- }
-
-
- panel_button.add(comboBox);
-
- rigidArea = Box.createRigidArea(new Dimension(10, 0));
- panel_button.add(rigidArea);
-
- lblNewLabel_1 = new JLabel("");
- lblNewLabel_1.setIcon(new ImageIcon("res/submit.png"));
- panel_button.add(lblNewLabel_1);
- panel_button.add(btnSubmitQuestionnaire);
-
- panel_button.add(Box.createRigidArea(new Dimension(10,0)));
-
- lblNewLabel_2 = new JLabel("");
- lblNewLabel_2.setIcon(new ImageIcon("res/pdf.png"));
- panel_button.add(lblNewLabel_2);
- panel_button.add(btnResetQuestionnaire);
- panel_button.setPreferredSize(new Dimension(211, 35));
- panel_button.validate();
-
- JPanel panel_3 = new JPanel();
- GroupLayout gl_panel = new GroupLayout(panel);
- gl_panel.setHorizontalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(41)
- .addGroup(gl_panel.createParallelGroup(Alignment.TRAILING)
- .addComponent(jScrollPane4, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE)
- .addComponent(panel_1, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE))
- .addGap(32))
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(63)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addGap(103)
- .addComponent(panel_button, GroupLayout.DEFAULT_SIZE, 488, Short.MAX_VALUE)
- .addGap(241))
- );
- gl_panel.setVerticalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(22)
- .addComponent(panel_1, GroupLayout.DEFAULT_SIZE, 192, Short.MAX_VALUE)
- .addGap(18)
- .addComponent(jScrollPane4, GroupLayout.DEFAULT_SIZE, 437, Short.MAX_VALUE)
- .addGap(26)
- .addGroup(gl_panel.createParallelGroup(Alignment.LEADING)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(panel_button, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE)))
- );
- panel_3.setLayout(new BoxLayout(panel_3, BoxLayout.X_AXIS));
-
-
- panel.setLayout(gl_panel);
-
-
-
-
-
-
- /////////////////////////////////////////////////////////
- // display the tests available
-
- // get the tests
- HashMap<String, ArrayList<TestName>> testsRelevantByGroup = connectorClientDB.getRelevantTestsByGroup();
- ArrayList<String> groups = new ArrayList<String>(testsRelevantByGroup.keySet());
-
- // flatten hashmap into linkedlist
-// tests = new LinkedList<>();
- testsByName = new HashMap<String, TestName>();
- for (String group : groups) {
-// tests.addAll(testsRelevantByGroup.get(group));
- for (TestName test : testsRelevantByGroup.get(group)) {
- testsByName.put(test.getName(), test);
- }
- }
-
- // define tree structure of the tests
- DefaultMutableTreeNode root = new DefaultMutableTreeNode("All");
-
- for (String group : groups) {
- DefaultMutableTreeNode child = new DefaultMutableTreeNode(group);
- root.add(child);
-
- for (TestName test : testsRelevantByGroup.get(group)) {
- DefaultMutableTreeNode grandChild = new DefaultMutableTreeNode(test.getName());
- child.add(grandChild);
- }
- }
-
- // define swing object
- jTree = new JTree(root);
-
- for(int i=0;i<jTree.getRowCount();i++){
- jTree.expandRow(i);
- }
-
- jScrollPane3.setViewportView(jTree);
-// jTree.addTreeSelectionListener(new TreeSelectionListener() {
-//
-// @Override
-// public void valueChanged(TreeSelectionEvent e) {
-// tp = jTree.getSelectionPaths();
-// }
-// });
- jScrollPane3.setViewportView(jTree);
-
- /////////////////////////////////////////////////////////
- // display the patients registered
-
- patients = connectorClientDB.getPatients();
- for (Integer patientId : patients) {
- jComboBox1.addItem(patientId.toString());
- }
-
- } catch (SQLException ex) {
- Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex);
- ex.printStackTrace();
-// } catch (IOException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
-// } catch (DocumentException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
- }
-
- }
-
- /**
- * 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() {
-
- jPanel1 = new javax.swing.JPanel();
- jLabel2 = new javax.swing.JLabel();
- jLabel1 = new javax.swing.JLabel();
- jPanel2 = new javax.swing.JPanel();
- jComboBox1 = new javax.swing.JComboBox<String>();
- jButton1 = new javax.swing.JButton();
- jButton1.setFont(new Font("Tahoma", Font.BOLD, 12));
- jLabel3 = new javax.swing.JLabel();
- jLabel4 = new javax.swing.JLabel();
- jScrollPane3 = new javax.swing.JScrollPane();
- jScrollPane2 = new javax.swing.JScrollPane();
- jMenuBar1 = new javax.swing.JMenuBar();
- jMenu1 = new javax.swing.JMenu();
- jMenuItem1 = new javax.swing.JMenuItem();
- jMenu2 = new javax.swing.JMenu();
- dialog = new JDialog();
- tabbedPane = new JTabbedPane(JTabbedPane.TOP);
-
- setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
- addWindowListener(new WindowAdapter() {
- @Override
- public void windowClosing(java.awt.event.WindowEvent windowEvent) {
- if (!survey_submitted && close_trials <= 2){
- JOptionPane.showMessageDialog(frame, "Before closing the application, please fill in and submit the questionnaire.");
- close_trials++;
- tabbedPane.setSelectedIndex(1);
- }else{
- System.exit(0);
- }
- }
- });
- setTitle("HIV Pharmacogenomics\n");
-
- jLabel2.setIcon(new javax.swing.ImageIcon("res/shcs_logo2_small.gif")); // NOI18N
-
- jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
- jLabel1.setText("HIV Pharmacogenomics | Project #693");
-
- javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
- jPanel1.setLayout(jPanel1Layout);
- jPanel1Layout.setHorizontalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap(71, Short.MAX_VALUE)
- .addComponent(jLabel1)
- .addGap(18, 18, 18)
- .addComponent(jLabel2))
- );
- jPanel1Layout.setVerticalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jLabel1)
- .addGap(11, 11, 11))
- .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)
- );
-
- jPanel2.setBackground(new java.awt.Color(255, 255, 255));
- jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
-
- jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<String>(new String[]{"Select Patient"}));
-
- jButton1.setText("Run Test");
- jButton1.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton1ActionPerformed(evt);
- }
- });
-
- JLabel lblNewLabel = new JLabel("");
- lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
- lblNewLabel.setIcon(new javax.swing.ImageIcon("res/gears.png"));
-
-
-
- javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
- jPanel2Layout.setHorizontalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addComponent(jComboBox1, 0, 248, Short.MAX_VALUE)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addGap(75)
- .addGroup(jPanel2Layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jButton1)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 75, GroupLayout.PREFERRED_SIZE))
- .addContainerGap(98, Short.MAX_VALUE))
- );
- jPanel2Layout.setVerticalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addComponent(jComboBox1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED, 223, Short.MAX_VALUE)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jButton1)
- .addGap(19))
- );
- jPanel2.setLayout(jPanel2Layout);
-
- jLabel3.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel3.setText("Select Patient");
-
- jLabel4.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel4.setText("Select Test");
-
- jScrollPane3.setBackground(new java.awt.Color(255, 255, 255));
-
- jMenu1.setText("File");
-
- jMenuItem1.setText("Exit");
- jMenu1.add(jMenuItem1);
-
- jMenuBar1.add(jMenu1);
-
- jMenu2.setText("Edit");
- jMenuBar1.add(jMenu2);
-
- setJMenuBar(jMenuBar1);
-
-
-
- javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
- layout.setHorizontalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(layout.createParallelGroup(Alignment.LEADING, false)
- .addComponent(jLabel3)
- .addComponent(jLabel4)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, 244, Short.MAX_VALUE)
- .addComponent(jScrollPane3))
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 970, Short.MAX_VALUE))
- .addContainerGap())
- );
- layout.setVerticalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel4))
- .addPreferredGap(ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addComponent(jScrollPane3, GroupLayout.PREFERRED_SIZE, 388, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jLabel3)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 785, Short.MAX_VALUE))
- .addContainerGap())
- );
-
-
- jScrollPane2.setAutoscrolls(true);
- jScrollPane3.setAutoscrolls(true);
- tabbedPane.addTab("Report", new ImageIcon("res/report_icon.gif"), jScrollPane2, null);
- tabbedPane.setBackgroundAt(0, new Color(255, 255, 255));
-
- panel = new JPanel();
- tabbedPane.addTab("Survey", new ImageIcon("res/survey_icon.png"), panel, null);
- tabbedPane.setBackgroundAt(1, new Color(255, 255, 255));
- tabbedPane.setEnabledAt(1, true);
-
- panel_1 = new JPanel();
- panel_1.setBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null));
- panel_1.setBackground(UIManager.getColor("Button.background"));
-
- JLabel label = new JLabel("");
- label.setIcon(new ImageIcon("res/shcs_logo2_medium.gif"));
-
- lblDearDoctor = new JLabel("Dear Doctor,");
- lblDearDoctor.setFont(new Font("Tahoma", Font.BOLD, 14));
-
- JScrollPane scrollPane = new JScrollPane();
- scrollPane.setBorder(null);
- GroupLayout gl_panel_1 = new GroupLayout(panel_1);
- gl_panel_1.setHorizontalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(25)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 666, Short.MAX_VALUE)
- .addComponent(lblDearDoctor))
- .addContainerGap())
- );
- gl_panel_1.setVerticalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(22)
- .addComponent(lblDearDoctor)
- .addGap(18)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 120, Short.MAX_VALUE)
- .addContainerGap())
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(36)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 96, GroupLayout.PREFERRED_SIZE)
- .addContainerGap(56, Short.MAX_VALUE))
- );
-
- JTextPane txtpnTodayYouAre = new JTextPane();
- txtpnTodayYouAre.setBorder(null);
- txtpnTodayYouAre.setText("Today you are receiving a pharmacogenetic report based on the genetic information of your patient. Because the human genome contains extremely private and sensitive information of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier, it must be managed with care.\r\nToday you are receiving a pharmacogenetic report based on the genetic information of your patient. Because the human genome contains extremely private and sensitive information of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier, it must be managed with care.\r\nToday you are receiving a pharmacogenetic report based on the genetic information of your patient. Because the human genome contains extremely private and sensitive information of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier, it must be managed with care.");
- txtpnTodayYouAre.setFont(new Font("Tahoma", Font.PLAIN, 13));
- txtpnTodayYouAre.setEditable(false);
- txtpnTodayYouAre.setBackground(SystemColor.menu);
- scrollPane.setViewportView(txtpnTodayYouAre);
- panel_1.setLayout(gl_panel_1);
- jScrollPane4 = new javax.swing.JScrollPane();
- getContentPane().setLayout(layout);
-
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
- ReplySurvey replySurvey = commHandlerAdapter.callServiceSurvey();
-
- map = replySurvey.getQuestions();
- ids = map.keySet();
- locations = replySurvey.getLocations();
-
- panel_2 = new JPanel();
- panel_2.setBackground(Color.WHITE);
- panel_2.setBorder(new BevelBorder(BevelBorder.LOWERED, null, null, null, null));
- jScrollPane4.setViewportView(panel_2);
- panel_2.setLayout(new BoxLayout(panel_2, BoxLayout.Y_AXIS));
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
-
-
- for(Integer id : ids){
- ButtonGroup group = new ButtonGroup();
- JRadioButton r1 = new JRadioButton("1"); r1.setActionCommand("1"); r1.setBackground(Color.WHITE);
- JRadioButton r2 = new JRadioButton("2"); r2.setActionCommand("2"); r2.setBackground(Color.WHITE);
- JRadioButton r3 = new JRadioButton("3"); r3.setActionCommand("3"); r3.setBackground(Color.WHITE);
- JRadioButton r4 = new JRadioButton("4"); r4.setActionCommand("4"); r4.setBackground(Color.WHITE);
- JRadioButton r5 = new JRadioButton("5"); r5.setActionCommand("5"); r5.setBackground(Color.WHITE);
- group.add(r1);
- group.add(r2);
- group.add(r3);
- group.add(r4);
- group.add(r5);
- JPanel radio_panel = new JPanel();
- radio_panel.setLayout((new BoxLayout(radio_panel, BoxLayout.X_AXIS)));
- radio_panel.setBackground(Color.WHITE);
- radio_panel.setAlignmentX(Component.CENTER_ALIGNMENT);
- radio_panel.add(r1);
- radio_panel.add(r2);
- radio_panel.add(r3);
- radio_panel.add(r4);
- radio_panel.add(r5);
- radio_panel.doLayout();
- radio_panel.setPreferredSize(radio_panel.getPreferredSize());
- JLabel question = new JLabel(id + ") " + map.get(id).getQuestion());
-// question.setLineWrap(true);
-// question.setWrapStyleWord(true);
- question.setAlignmentX(Component.CENTER_ALIGNMENT);
- question.setFont(new Font("Tahoma", Font.PLAIN, 13));
-// JPanel row_panel = new JPanel();
-// row_panel.setLayout(new BoxLayout(row_panel, BoxLayout.X_AXIS));
-// row_panel.add(question);
-// row_panel.add(Box.createRigidArea(new Dimension(10,0)));
-// row_panel.add(radio_panel);
-
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- panel_2.add(question);
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- panel_2.add(radio_panel);
- panel_2.add(new JSeparator());
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- panel_2.setPreferredSize(panel_2.getPreferredSize());
- buttonGroupMap.put(id, group);
-
- }
-
-
-
- this.setSize(new Dimension(1200, 865));
-// pack();
- }// </editor-fold>//GEN-END:initComponents
-
-
- private void submitButtonActionPerformed(java.awt.event.ActionEvent evt){
-
- try{
- answers = new HashMap<String, String>();
- StringBuilder sb = new StringBuilder();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- sb.append(q).append(",");
- sb.append(bg.getSelection().getActionCommand()).append(";");
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- String answer = sb.toString();
- Integer id_loc = null;
- for(Integer i: locations.keySet()){
- if(locations.get(i).equals(comboBox.getSelectedItem().toString()))
- id_loc = i;
- }
-
- String id_p;
- if(jComboBox1.getSelectedItem().toString().equals("Select Patient"))
- id_p = "0";
- else
- id_p = jComboBox1.getSelectedItem().toString();
-
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
-
- String reply = commHandlerAdapter.callServiceSurveyAnswer(answer, id_loc.toString(), id_p);
-
- if(reply.equals("1")){
- survey_submitted = true;
-
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Congrats! Your aswers have been sent to the SHCS datacenter.",
- "Information Message",
- JOptionPane.INFORMATION_MESSAGE);
- }
- else{
- throw new IOException();
- }
-
-
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "The SHCS datacenter does not respond. Please save the survey and send it to jean.raisaro@epfl.ch.",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
- private void savePDFButtonActionPerformed(java.awt.event.ActionEvent evt){
- try {
-
- answers = new HashMap<String, String>();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- JFileChooser chooser = new JFileChooser();
- // Note: source for ExampleFileFilter can be found in FileChooserDemo,
- // under the demo/jfc directory in the JDK.
-
- int returnVal = chooser.showSaveDialog(this);
- System.out.println(returnVal);
- if(returnVal == JFileChooser.APPROVE_OPTION) {
- System.out.println("You chose to open this file: " +
- chooser.getSelectedFile().getPath());
- quest = new Questionnaire(chooser.getSelectedFile().getPath() + ".pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }else{
- quest = new Questionnaire("outputPDF/survey.pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }
-
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (DocumentException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (NullPointerException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
-
- private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
-
- JPanel contentPanel = new JPanel();
-
- dialog.setBounds(100, 100, 410, 80);
- dialog.getContentPane().setLayout(new BorderLayout());
- contentPanel.setLayout(new FlowLayout());
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- dialog.getContentPane().add(contentPanel, BorderLayout.CENTER);
- {
- JLabel label = new JLabel("Please wait...The overall computation can take few seconds");
- label.setHorizontalAlignment(SwingConstants.CENTER);
- label.setFont(new Font("Tahoma", Font.PLAIN, 12));
- contentPanel.add(label);
- }
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
- dialog.getContentPane().add(buttonPane, BorderLayout.SOUTH);
- }
- dialog.setLocationRelativeTo(this);
- dialog.setVisible(true);
-
- GUIWorker gw = new GUIWorker(this, props);
- Thread t = new Thread(gw);
- t.start();
-
- }
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JButton jButton1;
- private javax.swing.JComboBox<String> jComboBox1;
- private javax.swing.JLabel jLabel1;
- private javax.swing.JLabel jLabel2;
- private javax.swing.JLabel jLabel3;
- private javax.swing.JLabel jLabel4;
- private javax.swing.JMenu jMenu1;
- private javax.swing.JMenu jMenu2;
- private javax.swing.JMenuBar jMenuBar1;
- private javax.swing.JMenuItem jMenuItem1;
- private javax.swing.JPanel jPanel1;
- private javax.swing.JPanel jPanel2;
- private javax.swing.JScrollPane jScrollPane3;
- private javax.swing.JTabbedPane tabbedPane;
- private javax.swing.JScrollPane jScrollPane2;
- private javax.swing.JScrollPane jScrollPane4;
- private JPanel panel;
- private JPanel panel_1;
- private JPanel panel_2;
- private JLabel lblDearDoctor;
- private JLabel lblNewLabel_1;
- private JLabel lblNewLabel_2;
- private JLabel lblNewLabel_3;
- private JComboBox<String> comboBox;
- private Component rigidArea;
-
- // End of variables declaration//GEN-END:variables
-
-
- class GUIWorker implements Runnable{
-
- private JFrame mainFrame;
- private ClientProperties props;
- private MedUnit mu;
-
- public GUIWorker(GUI gui, ClientProperties props) {
- mainFrame = gui;
-
- this.props = props;
- this.mu = new MedUnit(props, 0);
- }
-
- @Override
- public void run() {
-
- try{
- int patientId = Integer.parseInt((String) jComboBox1.getSelectedItem());
-
- // convert selected tests to test identifiers
- ArrayList<TestName> selectedTests = new ArrayList<TestName>();
- for (String currentName : getSelectedTests()) {
- TestName currentTest = testsByName.get(currentName);
-
- if (currentTest == null) {
- throw new IllegalStateException("Trying to run unknown test: " + currentTest);
- }
-
- selectedTests.add(currentTest);
- }
-
- // run tests
- Diagnostic diagnostic = mu.runTests(patientId, selectedTests);
-
- // warn for tests with missing material
- warnFailedTests(diagnostic, selectedTests);
-
- // create report
- mu.createReport(patientId, selectedTests, diagnostic);
-
- dialog.setVisible(false);
-
- // specify file you wish to open (JPedal handles getting the byte data)
- String filepathReport = props.getPathPDF() + patientId + ".pdf";
-
- // open generated PDF
- // object must be either String in full filepath, or
- // File object which can be relative
- Object[] input = new Object[]{ new File(filepathReport) };
- viewer.executeCommand(Commands.OPENFILE, input);
-
- // display CAD result as bar plot
- if (diagnostic.hasCAD()) {
- System.out.println("CAD = " + diagnostic.getResultCAD());
- BarPlotFrame frame = new BarPlotFrame(diagnostic.getResultCAD(), patientId);
- frame.setVisible(true);
- frame.setAlwaysOnTop(true);
- }
-
-
- } catch (SQLException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Please select a patient.");
- }
-
- }
-
- private void warnFailedTests(Diagnostic diagnostic, ArrayList<TestName> selectedTests) {
- ArrayList<Integer> failedTests = diagnostic.getInvalidTests();
-
- if (!failedTests.isEmpty()) {
- String msg = "Could not complete tests: ";
- boolean first = true;
- for (TestName testName : selectedTests) {
- if (failedTests.contains(testName.getId())) {
- if (first) {
- first = false;
- } else {
- msg += ", ";
- }
- msg += testName.getName();
- }
- }
- displayError(msg);
- }
-
- }
-
- private void displayError(String msg) {
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- mainFrame,
- msg,
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
-
- private ArrayList<String> getSelectedTests() {
- ArrayList<String> tests = new ArrayList<String>();
-
- for (TreePath treePath : jTree.getSelectionPaths()) {
- tests.addAll(getChildrenTests(jTree.getModel(), treePath.getLastPathComponent()));
- }
-
- return tests;
- }
-
- private ArrayList<String> getChildrenTests(TreeModel model, Object node) {
- ArrayList<String> tests = new ArrayList<String>();
-
- if (model.isLeaf(node)) { // leaf
- DefaultMutableTreeNode leaf = (DefaultMutableTreeNode) node;
- tests.add(leaf.toString());
- }
- else { // iterate over children
- for (int i = 0; i < model.getChildCount(node); i++) {
- tests.addAll(getChildrenTests(model, model.getChild(node, i)));
- }
- }
-
- return tests;
- }
-
- }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/46/a0a6a01ab6a7001417ceadf0100b5ef7 b/.metadata/.plugins/org.eclipse.core.resources/.history/46/a0a6a01ab6a7001417ceadf0100b5ef7
deleted file mode 100644
index e498e9f..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/46/a0a6a01ab6a7001417ceadf0100b5ef7
+++ /dev/null
@@ -1,292 +0,0 @@
-package io;
-
-import java.awt.BorderLayout;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.util.Map;
-import java.util.Set;
-
-import com.itextpdf.text.BaseColor;
-import com.itextpdf.text.Document;
-import com.itextpdf.text.DocumentException;
-import com.itextpdf.text.Element;
-import com.itextpdf.text.ExceptionConverter;
-import com.itextpdf.text.Font;
-import com.itextpdf.text.Font.FontFamily;
-import com.itextpdf.text.FontFactory;
-import com.itextpdf.text.Image;
-import com.itextpdf.text.PageSize;
-import com.itextpdf.text.Paragraph;
-import com.itextpdf.text.Phrase;
-import com.itextpdf.text.Rectangle;
-import com.itextpdf.text.pdf.AcroFields;
-import com.itextpdf.text.pdf.BaseFont;
-import com.itextpdf.text.pdf.ColumnText;
-import com.itextpdf.text.pdf.GrayColor;
-import com.itextpdf.text.pdf.PdfAction;
-import com.itextpdf.text.pdf.PdfBorderDictionary;
-import com.itextpdf.text.pdf.PdfContentByte;
-import com.itextpdf.text.pdf.PdfFormField;
-import com.itextpdf.text.pdf.PdfPCell;
-import com.itextpdf.text.pdf.PdfPCellEvent;
-import com.itextpdf.text.pdf.PdfPTable;
-import com.itextpdf.text.pdf.PdfReader;
-import com.itextpdf.text.pdf.PdfStamper;
-import com.itextpdf.text.pdf.PdfWriter;
-import com.itextpdf.text.pdf.PushbuttonField;
-import com.itextpdf.text.pdf.RadioCheckField;
-import com.itextpdf.text.pdf.TextField;
-
-import framework.Question;
-
-public class Questionnaire implements PdfPCellEvent{
-
- /** The path output file. */
- String pathOutputFile;
-
- /** The document. */
- Document document;
-
- int tf;
-
- public Questionnaire(String path){
- pathOutputFile = path;
- document = new Document(PageSize.A4, 25, 25, 50, 50);
- }
- public Questionnaire(int tf){
- this.tf = tf;
- }
-
- /** The resulting PDF. */
- public static final String RESULT1 = "outputPDF/buttons.pdf";
- /** The resulting PDF. */
- public static final String RESULT2 = "outputPDF/buttons_filled.pdf";
- /** Path to a JavaScript resource. */
- public static final String RESOURCE = "res/buttons.js";
- /** Path to an image used as button icon. */
- public static final String IMAGE = "res/info.png";
- /** Possible values of a radio field / checkboxes */
- public static final String[] LANGUAGES = { "English", "German", "French", "Spanish", "Dutch" };
-
- /**
- * Creates a PDF document.
- * @param filename the path to the new PDF document
- * @throws DocumentException
- * @throws IOException
- */
- public void createPdf(Map<Integer, Question> map, Set<Integer> ids) throws IOException, DocumentException {
-
- @SuppressWarnings("unused")
- PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(pathOutputFile));
-
-
- document.open();
- Image logo = Image.getInstance("res/shcs_logo2.gif");
-
- logo.scalePercent(30f);
- float[] columnWidths1 = {0.2f, 0.8f};
- PdfPTable table_title = new PdfPTable(columnWidths1);
- PdfPCell c01 = new PdfPCell(logo, false);
- PdfPCell c02 = new PdfPCell(new Paragraph("Survery | Project #693",
- FontFactory.getFont(FontFactory.HELVETICA, 20, Font.BOLD, BaseColor.BLACK)));
- c01.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setHorizontalAlignment(Element.ALIGN_CENTER);
- c01.setBorder(Rectangle.NO_BORDER);
- c02.setBorder(Rectangle.NO_BORDER);
-
- table_title.addCell(c01);
- table_title.addCell(c02);
- table_title.setWidthPercentage(100);
- table_title.setSpacingBefore(0);
- table_title.setSpacingAfter(25);
- document.add(table_title);
-
-
- //----------------------------------------------------------------------------------
-
-
- PdfPTable table1 = new PdfPTable(1);
- table1.setWidthPercentage(100);
- PdfPCell c11 = new PdfPCell(new Phrase("Today you are receiving a pharmacogenetic report based on the genetic " +
- "information of your patient. Because the human genome contains extremely private and sensitive information" +
- " of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier," +
- " it must be managed with care. ",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.NORMAL, BaseColor.BLACK)));
- c11.setLeading(1.5f, 1.5f);
- c11.setPaddingBottom(8);
-
-
- table1.addCell(c11);
- table1.setSpacingAfter(10);
- document.add(table1);
-
-
- //----------------------------------------------------------------------------------
-
-// // step 4
-// // add the JavaScript
-// writer.addJavaScript(Utilities.readFileToString(RESOURCE));
-
- for(Integer id: ids){
- PdfPCell c2;
-
- PdfPTable table = new PdfPTable(1);
- table.setSpacingAfter(10);
- table.setWidthPercentage(100);
-
- PdfPCell c1 = new PdfPCell(new Phrase(id + ") " + map.get(id).getQuestion(),FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c1.setPaddingTop(5);
- c1.setPaddingBottom(5);
- c1.setHorizontalAlignment(Element.ALIGN_CENTER);
- c1.setBorder(Rectangle.NO_BORDER);
- table.addCell(c1);
-
- c2 = new PdfPCell(new Phrase(" 1" +
- " 2" +
- " 3" +
- " 4" +
- " 5",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c2.setHorizontalAlignment(Element.ALIGN_LEFT);
- c2.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c2.setCellEvent(new Questionnaire(id));
- c2.setBorder(Rectangle.TOP);
- c2.setPaddingTop(2);
- c2.setPaddingBottom(5);
- c2.setBackgroundColor(new BaseColor(242, 242, 242));
-
- table.addCell(c2);
-
-
-
- document.add(table);
- }
-
-
- //----------------------------------------------------------------------------------
-
- // step 5
- document.close();
-
- }
-
- @Override
- public void cellLayout(PdfPCell cell, Rectangle position,
- PdfContentByte[] canvases) {
- PdfWriter writer = canvases[0].getPdfWriter();
- PdfFormField radiogroup = PdfFormField.createRadioButton(writer, true);
- radiogroup.setFieldName(String.valueOf(tf));
- System.out.println(tf);
-
- float llx = position.getLeft();
- float lly = position.getBottom();
-
- float cell_h = cell.getHeight();
- float cell_w = cell.getWidth();
-
- Rectangle rect;
-
- for(int i=1 ; i<=5; i++){
-
- rect = new Rectangle(llx + (3+i)*cell_w/12, lly+cell_h/2-6, llx + (3+i)*cell_w/12+12 ,lly+cell_h/2+6);
-
- RadioCheckField radio = new RadioCheckField(writer, rect, null, String.valueOf(i));
- radio.setBorderColor(GrayColor.GRAYBLACK);
- radio.setCheckType(RadioCheckField.TYPE_SQUARE);
-
-
- try {
- PdfFormField field = radio.getRadioField();
- radiogroup.addKid(field);
-
- writer.addAnnotation(radiogroup);
- }
-
- catch(IOException ioe) {
- throw new ExceptionConverter(ioe);
- }
- catch(DocumentException de) {
- throw new ExceptionConverter(de);
- }
- }
-
-
-
- }
-
-
- public String getAnswers() throws IOException, DocumentException{
- PdfReader reader = new PdfReader(pathOutputFile);
- reader.removeUsageRights();
-// PdfStamper stamper = new PdfStamper(reader, new FileOutputStream("outputPDF/buttons_filled2.pdf"));
-
-
- AcroFields form = reader.getAcroFields();
-
- StringBuilder sb = new StringBuilder();
-
-
- Set<String> fields = form.getFields().keySet();
- for(String key: fields){
- System.out.println("key = " + key);
- if(form.getFieldType(key)==AcroFields.FIELD_TYPE_RADIOBUTTON){
- sb.append(key);
- sb.append(",");
- sb.append(form.getField(key));
- sb.append(";");
- }
- }
-// stamper.close();
- reader.close();
-
-
- return sb.toString();
-
- }
-
-
-// /**
-// * Manipulates a PDF file src with the file dest as result
-// * @param src the original PDF
-// * @param dest the resulting PDF
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public void manipulatePdf(String src, String dest) throws IOException, DocumentException {
-// PdfReader reader = new PdfReader(src);
-// PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(dest));
-// AcroFields form = stamper.getAcroFields();
-// String[] radiostates = form.getAppearanceStates("language");
-// form.setField("language", radiostates[4]);
-// for (int i = 0; i < LANGUAGES.length; i++) {
-// String[] checkboxstates = form.getAppearanceStates("English");
-// form.setField(LANGUAGES[i], checkboxstates[i % 2 == 0 ? 1 : 0]);
-// }
-// stamper.close();
-// reader.close();
-//
-// PdfReader r = new PdfReader(dest);
-// AcroFields f = r.getAcroFields();
-// Set<String> fields = form.getFields().keySet();
-// for(String key: fields){
-// if(f.getFieldType(key)==AcroFields.FIELD_TYPE_RADIOBUTTON){
-// System.out.println(key);
-// System.out.println(f.getField(key));
-//
-// }
-// }
-// r.close();
-//
-// }
-//
-// /**
-// * Main method
-// * @param args no arguments needed
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public static void main(String[] args) throws IOException, DocumentException {
-// Questionnaire buttons = new Questionnaire();
-// buttons.createPdf(RESULT1);
-// buttons.manipulatePdf(RESULT1, RESULT2);
-// }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/47/40de369154ac001410e2e30aa85db9d1 b/.metadata/.plugins/org.eclipse.core.resources/.history/47/40de369154ac001410e2e30aa85db9d1
deleted file mode 100644
index dee7a96..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/47/40de369154ac001410e2e30aa85db9d1
+++ /dev/null
@@ -1,919 +0,0 @@
-package ui;
-
-import io.ClientConnection;
-import io.CommAdapter;
-import io.Questionnaire;
-
-import java.awt.BorderLayout;
-import java.awt.Color;
-import java.awt.Component;
-import java.awt.Dimension;
-import java.awt.FlowLayout;
-import java.awt.Font;
-import java.awt.SystemColor;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.awt.event.WindowAdapter;
-import java.io.File;
-import java.io.IOException;
-import java.sql.SQLException;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.LinkedList;
-import java.util.Map;
-import java.util.Set;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
-import javax.swing.Box;
-import javax.swing.BoxLayout;
-import javax.swing.ButtonGroup;
-import javax.swing.DefaultComboBoxModel;
-import javax.swing.GroupLayout;
-import javax.swing.GroupLayout.Alignment;
-import javax.swing.ImageIcon;
-import javax.swing.JButton;
-import javax.swing.JComboBox;
-import javax.swing.JDialog;
-import javax.swing.JFileChooser;
-import javax.swing.JFrame;
-import javax.swing.JLabel;
-import javax.swing.JOptionPane;
-import javax.swing.JPanel;
-import javax.swing.JRadioButton;
-import javax.swing.JScrollPane;
-import javax.swing.JSeparator;
-import javax.swing.JTabbedPane;
-import javax.swing.JTextArea;
-import javax.swing.JTextPane;
-import javax.swing.JTree;
-import javax.swing.LayoutStyle.ComponentPlacement;
-import javax.swing.SwingConstants;
-import javax.swing.border.EmptyBorder;
-import javax.swing.border.LineBorder;
-import javax.swing.tree.DefaultMutableTreeNode;
-import javax.swing.tree.TreeModel;
-import javax.swing.tree.TreePath;
-
-import org.jpedal.examples.viewer.Commands;
-import org.jpedal.examples.viewer.Viewer;
-
-import utils.ClientProperties;
-
-import com.itextpdf.text.DocumentException;
-
-import database.DBconnectorClient;
-import framework.Diagnostic;
-import framework.MedUnit;
-import framework.Question;
-import framework.reply.ReplySurvey;
-import framework.test.TestName;
-
-/**
- *
- * @author youssef, raisaro
- */
-public class GUI extends javax.swing.JFrame {
-
- private static final Logger LOGGER = Logger.getLogger(GUI.class.getName());
-
- private static final long serialVersionUID = -4582280515597700650L;
-
- // configuration
- private ClientProperties props;
-
- private JTree jTree;
- private DBconnectorClient connectorClientDB;
- private LinkedList<Integer> patients;
-
- /** List of all relevant tests */
- private HashMap<String, TestName> testsByName;
- private Viewer viewer;
- private JDialog dialog;
- private JFrame frame;
- private boolean survey_submitted;
- private int close_trials;
- private Map<Integer, ButtonGroup> buttonGroupMap;
- private Questionnaire quest;
- private Map<Integer, Question> map;
- private Set<Integer> ids;
- private Map<String,String> answers;
- private Map<Integer, String> locations;
-
-
- /**
- * Creates new form GUI
- */
- public GUI(ClientProperties props){
-
- frame = this;
- this.props = props;
- this.connectorClientDB = new DBconnectorClient(props.getDbMsAccess());
- survey_submitted = false;
- close_trials = 0;
-
-
- try {
- initComponents();
-
- viewer = new Viewer(jScrollPane2, null);
- viewer.setupViewer();
-
- // create questionnare
-
-
- System.out.println("#of questions: " + ids.size());
-
-// viewer_q = new Viewer(jScrollPane4, null);
-// viewer_q.setupViewer();
-//
-// // specify file you wish to open (JPedal handles getting the byte data)
-// String filepathReport = "outputPDF/buttons_filled.pdf";
-//
-// // open generated PDF
-// // object must be either String in full filepath, or
-// // File object which can be relative
-// Object[] input = new Object[]{ new File(filepathReport) };
-// viewer_q.executeCommand(Commands.OPENFILE, input);
-
- JButton btnSubmitQuestionnaire = new JButton("Submit Questionnaire");
- btnSubmitQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- btnSubmitQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- submitButtonActionPerformed(arg0);
- }
- });
- JButton btnResetQuestionnaire = new JButton("Save as PDF");
- btnResetQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- savePDFButtonActionPerformed(arg0);
- }
- });
- btnResetQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- JPanel panel_button = new JPanel();
- panel_button.setLayout(new BoxLayout(panel_button, BoxLayout.X_AXIS));
-
- lblNewLabel_3 = new JLabel("");
- lblNewLabel_3.setIcon(new ImageIcon("res/location_icon.png"));
- panel_button.add(lblNewLabel_3);
-
-
-
- comboBox = new JComboBox<String>();
- comboBox.setFont(new Font("Tahoma", Font.BOLD, 12));
- comboBox.setModel(new DefaultComboBoxModel<String>(new String[] {"Select Location"}));
- for(Integer id_loc : locations.keySet()){
- comboBox.addItem(locations.get(id_loc));
- }
-
-
- panel_button.add(comboBox);
-
- rigidArea = Box.createRigidArea(new Dimension(10, 0));
- panel_button.add(rigidArea);
-
- lblNewLabel_1 = new JLabel("");
- lblNewLabel_1.setIcon(new ImageIcon("res/submit.png"));
- panel_button.add(lblNewLabel_1);
- panel_button.add(btnSubmitQuestionnaire);
-
- panel_button.add(Box.createRigidArea(new Dimension(10,0)));
-
- lblNewLabel_2 = new JLabel("");
- lblNewLabel_2.setIcon(new ImageIcon("res/pdf.png"));
- panel_button.add(lblNewLabel_2);
- panel_button.add(btnResetQuestionnaire);
- panel_button.setPreferredSize(new Dimension(211, 35));
- panel_button.validate();
-
- JPanel panel_3 = new JPanel();
- GroupLayout gl_panel = new GroupLayout(panel);
- gl_panel.setHorizontalGroup(
- gl_panel.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(63)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addGap(103)
- .addComponent(panel_button, GroupLayout.DEFAULT_SIZE, 498, Short.MAX_VALUE)
- .addGap(241))
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(41)
- .addGroup(gl_panel.createParallelGroup(Alignment.TRAILING)
- .addComponent(jScrollPane4, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE)
- .addComponent(panel_1, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE))
- .addGap(32))
- );
- gl_panel.setVerticalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(22)
- .addComponent(panel_1, GroupLayout.PREFERRED_SIZE, 235, GroupLayout.PREFERRED_SIZE)
- .addGap(37)
- .addComponent(jScrollPane4, GroupLayout.DEFAULT_SIZE, 379, Short.MAX_VALUE)
- .addGap(26)
- .addGroup(gl_panel.createParallelGroup(Alignment.LEADING)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(panel_button, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE)))
- );
- panel_3.setLayout(new BoxLayout(panel_3, BoxLayout.X_AXIS));
-
-
- panel.setLayout(gl_panel);
-
-
-
-
-
-
- /////////////////////////////////////////////////////////
- // display the tests available
-
- // get the tests
- HashMap<String, ArrayList<TestName>> testsRelevantByGroup = connectorClientDB.getRelevantTestsByGroup();
- ArrayList<String> groups = new ArrayList<String>(testsRelevantByGroup.keySet());
-
- // flatten hashmap into linkedlist
-// tests = new LinkedList<>();
- testsByName = new HashMap<String, TestName>();
- for (String group : groups) {
-// tests.addAll(testsRelevantByGroup.get(group));
- for (TestName test : testsRelevantByGroup.get(group)) {
- testsByName.put(test.getName(), test);
- }
- }
-
- // define tree structure of the tests
- DefaultMutableTreeNode root = new DefaultMutableTreeNode("All");
-
- for (String group : groups) {
- DefaultMutableTreeNode child = new DefaultMutableTreeNode(group);
- root.add(child);
-
- for (TestName test : testsRelevantByGroup.get(group)) {
- DefaultMutableTreeNode grandChild = new DefaultMutableTreeNode(test.getName());
- child.add(grandChild);
- }
- }
-
- // define swing object
- jTree = new JTree(root);
-
- for(int i=0;i<jTree.getRowCount();i++){
- jTree.expandRow(i);
- }
-
- jScrollPane3.setViewportView(jTree);
-// jTree.addTreeSelectionListener(new TreeSelectionListener() {
-//
-// @Override
-// public void valueChanged(TreeSelectionEvent e) {
-// tp = jTree.getSelectionPaths();
-// }
-// });
- jScrollPane3.setViewportView(jTree);
-
- /////////////////////////////////////////////////////////
- // display the patients registered
-
- patients = connectorClientDB.getPatients();
- for (Integer patientId : patients) {
- jComboBox1.addItem(patientId.toString());
- }
-
- } catch (SQLException ex) {
- Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex);
- ex.printStackTrace();
-// } catch (IOException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
-// } catch (DocumentException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
- }
-
- }
-
- /**
- * 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() {
-
- jPanel1 = new javax.swing.JPanel();
- jLabel2 = new javax.swing.JLabel();
- jLabel1 = new javax.swing.JLabel();
- jPanel2 = new javax.swing.JPanel();
- jComboBox1 = new javax.swing.JComboBox<String>();
- jButton1 = new javax.swing.JButton();
- jButton1.setFont(new Font("Tahoma", Font.BOLD, 12));
- jLabel3 = new javax.swing.JLabel();
- jLabel4 = new javax.swing.JLabel();
- jScrollPane3 = new javax.swing.JScrollPane();
- jScrollPane2 = new javax.swing.JScrollPane();
- jMenuBar1 = new javax.swing.JMenuBar();
- jMenu1 = new javax.swing.JMenu();
- jMenuItem1 = new javax.swing.JMenuItem();
- jMenu2 = new javax.swing.JMenu();
- dialog = new JDialog();
- tabbedPane = new JTabbedPane(JTabbedPane.TOP);
-
- setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
- addWindowListener(new WindowAdapter() {
- @Override
- public void windowClosing(java.awt.event.WindowEvent windowEvent) {
- if (!survey_submitted && close_trials <= 2){
- JOptionPane.showMessageDialog(frame, "Before closing the application, please fill in and submit the questionnaire.");
- close_trials++;
- tabbedPane.setSelectedIndex(1);
- }else{
- System.exit(0);
- }
- }
- });
- setTitle("HIV Pharmacogenomics\n");
-
- jLabel2.setIcon(new javax.swing.ImageIcon("res/shcs_logo2_small.gif")); // NOI18N
-
- jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
- jLabel1.setText("HIV Pharmacogenomics | Project #693");
-
- javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
- jPanel1.setLayout(jPanel1Layout);
- jPanel1Layout.setHorizontalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap(71, Short.MAX_VALUE)
- .addComponent(jLabel1)
- .addGap(18, 18, 18)
- .addComponent(jLabel2))
- );
- jPanel1Layout.setVerticalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jLabel1)
- .addGap(11, 11, 11))
- .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)
- );
-
- jPanel2.setBackground(new java.awt.Color(255, 255, 255));
- jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
-
- jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<String>(new String[]{"Select Patient"}));
-
- jButton1.setText("Run Test");
- jButton1.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton1ActionPerformed(evt);
- }
- });
-
- JLabel lblNewLabel = new JLabel("");
- lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
- lblNewLabel.setIcon(new javax.swing.ImageIcon("res/gears.png"));
-
-
-
- javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
- jPanel2Layout.setHorizontalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addComponent(jComboBox1, 0, 248, Short.MAX_VALUE)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addGap(75)
- .addGroup(jPanel2Layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jButton1)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 75, GroupLayout.PREFERRED_SIZE))
- .addContainerGap(98, Short.MAX_VALUE))
- );
- jPanel2Layout.setVerticalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addComponent(jComboBox1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED, 223, Short.MAX_VALUE)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jButton1)
- .addGap(19))
- );
- jPanel2.setLayout(jPanel2Layout);
-
- jLabel3.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel3.setText("Select Patient");
-
- jLabel4.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel4.setText("Select Test");
-
- jScrollPane3.setBackground(new java.awt.Color(255, 255, 255));
-
- jMenu1.setText("File");
-
- jMenuItem1.setText("Exit");
- jMenu1.add(jMenuItem1);
-
- jMenuBar1.add(jMenu1);
-
- jMenu2.setText("Edit");
- jMenuBar1.add(jMenu2);
-
- setJMenuBar(jMenuBar1);
-
-
-
- javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
- layout.setHorizontalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(layout.createParallelGroup(Alignment.LEADING, false)
- .addComponent(jLabel3)
- .addComponent(jLabel4)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, 244, Short.MAX_VALUE)
- .addComponent(jScrollPane3))
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 970, Short.MAX_VALUE))
- .addContainerGap())
- );
- layout.setVerticalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel4))
- .addPreferredGap(ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addComponent(jScrollPane3, GroupLayout.PREFERRED_SIZE, 388, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jLabel3)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 785, Short.MAX_VALUE))
- .addContainerGap())
- );
-
-
- jScrollPane2.setAutoscrolls(true);
- jScrollPane3.setAutoscrolls(true);
- tabbedPane.addTab("Report", new ImageIcon("res/report_icon.gif"), jScrollPane2, null);
- tabbedPane.setBackgroundAt(0, new Color(255, 255, 255));
-
- panel = new JPanel();
- tabbedPane.addTab("Survey", new ImageIcon("res/survey_icon.png"), panel, null);
- tabbedPane.setBackgroundAt(1, new Color(255, 255, 255));
- tabbedPane.setEnabledAt(1, true);
-
- panel_1 = new JPanel();
- panel_1.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
- panel_1.setBackground(SystemColor.control);
-
- JLabel label = new JLabel("");
- label.setIcon(new ImageIcon("res/shcs_logo2_medium.gif"));
-
- lblDearDoctor = new JLabel("Dear Doctor,");
- lblDearDoctor.setFont(new Font("Tahoma", Font.BOLD, 14));
-
- JScrollPane scrollPane = new JScrollPane();
- scrollPane.setBorder(null);
- GroupLayout gl_panel_1 = new GroupLayout(panel_1);
- gl_panel_1.setHorizontalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(Alignment.LEADING, gl_panel_1.createSequentialGroup()
- .addGap(25)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addComponent(lblDearDoctor)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 661, Short.MAX_VALUE))
- .addContainerGap())
- );
- gl_panel_1.setVerticalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addContainerGap()
- .addComponent(lblDearDoctor)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 203, Short.MAX_VALUE))
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(36)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 96, GroupLayout.PREFERRED_SIZE)))
- .addContainerGap())
- );
-
- JTextPane txtpnTodayYouAre = new JTextPane();
- txtpnTodayYouAre.setBorder(null);
- txtpnTodayYouAre.setText("Today you are receiving a pharmacogenetics report based on the genome of your patient. Because of its highly sensitive nature, " +
- "the genetic information you are provided with is processed in a privacy-preserving way. In particular, to protect patients’ genomic privacy, " +
- "their genetic and clinical data is stored encrypted at the SHCS data center, and securely analyzed through a sophisticated algorithm designed and developed at EPFL [1, 2]. " +
- "The actual clinical and genetic information is never revealed. Only the authorized users, such as you, can get some processed information, for example, the final result of a " +
- "pharmacogenetics risk test.\nThis mechanism protects the data against insiders or hackers trying to illegally access patients’ medical information, while still allowing authorized " +
- "users to obtain the information they need." +
- "\n\nTo help us understanding the importance of genomic privacy in the medical domain, and the impact of privacy-enhancing technologies in daily clinical practice, please complete the following survey.");
- txtpnTodayYouAre.setFont(new Font("Tahoma", Font.PLAIN, 13));
- txtpnTodayYouAre.setEditable(false);
- txtpnTodayYouAre.setBackground(SystemColor.control);
- scrollPane.setViewportView(txtpnTodayYouAre);
- panel_1.setLayout(gl_panel_1);
- jScrollPane4 = new javax.swing.JScrollPane();
- jScrollPane4.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
- getContentPane().setLayout(layout);
-
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
- ReplySurvey replySurvey = commHandlerAdapter.callServiceSurvey();
-
- map = replySurvey.getQuestions();
- ids = map.keySet();
- locations = replySurvey.getLocations();
-
- panel_2 = new JPanel();
- panel_2.setBackground(Color.WHITE);
- panel_2.setBorder(null);
- jScrollPane4.setViewportView(panel_2);
- panel_2.setLayout(new BoxLayout(panel_2, BoxLayout.Y_AXIS));
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
-
- int type = 0;
- for(Integer id : ids){
- ButtonGroup group = new ButtonGroup();
- JRadioButton r1 = new JRadioButton("1"); r1.setActionCommand("1"); r1.setBackground(Color.WHITE);
- JRadioButton r2 = new JRadioButton("2"); r2.setActionCommand("2"); r2.setBackground(Color.WHITE);
- JRadioButton r3 = new JRadioButton("3"); r3.setActionCommand("3"); r3.setBackground(Color.WHITE);
- JRadioButton r4 = new JRadioButton("4"); r4.setActionCommand("4"); r4.setBackground(Color.WHITE);
- JRadioButton r5 = new JRadioButton("5"); r5.setActionCommand("5"); r5.setBackground(Color.WHITE);
- group.add(r1);
- group.add(r2);
- group.add(r3);
- group.add(r4);
- group.add(r5);
- JPanel radio_panel = new JPanel();
- radio_panel.setLayout((new BoxLayout(radio_panel, BoxLayout.X_AXIS)));
- radio_panel.setBackground(Color.WHITE);
- radio_panel.setAlignmentX(Component.CENTER_ALIGNMENT);
- radio_panel.add(r1);
- radio_panel.add(r2);
- radio_panel.add(r3);
- radio_panel.add(r4);
- radio_panel.add(r5);
- radio_panel.doLayout();
- radio_panel.setPreferredSize(radio_panel.getPreferredSize());
- JTextArea question = new JTextArea(id + ") " + map.get(id).getQuestion());
-
- question.setLineWrap(true);
- question.setWrapStyleWord(true);
-
-
- JPanel row_panel = new JPanel();
- row_panel.setLayout(new BoxLayout(row_panel, BoxLayout.X_AXIS));
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.add(question);
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.add(radio_panel);
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.setBackground(Color.WHITE);
-
- int type_new = map.get(id).getType();
-
- if(type_new != type){
- type = type_new;
- JLabel question_group = new JLabel();
- switch(type){
- case 1:
- question_group.setText("Clinical Utility");
- case 2:
- question_group.setText("Privacy Concerns");
- case 3:
- question_group.setText("Usability Assessment");
- }
- question.setAlignmentX(Component.CENTER_ALIGNMENT);
- question.setFont(new Font("Tahoma", Font.PLAIN, 13));
- }
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- panel_2.add(row_panel);
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
-// panel_2.add(radio_panel);
- panel_2.add(new JSeparator());
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
-// panel_2.setPreferredSize(panel_2.getPreferredSize());
- buttonGroupMap.put(id, group);
-
- }
-
-
-
- this.setSize(new Dimension(1300, 865));
-// pack();
- }// </editor-fold>//GEN-END:initComponents
-
-
- private void submitButtonActionPerformed(java.awt.event.ActionEvent evt){
-
- try{
- answers = new HashMap<String, String>();
- StringBuilder sb = new StringBuilder();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- sb.append(q).append(",");
- sb.append(bg.getSelection().getActionCommand()).append(";");
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- String answer = sb.toString();
- Integer id_loc = null;
- for(Integer i: locations.keySet()){
- if(locations.get(i).equals(comboBox.getSelectedItem().toString()))
- id_loc = i;
- }
-
- String id_p;
- if(jComboBox1.getSelectedItem().toString().equals("Select Patient"))
- id_p = "0";
- else
- id_p = jComboBox1.getSelectedItem().toString();
-
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
-
- String reply = commHandlerAdapter.callServiceSurveyAnswer(answer, id_loc.toString(), id_p);
-
- if(reply.equals("1")){
- survey_submitted = true;
-
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Congrats! Your aswers have been sent to the SHCS datacenter.",
- "Information Message",
- JOptionPane.INFORMATION_MESSAGE);
- }
- else{
- throw new IOException();
- }
-
-
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "The SHCS datacenter does not respond. Please save the survey and send it to jean.raisaro@epfl.ch.",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
- private void savePDFButtonActionPerformed(java.awt.event.ActionEvent evt){
- try {
-
- answers = new HashMap<String, String>();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- JFileChooser chooser = new JFileChooser();
- // Note: source for ExampleFileFilter can be found in FileChooserDemo,
- // under the demo/jfc directory in the JDK.
-
- int returnVal = chooser.showSaveDialog(this);
- System.out.println(returnVal);
- if(returnVal == JFileChooser.APPROVE_OPTION) {
- System.out.println("You chose to open this file: " +
- chooser.getSelectedFile().getPath());
- quest = new Questionnaire(chooser.getSelectedFile().getPath() + ".pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }else{
- quest = new Questionnaire("outputPDF/survey.pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }
-
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (DocumentException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (NullPointerException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
-
- private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
-
- JPanel contentPanel = new JPanel();
-
- dialog.setBounds(100, 100, 410, 80);
- dialog.getContentPane().setLayout(new BorderLayout());
- contentPanel.setLayout(new FlowLayout());
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- dialog.getContentPane().add(contentPanel, BorderLayout.CENTER);
- {
- JLabel label = new JLabel("Please wait...The overall computation can take few seconds");
- label.setHorizontalAlignment(SwingConstants.CENTER);
- label.setFont(new Font("Tahoma", Font.PLAIN, 12));
- contentPanel.add(label);
- }
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
- dialog.getContentPane().add(buttonPane, BorderLayout.SOUTH);
- }
- dialog.setLocationRelativeTo(this);
- dialog.setVisible(true);
-
- GUIWorker gw = new GUIWorker(this, props);
- Thread t = new Thread(gw);
- t.start();
-
- }
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JButton jButton1;
- private javax.swing.JComboBox<String> jComboBox1;
- private javax.swing.JLabel jLabel1;
- private javax.swing.JLabel jLabel2;
- private javax.swing.JLabel jLabel3;
- private javax.swing.JLabel jLabel4;
- private javax.swing.JMenu jMenu1;
- private javax.swing.JMenu jMenu2;
- private javax.swing.JMenuBar jMenuBar1;
- private javax.swing.JMenuItem jMenuItem1;
- private javax.swing.JPanel jPanel1;
- private javax.swing.JPanel jPanel2;
- private javax.swing.JScrollPane jScrollPane3;
- private javax.swing.JTabbedPane tabbedPane;
- private javax.swing.JScrollPane jScrollPane2;
- private javax.swing.JScrollPane jScrollPane4;
- private JPanel panel;
- private JPanel panel_1;
- private JPanel panel_2;
- private JLabel lblDearDoctor;
- private JLabel lblNewLabel_1;
- private JLabel lblNewLabel_2;
- private JLabel lblNewLabel_3;
- private JComboBox<String> comboBox;
- private Component rigidArea;
-
- // End of variables declaration//GEN-END:variables
-
-
- class GUIWorker implements Runnable{
-
- private JFrame mainFrame;
- private ClientProperties props;
- private MedUnit mu;
-
- public GUIWorker(GUI gui, ClientProperties props) {
- mainFrame = gui;
-
- this.props = props;
- this.mu = new MedUnit(props, 0);
- }
-
- @Override
- public void run() {
-
- try{
- int patientId = Integer.parseInt((String) jComboBox1.getSelectedItem());
-
- // convert selected tests to test identifiers
- ArrayList<TestName> selectedTests = new ArrayList<TestName>();
- for (String currentName : getSelectedTests()) {
- TestName currentTest = testsByName.get(currentName);
-
- if (currentTest == null) {
- throw new IllegalStateException("Trying to run unknown test: " + currentTest);
- }
-
- selectedTests.add(currentTest);
- }
-
- // run tests
- Diagnostic diagnostic = mu.runTests(patientId, selectedTests);
-
- // warn for tests with missing material
- warnFailedTests(diagnostic, selectedTests);
-
- // create report
- mu.createReport(patientId, selectedTests, diagnostic);
-
- dialog.setVisible(false);
-
- // specify file you wish to open (JPedal handles getting the byte data)
- String filepathReport = props.getPathPDF() + patientId + ".pdf";
-
- // open generated PDF
- // object must be either String in full filepath, or
- // File object which can be relative
- Object[] input = new Object[]{ new File(filepathReport) };
- viewer.executeCommand(Commands.OPENFILE, input);
-
- // display CAD result as bar plot
- if (diagnostic.hasCAD()) {
- System.out.println("CAD = " + diagnostic.getResultCAD());
- BarPlotFrame frame = new BarPlotFrame(diagnostic.getResultCAD(), patientId);
- frame.setVisible(true);
- frame.setAlwaysOnTop(true);
- }
-
-
- } catch (SQLException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Please select a patient.");
- }
-
- }
-
- private void warnFailedTests(Diagnostic diagnostic, ArrayList<TestName> selectedTests) {
- ArrayList<Integer> failedTests = diagnostic.getInvalidTests();
-
- if (!failedTests.isEmpty()) {
- String msg = "Could not complete tests: ";
- boolean first = true;
- for (TestName testName : selectedTests) {
- if (failedTests.contains(testName.getId())) {
- if (first) {
- first = false;
- } else {
- msg += ", ";
- }
- msg += testName.getName();
- }
- }
- displayError(msg);
- }
-
- }
-
- private void displayError(String msg) {
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- mainFrame,
- msg,
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
-
- private ArrayList<String> getSelectedTests() {
- ArrayList<String> tests = new ArrayList<String>();
-
- for (TreePath treePath : jTree.getSelectionPaths()) {
- tests.addAll(getChildrenTests(jTree.getModel(), treePath.getLastPathComponent()));
- }
-
- return tests;
- }
-
- private ArrayList<String> getChildrenTests(TreeModel model, Object node) {
- ArrayList<String> tests = new ArrayList<String>();
-
- if (model.isLeaf(node)) { // leaf
- DefaultMutableTreeNode leaf = (DefaultMutableTreeNode) node;
- tests.add(leaf.toString());
- }
- else { // iterate over children
- for (int i = 0; i < model.getChildCount(node); i++) {
- tests.addAll(getChildrenTests(model, model.getChild(node, i)));
- }
- }
-
- return tests;
- }
-
- }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/47/b09e1f0153ac001410e2e30aa85db9d1 b/.metadata/.plugins/org.eclipse.core.resources/.history/47/b09e1f0153ac001410e2e30aa85db9d1
deleted file mode 100644
index 71c2f4c..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/47/b09e1f0153ac001410e2e30aa85db9d1
+++ /dev/null
@@ -1,908 +0,0 @@
-package ui;
-
-import io.ClientConnection;
-import io.CommAdapter;
-import io.Questionnaire;
-
-import java.awt.BorderLayout;
-import java.awt.Color;
-import java.awt.Component;
-import java.awt.Dimension;
-import java.awt.FlowLayout;
-import java.awt.Font;
-import java.awt.SystemColor;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.awt.event.WindowAdapter;
-import java.io.File;
-import java.io.IOException;
-import java.sql.SQLException;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.LinkedList;
-import java.util.Map;
-import java.util.Set;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
-import javax.swing.Box;
-import javax.swing.BoxLayout;
-import javax.swing.ButtonGroup;
-import javax.swing.DefaultComboBoxModel;
-import javax.swing.GroupLayout;
-import javax.swing.GroupLayout.Alignment;
-import javax.swing.ImageIcon;
-import javax.swing.JButton;
-import javax.swing.JComboBox;
-import javax.swing.JDialog;
-import javax.swing.JFileChooser;
-import javax.swing.JFrame;
-import javax.swing.JLabel;
-import javax.swing.JOptionPane;
-import javax.swing.JPanel;
-import javax.swing.JRadioButton;
-import javax.swing.JScrollPane;
-import javax.swing.JSeparator;
-import javax.swing.JTabbedPane;
-import javax.swing.JTextArea;
-import javax.swing.JTextPane;
-import javax.swing.JTree;
-import javax.swing.LayoutStyle.ComponentPlacement;
-import javax.swing.SwingConstants;
-import javax.swing.UIManager;
-import javax.swing.border.BevelBorder;
-import javax.swing.border.EmptyBorder;
-import javax.swing.border.EtchedBorder;
-import javax.swing.tree.DefaultMutableTreeNode;
-import javax.swing.tree.TreeModel;
-import javax.swing.tree.TreePath;
-
-import org.jpedal.examples.viewer.Commands;
-import org.jpedal.examples.viewer.Viewer;
-
-import utils.ClientProperties;
-
-import com.itextpdf.text.DocumentException;
-
-import database.DBconnectorClient;
-import framework.Diagnostic;
-import framework.MedUnit;
-import framework.Question;
-import framework.reply.ReplySurvey;
-import framework.test.TestName;
-import javax.swing.border.SoftBevelBorder;
-import javax.swing.border.LineBorder;
-
-/**
- *
- * @author youssef, raisaro
- */
-public class GUI extends javax.swing.JFrame {
-
- private static final Logger LOGGER = Logger.getLogger(GUI.class.getName());
-
- private static final long serialVersionUID = -4582280515597700650L;
-
- // configuration
- private ClientProperties props;
-
- private JTree jTree;
- private DBconnectorClient connectorClientDB;
- private LinkedList<Integer> patients;
-
- /** List of all relevant tests */
- private HashMap<String, TestName> testsByName;
- private Viewer viewer;
- private JDialog dialog;
- private JFrame frame;
- private boolean survey_submitted;
- private int close_trials;
- private Map<Integer, ButtonGroup> buttonGroupMap;
- private Questionnaire quest;
- private Map<Integer, Question> map;
- private Set<Integer> ids;
- private Map<String,String> answers;
- private Map<Integer, String> locations;
-
-
- /**
- * Creates new form GUI
- */
- public GUI(ClientProperties props){
-
- frame = this;
- this.props = props;
- this.connectorClientDB = new DBconnectorClient(props.getDbMsAccess());
- survey_submitted = false;
- close_trials = 0;
-
-
- try {
- initComponents();
-
- viewer = new Viewer(jScrollPane2, null);
- viewer.setupViewer();
-
- // create questionnare
-
-
- System.out.println("#of questions: " + ids.size());
-
-// viewer_q = new Viewer(jScrollPane4, null);
-// viewer_q.setupViewer();
-//
-// // specify file you wish to open (JPedal handles getting the byte data)
-// String filepathReport = "outputPDF/buttons_filled.pdf";
-//
-// // open generated PDF
-// // object must be either String in full filepath, or
-// // File object which can be relative
-// Object[] input = new Object[]{ new File(filepathReport) };
-// viewer_q.executeCommand(Commands.OPENFILE, input);
-
- JButton btnSubmitQuestionnaire = new JButton("Submit Questionnaire");
- btnSubmitQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- btnSubmitQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- submitButtonActionPerformed(arg0);
- }
- });
- JButton btnResetQuestionnaire = new JButton("Save as PDF");
- btnResetQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- savePDFButtonActionPerformed(arg0);
- }
- });
- btnResetQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- JPanel panel_button = new JPanel();
- panel_button.setLayout(new BoxLayout(panel_button, BoxLayout.X_AXIS));
-
- lblNewLabel_3 = new JLabel("");
- lblNewLabel_3.setIcon(new ImageIcon("res/location_icon.png"));
- panel_button.add(lblNewLabel_3);
-
-
-
- comboBox = new JComboBox<String>();
- comboBox.setFont(new Font("Tahoma", Font.BOLD, 12));
- comboBox.setModel(new DefaultComboBoxModel<String>(new String[] {"Select Location"}));
- for(Integer id_loc : locations.keySet()){
- comboBox.addItem(locations.get(id_loc));
- }
-
-
- panel_button.add(comboBox);
-
- rigidArea = Box.createRigidArea(new Dimension(10, 0));
- panel_button.add(rigidArea);
-
- lblNewLabel_1 = new JLabel("");
- lblNewLabel_1.setIcon(new ImageIcon("res/submit.png"));
- panel_button.add(lblNewLabel_1);
- panel_button.add(btnSubmitQuestionnaire);
-
- panel_button.add(Box.createRigidArea(new Dimension(10,0)));
-
- lblNewLabel_2 = new JLabel("");
- lblNewLabel_2.setIcon(new ImageIcon("res/pdf.png"));
- panel_button.add(lblNewLabel_2);
- panel_button.add(btnResetQuestionnaire);
- panel_button.setPreferredSize(new Dimension(211, 35));
- panel_button.validate();
-
- JPanel panel_3 = new JPanel();
- GroupLayout gl_panel = new GroupLayout(panel);
- gl_panel.setHorizontalGroup(
- gl_panel.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(63)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addGap(103)
- .addComponent(panel_button, GroupLayout.DEFAULT_SIZE, 498, Short.MAX_VALUE)
- .addGap(241))
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(41)
- .addGroup(gl_panel.createParallelGroup(Alignment.TRAILING)
- .addComponent(jScrollPane4, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE)
- .addComponent(panel_1, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE))
- .addGap(32))
- );
- gl_panel.setVerticalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(22)
- .addComponent(panel_1, GroupLayout.PREFERRED_SIZE, 235, GroupLayout.PREFERRED_SIZE)
- .addGap(37)
- .addComponent(jScrollPane4, GroupLayout.DEFAULT_SIZE, 379, Short.MAX_VALUE)
- .addGap(26)
- .addGroup(gl_panel.createParallelGroup(Alignment.LEADING)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(panel_button, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE)))
- );
- panel_3.setLayout(new BoxLayout(panel_3, BoxLayout.X_AXIS));
-
-
- panel.setLayout(gl_panel);
-
-
-
-
-
-
- /////////////////////////////////////////////////////////
- // display the tests available
-
- // get the tests
- HashMap<String, ArrayList<TestName>> testsRelevantByGroup = connectorClientDB.getRelevantTestsByGroup();
- ArrayList<String> groups = new ArrayList<String>(testsRelevantByGroup.keySet());
-
- // flatten hashmap into linkedlist
-// tests = new LinkedList<>();
- testsByName = new HashMap<String, TestName>();
- for (String group : groups) {
-// tests.addAll(testsRelevantByGroup.get(group));
- for (TestName test : testsRelevantByGroup.get(group)) {
- testsByName.put(test.getName(), test);
- }
- }
-
- // define tree structure of the tests
- DefaultMutableTreeNode root = new DefaultMutableTreeNode("All");
-
- for (String group : groups) {
- DefaultMutableTreeNode child = new DefaultMutableTreeNode(group);
- root.add(child);
-
- for (TestName test : testsRelevantByGroup.get(group)) {
- DefaultMutableTreeNode grandChild = new DefaultMutableTreeNode(test.getName());
- child.add(grandChild);
- }
- }
-
- // define swing object
- jTree = new JTree(root);
-
- for(int i=0;i<jTree.getRowCount();i++){
- jTree.expandRow(i);
- }
-
- jScrollPane3.setViewportView(jTree);
-// jTree.addTreeSelectionListener(new TreeSelectionListener() {
-//
-// @Override
-// public void valueChanged(TreeSelectionEvent e) {
-// tp = jTree.getSelectionPaths();
-// }
-// });
- jScrollPane3.setViewportView(jTree);
-
- /////////////////////////////////////////////////////////
- // display the patients registered
-
- patients = connectorClientDB.getPatients();
- for (Integer patientId : patients) {
- jComboBox1.addItem(patientId.toString());
- }
-
- } catch (SQLException ex) {
- Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex);
- ex.printStackTrace();
-// } catch (IOException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
-// } catch (DocumentException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
- }
-
- }
-
- /**
- * 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() {
-
- jPanel1 = new javax.swing.JPanel();
- jLabel2 = new javax.swing.JLabel();
- jLabel1 = new javax.swing.JLabel();
- jPanel2 = new javax.swing.JPanel();
- jComboBox1 = new javax.swing.JComboBox<String>();
- jButton1 = new javax.swing.JButton();
- jButton1.setFont(new Font("Tahoma", Font.BOLD, 12));
- jLabel3 = new javax.swing.JLabel();
- jLabel4 = new javax.swing.JLabel();
- jScrollPane3 = new javax.swing.JScrollPane();
- jScrollPane2 = new javax.swing.JScrollPane();
- jMenuBar1 = new javax.swing.JMenuBar();
- jMenu1 = new javax.swing.JMenu();
- jMenuItem1 = new javax.swing.JMenuItem();
- jMenu2 = new javax.swing.JMenu();
- dialog = new JDialog();
- tabbedPane = new JTabbedPane(JTabbedPane.TOP);
-
- setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
- addWindowListener(new WindowAdapter() {
- @Override
- public void windowClosing(java.awt.event.WindowEvent windowEvent) {
- if (!survey_submitted && close_trials <= 2){
- JOptionPane.showMessageDialog(frame, "Before closing the application, please fill in and submit the questionnaire.");
- close_trials++;
- tabbedPane.setSelectedIndex(1);
- }else{
- System.exit(0);
- }
- }
- });
- setTitle("HIV Pharmacogenomics\n");
-
- jLabel2.setIcon(new javax.swing.ImageIcon("res/shcs_logo2_small.gif")); // NOI18N
-
- jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
- jLabel1.setText("HIV Pharmacogenomics | Project #693");
-
- javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
- jPanel1.setLayout(jPanel1Layout);
- jPanel1Layout.setHorizontalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap(71, Short.MAX_VALUE)
- .addComponent(jLabel1)
- .addGap(18, 18, 18)
- .addComponent(jLabel2))
- );
- jPanel1Layout.setVerticalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jLabel1)
- .addGap(11, 11, 11))
- .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)
- );
-
- jPanel2.setBackground(new java.awt.Color(255, 255, 255));
- jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
-
- jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<String>(new String[]{"Select Patient"}));
-
- jButton1.setText("Run Test");
- jButton1.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton1ActionPerformed(evt);
- }
- });
-
- JLabel lblNewLabel = new JLabel("");
- lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
- lblNewLabel.setIcon(new javax.swing.ImageIcon("res/gears.png"));
-
-
-
- javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
- jPanel2Layout.setHorizontalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addComponent(jComboBox1, 0, 248, Short.MAX_VALUE)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addGap(75)
- .addGroup(jPanel2Layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jButton1)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 75, GroupLayout.PREFERRED_SIZE))
- .addContainerGap(98, Short.MAX_VALUE))
- );
- jPanel2Layout.setVerticalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addComponent(jComboBox1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED, 223, Short.MAX_VALUE)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jButton1)
- .addGap(19))
- );
- jPanel2.setLayout(jPanel2Layout);
-
- jLabel3.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel3.setText("Select Patient");
-
- jLabel4.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel4.setText("Select Test");
-
- jScrollPane3.setBackground(new java.awt.Color(255, 255, 255));
-
- jMenu1.setText("File");
-
- jMenuItem1.setText("Exit");
- jMenu1.add(jMenuItem1);
-
- jMenuBar1.add(jMenu1);
-
- jMenu2.setText("Edit");
- jMenuBar1.add(jMenu2);
-
- setJMenuBar(jMenuBar1);
-
-
-
- javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
- layout.setHorizontalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(layout.createParallelGroup(Alignment.LEADING, false)
- .addComponent(jLabel3)
- .addComponent(jLabel4)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, 244, Short.MAX_VALUE)
- .addComponent(jScrollPane3))
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 970, Short.MAX_VALUE))
- .addContainerGap())
- );
- layout.setVerticalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel4))
- .addPreferredGap(ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addComponent(jScrollPane3, GroupLayout.PREFERRED_SIZE, 388, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jLabel3)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 785, Short.MAX_VALUE))
- .addContainerGap())
- );
-
-
- jScrollPane2.setAutoscrolls(true);
- jScrollPane3.setAutoscrolls(true);
- tabbedPane.addTab("Report", new ImageIcon("res/report_icon.gif"), jScrollPane2, null);
- tabbedPane.setBackgroundAt(0, new Color(255, 255, 255));
-
- panel = new JPanel();
- tabbedPane.addTab("Survey", new ImageIcon("res/survey_icon.png"), panel, null);
- tabbedPane.setBackgroundAt(1, new Color(255, 255, 255));
- tabbedPane.setEnabledAt(1, true);
-
- panel_1 = new JPanel();
- panel_1.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
- panel_1.setBackground(SystemColor.control);
-
- JLabel label = new JLabel("");
- label.setIcon(new ImageIcon("res/shcs_logo2_medium.gif"));
-
- lblDearDoctor = new JLabel("Dear Doctor,");
- lblDearDoctor.setFont(new Font("Tahoma", Font.BOLD, 14));
-
- JScrollPane scrollPane = new JScrollPane();
- scrollPane.setBorder(null);
- GroupLayout gl_panel_1 = new GroupLayout(panel_1);
- gl_panel_1.setHorizontalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(Alignment.LEADING, gl_panel_1.createSequentialGroup()
- .addGap(25)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addComponent(lblDearDoctor)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 661, Short.MAX_VALUE))
- .addContainerGap())
- );
- gl_panel_1.setVerticalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addContainerGap()
- .addComponent(lblDearDoctor)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 203, Short.MAX_VALUE))
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(36)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 96, GroupLayout.PREFERRED_SIZE)))
- .addContainerGap())
- );
-
- JTextPane txtpnTodayYouAre = new JTextPane();
- txtpnTodayYouAre.setBorder(null);
- txtpnTodayYouAre.setText("Today you are receiving a pharmacogenetics report based on the genome of your patient. Because of its highly sensitive nature, " +
- "the genetic information you are provided with is processed in a privacy-preserving way. In particular, to protect patients’ genomic privacy, " +
- "their genetic and clinical data is stored encrypted at the SHCS data center, and securely analyzed through a sophisticated algorithm designed and developed at EPFL [1, 2]. " +
- "The actual clinical and genetic information is never revealed. Only the authorized users, such as you, can get some processed information, for example, the final result of a " +
- "pharmacogenetics risk test.\nThis mechanism protects the data against insiders or hackers trying to illegally access patients’ medical information, while still allowing authorized " +
- "users to obtain the information they need." +
- "\n\nTo help us understanding the importance of genomic privacy in the medical domain, and the impact of privacy-enhancing technologies in daily clinical practice, please complete the following survey.");
- txtpnTodayYouAre.setFont(new Font("Tahoma", Font.PLAIN, 13));
- txtpnTodayYouAre.setEditable(false);
- txtpnTodayYouAre.setBackground(SystemColor.control);
- scrollPane.setViewportView(txtpnTodayYouAre);
- panel_1.setLayout(gl_panel_1);
- jScrollPane4 = new javax.swing.JScrollPane();
- jScrollPane4.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
- getContentPane().setLayout(layout);
-
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
- ReplySurvey replySurvey = commHandlerAdapter.callServiceSurvey();
-
- map = replySurvey.getQuestions();
- ids = map.keySet();
- locations = replySurvey.getLocations();
-
- panel_2 = new JPanel();
- panel_2.setBackground(Color.WHITE);
- panel_2.setBorder(null);
- jScrollPane4.setViewportView(panel_2);
- panel_2.setLayout(new BoxLayout(panel_2, BoxLayout.Y_AXIS));
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
-
-
- for(Integer id : ids){
- ButtonGroup group = new ButtonGroup();
- JRadioButton r1 = new JRadioButton("1"); r1.setActionCommand("1"); r1.setBackground(Color.WHITE);
- JRadioButton r2 = new JRadioButton("2"); r2.setActionCommand("2"); r2.setBackground(Color.WHITE);
- JRadioButton r3 = new JRadioButton("3"); r3.setActionCommand("3"); r3.setBackground(Color.WHITE);
- JRadioButton r4 = new JRadioButton("4"); r4.setActionCommand("4"); r4.setBackground(Color.WHITE);
- JRadioButton r5 = new JRadioButton("5"); r5.setActionCommand("5"); r5.setBackground(Color.WHITE);
- group.add(r1);
- group.add(r2);
- group.add(r3);
- group.add(r4);
- group.add(r5);
- JPanel radio_panel = new JPanel();
- radio_panel.setLayout((new BoxLayout(radio_panel, BoxLayout.X_AXIS)));
- radio_panel.setBackground(Color.WHITE);
- radio_panel.setAlignmentX(Component.CENTER_ALIGNMENT);
- radio_panel.add(r1);
- radio_panel.add(r2);
- radio_panel.add(r3);
- radio_panel.add(r4);
- radio_panel.add(r5);
- radio_panel.doLayout();
- radio_panel.setPreferredSize(radio_panel.getPreferredSize());
- JTextArea question = new JTextArea(id + ") " + map.get(id).getQuestion());
- question.setLineWrap(true);
- question.setWrapStyleWord(true);
- question.setAlignmentX(Component.CENTER_ALIGNMENT);
- question.setFont(new Font("Tahoma", Font.PLAIN, 13));
-
- JPanel row_panel = new JPanel();
- row_panel.setLayout(new BoxLayout(row_panel, BoxLayout.X_AXIS));
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.add(question);
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.add(radio_panel);
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.setBackground(Color.WHITE);
- row_panel.setPreferredSize(panel_2.getPreferredSize());
-
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- panel_2.add(row_panel);
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
-// panel_2.add(radio_panel);
- panel_2.add(new JSeparator());
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
-// panel_2.setPreferredSize(panel_2.getPreferredSize());
- buttonGroupMap.put(id, group);
-
- }
-
-
-
- this.setSize(new Dimension(1300, 865));
-// pack();
- }// </editor-fold>//GEN-END:initComponents
-
-
- private void submitButtonActionPerformed(java.awt.event.ActionEvent evt){
-
- try{
- answers = new HashMap<String, String>();
- StringBuilder sb = new StringBuilder();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- sb.append(q).append(",");
- sb.append(bg.getSelection().getActionCommand()).append(";");
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- String answer = sb.toString();
- Integer id_loc = null;
- for(Integer i: locations.keySet()){
- if(locations.get(i).equals(comboBox.getSelectedItem().toString()))
- id_loc = i;
- }
-
- String id_p;
- if(jComboBox1.getSelectedItem().toString().equals("Select Patient"))
- id_p = "0";
- else
- id_p = jComboBox1.getSelectedItem().toString();
-
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
-
- String reply = commHandlerAdapter.callServiceSurveyAnswer(answer, id_loc.toString(), id_p);
-
- if(reply.equals("1")){
- survey_submitted = true;
-
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Congrats! Your aswers have been sent to the SHCS datacenter.",
- "Information Message",
- JOptionPane.INFORMATION_MESSAGE);
- }
- else{
- throw new IOException();
- }
-
-
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "The SHCS datacenter does not respond. Please save the survey and send it to jean.raisaro@epfl.ch.",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
- private void savePDFButtonActionPerformed(java.awt.event.ActionEvent evt){
- try {
-
- answers = new HashMap<String, String>();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- JFileChooser chooser = new JFileChooser();
- // Note: source for ExampleFileFilter can be found in FileChooserDemo,
- // under the demo/jfc directory in the JDK.
-
- int returnVal = chooser.showSaveDialog(this);
- System.out.println(returnVal);
- if(returnVal == JFileChooser.APPROVE_OPTION) {
- System.out.println("You chose to open this file: " +
- chooser.getSelectedFile().getPath());
- quest = new Questionnaire(chooser.getSelectedFile().getPath() + ".pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }else{
- quest = new Questionnaire("outputPDF/survey.pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }
-
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (DocumentException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (NullPointerException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
-
- private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
-
- JPanel contentPanel = new JPanel();
-
- dialog.setBounds(100, 100, 410, 80);
- dialog.getContentPane().setLayout(new BorderLayout());
- contentPanel.setLayout(new FlowLayout());
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- dialog.getContentPane().add(contentPanel, BorderLayout.CENTER);
- {
- JLabel label = new JLabel("Please wait...The overall computation can take few seconds");
- label.setHorizontalAlignment(SwingConstants.CENTER);
- label.setFont(new Font("Tahoma", Font.PLAIN, 12));
- contentPanel.add(label);
- }
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
- dialog.getContentPane().add(buttonPane, BorderLayout.SOUTH);
- }
- dialog.setLocationRelativeTo(this);
- dialog.setVisible(true);
-
- GUIWorker gw = new GUIWorker(this, props);
- Thread t = new Thread(gw);
- t.start();
-
- }
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JButton jButton1;
- private javax.swing.JComboBox<String> jComboBox1;
- private javax.swing.JLabel jLabel1;
- private javax.swing.JLabel jLabel2;
- private javax.swing.JLabel jLabel3;
- private javax.swing.JLabel jLabel4;
- private javax.swing.JMenu jMenu1;
- private javax.swing.JMenu jMenu2;
- private javax.swing.JMenuBar jMenuBar1;
- private javax.swing.JMenuItem jMenuItem1;
- private javax.swing.JPanel jPanel1;
- private javax.swing.JPanel jPanel2;
- private javax.swing.JScrollPane jScrollPane3;
- private javax.swing.JTabbedPane tabbedPane;
- private javax.swing.JScrollPane jScrollPane2;
- private javax.swing.JScrollPane jScrollPane4;
- private JPanel panel;
- private JPanel panel_1;
- private JPanel panel_2;
- private JLabel lblDearDoctor;
- private JLabel lblNewLabel_1;
- private JLabel lblNewLabel_2;
- private JLabel lblNewLabel_3;
- private JComboBox<String> comboBox;
- private Component rigidArea;
-
- // End of variables declaration//GEN-END:variables
-
-
- class GUIWorker implements Runnable{
-
- private JFrame mainFrame;
- private ClientProperties props;
- private MedUnit mu;
-
- public GUIWorker(GUI gui, ClientProperties props) {
- mainFrame = gui;
-
- this.props = props;
- this.mu = new MedUnit(props, 0);
- }
-
- @Override
- public void run() {
-
- try{
- int patientId = Integer.parseInt((String) jComboBox1.getSelectedItem());
-
- // convert selected tests to test identifiers
- ArrayList<TestName> selectedTests = new ArrayList<TestName>();
- for (String currentName : getSelectedTests()) {
- TestName currentTest = testsByName.get(currentName);
-
- if (currentTest == null) {
- throw new IllegalStateException("Trying to run unknown test: " + currentTest);
- }
-
- selectedTests.add(currentTest);
- }
-
- // run tests
- Diagnostic diagnostic = mu.runTests(patientId, selectedTests);
-
- // warn for tests with missing material
- warnFailedTests(diagnostic, selectedTests);
-
- // create report
- mu.createReport(patientId, selectedTests, diagnostic);
-
- dialog.setVisible(false);
-
- // specify file you wish to open (JPedal handles getting the byte data)
- String filepathReport = props.getPathPDF() + patientId + ".pdf";
-
- // open generated PDF
- // object must be either String in full filepath, or
- // File object which can be relative
- Object[] input = new Object[]{ new File(filepathReport) };
- viewer.executeCommand(Commands.OPENFILE, input);
-
- // display CAD result as bar plot
- if (diagnostic.hasCAD()) {
- System.out.println("CAD = " + diagnostic.getResultCAD());
- BarPlotFrame frame = new BarPlotFrame(diagnostic.getResultCAD(), patientId);
- frame.setVisible(true);
- frame.setAlwaysOnTop(true);
- }
-
-
- } catch (SQLException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Please select a patient.");
- }
-
- }
-
- private void warnFailedTests(Diagnostic diagnostic, ArrayList<TestName> selectedTests) {
- ArrayList<Integer> failedTests = diagnostic.getInvalidTests();
-
- if (!failedTests.isEmpty()) {
- String msg = "Could not complete tests: ";
- boolean first = true;
- for (TestName testName : selectedTests) {
- if (failedTests.contains(testName.getId())) {
- if (first) {
- first = false;
- } else {
- msg += ", ";
- }
- msg += testName.getName();
- }
- }
- displayError(msg);
- }
-
- }
-
- private void displayError(String msg) {
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- mainFrame,
- msg,
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
-
- private ArrayList<String> getSelectedTests() {
- ArrayList<String> tests = new ArrayList<String>();
-
- for (TreePath treePath : jTree.getSelectionPaths()) {
- tests.addAll(getChildrenTests(jTree.getModel(), treePath.getLastPathComponent()));
- }
-
- return tests;
- }
-
- private ArrayList<String> getChildrenTests(TreeModel model, Object node) {
- ArrayList<String> tests = new ArrayList<String>();
-
- if (model.isLeaf(node)) { // leaf
- DefaultMutableTreeNode leaf = (DefaultMutableTreeNode) node;
- tests.add(leaf.toString());
- }
- else { // iterate over children
- for (int i = 0; i < model.getChildCount(node); i++) {
- tests.addAll(getChildrenTests(model, model.getChild(node, i)));
- }
- }
-
- return tests;
- }
-
- }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/48/60de561468a8001419a38fd8608ce0e6 b/.metadata/.plugins/org.eclipse.core.resources/.history/48/60de561468a8001419a38fd8608ce0e6
deleted file mode 100644
index 7fbbb16..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/48/60de561468a8001419a38fd8608ce0e6
+++ /dev/null
@@ -1,291 +0,0 @@
-package io;
-
-import java.awt.BorderLayout;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.util.Map;
-import java.util.Set;
-
-import com.itextpdf.text.BaseColor;
-import com.itextpdf.text.Document;
-import com.itextpdf.text.DocumentException;
-import com.itextpdf.text.Element;
-import com.itextpdf.text.ExceptionConverter;
-import com.itextpdf.text.Font;
-import com.itextpdf.text.Font.FontFamily;
-import com.itextpdf.text.FontFactory;
-import com.itextpdf.text.Image;
-import com.itextpdf.text.PageSize;
-import com.itextpdf.text.Paragraph;
-import com.itextpdf.text.Phrase;
-import com.itextpdf.text.Rectangle;
-import com.itextpdf.text.pdf.AcroFields;
-import com.itextpdf.text.pdf.BaseFont;
-import com.itextpdf.text.pdf.ColumnText;
-import com.itextpdf.text.pdf.GrayColor;
-import com.itextpdf.text.pdf.PdfAction;
-import com.itextpdf.text.pdf.PdfBorderDictionary;
-import com.itextpdf.text.pdf.PdfContentByte;
-import com.itextpdf.text.pdf.PdfFormField;
-import com.itextpdf.text.pdf.PdfPCell;
-import com.itextpdf.text.pdf.PdfPCellEvent;
-import com.itextpdf.text.pdf.PdfPTable;
-import com.itextpdf.text.pdf.PdfReader;
-import com.itextpdf.text.pdf.PdfStamper;
-import com.itextpdf.text.pdf.PdfWriter;
-import com.itextpdf.text.pdf.PushbuttonField;
-import com.itextpdf.text.pdf.RadioCheckField;
-import com.itextpdf.text.pdf.TextField;
-
-import framework.Question;
-
-public class Questionnaire implements PdfPCellEvent{
-
- /** The path output file. */
- String pathOutputFile;
-
- /** The document. */
- Document document;
-
-
-
- int tf;
-
- public Questionnaire(String path){
- pathOutputFile = path;
- document = new Document(PageSize.A4, 25, 25, 50, 50);
- }
- public Questionnaire(int tf){
- this.tf = tf;
-
- }
-
- /** The resulting PDF. */
- public static final String RESULT1 = "outputPDF/buttons.pdf";
- /** The resulting PDF. */
- public static final String RESULT2 = "outputPDF/buttons_filled.pdf";
- /** Path to a JavaScript resource. */
- public static final String RESOURCE = "res/buttons.js";
- /** Path to an image used as button icon. */
- public static final String IMAGE = "res/info.png";
- /** Possible values of a radio field / checkboxes */
- public static final String[] LANGUAGES = { "English", "German", "French", "Spanish", "Dutch" };
-
- /**
- * Creates a PDF document.
- * @param filename the path to the new PDF document
- * @throws DocumentException
- * @throws IOException
- */
- public void createPdf(Map<Integer, Question> map, Set<Integer> ids) throws IOException, DocumentException {
-
- @SuppressWarnings("unused")
- PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(pathOutputFile));
-
-
- document.open();
- Image logo = Image.getInstance("res/shcs_logo2.gif");
-
- logo.scalePercent(30f);
- float[] columnWidths1 = {0.2f, 0.8f};
- PdfPTable table_title = new PdfPTable(columnWidths1);
- PdfPCell c01 = new PdfPCell(logo, false);
- PdfPCell c02 = new PdfPCell(new Paragraph("Survery | Project #693",
- FontFactory.getFont(FontFactory.HELVETICA, 20, Font.BOLD, BaseColor.BLACK)));
- c01.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setHorizontalAlignment(Element.ALIGN_CENTER);
- c01.setBorder(Rectangle.NO_BORDER);
- c02.setBorder(Rectangle.NO_BORDER);
-
- table_title.addCell(c01);
- table_title.addCell(c02);
- table_title.setWidthPercentage(100);
- table_title.setSpacingBefore(0);
- table_title.setSpacingAfter(25);
- document.add(table_title);
-
-
- //----------------------------------------------------------------------------------
-
-
- PdfPTable table1 = new PdfPTable(1);
- table1.setWidthPercentage(100);
- PdfPCell c11 = new PdfPCell(new Phrase("Today you are receiving a pharmacogenetic report based on the genetic " +
- "information of your patient. Because the human genome contains extremely private and sensitive information" +
- " of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier," +
- " it must be managed with care. ",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.NORMAL, BaseColor.BLACK)));
- c11.setLeading(1.5f, 1.5f);
- c11.setPaddingBottom(8);
-
-
- table1.addCell(c11);
- table1.setSpacingAfter(10);
- document.add(table1);
-
-
- //----------------------------------------------------------------------------------
-
-// // step 4
-// // add the JavaScript
-// writer.addJavaScript(Utilities.readFileToString(RESOURCE));
-
- for(Integer id: ids){
- PdfPCell c2;
-
- PdfPTable table = new PdfPTable(1);
- table.setSpacingAfter(10);
- table.setWidthPercentage(100);
-
- PdfPCell c1 = new PdfPCell(new Phrase(id + ") " + map.get(id).getQuestion(),FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c1.setPaddingTop(5);
- c1.setPaddingBottom(5);
- c1.setHorizontalAlignment(Element.ALIGN_CENTER);
- c1.setBorder(Rectangle.NO_BORDER);
- table.addCell(c1);
-
- c2 = new PdfPCell(new Phrase(" 1" +
- " 2" +
- " 3" +
- " 4" +
- " 5",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c2.setHorizontalAlignment(Element.ALIGN_LEFT);
- c2.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c2.setCellEvent(new Questionnaire(id));
- c2.setBorder(Rectangle.TOP);
- c2.setPaddingTop(2);
- c2.setPaddingBottom(5);
- c2.setBackgroundColor(new BaseColor(242, 242, 242));
-
- table.addCell(c2);
-
-
-
- document.add(table);
- }
-
-
- //----------------------------------------------------------------------------------
-
- // step 5
- document.close();
-
-
-
- }
-
- @Override
- public void cellLayout(PdfPCell cell, Rectangle position,
- PdfContentByte[] canvases) {
- PdfWriter writer = canvases[0].getPdfWriter();
- PdfFormField radiogroup = PdfFormField.createRadioButton(writer, true);
- radiogroup.setFieldName(String.valueOf(tf));
- System.out.println(tf);
-
- float llx = position.getLeft();
- float lly = position.getBottom();
-
- float cell_h = cell.getHeight();
- float cell_w = cell.getWidth();
-
- Rectangle rect;
-
- for(int i=1 ; i<=5; i++){
-
- rect = new Rectangle(llx + (3+i)*cell_w/12, lly+cell_h/2-6, llx + (3+i)*cell_w/12+12 ,lly+cell_h/2+6);
-
- RadioCheckField radio = new RadioCheckField(writer, rect, String.valueOf(i), String.valueOf(i));
- radio.setBorderColor(GrayColor.GRAYBLACK);
- radio.setCheckType(RadioCheckField.TYPE_SQUARE);
-
-
- try {
- PdfFormField field = radio.getRadioField();
- radiogroup.addKid(field);
-
- writer.addAnnotation(radiogroup);
- }
-
- catch(IOException ioe) {
- throw new ExceptionConverter(ioe);
- }
- catch(DocumentException de) {
- throw new ExceptionConverter(de);
- }
- }
-
-
-
- }
-
-
- public void writeAnswers(Map<String, String> answers) throws IOException, DocumentException{
-
- PdfReader reader = new PdfReader("outputPDF/temp.pdf");
- PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(pathOutputFile));
-
-
- AcroFields form = stamper.getAcroFields();
-
-
-
-
- Set<String> fields = form.getFields().keySet();
- for(String key: fields){
-
- if(answers.containsKey(key)){
- form.setField(key, answers.get(key));
- }
- }
- stamper.close();
- reader.close();
-
- }
-
-
-// /**
-// * Manipulates a PDF file src with the file dest as result
-// * @param src the original PDF
-// * @param dest the resulting PDF
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public void manipulatePdf(String src, String dest) throws IOException, DocumentException {
-// PdfReader reader = new PdfReader(src);
-// PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(dest));
-// AcroFields form = stamper.getAcroFields();
-// String[] radiostates = form.getAppearanceStates("language");
-// form.setField("language", radiostates[4]);
-// for (int i = 0; i < LANGUAGES.length; i++) {
-// String[] checkboxstates = form.getAppearanceStates("English");
-// form.setField(LANGUAGES[i], checkboxstates[i % 2 == 0 ? 1 : 0]);
-// }
-// stamper.close();
-// reader.close();
-//
-// PdfReader r = new PdfReader(dest);
-// AcroFields f = r.getAcroFields();
-// Set<String> fields = form.getFields().keySet();
-// for(String key: fields){
-// if(f.getFieldType(key)==AcroFields.FIELD_TYPE_RADIOBUTTON){
-// System.out.println(key);
-// System.out.println(f.getField(key));
-//
-// }
-// }
-// r.close();
-//
-// }
-//
-// /**
-// * Main method
-// * @param args no arguments needed
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public static void main(String[] args) throws IOException, DocumentException {
-// Questionnaire buttons = new Questionnaire();
-// buttons.createPdf(RESULT1);
-// buttons.manipulatePdf(RESULT1, RESULT2);
-// }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/4b/90e521e69ea7001417ceadf0100b5ef7 b/.metadata/.plugins/org.eclipse.core.resources/.history/4b/90e521e69ea7001417ceadf0100b5ef7
deleted file mode 100644
index 6237877..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/4b/90e521e69ea7001417ceadf0100b5ef7
+++ /dev/null
@@ -1,287 +0,0 @@
-package io;
-
-import java.awt.BorderLayout;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.util.Map;
-import java.util.Set;
-
-import com.itextpdf.text.BaseColor;
-import com.itextpdf.text.Document;
-import com.itextpdf.text.DocumentException;
-import com.itextpdf.text.Element;
-import com.itextpdf.text.ExceptionConverter;
-import com.itextpdf.text.Font;
-import com.itextpdf.text.Font.FontFamily;
-import com.itextpdf.text.FontFactory;
-import com.itextpdf.text.Image;
-import com.itextpdf.text.PageSize;
-import com.itextpdf.text.Paragraph;
-import com.itextpdf.text.Phrase;
-import com.itextpdf.text.Rectangle;
-import com.itextpdf.text.pdf.AcroFields;
-import com.itextpdf.text.pdf.BaseFont;
-import com.itextpdf.text.pdf.ColumnText;
-import com.itextpdf.text.pdf.GrayColor;
-import com.itextpdf.text.pdf.PdfBorderDictionary;
-import com.itextpdf.text.pdf.PdfContentByte;
-import com.itextpdf.text.pdf.PdfFormField;
-import com.itextpdf.text.pdf.PdfPCell;
-import com.itextpdf.text.pdf.PdfPCellEvent;
-import com.itextpdf.text.pdf.PdfPTable;
-import com.itextpdf.text.pdf.PdfReader;
-import com.itextpdf.text.pdf.PdfStamper;
-import com.itextpdf.text.pdf.PdfWriter;
-import com.itextpdf.text.pdf.RadioCheckField;
-import com.itextpdf.text.pdf.TextField;
-
-import framework.Question;
-
-public class Questionnaire implements PdfPCellEvent{
-
- /** The path output file. */
- String pathOutputFile;
-
- /** The document. */
- Document document;
-
- int tf;
-
- public Questionnaire(String path){
- pathOutputFile = path;
- document = new Document(PageSize.A4, 25, 25, 50, 50);
- }
- public Questionnaire(int tf){
- this.tf = tf;
- }
-
- /** The resulting PDF. */
- public static final String RESULT1 = "outputPDF/buttons.pdf";
- /** The resulting PDF. */
- public static final String RESULT2 = "outputPDF/buttons_filled.pdf";
- /** Path to a JavaScript resource. */
- public static final String RESOURCE = "res/buttons.js";
- /** Path to an image used as button icon. */
- public static final String IMAGE = "res/info.png";
- /** Possible values of a radio field / checkboxes */
- public static final String[] LANGUAGES = { "English", "German", "French", "Spanish", "Dutch" };
-
- /**
- * Creates a PDF document.
- * @param filename the path to the new PDF document
- * @throws DocumentException
- * @throws IOException
- */
- public void createPdf(Map<Integer, Question> map, Set<Integer> ids) throws IOException, DocumentException {
-
- @SuppressWarnings("unused")
- PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(pathOutputFile));
-
-
- document.open();
- Image logo = Image.getInstance("res/shcs_logo2.gif");
-
- logo.scalePercent(30f);
- float[] columnWidths1 = {0.2f, 0.8f};
- PdfPTable table_title = new PdfPTable(columnWidths1);
- PdfPCell c01 = new PdfPCell(logo, false);
- PdfPCell c02 = new PdfPCell(new Paragraph("Survery | Project #693",
- FontFactory.getFont(FontFactory.HELVETICA, 20, Font.BOLD, BaseColor.BLACK)));
- c01.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setHorizontalAlignment(Element.ALIGN_CENTER);
- c01.setBorder(Rectangle.NO_BORDER);
- c02.setBorder(Rectangle.NO_BORDER);
-
- table_title.addCell(c01);
- table_title.addCell(c02);
- table_title.setWidthPercentage(100);
- table_title.setSpacingBefore(0);
- table_title.setSpacingAfter(25);
- document.add(table_title);
-
-
- //----------------------------------------------------------------------------------
-
-
- PdfPTable table1 = new PdfPTable(1);
- table1.setWidthPercentage(100);
- PdfPCell c11 = new PdfPCell(new Phrase("Today you are receiving a pharmacogenetic report based on the genetic " +
- "information of your patient. Because the human genome contains extremely private and sensitive information" +
- " of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier," +
- " it must be managed with care. ",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.NORMAL, BaseColor.BLACK)));
- c11.setLeading(1.5f, 1.5f);
- c11.setPaddingBottom(8);
-
-
- table1.addCell(c11);
- table1.setSpacingAfter(10);
- document.add(table1);
-
-
- //----------------------------------------------------------------------------------
-
-// // step 4
-// // add the JavaScript
-// writer.addJavaScript(Utilities.readFileToString(RESOURCE));
-
- for(Integer id: ids){
- PdfPCell c2;
-
- PdfPTable table = new PdfPTable(1);
- table.setSpacingAfter(10);
- table.setWidthPercentage(100);
-
- PdfPCell c1 = new PdfPCell(new Phrase(id + ") " + map.get(id).getQuestion(),FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c1.setPaddingTop(5);
- c1.setPaddingBottom(5);
- c1.setHorizontalAlignment(Element.ALIGN_CENTER);
- c1.setBorder(Rectangle.NO_BORDER);
- table.addCell(c1);
-
- c2 = new PdfPCell(new Phrase(" 1" +
- " 2" +
- " 3" +
- " 4" +
- " 5",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c2.setHorizontalAlignment(Element.ALIGN_LEFT);
- c2.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c2.setCellEvent(new Questionnaire(id));
- c2.setBorder(Rectangle.TOP);
- c2.setPaddingTop(2);
- c2.setPaddingBottom(5);
- c2.setBackgroundColor(new BaseColor(242, 242, 242));
-
- table.addCell(c2);
-
-
-
- document.add(table);
- }
-
-
- //----------------------------------------------------------------------------------
-
- // step 5
- document.close();
-
- }
-
- @Override
- public void cellLayout(PdfPCell cell, Rectangle position,
- PdfContentByte[] canvases) {
- PdfWriter writer = canvases[0].getPdfWriter();
- PdfFormField radiogroup = PdfFormField.createRadioButton(writer, true);
- radiogroup.setFieldName(String.valueOf(tf));
- System.out.println(tf);
-
- float llx = position.getLeft();
- float lly = position.getBottom();
-
- float cell_h = cell.getHeight();
- float cell_w = cell.getWidth();
-
- Rectangle rect;
-
- for(int i=1 ; i<=5; i++){
-
- rect = new Rectangle(llx + (3+i)*cell_w/12, lly+cell_h/2-6, llx + (3+i)*cell_w/12+12 ,lly+cell_h/2+6);
-
- RadioCheckField radio = new RadioCheckField(writer, rect, null, String.valueOf(i));
- radio.setBorderColor(GrayColor.GRAYBLACK);
- radio.setCheckType(RadioCheckField.TYPE_SQUARE);
-
-
- try {
- PdfFormField field = radio.getRadioField();
- radiogroup.addKid(field);
-
- writer.addAnnotation(radiogroup);
- }
-
- catch(IOException ioe) {
- throw new ExceptionConverter(ioe);
- }
- catch(DocumentException de) {
- throw new ExceptionConverter(de);
- }
- }
-
-
-
- }
-
-
- public String getAnswers() throws IOException, DocumentException{
- PdfReader reader = new PdfReader(pathOutputFile);
-
- PdfStamper stamper = new PdfStamper(reader, new FileOutputStream("outputPDF/buttons_filled2.pdf"));
- AcroFields form = stamper.getAcroFields();
-
- StringBuilder sb = new StringBuilder();
-
-
- Set<String> fields = form.getFields().keySet();
- for(String key: fields){
- System.out.println("key = " + key);
- if(form.getFieldType(key)==AcroFields.FIELD_TYPE_RADIOBUTTON){
- sb.append(key);
- sb.append(",");
- sb.append(form.getField(key));
- sb.append(";");
- }
- }
- reader.close();
- stamper.close();
-
- return sb.toString();
-
- }
-
-
-// /**
-// * Manipulates a PDF file src with the file dest as result
-// * @param src the original PDF
-// * @param dest the resulting PDF
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public void manipulatePdf(String src, String dest) throws IOException, DocumentException {
-// PdfReader reader = new PdfReader(src);
-// PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(dest));
-// AcroFields form = stamper.getAcroFields();
-// String[] radiostates = form.getAppearanceStates("language");
-// form.setField("language", radiostates[4]);
-// for (int i = 0; i < LANGUAGES.length; i++) {
-// String[] checkboxstates = form.getAppearanceStates("English");
-// form.setField(LANGUAGES[i], checkboxstates[i % 2 == 0 ? 1 : 0]);
-// }
-// stamper.close();
-// reader.close();
-//
-// PdfReader r = new PdfReader(dest);
-// AcroFields f = r.getAcroFields();
-// Set<String> fields = form.getFields().keySet();
-// for(String key: fields){
-// if(f.getFieldType(key)==AcroFields.FIELD_TYPE_RADIOBUTTON){
-// System.out.println(key);
-// System.out.println(f.getField(key));
-//
-// }
-// }
-// r.close();
-//
-// }
-//
-// /**
-// * Main method
-// * @param args no arguments needed
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public static void main(String[] args) throws IOException, DocumentException {
-// Questionnaire buttons = new Questionnaire();
-// buttons.createPdf(RESULT1);
-// buttons.manipulatePdf(RESULT1, RESULT2);
-// }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/e2/70e70c886cac00141cc3aa66275e9c24 b/.metadata/.plugins/org.eclipse.core.resources/.history/4d/7089421f56b80014199a8682e9990d0e
similarity index 74%
copy from .metadata/.plugins/org.eclipse.core.resources/.history/e2/70e70c886cac00141cc3aa66275e9c24
copy to .metadata/.plugins/org.eclipse.core.resources/.history/4d/7089421f56b80014199a8682e9990d0e
index 8b30fef..7d96654 100644
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/e2/70e70c886cac00141cc3aa66275e9c24
+++ b/.metadata/.plugins/org.eclipse.core.resources/.history/4d/7089421f56b80014199a8682e9990d0e
@@ -1,927 +1,947 @@
package ui;
import io.ClientConnection;
import io.CommAdapter;
import io.Questionnaire;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Font;
import java.awt.SystemColor;
+import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowAdapter;
import java.io.File;
import java.io.IOException;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.Map;
import java.util.Set;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.Box;
import javax.swing.BoxLayout;
import javax.swing.ButtonGroup;
import javax.swing.DefaultComboBoxModel;
import javax.swing.GroupLayout;
import javax.swing.GroupLayout.Alignment;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JDialog;
import javax.swing.JFileChooser;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JRadioButton;
import javax.swing.JScrollPane;
import javax.swing.JSeparator;
import javax.swing.JTabbedPane;
import javax.swing.JTextArea;
import javax.swing.JTextPane;
import javax.swing.JTree;
import javax.swing.LayoutStyle.ComponentPlacement;
import javax.swing.SwingConstants;
import javax.swing.border.EmptyBorder;
import javax.swing.border.LineBorder;
import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.tree.TreeModel;
import javax.swing.tree.TreePath;
import org.jpedal.examples.viewer.Commands;
import org.jpedal.examples.viewer.Viewer;
import utils.ClientProperties;
import com.itextpdf.text.DocumentException;
import database.DBconnectorClient;
import framework.Diagnostic;
import framework.MedUnit;
import framework.Question;
import framework.reply.ReplySurvey;
import framework.test.TestName;
+import javax.swing.JSplitPane;
+import java.awt.event.MouseAdapter;
+import java.awt.event.MouseEvent;
/**
*
- * @author youssef, raisaro
+ * @author raisaro
*/
public class GUI extends javax.swing.JFrame {
private static final Logger LOGGER = Logger.getLogger(GUI.class.getName());
private static final long serialVersionUID = -4582280515597700650L;
// configuration
private ClientProperties props;
private JTree jTree;
private DBconnectorClient connectorClientDB;
private LinkedList<Integer> patients;
/** List of all relevant tests */
private HashMap<String, TestName> testsByName;
private Viewer viewer;
private JDialog dialog;
private JFrame frame;
private boolean survey_submitted;
private int close_trials;
private Map<Integer, ButtonGroup> buttonGroupMap;
private Questionnaire quest;
private Map<Integer, Question> map;
private Set<Integer> ids;
private Map<String,String> answers;
private Map<Integer, String> locations;
+ private JButton btnSubmitQuestionnaire;
/**
* Creates new form GUI
*/
public GUI(ClientProperties props){
+ setLocationByPlatform(true);
+ setIconImage(Toolkit.getDefaultToolkit().getImage("res/shcs_logo2_icon.png"));
frame = this;
this.props = props;
this.connectorClientDB = new DBconnectorClient(props.getDbMsAccess());
survey_submitted = false;
close_trials = 0;
try {
initComponents();
viewer = new Viewer(jScrollPane2, null);
viewer.setupViewer();
- // create questionnare
-
+ // create questionnare
+
System.out.println("#of questions: " + ids.size());
-// viewer_q = new Viewer(jScrollPane4, null);
-// viewer_q.setupViewer();
-//
-// // specify file you wish to open (JPedal handles getting the byte data)
-// String filepathReport = "outputPDF/buttons_filled.pdf";
-//
-// // open generated PDF
-// // object must be either String in full filepath, or
-// // File object which can be relative
-// Object[] input = new Object[]{ new File(filepathReport) };
-// viewer_q.executeCommand(Commands.OPENFILE, input);
-
- JButton btnSubmitQuestionnaire = new JButton("Submit Questionnaire");
+
+ btnSubmitQuestionnaire = new JButton("Submit Questionnaire");
btnSubmitQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
btnSubmitQuestionnaire.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
submitButtonActionPerformed(arg0);
}
});
JButton btnResetQuestionnaire = new JButton("Save as PDF");
btnResetQuestionnaire.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
savePDFButtonActionPerformed(arg0);
}
});
btnResetQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
JPanel panel_button = new JPanel();
panel_button.setLayout(new BoxLayout(panel_button, BoxLayout.X_AXIS));
lblNewLabel_3 = new JLabel("");
lblNewLabel_3.setIcon(new ImageIcon("res/location_icon.png"));
panel_button.add(lblNewLabel_3);
comboBox = new JComboBox<String>();
comboBox.setFont(new Font("Tahoma", Font.BOLD, 12));
comboBox.setModel(new DefaultComboBoxModel<String>(new String[] {"Select Location"}));
for(Integer id_loc : locations.keySet()){
comboBox.addItem(locations.get(id_loc));
}
panel_button.add(comboBox);
rigidArea = Box.createRigidArea(new Dimension(10, 0));
panel_button.add(rigidArea);
lblNewLabel_1 = new JLabel("");
lblNewLabel_1.setIcon(new ImageIcon("res/submit.png"));
panel_button.add(lblNewLabel_1);
panel_button.add(btnSubmitQuestionnaire);
panel_button.add(Box.createRigidArea(new Dimension(10,0)));
lblNewLabel_2 = new JLabel("");
lblNewLabel_2.setIcon(new ImageIcon("res/pdf.png"));
panel_button.add(lblNewLabel_2);
panel_button.add(btnResetQuestionnaire);
panel_button.setPreferredSize(new Dimension(211, 35));
panel_button.validate();
- JPanel panel_3 = new JPanel();
+ splitPane = new JSplitPane();
+ splitPane.setOneTouchExpandable(true);
+ splitPane.setResizeWeight(0.52);
+ splitPane.setOrientation(JSplitPane.VERTICAL_SPLIT);
+
GroupLayout gl_panel = new GroupLayout(panel);
gl_panel.setHorizontalGroup(
- gl_panel.createParallelGroup(Alignment.TRAILING)
+ gl_panel.createParallelGroup(Alignment.LEADING)
.addGroup(gl_panel.createSequentialGroup()
- .addGap(63)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addGap(103)
- .addComponent(panel_button, GroupLayout.DEFAULT_SIZE, 498, Short.MAX_VALUE)
- .addGap(241))
+ .addGap(165)
+ .addComponent(panel_button, GroupLayout.DEFAULT_SIZE, 421, Short.MAX_VALUE)
+ .addGap(242))
.addGroup(gl_panel.createSequentialGroup()
- .addGap(41)
- .addGroup(gl_panel.createParallelGroup(Alignment.TRAILING)
- .addComponent(jScrollPane4, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE)
- .addComponent(panel_1, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE))
- .addGap(32))
+ .addContainerGap()
+ .addComponent(splitPane, GroupLayout.DEFAULT_SIZE, 738, Short.MAX_VALUE)
+ .addGap(80))
);
gl_panel.setVerticalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
+ gl_panel.createParallelGroup(Alignment.TRAILING)
.addGroup(gl_panel.createSequentialGroup()
- .addGap(22)
- .addComponent(panel_1, GroupLayout.PREFERRED_SIZE, 235, GroupLayout.PREFERRED_SIZE)
- .addGap(37)
- .addComponent(jScrollPane4, GroupLayout.DEFAULT_SIZE, 379, Short.MAX_VALUE)
- .addGap(26)
- .addGroup(gl_panel.createParallelGroup(Alignment.LEADING)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(panel_button, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE)))
+ .addContainerGap()
+ .addComponent(splitPane, GroupLayout.DEFAULT_SIZE, 603, Short.MAX_VALUE)
+ .addPreferredGap(ComponentPlacement.RELATED)
+ .addComponent(panel_button, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE)
+ .addGap(11))
+ );
+
+ panel_1 = new JPanel();
+ panel_1.setMinimumSize(new Dimension(10, 0));
+ panel_1.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
+ panel_1.setBackground(SystemColor.menu);
+ splitPane.setLeftComponent(panel_1);
+
+ label_1 = new JLabel("");
+ label_1.setIcon(new ImageIcon("res/shcs_logo2_medium.gif"));
+
+ label_2 = new JLabel("");
+ label_2.setIcon(new ImageIcon("res/EPFL_logo.png"));
+
+ label_3 = new JLabel("");
+ label_3.setIcon(new ImageIcon("res/chuv_logo.png"));
+
+ label_4 = new JLabel("Dear Doctor,");
+ label_4.setFont(new Font("Tahoma", Font.BOLD, 14));
+
+ scrollPane = new JScrollPane();
+ scrollPane.setBorder(null);
+ GroupLayout gl_panel_1 = new GroupLayout(panel_1);
+ gl_panel_1.setHorizontalGroup(
+ gl_panel_1.createParallelGroup(Alignment.LEADING)
+ .addGroup(gl_panel_1.createSequentialGroup()
+ .addGap(25)
+ .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
+ .addComponent(label_3)
+ .addComponent(label_2)
+ .addComponent(label_1, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE))
+ .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
+ .addGroup(gl_panel_1.createSequentialGroup()
+ .addGap(20)
+ .addComponent(label_4)
+ .addGap(109))
+ .addGroup(gl_panel_1.createSequentialGroup()
+ .addGap(10)
+ .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 557, Short.MAX_VALUE)
+ .addContainerGap())))
);
- panel_3.setLayout(new BoxLayout(panel_3, BoxLayout.X_AXIS));
+ gl_panel_1.setVerticalGroup(
+ gl_panel_1.createParallelGroup(Alignment.LEADING)
+ .addGroup(gl_panel_1.createSequentialGroup()
+ .addContainerGap()
+ .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
+ .addGroup(gl_panel_1.createSequentialGroup()
+ .addComponent(label_4)
+ .addPreferredGap(ComponentPlacement.UNRELATED)
+ .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 416, Short.MAX_VALUE))
+ .addGroup(gl_panel_1.createSequentialGroup()
+ .addGap(9)
+ .addComponent(label_1, GroupLayout.PREFERRED_SIZE, 96, GroupLayout.PREFERRED_SIZE)
+ .addGap(18)
+ .addComponent(label_2)
+ .addGap(28)
+ .addComponent(label_3)))
+ .addContainerGap(114, GroupLayout.PREFERRED_SIZE))
+ );
+
+ introduction = new JTextPane();
+ introduction.setBackground(SystemColor.control);
+ introduction.setContentType("text/html");
+ introduction.setText("You are receiving a pharmacogenetics report based on the genome of your patient. Because of its highly sensitive nature, the genetic information you are provided with is processed in a privacy-preserving way. In particular, to protect patients\u2019 genomic privacy, their genetic and clinical data are stored encrypted at the SHCS data center, and securely analyzed through a sophisticated algorithm designed and developed at EPFL [1, 2]. The actual clinical and genetic information is never revealed. Only the authorized users, such as you, can get some processed information, for example, the interpreted final result of a pharmacogenetics risk test.\r\nThis mechanism protects the data against insiders or hackers trying to illegally access patients\u2019 medical information, while still allowing authorized users to obtain the information they need.\r\n<br><br>\r\n<b>To help us better understanding the importance of genomic privacy in the medical domain, and the impact of privacy-enhancing technologies in daily clinical practice, please complete the following survey. Answers are on a scale from 1 (Strongly Disagree) to 5 (Strongly Agree).</b>\r\n<font size=\"2\">\r\n<br><br>\r\nNote: this work is part of Project #693, funded by the Swiss HIV Cohort. PIs: Prof. A. Telenti, formerly at CHUV, and Prof. J.-P. Hubaux, at EPFL.\r\n<br><br>\r\n[1] J. L. Raisaro, E. Ayday, P. J. McLaren, J.-P. Hubaux, and A. Telenti. Privacy-Preserving HIV Pharmacogenetics: A Real Use Case of Genomic Data Protection. GenoPri 2014<br>\r\n[2] E. Ayday, J. L. Raisaro, J. Rougemont, and J.-P. Hubaux. Protecting and Evaluating Genomic Privacy in Medical Tests and Personalized Medicine. WPES 2013\r\n</font>");
+ scrollPane.setViewportView(introduction);
+ panel_1.setLayout(gl_panel_1);
+
+ jScrollPane4 = new JScrollPane();
+ jScrollPane4.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
+ splitPane.setRightComponent(jScrollPane4);
+
+
+ jScrollPane4.setViewportView(panel_2);
+ javax.swing.SwingUtilities.invokeLater(new Runnable() {
+ public void run() {
+ jScrollPane4.getVerticalScrollBar().setValue(0);
+ }
+ });
+ introduction.setCaretPosition(0);
panel.setLayout(gl_panel);
/////////////////////////////////////////////////////////
// display the tests available
// get the tests
HashMap<String, ArrayList<TestName>> testsRelevantByGroup = connectorClientDB.getRelevantTestsByGroup();
ArrayList<String> groups = new ArrayList<String>(testsRelevantByGroup.keySet());
// flatten hashmap into linkedlist
// tests = new LinkedList<>();
testsByName = new HashMap<String, TestName>();
for (String group : groups) {
// tests.addAll(testsRelevantByGroup.get(group));
for (TestName test : testsRelevantByGroup.get(group)) {
testsByName.put(test.getName(), test);
}
}
// define tree structure of the tests
DefaultMutableTreeNode root = new DefaultMutableTreeNode("All");
for (String group : groups) {
DefaultMutableTreeNode child = new DefaultMutableTreeNode(group);
root.add(child);
for (TestName test : testsRelevantByGroup.get(group)) {
DefaultMutableTreeNode grandChild = new DefaultMutableTreeNode(test.getName());
child.add(grandChild);
}
}
// define swing object
jTree = new JTree(root);
+ jTree.setFont(new Font("Tahoma", Font.PLAIN, 11));
for(int i=0;i<jTree.getRowCount();i++){
jTree.expandRow(i);
}
jScrollPane3.setViewportView(jTree);
// jTree.addTreeSelectionListener(new TreeSelectionListener() {
//
// @Override
// public void valueChanged(TreeSelectionEvent e) {
// tp = jTree.getSelectionPaths();
// }
// });
jScrollPane3.setViewportView(jTree);
/////////////////////////////////////////////////////////
// display the patients registered
patients = connectorClientDB.getPatients();
for (Integer patientId : patients) {
jComboBox1.addItem(patientId.toString());
}
} catch (SQLException ex) {
Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex);
ex.printStackTrace();
// } catch (IOException e) {
// // TODO Auto-generated catch block
// e.printStackTrace();
// } catch (DocumentException e) {
// // TODO Auto-generated catch block
// e.printStackTrace();
}
}
/**
* 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() {
-
- jPanel1 = new javax.swing.JPanel();
- jLabel2 = new javax.swing.JLabel();
- jLabel1 = new javax.swing.JLabel();
jPanel2 = new javax.swing.JPanel();
jComboBox1 = new javax.swing.JComboBox<String>();
+ jComboBox1.setFont(new Font("Tahoma", Font.BOLD, 12));
jButton1 = new javax.swing.JButton();
jButton1.setFont(new Font("Tahoma", Font.BOLD, 12));
jLabel3 = new javax.swing.JLabel();
jLabel4 = new javax.swing.JLabel();
jScrollPane3 = new javax.swing.JScrollPane();
jScrollPane2 = new javax.swing.JScrollPane();
+ jScrollPane2.setMinimumSize(new Dimension(5, 5));
jMenuBar1 = new javax.swing.JMenuBar();
jMenu1 = new javax.swing.JMenu();
jMenuItem1 = new javax.swing.JMenuItem();
jMenu2 = new javax.swing.JMenu();
dialog = new JDialog();
tabbedPane = new JTabbedPane(JTabbedPane.TOP);
+ tabbedPane.setFont(new Font("Tahoma", Font.BOLD, 12));
setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
addWindowListener(new WindowAdapter() {
@Override
public void windowClosing(java.awt.event.WindowEvent windowEvent) {
if (!survey_submitted && close_trials <= 2){
JOptionPane.showMessageDialog(frame, "Before closing the application, please fill in and submit the questionnaire.");
close_trials++;
tabbedPane.setSelectedIndex(1);
}else{
System.exit(0);
}
}
});
- setTitle("HIV Pharmacogenomics\n");
-
- jLabel2.setIcon(new javax.swing.ImageIcon("res/shcs_logo2_small.gif")); // NOI18N
-
- jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
- jLabel1.setText("HIV Pharmacogenomics | Project #693");
-
- javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
- jPanel1.setLayout(jPanel1Layout);
- jPanel1Layout.setHorizontalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap(71, Short.MAX_VALUE)
- .addComponent(jLabel1)
- .addGap(18, 18, 18)
- .addComponent(jLabel2))
- );
- jPanel1Layout.setVerticalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jLabel1)
- .addGap(11, 11, 11))
- .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)
- );
+ setTitle("Privacy-Preserving HIV Pharmacogenomics\r\n");
jPanel2.setBackground(new java.awt.Color(255, 255, 255));
jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<String>(new String[]{"Select Patient"}));
jButton1.setText("Run Test");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});
JLabel lblNewLabel = new JLabel("");
lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
lblNewLabel.setIcon(new javax.swing.ImageIcon("res/gears.png"));
javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
jPanel2Layout.setHorizontalGroup(
jPanel2Layout.createParallelGroup(Alignment.LEADING)
.addComponent(jComboBox1, 0, 248, Short.MAX_VALUE)
.addGroup(jPanel2Layout.createSequentialGroup()
.addGap(75)
.addGroup(jPanel2Layout.createParallelGroup(Alignment.TRAILING)
.addComponent(jButton1)
.addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 75, GroupLayout.PREFERRED_SIZE))
.addContainerGap(98, Short.MAX_VALUE))
);
jPanel2Layout.setVerticalGroup(
jPanel2Layout.createParallelGroup(Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addComponent(jComboBox1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
.addPreferredGap(ComponentPlacement.RELATED, 223, Short.MAX_VALUE)
.addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE)
.addPreferredGap(ComponentPlacement.RELATED)
.addComponent(jButton1)
.addGap(19))
);
jPanel2.setLayout(jPanel2Layout);
jLabel3.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
jLabel3.setText("Select Patient");
jLabel4.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
jLabel4.setText("Select Test");
jScrollPane3.setBackground(new java.awt.Color(255, 255, 255));
jMenu1.setText("File");
jMenuItem1.setText("Exit");
jMenu1.add(jMenuItem1);
jMenuBar1.add(jMenu1);
jMenu2.setText("Edit");
jMenuBar1.add(jMenu2);
setJMenuBar(jMenuBar1);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
layout.setHorizontalGroup(
layout.createParallelGroup(Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addGroup(layout.createParallelGroup(Alignment.LEADING, false)
- .addComponent(jLabel3)
.addComponent(jLabel4)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, 244, Short.MAX_VALUE)
- .addComponent(jScrollPane3))
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 970, Short.MAX_VALUE))
- .addContainerGap())
+ .addComponent(jLabel3)
+ .addComponent(jScrollPane3, GroupLayout.DEFAULT_SIZE, 234, Short.MAX_VALUE)
+ .addComponent(jPanel2, 0, 0, Short.MAX_VALUE))
+ .addPreferredGap(ComponentPlacement.RELATED)
+ .addComponent(tabbedPane, GroupLayout.PREFERRED_SIZE, 751, Short.MAX_VALUE)
+ .addGap(19))
);
layout.setVerticalGroup(
- layout.createParallelGroup(Alignment.LEADING)
+ layout.createParallelGroup(Alignment.TRAILING)
.addGroup(layout.createSequentialGroup()
+ .addContainerGap()
.addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel4))
- .addPreferredGap(ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(Alignment.LEADING)
+ .addComponent(tabbedPane, Alignment.LEADING, GroupLayout.PREFERRED_SIZE, 687, Short.MAX_VALUE)
.addGroup(layout.createSequentialGroup()
- .addComponent(jScrollPane3, GroupLayout.PREFERRED_SIZE, 388, GroupLayout.PREFERRED_SIZE)
+ .addComponent(jLabel4)
+ .addPreferredGap(ComponentPlacement.RELATED)
+ .addComponent(jScrollPane3, GroupLayout.PREFERRED_SIZE, 356, GroupLayout.PREFERRED_SIZE)
.addPreferredGap(ComponentPlacement.RELATED)
.addComponent(jLabel3)
.addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 785, Short.MAX_VALUE))
+ .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, 283, Short.MAX_VALUE)))
.addContainerGap())
);
jScrollPane2.setAutoscrolls(true);
jScrollPane3.setAutoscrolls(true);
tabbedPane.addTab("Report", new ImageIcon("res/report_icon.gif"), jScrollPane2, null);
tabbedPane.setBackgroundAt(0, new Color(255, 255, 255));
panel = new JPanel();
+ panel.setPreferredSize(new Dimension(0, 0));
tabbedPane.addTab("Survey", new ImageIcon("res/survey_icon.png"), panel, null);
tabbedPane.setBackgroundAt(1, new Color(255, 255, 255));
tabbedPane.setEnabledAt(1, true);
-
- panel_1 = new JPanel();
- panel_1.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
- panel_1.setBackground(SystemColor.control);
-
- JLabel label = new JLabel("");
- label.setIcon(new ImageIcon("res/shcs_logo2_medium.gif"));
-
- lblDearDoctor = new JLabel("Dear Doctor,");
- lblDearDoctor.setFont(new Font("Tahoma", Font.BOLD, 14));
-
- JScrollPane scrollPane = new JScrollPane();
- scrollPane.setBorder(null);
- GroupLayout gl_panel_1 = new GroupLayout(panel_1);
- gl_panel_1.setHorizontalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(Alignment.LEADING, gl_panel_1.createSequentialGroup()
- .addGap(25)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addComponent(lblDearDoctor)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 661, Short.MAX_VALUE))
- .addContainerGap())
- );
- gl_panel_1.setVerticalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addContainerGap()
- .addComponent(lblDearDoctor)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 203, Short.MAX_VALUE))
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(36)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 96, GroupLayout.PREFERRED_SIZE)))
- .addContainerGap())
- );
-
- JTextPane txtpnTodayYouAre = new JTextPane();
- txtpnTodayYouAre.setBorder(null);
- txtpnTodayYouAre.setText("Today you are receiving a pharmacogenetics report based on the genome of your patient. Because of its highly sensitive nature, " +
- "the genetic information you are provided with is processed in a privacy-preserving way. In particular, to protect patients’ genomic privacy, " +
- "their genetic and clinical data is stored encrypted at the SHCS data center, and securely analyzed through a sophisticated algorithm designed and developed at EPFL [1, 2]. " +
- "The actual clinical and genetic information is never revealed. Only the authorized users, such as you, can get some processed information, for example, the final result of a " +
- "pharmacogenetics risk test.\nThis mechanism protects the data against insiders or hackers trying to illegally access patients’ medical information, while still allowing authorized " +
- "users to obtain the information they need." +
- "\n\nTo help us understanding the importance of genomic privacy in the medical domain, and the impact of privacy-enhancing technologies in daily clinical practice, please complete the following survey.");
- txtpnTodayYouAre.setFont(new Font("Tahoma", Font.PLAIN, 13));
- txtpnTodayYouAre.setEditable(false);
- txtpnTodayYouAre.setBackground(SystemColor.control);
- scrollPane.setViewportView(txtpnTodayYouAre);
- panel_1.setLayout(gl_panel_1);
- jScrollPane4 = new javax.swing.JScrollPane();
- jScrollPane4.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
getContentPane().setLayout(layout);
buttonGroupMap = new HashMap<Integer, ButtonGroup>();
ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
CommAdapter commHandlerAdapter = new CommAdapter(connection);
ReplySurvey replySurvey = commHandlerAdapter.callServiceSurvey();
map = replySurvey.getQuestions();
ids = map.keySet();
locations = replySurvey.getLocations();
+ buttonGroupMap = new HashMap<Integer, ButtonGroup>();
+
panel_2 = new JPanel();
- panel_2.setBackground(Color.WHITE);
+ panel_2.addMouseListener(new MouseAdapter() {
+ @Override
+ public void mouseClicked(MouseEvent arg0) {
+ splitPane.setDividerLocation(0.0);
+ }
+ });
panel_2.setBorder(null);
- jScrollPane4.setViewportView(panel_2);
+ panel_2.setBackground(Color.WHITE);
panel_2.setLayout(new BoxLayout(panel_2, BoxLayout.Y_AXIS));
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
-
+
+ JLabel expand_icon = new JLabel("");
+ expand_icon.setVerticalAlignment(SwingConstants.TOP);
+ expand_icon.setHorizontalAlignment(SwingConstants.LEFT);
+ expand_icon.setAlignmentY(Component.TOP_ALIGNMENT);
+ expand_icon.setAlignmentX(Component.LEFT_ALIGNMENT);
+ expand_icon.setIcon(new ImageIcon("C:\\Users\\raisaro\\workspace\\yussef\\project\\PPPClient\\res\\expand_icon.jpg"));
+ JPanel first_row_panel = new JPanel();
+ first_row_panel.setLayout(new BoxLayout(first_row_panel, BoxLayout.X_AXIS));
+ first_row_panel.add(expand_icon);
+ panel_2.add(first_row_panel);
+
+ //dynamic question generation
int type = 0;
for(Integer id : ids){
ButtonGroup group = new ButtonGroup();
- JRadioButton r1 = new JRadioButton("1"); r1.setActionCommand("1"); r1.setBackground(Color.WHITE);
- JRadioButton r2 = new JRadioButton("2"); r2.setActionCommand("2"); r2.setBackground(Color.WHITE);
- JRadioButton r3 = new JRadioButton("3"); r3.setActionCommand("3"); r3.setBackground(Color.WHITE);
- JRadioButton r4 = new JRadioButton("4"); r4.setActionCommand("4"); r4.setBackground(Color.WHITE);
- JRadioButton r5 = new JRadioButton("5"); r5.setActionCommand("5"); r5.setBackground(Color.WHITE);
+ JRadioButton r1 = new JRadioButton("1"); r1.setActionCommand("1"); r1.setBackground(Color.WHITE);
+ JRadioButton r2 = new JRadioButton("2"); r2.setActionCommand("2"); r2.setBackground(Color.WHITE);
+ JRadioButton r3 = new JRadioButton("3"); r3.setActionCommand("3"); r3.setBackground(Color.WHITE);
+ JRadioButton r4 = new JRadioButton("4"); r4.setActionCommand("4"); r4.setBackground(Color.WHITE);
+ JRadioButton r5 = new JRadioButton("5"); r5.setActionCommand("5"); r5.setBackground(Color.WHITE);
group.add(r1);
group.add(r2);
group.add(r3);
group.add(r4);
group.add(r5);
JPanel radio_panel = new JPanel();
radio_panel.setLayout((new BoxLayout(radio_panel, BoxLayout.X_AXIS)));
radio_panel.setBackground(Color.WHITE);
radio_panel.setAlignmentX(Component.CENTER_ALIGNMENT);
radio_panel.add(r1);
radio_panel.add(r2);
radio_panel.add(r3);
radio_panel.add(r4);
radio_panel.add(r5);
radio_panel.doLayout();
radio_panel.setPreferredSize(radio_panel.getPreferredSize());
JTextArea question = new JTextArea(id + ") " + map.get(id).getQuestion());
question.setEditable(false);
question.setLineWrap(true);
question.setWrapStyleWord(true);
question.setFont(new Font("Tahoma", Font.PLAIN, 13));
JPanel row_panel = new JPanel();
row_panel.setLayout(new BoxLayout(row_panel, BoxLayout.X_AXIS));
row_panel.add(Box.createRigidArea(new Dimension(20,0)));
row_panel.add(question);
row_panel.add(Box.createRigidArea(new Dimension(20,0)));
row_panel.add(radio_panel);
row_panel.add(Box.createRigidArea(new Dimension(20,0)));
row_panel.setBackground(Color.WHITE);
int type_new = map.get(id).getType();
if(type_new != type){
type = type_new;
JLabel question_group = new JLabel("");
switch(type){
case 1:
question_group.setText("Clinical Utility");
break;
case 2:
question_group.setText("Privacy Concerns");
break;
case 3:
question_group.setText("Usability Assessment");
break;
}
question_group.setAlignmentX(Component.CENTER_ALIGNMENT);
question_group.setFont(new Font("Tahoma", Font.BOLD, 13));
+ panel_2.add(new JSeparator());
panel_2.add(Box.createRigidArea(new Dimension(0,5)));
panel_2.add(question_group);
panel_2.add(Box.createRigidArea(new Dimension(0,5)));
panel_2.add(new JSeparator());
panel_2.add(Box.createRigidArea(new Dimension(0,5)));
}
panel_2.add(Box.createRigidArea(new Dimension(0,5)));
panel_2.add(row_panel);
panel_2.add(Box.createRigidArea(new Dimension(0,5)));
// panel_2.add(radio_panel);
- panel_2.add(new JSeparator());
+// panel_2.add(new JSeparator());
panel_2.add(Box.createRigidArea(new Dimension(0,5)));
// panel_2.setPreferredSize(panel_2.getPreferredSize());
buttonGroupMap.put(id, group);
}
+
+
+
-
- this.setSize(new Dimension(1300, 865));
-// pack();
+ this.setSize(new Dimension(1118, 768));
+// this.pack();
}// </editor-fold>//GEN-END:initComponents
private void submitButtonActionPerformed(java.awt.event.ActionEvent evt){
try{
answers = new HashMap<String, String>();
StringBuilder sb = new StringBuilder();
Set<Integer> questions_id = buttonGroupMap.keySet();
for(Integer q: questions_id){
ButtonGroup bg = buttonGroupMap.get(q);
sb.append(q).append(",");
sb.append(bg.getSelection().getActionCommand()).append(";");
answers.put(q.toString(),bg.getSelection().getActionCommand());
}
String answer = sb.toString();
Integer id_loc = null;
for(Integer i: locations.keySet()){
if(locations.get(i).equals(comboBox.getSelectedItem().toString()))
id_loc = i;
}
String id_p;
if(jComboBox1.getSelectedItem().toString().equals("Select Patient"))
id_p = "0";
else
id_p = jComboBox1.getSelectedItem().toString();
ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
CommAdapter commHandlerAdapter = new CommAdapter(connection);
String reply = commHandlerAdapter.callServiceSurveyAnswer(answer, id_loc.toString(), id_p);
if(reply.equals("1")){
survey_submitted = true;
dialog.setVisible(false);
JOptionPane.showMessageDialog(
this,
"Congrats! Your aswers have been sent to the SHCS datacenter.",
"Information Message",
JOptionPane.INFORMATION_MESSAGE);
+ btnSubmitQuestionnaire.setEnabled(false);
}
else{
throw new IOException();
}
} catch (NullPointerException e){
LOGGER.log(Level.SEVERE, null, e);
dialog.setVisible(false);
JOptionPane.showMessageDialog(
this,
"Please respond to all the questions!",
"Error Message",
JOptionPane.ERROR_MESSAGE);
} catch (IOException e) {
LOGGER.log(Level.SEVERE, null, e);
dialog.setVisible(false);
JOptionPane.showMessageDialog(
this,
"The SHCS datacenter does not respond. Please save the survey and send it to jean.raisaro@epfl.ch.",
"Error Message",
JOptionPane.ERROR_MESSAGE);
}
}
private void savePDFButtonActionPerformed(java.awt.event.ActionEvent evt){
try {
answers = new HashMap<String, String>();
Set<Integer> questions_id = buttonGroupMap.keySet();
for(Integer q: questions_id){
ButtonGroup bg = buttonGroupMap.get(q);
answers.put(q.toString(),bg.getSelection().getActionCommand());
}
JFileChooser chooser = new JFileChooser();
// Note: source for ExampleFileFilter can be found in FileChooserDemo,
// under the demo/jfc directory in the JDK.
int returnVal = chooser.showSaveDialog(this);
System.out.println(returnVal);
if(returnVal == JFileChooser.APPROVE_OPTION) {
System.out.println("You chose to open this file: " +
chooser.getSelectedFile().getPath());
quest = new Questionnaire(chooser.getSelectedFile().getPath() + ".pdf");
quest.createPdf(map, ids);
quest.writeAnswers(answers);
survey_submitted = true;
}else{
quest = new Questionnaire("outputPDF/survey.pdf");
quest.createPdf(map, ids);
quest.writeAnswers(answers);
survey_submitted = true;
}
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (DocumentException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (NullPointerException e) {
LOGGER.log(Level.SEVERE, null, e);
dialog.setVisible(false);
JOptionPane.showMessageDialog(
this,
"Please respond to all the questions!",
"Error Message",
JOptionPane.ERROR_MESSAGE);
}
}
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
JPanel contentPanel = new JPanel();
- dialog.setBounds(100, 100, 410, 80);
+ dialog.setBounds(100, 100, 420, 100);
dialog.getContentPane().setLayout(new BorderLayout());
contentPanel.setLayout(new FlowLayout());
contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
dialog.getContentPane().add(contentPanel, BorderLayout.CENTER);
{
- JLabel label = new JLabel("Please wait...The overall computation can take few seconds");
+ JLabel label = new JLabel("Please wait...The overall computation can take some seconds!");
+ JLabel label2 = new JLabel("Cryptographic operations are being performed at the SHCS...");
label.setHorizontalAlignment(SwingConstants.CENTER);
- label.setFont(new Font("Tahoma", Font.PLAIN, 12));
+ label.setFont(new Font("Tahoma", Font.BOLD, 12));
+ label2.setHorizontalAlignment(SwingConstants.CENTER);
+ label2.setFont(new Font("Tahoma", Font.PLAIN, 12));
contentPanel.add(label);
+ contentPanel.add(label2);
}
{
JPanel buttonPane = new JPanel();
buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
dialog.getContentPane().add(buttonPane, BorderLayout.SOUTH);
}
dialog.setLocationRelativeTo(this);
dialog.setVisible(true);
GUIWorker gw = new GUIWorker(this, props);
Thread t = new Thread(gw);
t.start();
}
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JButton jButton1;
private javax.swing.JComboBox<String> jComboBox1;
- private javax.swing.JLabel jLabel1;
- private javax.swing.JLabel jLabel2;
private javax.swing.JLabel jLabel3;
private javax.swing.JLabel jLabel4;
private javax.swing.JMenu jMenu1;
private javax.swing.JMenu jMenu2;
private javax.swing.JMenuBar jMenuBar1;
private javax.swing.JMenuItem jMenuItem1;
- private javax.swing.JPanel jPanel1;
private javax.swing.JPanel jPanel2;
private javax.swing.JScrollPane jScrollPane3;
private javax.swing.JTabbedPane tabbedPane;
private javax.swing.JScrollPane jScrollPane2;
- private javax.swing.JScrollPane jScrollPane4;
private JPanel panel;
- private JPanel panel_1;
- private JPanel panel_2;
- private JLabel lblDearDoctor;
private JLabel lblNewLabel_1;
private JLabel lblNewLabel_2;
private JLabel lblNewLabel_3;
private JComboBox<String> comboBox;
private Component rigidArea;
+ private JSplitPane splitPane;
+ private JPanel panel_1;
+ private JLabel label_1;
+ private JLabel label_2;
+ private JLabel label_3;
+ private JLabel label_4;
+ private JScrollPane scrollPane;
+ private JTextPane introduction;
+ private JScrollPane jScrollPane4;
+ private JPanel panel_2;
// End of variables declaration//GEN-END:variables
class GUIWorker implements Runnable{
private JFrame mainFrame;
private ClientProperties props;
private MedUnit mu;
public GUIWorker(GUI gui, ClientProperties props) {
mainFrame = gui;
this.props = props;
this.mu = new MedUnit(props, 0);
}
@Override
public void run() {
try{
int patientId = Integer.parseInt((String) jComboBox1.getSelectedItem());
// convert selected tests to test identifiers
ArrayList<TestName> selectedTests = new ArrayList<TestName>();
for (String currentName : getSelectedTests()) {
TestName currentTest = testsByName.get(currentName);
if (currentTest == null) {
throw new IllegalStateException("Trying to run unknown test: " + currentTest);
}
selectedTests.add(currentTest);
}
// run tests
Diagnostic diagnostic = mu.runTests(patientId, selectedTests);
// warn for tests with missing material
warnFailedTests(diagnostic, selectedTests);
// create report
mu.createReport(patientId, selectedTests, diagnostic);
dialog.setVisible(false);
// specify file you wish to open (JPedal handles getting the byte data)
String filepathReport = props.getPathPDF() + patientId + ".pdf";
// open generated PDF
// object must be either String in full filepath, or
// File object which can be relative
Object[] input = new Object[]{ new File(filepathReport) };
viewer.executeCommand(Commands.OPENFILE, input);
// display CAD result as bar plot
if (diagnostic.hasCAD()) {
System.out.println("CAD = " + diagnostic.getResultCAD());
BarPlotFrame frame = new BarPlotFrame(diagnostic.getResultCAD(), patientId);
frame.setVisible(true);
frame.setAlwaysOnTop(true);
}
} catch (SQLException e) {
LOGGER.log(Level.SEVERE, null, e);
displayError("Not able to connect to service. Please try again.");
} catch (IOException e) {
LOGGER.log(Level.SEVERE, null, e);
displayError("Not able to connect to service. Please try again.");
} catch (NullPointerException e){
LOGGER.log(Level.SEVERE, null, e);
- displayError("Please select a patient.");
+ displayError("Please select a patient and one or multiple tests.");
+ } catch (NumberFormatException e){
+ LOGGER.log(Level.SEVERE, null, e);
+ displayError("Please select a patient and one or multiple tests.");
}
}
private void warnFailedTests(Diagnostic diagnostic, ArrayList<TestName> selectedTests) {
ArrayList<Integer> failedTests = diagnostic.getInvalidTests();
if (!failedTests.isEmpty()) {
String msg = "Could not complete tests: ";
boolean first = true;
for (TestName testName : selectedTests) {
if (failedTests.contains(testName.getId())) {
if (first) {
first = false;
} else {
msg += ", ";
}
msg += testName.getName();
}
}
displayError(msg);
}
}
private void displayError(String msg) {
dialog.setVisible(false);
JOptionPane.showMessageDialog(
mainFrame,
msg,
"Error Message",
JOptionPane.ERROR_MESSAGE);
}
private ArrayList<String> getSelectedTests() {
ArrayList<String> tests = new ArrayList<String>();
for (TreePath treePath : jTree.getSelectionPaths()) {
tests.addAll(getChildrenTests(jTree.getModel(), treePath.getLastPathComponent()));
}
return tests;
}
private ArrayList<String> getChildrenTests(TreeModel model, Object node) {
ArrayList<String> tests = new ArrayList<String>();
if (model.isLeaf(node)) { // leaf
DefaultMutableTreeNode leaf = (DefaultMutableTreeNode) node;
tests.add(leaf.toString());
}
else { // iterate over children
for (int i = 0; i < model.getChildCount(node); i++) {
tests.addAll(getChildrenTests(model, model.getChild(node, i)));
}
}
return tests;
}
}
}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/4d/b0e6decf0ea70014162f978bbd19228b b/.metadata/.plugins/org.eclipse.core.resources/.history/4d/b0e6decf0ea70014162f978bbd19228b
deleted file mode 100644
index e1f60b1..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/4d/b0e6decf0ea70014162f978bbd19228b
+++ /dev/null
@@ -1,258 +0,0 @@
-package io;
-
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.util.Map;
-import java.util.Set;
-
-import com.itextpdf.text.BaseColor;
-import com.itextpdf.text.Document;
-import com.itextpdf.text.DocumentException;
-import com.itextpdf.text.Element;
-import com.itextpdf.text.ExceptionConverter;
-import com.itextpdf.text.Font;
-import com.itextpdf.text.Font.FontFamily;
-import com.itextpdf.text.FontFactory;
-import com.itextpdf.text.Image;
-import com.itextpdf.text.PageSize;
-import com.itextpdf.text.Paragraph;
-import com.itextpdf.text.Phrase;
-import com.itextpdf.text.Rectangle;
-import com.itextpdf.text.pdf.BaseFont;
-import com.itextpdf.text.pdf.ColumnText;
-import com.itextpdf.text.pdf.GrayColor;
-import com.itextpdf.text.pdf.PdfBorderDictionary;
-import com.itextpdf.text.pdf.PdfContentByte;
-import com.itextpdf.text.pdf.PdfFormField;
-import com.itextpdf.text.pdf.PdfPCell;
-import com.itextpdf.text.pdf.PdfPCellEvent;
-import com.itextpdf.text.pdf.PdfPTable;
-import com.itextpdf.text.pdf.PdfWriter;
-import com.itextpdf.text.pdf.RadioCheckField;
-import com.itextpdf.text.pdf.TextField;
-
-import framework.Question;
-
-public class Questionnaire implements PdfPCellEvent{
-
- /** The path output file. */
- String pathOutputFile;
-
- /** The document. */
- Document document;
-
- int tf;
-
- public Questionnaire(String path){
- pathOutputFile = path;
- document = new Document(PageSize.A4, 25, 25, 50, 50);
- }
- public Questionnaire(int tf){
- this.tf = tf;
- }
-
- /** The resulting PDF. */
- public static final String RESULT1 = "outputPDF/buttons.pdf";
- /** The resulting PDF. */
- public static final String RESULT2 = "outputPDF/buttons_filled.pdf";
- /** Path to a JavaScript resource. */
- public static final String RESOURCE = "res/buttons.js";
- /** Path to an image used as button icon. */
- public static final String IMAGE = "res/info.png";
- /** Possible values of a radio field / checkboxes */
- public static final String[] LANGUAGES = { "English", "German", "French", "Spanish", "Dutch" };
-
- /**
- * Creates a PDF document.
- * @param filename the path to the new PDF document
- * @throws DocumentException
- * @throws IOException
- */
- public void createPdf(Map<Integer, Question> map, Set<Integer> ids) throws IOException, DocumentException {
-
- @SuppressWarnings("unused")
- PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(pathOutputFile));
-
-
- document.open();
- Image logo = Image.getInstance("res/shcs_logo2.gif");
-
- logo.scalePercent(30f);
- float[] columnWidths1 = {0.2f, 0.8f};
- PdfPTable table_title = new PdfPTable(columnWidths1);
- PdfPCell c01 = new PdfPCell(logo, false);
- PdfPCell c02 = new PdfPCell(new Paragraph("HIV Pharmacogenomic report | Project #693 | Survey",
- FontFactory.getFont(FontFactory.HELVETICA, 20, Font.BOLD, BaseColor.BLACK)));
- c01.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c01.setBorder(Rectangle.NO_BORDER);
- c02.setBorder(Rectangle.NO_BORDER);
-
- table_title.addCell(c01);
- table_title.addCell(c02);
- table_title.setWidthPercentage(100);
- table_title.setSpacingBefore(0);
- table_title.setSpacingAfter(25);
- document.add(table_title);
-
-
- //----------------------------------------------------------------------------------
-
-
- PdfPTable table1 = new PdfPTable(1);
- table1.setWidthPercentage(100);
- PdfPCell c11 = new PdfPCell(new Phrase("Today you are receiving a pharmacogenetic report based on the genetic " +
- "information of your patient. Because the human genome contains extremely private and sensitive information" +
- " of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier," +
- " it must be managed with care. ",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.NORMAL, BaseColor.BLACK)));
- c11.setLeading(1.5f, 1.5f);
- c11.setPaddingBottom(8);
-
-
- table1.addCell(c11);
- table1.setSpacingAfter(10);
- document.add(table1);
-
-
- //----------------------------------------------------------------------------------
-
-// // step 4
-// // add the JavaScript
-// writer.addJavaScript(Utilities.readFileToString(RESOURCE));
-
-
-
-
- // add the radio buttons
- for(Integer id: ids){
- PdfPCell c2;
-
- PdfPTable table = new PdfPTable(1);
- table.setSpacingAfter(10);
- table.setWidthPercentage(100);
-// table.setWidths(new int[]{ 1, 2});
-
- PdfPCell c1 = new PdfPCell(new Phrase(id + ") " + map.get(id).getQuestion(),FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c1.setPaddingTop(5);
- c1.setPaddingBottom(5);
- c1.setHorizontalAlignment(Element.ALIGN_CENTER);
- c1.setBorder(Rectangle.BOX);
- table.addCell(c1);
-
- c2 = new PdfPCell(new Phrase(" 1" +
- " 2" +
- " 3" +
- " 4" +
- " 5",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c2.setHorizontalAlignment(Element.ALIGN_LEFT);
- c2.setCellEvent(new Questionnaire(id));
-// c2.setLeading(1.5f, 1.5f);
- c2.setBorderColorTop(BaseColor.WHITE);
- c2.setPaddingTop(2);
- c2.setPaddingBottom(5);
- c2.setBackgroundColor(new BaseColor(242, 242, 242));
-
- table.addCell(c2);
-
-
-
- document.add(table);
- }
-
-//
- // step 5
- document.close();
-
- }
-
- @Override
- public void cellLayout(PdfPCell cell, Rectangle position,
- PdfContentByte[] canvases) {
- PdfWriter writer = canvases[0].getPdfWriter();
- PdfFormField radiogroup = PdfFormField.createRadioButton(writer, true);
- radiogroup.setFieldName(String.valueOf(tf));
-
- float llx = position.getLeft();
- float lly = position.getBottom();
- float urx = position.getRight();
- float ury = position.getTop();
- float cell_h = cell.getHeight();
- float cell_w = cell.getWidth();
-
- Rectangle rect;
-
- for(int i=1 ; i<=5; i++){
-
-
- rect = new Rectangle(llx + (3+i)*cell_w/12, lly+cell_h/2-6, llx + (3+i)*cell_w/12+12 ,lly+cell_h/2+6);
-
- RadioCheckField radio = new RadioCheckField(writer, rect, null, String.valueOf(i));
- radio.setBorderColor(GrayColor.GRAYBLACK);
- radio.setCheckType(RadioCheckField.TYPE_SQUARE);
-
-
- try {
- PdfFormField field = radio.getRadioField();
- radiogroup.addKid(field);
-
- writer.addAnnotation(radiogroup);
- }
-
- catch(IOException ioe) {
- throw new ExceptionConverter(ioe);
- }
- catch(DocumentException de) {
- throw new ExceptionConverter(de);
- }
- }
-
-
-
- }
-
-// /**
-// * Manipulates a PDF file src with the file dest as result
-// * @param src the original PDF
-// * @param dest the resulting PDF
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public void manipulatePdf(String src, String dest) throws IOException, DocumentException {
-// PdfReader reader = new PdfReader(src);
-// PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(dest));
-// AcroFields form = stamper.getAcroFields();
-// String[] radiostates = form.getAppearanceStates("language");
-// form.setField("language", radiostates[4]);
-// for (int i = 0; i < LANGUAGES.length; i++) {
-// String[] checkboxstates = form.getAppearanceStates("English");
-// form.setField(LANGUAGES[i], checkboxstates[i % 2 == 0 ? 1 : 0]);
-// }
-// stamper.close();
-// reader.close();
-//
-// PdfReader r = new PdfReader(dest);
-// AcroFields f = r.getAcroFields();
-// Set<String> fields = form.getFields().keySet();
-// for(String key: fields){
-// if(f.getFieldType(key)==AcroFields.FIELD_TYPE_RADIOBUTTON){
-// System.out.println(key);
-// System.out.println(f.getField(key));
-//
-// }
-// }
-// r.close();
-//
-// }
-//
-// /**
-// * Main method
-// * @param args no arguments needed
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public static void main(String[] args) throws IOException, DocumentException {
-// Questionnaire buttons = new Questionnaire();
-// buttons.createPdf(RESULT1);
-// buttons.manipulatePdf(RESULT1, RESULT2);
-// }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/4d/c0a989d30fa70014162f978bbd19228b b/.metadata/.plugins/org.eclipse.core.resources/.history/4d/c0a989d30fa70014162f978bbd19228b
deleted file mode 100644
index 55ec16e..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/4d/c0a989d30fa70014162f978bbd19228b
+++ /dev/null
@@ -1,260 +0,0 @@
-package io;
-
-import java.awt.BorderLayout;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.util.Map;
-import java.util.Set;
-
-import com.itextpdf.text.BaseColor;
-import com.itextpdf.text.Document;
-import com.itextpdf.text.DocumentException;
-import com.itextpdf.text.Element;
-import com.itextpdf.text.ExceptionConverter;
-import com.itextpdf.text.Font;
-import com.itextpdf.text.Font.FontFamily;
-import com.itextpdf.text.FontFactory;
-import com.itextpdf.text.Image;
-import com.itextpdf.text.PageSize;
-import com.itextpdf.text.Paragraph;
-import com.itextpdf.text.Phrase;
-import com.itextpdf.text.Rectangle;
-import com.itextpdf.text.pdf.BaseFont;
-import com.itextpdf.text.pdf.ColumnText;
-import com.itextpdf.text.pdf.GrayColor;
-import com.itextpdf.text.pdf.PdfBorderDictionary;
-import com.itextpdf.text.pdf.PdfContentByte;
-import com.itextpdf.text.pdf.PdfFormField;
-import com.itextpdf.text.pdf.PdfPCell;
-import com.itextpdf.text.pdf.PdfPCellEvent;
-import com.itextpdf.text.pdf.PdfPTable;
-import com.itextpdf.text.pdf.PdfWriter;
-import com.itextpdf.text.pdf.RadioCheckField;
-import com.itextpdf.text.pdf.TextField;
-
-import framework.Question;
-
-public class Questionnaire implements PdfPCellEvent{
-
- /** The path output file. */
- String pathOutputFile;
-
- /** The document. */
- Document document;
-
- int tf;
-
- public Questionnaire(String path){
- pathOutputFile = path;
- document = new Document(PageSize.A4, 25, 25, 50, 50);
- }
- public Questionnaire(int tf){
- this.tf = tf;
- }
-
- /** The resulting PDF. */
- public static final String RESULT1 = "outputPDF/buttons.pdf";
- /** The resulting PDF. */
- public static final String RESULT2 = "outputPDF/buttons_filled.pdf";
- /** Path to a JavaScript resource. */
- public static final String RESOURCE = "res/buttons.js";
- /** Path to an image used as button icon. */
- public static final String IMAGE = "res/info.png";
- /** Possible values of a radio field / checkboxes */
- public static final String[] LANGUAGES = { "English", "German", "French", "Spanish", "Dutch" };
-
- /**
- * Creates a PDF document.
- * @param filename the path to the new PDF document
- * @throws DocumentException
- * @throws IOException
- */
- public void createPdf(Map<Integer, Question> map, Set<Integer> ids) throws IOException, DocumentException {
-
- @SuppressWarnings("unused")
- PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(pathOutputFile));
-
-
- document.open();
- Image logo = Image.getInstance("res/shcs_logo2.gif");
-
- logo.scalePercent(30f);
- float[] columnWidths1 = {0.2f, 0.6f, 0.2f};
- PdfPTable table_title = new PdfPTable(columnWidths1);
- PdfPCell c01 = new PdfPCell(logo, false);
- PdfPCell c02 = new PdfPCell(new Paragraph("Survery | Project #693",
- FontFactory.getFont(FontFactory.HELVETICA, 20, Font.BOLD, BaseColor.BLACK)));
- c01.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c01.setBorder(Rectangle.NO_BORDER);
- c02.setBorder(Rectangle.NO_BORDER);
-
- table_title.addCell(c01);
- table_title.addCell(c02);
- table_title.setWidthPercentage(100);
- table_title.setSpacingBefore(0);
- table_title.setSpacingAfter(25);
- document.add(table_title);
-
-
- //----------------------------------------------------------------------------------
-
-
- PdfPTable table1 = new PdfPTable(1);
- table1.setWidthPercentage(100);
- PdfPCell c11 = new PdfPCell(new Phrase("Today you are receiving a pharmacogenetic report based on the genetic " +
- "information of your patient. Because the human genome contains extremely private and sensitive information" +
- " of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier," +
- " it must be managed with care. ",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.NORMAL, BaseColor.BLACK)));
- c11.setLeading(1.5f, 1.5f);
- c11.setPaddingBottom(8);
-
-
- table1.addCell(c11);
- table1.setSpacingAfter(10);
- document.add(table1);
-
-
- //----------------------------------------------------------------------------------
-
-// // step 4
-// // add the JavaScript
-// writer.addJavaScript(Utilities.readFileToString(RESOURCE));
-
-
-
-
- // add the radio buttons
- for(Integer id: ids){
- PdfPCell c2;
-
- PdfPTable table = new PdfPTable(1);
- table.setSpacingAfter(10);
- table.setWidthPercentage(100);
-// table.setWidths(new int[]{ 1, 2});
-
- PdfPCell c1 = new PdfPCell(new Phrase(id + ") " + map.get(id).getQuestion(),FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c1.setPaddingTop(5);
- c1.setPaddingBottom(5);
- c1.setHorizontalAlignment(Element.ALIGN_CENTER);
- c1.setBorder(Rectangle.NO_BORDER);
- table.addCell(c1);
-
- c2 = new PdfPCell(new Phrase(" 1" +
- " 2" +
- " 3" +
- " 4" +
- " 5",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c2.setHorizontalAlignment(Element.ALIGN_LEFT);
- c2.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c2.setCellEvent(new Questionnaire(id));
-// c2.setLeading(1.5f, 1.5f);
- c2.setBorder(Rectangle.TOP);
- c2.setPaddingTop(2);
- c2.setPaddingBottom(5);
- c2.setBackgroundColor(new BaseColor(242, 242, 242));
-
- table.addCell(c2);
-
-
-
- document.add(table);
- }
-
-//
- // step 5
- document.close();
-
- }
-
- @Override
- public void cellLayout(PdfPCell cell, Rectangle position,
- PdfContentByte[] canvases) {
- PdfWriter writer = canvases[0].getPdfWriter();
- PdfFormField radiogroup = PdfFormField.createRadioButton(writer, true);
- radiogroup.setFieldName(String.valueOf(tf));
-
- float llx = position.getLeft();
- float lly = position.getBottom();
- float urx = position.getRight();
- float ury = position.getTop();
- float cell_h = cell.getHeight();
- float cell_w = cell.getWidth();
-
- Rectangle rect;
-
- for(int i=1 ; i<=5; i++){
-
-
- rect = new Rectangle(llx + (3+i)*cell_w/12, lly+cell_h/2-6, llx + (3+i)*cell_w/12+12 ,lly+cell_h/2+6);
-
- RadioCheckField radio = new RadioCheckField(writer, rect, null, String.valueOf(i));
- radio.setBorderColor(GrayColor.GRAYBLACK);
- radio.setCheckType(RadioCheckField.TYPE_SQUARE);
-
-
- try {
- PdfFormField field = radio.getRadioField();
- radiogroup.addKid(field);
-
- writer.addAnnotation(radiogroup);
- }
-
- catch(IOException ioe) {
- throw new ExceptionConverter(ioe);
- }
- catch(DocumentException de) {
- throw new ExceptionConverter(de);
- }
- }
-
-
-
- }
-
-// /**
-// * Manipulates a PDF file src with the file dest as result
-// * @param src the original PDF
-// * @param dest the resulting PDF
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public void manipulatePdf(String src, String dest) throws IOException, DocumentException {
-// PdfReader reader = new PdfReader(src);
-// PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(dest));
-// AcroFields form = stamper.getAcroFields();
-// String[] radiostates = form.getAppearanceStates("language");
-// form.setField("language", radiostates[4]);
-// for (int i = 0; i < LANGUAGES.length; i++) {
-// String[] checkboxstates = form.getAppearanceStates("English");
-// form.setField(LANGUAGES[i], checkboxstates[i % 2 == 0 ? 1 : 0]);
-// }
-// stamper.close();
-// reader.close();
-//
-// PdfReader r = new PdfReader(dest);
-// AcroFields f = r.getAcroFields();
-// Set<String> fields = form.getFields().keySet();
-// for(String key: fields){
-// if(f.getFieldType(key)==AcroFields.FIELD_TYPE_RADIOBUTTON){
-// System.out.println(key);
-// System.out.println(f.getField(key));
-//
-// }
-// }
-// r.close();
-//
-// }
-//
-// /**
-// * Main method
-// * @param args no arguments needed
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public static void main(String[] args) throws IOException, DocumentException {
-// Questionnaire buttons = new Questionnaire();
-// buttons.createPdf(RESULT1);
-// buttons.manipulatePdf(RESULT1, RESULT2);
-// }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/4f/e0c274af55ac001410e2e30aa85db9d1 b/.metadata/.plugins/org.eclipse.core.resources/.history/4f/e0c274af55ac001410e2e30aa85db9d1
deleted file mode 100644
index 842b131..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/4f/e0c274af55ac001410e2e30aa85db9d1
+++ /dev/null
@@ -1,71 +0,0 @@
-package io;
-
-import io.serializer.url.URLParserDecrypt;
-import io.serializer.url.URLParserMaterial;
-import io.serializer.xml.XMLParserDecrypt;
-import io.serializer.xml.XMLParserMaterial;
-import io.serializer.xml.XMLParserSurvey;
-
-import java.util.logging.Logger;
-
-import framework.Type;
-import framework.reply.ReplyDecryption;
-import framework.reply.ReplyMaterial;
-import framework.reply.ReplySurvey;
-import framework.request.RequestDecryption;
-import framework.request.RequestMaterial;
-
-public class CommAdapter {
-
- @SuppressWarnings("unused")
- private static final Logger LOGGER = Logger.getLogger(CommAdapter.class.getName());
-
- public ClientConnection connectSPU = null;
-
- public CommAdapter(ClientConnection connectSPU) {
- this.connectSPU = connectSPU;
- }
-
- public ReplyDecryption callServiceDecrypt(RequestDecryption rqtDecrypt) {
- String requestString = URLParserDecrypt.requestToString(rqtDecrypt);
-// String replyString = "<awr_decrypt><patient>30351</patient><v_timestamp>1417188729390</v_timestamp><decrypt_val>,,,,,,,,,,,,,,,,2,AwHR3OO0/hkwgEHluLDFLtn4aaTBAwBEJjJpMegGa29ASgtyt1ha2OOyxvEvNgkIaY0xWXtTmqrqhSBKDG6J7Lps0g==,AwE/oifhonvUZDA4mqRK8K1WCkoepEuL9SidjdFXMNNZQXCMUvVN6pBUYVFgJeFX6mT2jruK8ic3y6yI14PfKl/Pvg==,AgBHs6HGF9AYNc5RlFTGv025WEaT91i/MPy+HXqhvHOrp0Ol9/aKyvv2BgAzeAdsdSEbVs2sahiyL/kbKjeUoI9tsA==,,,,,,,,,,,,,2,AgHIofEmf4aJMLBnKAY3/8WcLXUETF4y/68fzZR6hsS5btZTyI0E4ZTltDzV6hBzIT14cC4S/BMclo1aoLt5C9f+Cg==,AgDOXZAZAwO4KXslqU1wKctrVlH8CcGvpO8gGrPl3YjrY8SR3a6gStvZvjcUKXhvtDkRwSLAIkD3lFrKSXWestHSqQ==,AgG7Y5so9ZTRng2Xm3ziWx3+7zfaVLkIJ2v7g+qEUx5Vl2/udDOcg/was8W6qbKYeo/W0EGTlNXKTOdIatGVxyuoZA==,,,,,2,AgDAVy0/nE6X4iAengG9lCiYEBMtK6rAAiy7OwC7U/QSbokiEzH0RafH7rb+5L5R/ii9/3kZCcKmgOIoPzkmeloDfg==,AgHuvmLAeIFYm4ObEBO2v9xTK6tjYfdh+x4kwULBpDNlUiW4kNNaeoeziRA7nlRvcSfxPlR070N/3qzBMu3EKZ2csQ==,AgDk/CzCL4XUobuNaLsvrH5s0COMKYBqY/18YRR0d7mIsVVYrKVGF+IWnEluhbLt+BoRBdvL5UElgroyORJpiKz06w==,,,,,2,AgH0nW+2h+vcOZgPe3uR7jEHmEPi+g4izQ3OIU9An2vekwbG1liBFgTo33pEhyXhNWPhGCbSb73sJ7pt0JLL+hhWMw==,AgHG039OnpvmllkV6QBsmoMdqISrRuW2q5M3jfUp5TUbU6F/3S2FK1iSVKWgTsI291re6lz6KH5d8rWrnoCAozhIeg==,AwGjmnLUMd42F7a/tsSkeqcxoHMAXNKdvF4kOXoAxmc6ZSxaUhzkGkcgNOO8SFNiWqTKgtZCffJ7hfI0voAUX0TD1w==,,,,,2,AwHfYRjQFscHzOvVozackTaM3sybOjyd2aLc4B+WQ7KiWHoGKkzQScoDiy8hiA2cJpv8ngfitTqJRLlyegvuM+Ietw==,AwAP92OqrJFpFmdrMUUx6FeFhwVLYtAsfw3sem2RYu7ljPry+uJnvluuzTvVaFhs8BAAD8VBFs1vqrSHyQEq8Ocsmw==,AwDNXg/JA4QXA6wu30DUE7peOk1a10aHbd38iwjN1Q0DKy3BqS36+EQKg5hbwELxN2+/Yu4UA1IKWYJI0zNs6TJUtA==,,,,,2,AwBWFv3ivyQz4CGIilJ7CVtpQGOs1tnIW+0uxQyiWIO3HDjJtfxPyQ1AJWPsBQ9eYmaoKmPnN+euPCm7bP0LxBL/Tg==,AwHg7AZb5DV5OJrl0omtKx2OqckXcQEUT8pZ+Bmo9AyULgL5HOq2AVU04qhvbdy0W4OMYqxF3uBwqT6dNhFptsKEKQ==,AwG9dyMbI5EI8UCXuj5JkQRMimcT1u6zCBAfmRvANtT54yDtC8KS6VeOr7h/NP4qrf/mbl5tMaePbkkHrc6E39ntsA==,,,,,2,AwHkMyCOJm/RlYOybGhX3DchR/wSN2L3PuXKalMszgk3WOCiWSpYlP3SOPLWvJTRQaTxoN+oA5IkCTvlp02+Mduaxg==,AgHhR8HjavXjnsy+rHptc/JSI5pLFjM0RczUygxTX7vqV/yqwZ280Rq7YpXKp2GBfiZvFf0qIQoWe4vx5DBxwvHkdA==,AwEf2yisEpflVm8R2X08SCJM89apu7tUFzbpndsTIt5o9/xdoXKomMUk9REz+yrpkd+jFhlkJMQHHVMhgjiWYCEdpQ==,,,,,2,AwBaIc8ZWFm4O9QO0ofJeS9Q7tki7CAscBXRDnajEp7rmKNgrpRyyu1ezSpborwaloWR9kDKPLdYVV8SNk2V/1EudA==,AwGE8MPAnPKKXF15EyrAx1bRinwgoqYVO4Junz5IXQjGLyQpSr5NwO/hqu5E5egHte20jm380Wn2Qy6GgKNiRLy/gQ==,AwCAOjOQNdMN5uIB0POFzYS/fpxZ0Q5KfhlP5fijNmc/daO5frSrwhgcMH5lMKL4EGjBI1p6JMe3fuMqb5t1ImeTBg==,,,,,2,AgARSg2izcK6iZLFe4YkIS6yZgnt8cd9DFqpQ37gNmcccZwBI+mpsaijTUPo1GT+QUD8zC+6qr/GrzG9q+q7BPxpVw==,AwGM/jFdtoNViQXxgqeL27ZKobjsfyeuXrx8re3UfIe3c4XN16srSpcTfxEZNXDKo1Ff9fRvDVBOwdS6XU2nvo++ng==,AwAtK0eOqcVfzkdJIIkk7BORWwSDTAjtx4aEXwyZ0bla+2rIWDgXi3U5xlgnjeXJNtGsLokkvvX92BOBIw9SuCGhnw==,2,AgCWAAWTW+7jv2a2lc4pGFnumEgyH59wSDRXEYUASCVB249JBmeKFWRKNFTQlph5hTR5Rb+YHFP/qvzmwU11Hs2b0w==,AgANdxpkN+DS4De3aokNjt+e/Ou8GT+p8pUJA+6LHrDBXAddoCR8KpeXW7mESokq6BTEVQXxU3TdqavRkqaeFmpXkw==,AgDDDSEO3e8DCsm1n6dbj2PB9Z/tUzluDCt/utdSLrYFfdFY+Y5K7Vxo9F5/17CzaUbX172SGLt8TfCfuYBrtupgAg==,2,AgB1OG6bj+6kfRvLj8yjMQbl80FdZHZrRVRUfNVRwvjvvbRa5f9s9fNZ8J0a3s3hH+RyfZmGJ4Ufjh5mMiQkwiur6w==,AwBX4GFZNjUdtRdwtWgxyQz7h8Hk0ztaZeM8/e+8ll0o+RjYN+CNP8+lnXEw7wpuC4wcMX05mrjPvHOuy0hOFVNkhQ==,AgDf3el4vbMYIAFEH9WV151/uzl+gkfTQ79T8Iu4KxEVo6UJvCfqkjETlR6aXUJiqaCbSV5odMT50lURsmfgALf6AQ==,,,,,2,AgENmnviZkgQWXZ5QDgCCE2zq0IiXURTqK2UNPtEg3o64yjlrQQUd2rO/KgKolyCQcKYTVoMj7k2VeCSSVRr8KGC7w==,AwFv6ZJzhpV/Ms00QkrkNiCKVRFczn/yqnkiBFUHC1RQv3tqzzYSEUeXmDHmm0/kEBtnfgRWjHQm9zxS8Jzy7srDLQ==,AwB8aS5KA1dFLKCA1a/7Wsjhef+6kkNAB/GO9AOvRZbFW/dhl5fx04Alh+g78fwcVMX+eEIEJgSyH0jhv7kmiQh4ew==,,,,,2,AgG8fXrCra6UgP5G89TaE6PH5E0TANb/PJPbKwzdi78XEHRUmcTz6PIhYtclTmcdq5TH0IwQv+ra5ppf4qR4LtkGig==,AgEKzsmZrikmXzJywMpzkAdG9hAPlOiRY9oXKf4Sh50CL8btUItjfVJWg3ubNhotzJK+fnNlRrcMkWQEBD/aGKpf8A==,AwFi+2cGpuvVdR+pT1P9Ur8jAkzmjJK2XmUQbFpyMi5Jc9a5/fPnBWCxmTX8CH5wks0PicYC6rzZC3NEIt0EoM1Qfg==,,,,,2,AgHbTZgTAv8lLBsoX06Hkm9XPU+crlRqKl0xL8v18xeUUPY1YAvUYf2OAutmTtPRycXyzrDWSpn2h5xfk/dtq/BICg==,AwAjPydfoUhfSVFKWNI4Ox4a/psZGDIGzEEWh9HyVtAmjdNb5ctr/S6z+akiRfPlNCsVf6TdkzJ2Su6BO4sOX/SHKA==,AwBVmjn7AitCe4zQ/Fl0sYW2XqXkJxJBDviwl9jYhoq29v90n9escDsiA3Cy+1uW69MezdZBEszFdEWlX0EzbQZQ6A==,,,,,2,AwCG0RBHwHuame/1G7qtUjmwz0gkCP1tyZiEgm7aTKpsCjt7UsMirMmx/ZrNlvSzkGuVbRO97Szzr+9fo4baH1rEZA==,AwHyMK/q8FUUvoHTt7O7KJUxYz/ZHF6SntbmKfbygLVw4HWc/eFic4DXHKbEGWvrMO5b37GksqxfQHc2xlAuj8ZRIw==,AgB5x0BxqiMYxRvzlq0+/RkbOuNA7hYuMG+7D6wlMOxSskgqyfwA0MfW+AkXFqnqfqsoJRpDy15bABWhH6MIdJsPEA==,,,,,2,AwAS/nCH0pcrsllSy2duadUs1rMtL6vtz7VTUAVhn1/YYlZ068ysBi1Mdz9gJFewdyeGLnFhyg+W15rFB317nyeGHg==,AwBh6f5UVRMM5ekWqkrx6XiVOK/BL0TinjsSLna8BjkQPXU2DvGxiKPhA03/GtBdEpihEX4bVaHQhiOupTf7wh6bCQ==,AgGPDFH8Kv8hz2aUJ955nHu8NiAoTmDjqhlXuJ1T83h+O0sc2GieLhmXmpEjxjEAyxkqjb2nFxvDhi+YGs4MqI4S5A==,,,,,2,AwDqwFv6bqpM/6PTCJ/wgRALYVT+Rn54HIB2icP6ODNexaoqILBS9p1k1QENbQsBZ9LmJJwngRQXi07Q4P8br76Qfw==,AgG8yTiO8tFWZqQELBr+Zt1fKKA3bl08836nUEEpD55Sid0ZywCrWe+Va58xbMIWscISLPbBvXIdO48ZgoHsLgA7Jw==,AwCI1Ud0GJLnS86mSC58HNB91lH9kPpQbufGn+WJErGxAQubtSFBc3rnT0SNE3CbW+1MPjYBbdCgxpHjN/iQf96++w==,,,,;2,AgB9YhljgPngkwwYTBMUaMGR+rWMjvlK0tgrzkG8OT9NGNJfaaLP6AzfhWrT5oe9NRnabU25pQvDhAIGZCajDy8N2g==,AwE5Irce6LOSxfLgn4PZh1PeDPjAHb5wPTNfmQoWFY83dNQLYN44FupJaQRRUqBqyGNB0SL76GKzr8G9tKLAHOxRSQ==,BAG5iWHEhlWkvtyAlQy4bwKa1iNRzJq8WJTh2GE9oT4DeJRmO1pCHy9P+9YktDT+4RgV9s8AzOYih1LmHW14uP27HQGg1nTdHyab9/nFUe9BFxIi8xQTPG8et9++5I+gKIeWGCXBL31sBhpaMewvVhDjl2d3+7H2PUv9IY3lyIRFA6N16A==,2,AwAPIoQJqSbXFKXQAIG9J+/+/41NLX0rDINImk4eBgAnZ4V0R8YSqkHD3nd0IrEMyK7OpkCXkxTzOlwJlfEfti+vew==,AwAQ8KdMYsEOqM3eyGv/XbHnGf+TqCAG39Gz/juBcioOOJmLOFjl6oCITozJOyPusbTRXZ4eIwgQYkl12mt6saTpgQ==,BACkTO+3rRUF81w5yzZskFiIRyVxc6sdJfDFX6C+Jy5A+s/sfHskrFx2GYNklZaYztP0/B64a6v6HvFWVz8GuYj2wgHhiCL+QwLThFpaRxh8kUMSrt4VuXSIjtHwRXzhSdEbG2T6C/+CJZxIFh/ugEV9SS51l1HrLdnJDb2Kdu3QC3lRkQ==;2,AgC99VyiRLJ2kFf3oCkb+JPVV7B4tXVGI2NVT7fdKtB+gEjCcdkbS5YEXm/Sq6NAJEOKilMTFUDLYFDOe+7JHj/4pw==,AgAbT080sbKVHH9lim3tVCYS4cMz+rLownRKqtYZ7AfR8qy819R1GFywQ0kImgcdjEey5C4m0OPTwgtkO+C5uWtKfQ==,BADKYt9i0zTJeh3H8t6d8pZdncz3f28v1oWrssLZwAutkIcF3XKkPNmK3X75K3sImUSch//IIRIB1Yi5/MrZZeDrxQHhQZEg6AA8bDxgt0JdOEX2t4crzDu3gW5I8y+Ya0fZr1RmxvfMr2UxRhSsNsz949v/g+GPfsrEfDqIWTiNlJfwyg==,2,AgEPMjgCfgGRaZ/5I1hLqDoJ8nXYeTlnt9YeK4K8w+HnRAoAD09zkPcLMWajIjupe/CUFrHz00sAvs+vOPeKxGrLiQ==,AgDy7g2DcDwmIW7LtTTteHExD/cyP4BMWimEAM1RfAd/Y6P8XkmRGgglfdLJ7RGTR2YIMB1lxQ/LQUbmzyjTiiuWow==,BAHJ7oHVr/0wweyGlg4f9Dqmx8h0m35jMdrEFwVY8l/ENKpOTxG/oh9vAvo1uw39wUOn4CWGBmAFE2lsvWFW18gt+gHPFt5/9ihUFN9mtxFLT1Q3W4Uf8IdekHPMbNlxEp1wId7EH3XsAox3Eo8b3XnYpwfsAXoDwQa2wyiO5h104Ptvsg==;2,AwClCMGcHdd7rD8sYDC/GXyAtLmZ/JI4v+aOK4PXzjWJi/zvcsXT5dJUOm9bW6AAtzgOKPd0WwU3hSytJ+ATy146Uw==,AgADzN6ysOIC9GAuMF9suYNfkR027H/9OcpeVJb4HRHfZ/EOmQWSdJmJFw3F/NLUrreNnFCvuF1+1bbmHa3tvznjeA==,BADwaRJF9z3DW7HE3qhGu6Yd9d2WBfWy8opd7Mhkg7TpAQsn9oA3UcpCarn4DMSnVGG94Y3Pxsj5vlm5G7GMKiGoxAERnETH6pVgBxhtrnBU6l4vHl+X4rd8I/zheZiG0EFKJza41rmwKHTY4+42PJ8/3Y2rCanbY1RSAJEgiZR89k6nGg==,2,AgCK80PhKSC23aVKQ8uYm+79GWZiwpbV5lc8Fzcpwu8hdKGAMH4f62Y//cmrQmCIltm03PTVPMn6rMwkfoz+9M2LDQ==,AgH5aXThIKUjENFTGCGwcTRql7xIe8vR9h78KikTYkD8itQ+YBDrnx5OaNyWRjpIJHAZ2B61W2aVjZ5Rmo0d1B1Pcw==,BAAEZsEKw59QSRxN1QmWcx4X2LaK4+zBuawh+2CIRPljWyxK6XhIM6EEalr44Klce4OTK2QbxT5n3Kjnh5jNuwCOawAH/wiNrx09+HY8SZrRjCjv1+Lnicybrqg/IFDNoAGT5aguaGRIMmGOLe0QFJr0T0iW3RnYGlmSd/r6ex8+MpOgLw==</decrypt_val></awr_decrypt>";
- String replyString = connectSPU.sendReceive(Type.DECRYPT, requestString);
- System.out.println("REQUEST URL: " + requestString);
- System.out.println("REPLY: " + replyString);
- ReplyDecryption reply = (new XMLParserDecrypt()).stringToReply(replyString);
- return reply;
- }
-
- public ReplyMaterial callServiceMaterial(RequestMaterial rqtMaterial) {
- String requestString = URLParserMaterial.requestToString(rqtMaterial);
- String replyString = connectSPU.sendReceive(Type.MATERIAL, requestString);
-
- System.out.println("Material request:");
- System.out.println(replyString);
-
- ReplyMaterial reply = (new XMLParserMaterial()).stringToReply(replyString);
- return reply;
- }
-
- public ReplySurvey callServiceSurvey(){
-
- String replyString = connectSPU.sendReceive(Type.SURVEY_Q,"");
- //4::What's your name?::1;5::Where are you from?::2;6::How old are you?::3;7::What's your name?::1;8::Where are you from?::2;9::How old are you?::3;10::What's your name?::1;11::Where are you from?::2;12::How old are you?::3;13::What's your name?::1;14::Where are you from?::2;15::How old are you?::3
-// String replyString ="<awr_survey><v_questions>1::What's your name?::1;2::Where are you from?::2;3::How old are you?::3;4::A hacker or a disgruntled employee steals from a hospital database the unprotected genome of a known personality. He finds out this person's ethnicity and predisposition to diseases. As a result, he sells this information to tabloids and newspapers. Theft of unprotected medical data is an important concern and hospitals should take more steps to make sure that unauthorized people cannot access personal information in their computers.::3;4::A hacker or a disgruntled employee steals from a hospital database the unprotected genome of a known personality. He finds out this person's ethnicity and predisposition to diseases. As a result, he sells this information to tabloids and newspapers. Theft of unprotected medical data is an important concern and hospitals should take more steps to make sure that unauthorized people cannot access personal information in their computers.::3;5::A hacker or a disgruntled employee steals from a hospital database the unprotected genome of a known personality. He finds out this person's ethnicity and predisposition to diseases. As a result, he sells this information to tabloids and newspapers. Theft of unprotected medical data is an important concern and hospitals should take more steps to make sure that unauthorized people cannot access personal information in their computers.::3;6::How old are you?::3;7::What's your name?::1;8::Where are you from?::2;9::How old are you?::3;10::What's your name?::1;11::Where are you from?::2;12::How old are you?::3;13::What's your name?::1;14::Where are you from?::2;15::How old are you?::3;</v_questions><v_locations>50::Lausanne;60::Basel;70::Zurich</v_locations></awr_survey>";
- ReplySurvey reply = (new XMLParserSurvey()).stringToReply(replyString);
- return reply;
- }
-
- public String callServiceSurveyAnswer(String survey, String id_loc, String id_p){
-
- StringBuilder sb = new StringBuilder();
- sb.append("id_p=").append(id_p);
- sb.append("&timestamp=").append(System.currentTimeMillis());
- sb.append("&id_loc=").append(id_loc);
- sb.append("&answer=").append(survey);
- String replyString = connectSPU.sendReceive(Type.SURVEY_A, sb.toString());
- return replyString;
-
- }
-
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/5/301a0430b2a7001417ceadf0100b5ef7 b/.metadata/.plugins/org.eclipse.core.resources/.history/5/301a0430b2a7001417ceadf0100b5ef7
deleted file mode 100644
index e69de29..0000000
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/50/70184ab04eac001410e2e30aa85db9d1 b/.metadata/.plugins/org.eclipse.core.resources/.history/50/70184ab04eac001410e2e30aa85db9d1
deleted file mode 100644
index 31f7800..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/50/70184ab04eac001410e2e30aa85db9d1
+++ /dev/null
@@ -1,893 +0,0 @@
-package ui;
-
-import io.ClientConnection;
-import io.CommAdapter;
-import io.Questionnaire;
-
-import java.awt.BorderLayout;
-import java.awt.Color;
-import java.awt.Component;
-import java.awt.Dimension;
-import java.awt.FlowLayout;
-import java.awt.Font;
-import java.awt.SystemColor;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.awt.event.WindowAdapter;
-import java.io.File;
-import java.io.IOException;
-import java.sql.SQLException;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.LinkedList;
-import java.util.Map;
-import java.util.Set;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
-import javax.swing.Box;
-import javax.swing.BoxLayout;
-import javax.swing.ButtonGroup;
-import javax.swing.DefaultComboBoxModel;
-import javax.swing.GroupLayout;
-import javax.swing.GroupLayout.Alignment;
-import javax.swing.ImageIcon;
-import javax.swing.JButton;
-import javax.swing.JComboBox;
-import javax.swing.JDialog;
-import javax.swing.JFileChooser;
-import javax.swing.JFrame;
-import javax.swing.JLabel;
-import javax.swing.JOptionPane;
-import javax.swing.JPanel;
-import javax.swing.JRadioButton;
-import javax.swing.JScrollPane;
-import javax.swing.JSeparator;
-import javax.swing.JTabbedPane;
-import javax.swing.JTextArea;
-import javax.swing.JTextPane;
-import javax.swing.JTree;
-import javax.swing.LayoutStyle.ComponentPlacement;
-import javax.swing.SwingConstants;
-import javax.swing.UIManager;
-import javax.swing.border.BevelBorder;
-import javax.swing.border.EmptyBorder;
-import javax.swing.border.EtchedBorder;
-import javax.swing.tree.DefaultMutableTreeNode;
-import javax.swing.tree.TreeModel;
-import javax.swing.tree.TreePath;
-
-import org.jpedal.examples.viewer.Commands;
-import org.jpedal.examples.viewer.Viewer;
-
-import utils.ClientProperties;
-
-import com.itextpdf.text.DocumentException;
-
-import database.DBconnectorClient;
-import framework.Diagnostic;
-import framework.MedUnit;
-import framework.Question;
-import framework.reply.ReplySurvey;
-import framework.test.TestName;
-
-/**
- *
- * @author youssef, raisaro
- */
-public class GUI extends javax.swing.JFrame {
-
- private static final Logger LOGGER = Logger.getLogger(GUI.class.getName());
-
- private static final long serialVersionUID = -4582280515597700650L;
-
- // configuration
- private ClientProperties props;
-
- private JTree jTree;
- private DBconnectorClient connectorClientDB;
- private LinkedList<Integer> patients;
-
- /** List of all relevant tests */
- private HashMap<String, TestName> testsByName;
- private Viewer viewer;
- private JDialog dialog;
- private JFrame frame;
- private boolean survey_submitted;
- private int close_trials;
- private Map<Integer, ButtonGroup> buttonGroupMap;
- private Questionnaire quest;
- private Map<Integer, Question> map;
- private Set<Integer> ids;
- private Map<String,String> answers;
- private Map<Integer, String> locations;
-
-
- /**
- * Creates new form GUI
- */
- public GUI(ClientProperties props){
-
- frame = this;
- this.props = props;
- this.connectorClientDB = new DBconnectorClient(props.getDbMsAccess());
- survey_submitted = false;
- close_trials = 0;
-
-
- try {
- initComponents();
-
- viewer = new Viewer(jScrollPane2, null);
- viewer.setupViewer();
-
- // create questionnare
-
-
- System.out.println("#of questions: " + ids.size());
-
-// viewer_q = new Viewer(jScrollPane4, null);
-// viewer_q.setupViewer();
-//
-// // specify file you wish to open (JPedal handles getting the byte data)
-// String filepathReport = "outputPDF/buttons_filled.pdf";
-//
-// // open generated PDF
-// // object must be either String in full filepath, or
-// // File object which can be relative
-// Object[] input = new Object[]{ new File(filepathReport) };
-// viewer_q.executeCommand(Commands.OPENFILE, input);
-
- JButton btnSubmitQuestionnaire = new JButton("Submit Questionnaire");
- btnSubmitQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- btnSubmitQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- submitButtonActionPerformed(arg0);
- }
- });
- JButton btnResetQuestionnaire = new JButton("Save as PDF");
- btnResetQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- savePDFButtonActionPerformed(arg0);
- }
- });
- btnResetQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- JPanel panel_button = new JPanel();
- panel_button.setLayout(new BoxLayout(panel_button, BoxLayout.X_AXIS));
-
- lblNewLabel_3 = new JLabel("");
- lblNewLabel_3.setIcon(new ImageIcon("res/location_icon.png"));
- panel_button.add(lblNewLabel_3);
-
-
-
- comboBox = new JComboBox<String>();
- comboBox.setFont(new Font("Tahoma", Font.BOLD, 12));
- comboBox.setModel(new DefaultComboBoxModel<String>(new String[] {"Select Location"}));
- for(Integer id_loc : locations.keySet()){
- comboBox.addItem(locations.get(id_loc));
- }
-
-
- panel_button.add(comboBox);
-
- rigidArea = Box.createRigidArea(new Dimension(10, 0));
- panel_button.add(rigidArea);
-
- lblNewLabel_1 = new JLabel("");
- lblNewLabel_1.setIcon(new ImageIcon("res/submit.png"));
- panel_button.add(lblNewLabel_1);
- panel_button.add(btnSubmitQuestionnaire);
-
- panel_button.add(Box.createRigidArea(new Dimension(10,0)));
-
- lblNewLabel_2 = new JLabel("");
- lblNewLabel_2.setIcon(new ImageIcon("res/pdf.png"));
- panel_button.add(lblNewLabel_2);
- panel_button.add(btnResetQuestionnaire);
- panel_button.setPreferredSize(new Dimension(211, 35));
- panel_button.validate();
-
- JPanel panel_3 = new JPanel();
- GroupLayout gl_panel = new GroupLayout(panel);
- gl_panel.setHorizontalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(41)
- .addGroup(gl_panel.createParallelGroup(Alignment.TRAILING)
- .addComponent(jScrollPane4, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE)
- .addComponent(panel_1, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE))
- .addGap(32))
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(63)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addGap(103)
- .addComponent(panel_button, GroupLayout.DEFAULT_SIZE, 488, Short.MAX_VALUE)
- .addGap(241))
- );
- gl_panel.setVerticalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(22)
- .addComponent(panel_1, GroupLayout.DEFAULT_SIZE, 192, Short.MAX_VALUE)
- .addGap(18)
- .addComponent(jScrollPane4, GroupLayout.DEFAULT_SIZE, 437, Short.MAX_VALUE)
- .addGap(26)
- .addGroup(gl_panel.createParallelGroup(Alignment.LEADING)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(panel_button, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE)))
- );
- panel_3.setLayout(new BoxLayout(panel_3, BoxLayout.X_AXIS));
-
-
- panel.setLayout(gl_panel);
-
-
-
-
-
-
- /////////////////////////////////////////////////////////
- // display the tests available
-
- // get the tests
- HashMap<String, ArrayList<TestName>> testsRelevantByGroup = connectorClientDB.getRelevantTestsByGroup();
- ArrayList<String> groups = new ArrayList<String>(testsRelevantByGroup.keySet());
-
- // flatten hashmap into linkedlist
-// tests = new LinkedList<>();
- testsByName = new HashMap<String, TestName>();
- for (String group : groups) {
-// tests.addAll(testsRelevantByGroup.get(group));
- for (TestName test : testsRelevantByGroup.get(group)) {
- testsByName.put(test.getName(), test);
- }
- }
-
- // define tree structure of the tests
- DefaultMutableTreeNode root = new DefaultMutableTreeNode("All");
-
- for (String group : groups) {
- DefaultMutableTreeNode child = new DefaultMutableTreeNode(group);
- root.add(child);
-
- for (TestName test : testsRelevantByGroup.get(group)) {
- DefaultMutableTreeNode grandChild = new DefaultMutableTreeNode(test.getName());
- child.add(grandChild);
- }
- }
-
- // define swing object
- jTree = new JTree(root);
-
- for(int i=0;i<jTree.getRowCount();i++){
- jTree.expandRow(i);
- }
-
- jScrollPane3.setViewportView(jTree);
-// jTree.addTreeSelectionListener(new TreeSelectionListener() {
-//
-// @Override
-// public void valueChanged(TreeSelectionEvent e) {
-// tp = jTree.getSelectionPaths();
-// }
-// });
- jScrollPane3.setViewportView(jTree);
-
- /////////////////////////////////////////////////////////
- // display the patients registered
-
- patients = connectorClientDB.getPatients();
- for (Integer patientId : patients) {
- jComboBox1.addItem(patientId.toString());
- }
-
- } catch (SQLException ex) {
- Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex);
- ex.printStackTrace();
-// } catch (IOException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
-// } catch (DocumentException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
- }
-
- }
-
- /**
- * 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() {
-
- jPanel1 = new javax.swing.JPanel();
- jLabel2 = new javax.swing.JLabel();
- jLabel1 = new javax.swing.JLabel();
- jPanel2 = new javax.swing.JPanel();
- jComboBox1 = new javax.swing.JComboBox<String>();
- jButton1 = new javax.swing.JButton();
- jButton1.setFont(new Font("Tahoma", Font.BOLD, 12));
- jLabel3 = new javax.swing.JLabel();
- jLabel4 = new javax.swing.JLabel();
- jScrollPane3 = new javax.swing.JScrollPane();
- jScrollPane2 = new javax.swing.JScrollPane();
- jMenuBar1 = new javax.swing.JMenuBar();
- jMenu1 = new javax.swing.JMenu();
- jMenuItem1 = new javax.swing.JMenuItem();
- jMenu2 = new javax.swing.JMenu();
- dialog = new JDialog();
- tabbedPane = new JTabbedPane(JTabbedPane.TOP);
-
- setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
- addWindowListener(new WindowAdapter() {
- @Override
- public void windowClosing(java.awt.event.WindowEvent windowEvent) {
- if (!survey_submitted && close_trials <= 2){
- JOptionPane.showMessageDialog(frame, "Before closing the application, please fill in and submit the questionnaire.");
- close_trials++;
- tabbedPane.setSelectedIndex(1);
- }else{
- System.exit(0);
- }
- }
- });
- setTitle("HIV Pharmacogenomics\n");
-
- jLabel2.setIcon(new javax.swing.ImageIcon("res/shcs_logo2_small.gif")); // NOI18N
-
- jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
- jLabel1.setText("HIV Pharmacogenomics | Project #693");
-
- javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
- jPanel1.setLayout(jPanel1Layout);
- jPanel1Layout.setHorizontalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap(71, Short.MAX_VALUE)
- .addComponent(jLabel1)
- .addGap(18, 18, 18)
- .addComponent(jLabel2))
- );
- jPanel1Layout.setVerticalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jLabel1)
- .addGap(11, 11, 11))
- .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)
- );
-
- jPanel2.setBackground(new java.awt.Color(255, 255, 255));
- jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
-
- jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<String>(new String[]{"Select Patient"}));
-
- jButton1.setText("Run Test");
- jButton1.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton1ActionPerformed(evt);
- }
- });
-
- JLabel lblNewLabel = new JLabel("");
- lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
- lblNewLabel.setIcon(new javax.swing.ImageIcon("res/gears.png"));
-
-
-
- javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
- jPanel2Layout.setHorizontalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addComponent(jComboBox1, 0, 248, Short.MAX_VALUE)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addGap(75)
- .addGroup(jPanel2Layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jButton1)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 75, GroupLayout.PREFERRED_SIZE))
- .addContainerGap(98, Short.MAX_VALUE))
- );
- jPanel2Layout.setVerticalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addComponent(jComboBox1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED, 223, Short.MAX_VALUE)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jButton1)
- .addGap(19))
- );
- jPanel2.setLayout(jPanel2Layout);
-
- jLabel3.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel3.setText("Select Patient");
-
- jLabel4.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel4.setText("Select Test");
-
- jScrollPane3.setBackground(new java.awt.Color(255, 255, 255));
-
- jMenu1.setText("File");
-
- jMenuItem1.setText("Exit");
- jMenu1.add(jMenuItem1);
-
- jMenuBar1.add(jMenu1);
-
- jMenu2.setText("Edit");
- jMenuBar1.add(jMenu2);
-
- setJMenuBar(jMenuBar1);
-
-
-
- javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
- layout.setHorizontalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(layout.createParallelGroup(Alignment.LEADING, false)
- .addComponent(jLabel3)
- .addComponent(jLabel4)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, 244, Short.MAX_VALUE)
- .addComponent(jScrollPane3))
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 970, Short.MAX_VALUE))
- .addContainerGap())
- );
- layout.setVerticalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel4))
- .addPreferredGap(ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addComponent(jScrollPane3, GroupLayout.PREFERRED_SIZE, 388, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jLabel3)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 785, Short.MAX_VALUE))
- .addContainerGap())
- );
-
-
- jScrollPane2.setAutoscrolls(true);
- jScrollPane3.setAutoscrolls(true);
- tabbedPane.addTab("Report", new ImageIcon("res/report_icon.gif"), jScrollPane2, null);
- tabbedPane.setBackgroundAt(0, new Color(255, 255, 255));
-
- panel = new JPanel();
- tabbedPane.addTab("Survey", new ImageIcon("res/survey_icon.png"), panel, null);
- tabbedPane.setBackgroundAt(1, new Color(255, 255, 255));
- tabbedPane.setEnabledAt(1, true);
-
- panel_1 = new JPanel();
- panel_1.setBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null));
- panel_1.setBackground(UIManager.getColor("Button.background"));
-
- JLabel label = new JLabel("");
- label.setIcon(new ImageIcon("res/shcs_logo2_medium.gif"));
-
- lblDearDoctor = new JLabel("Dear Doctor,");
- lblDearDoctor.setFont(new Font("Tahoma", Font.BOLD, 14));
-
- JScrollPane scrollPane = new JScrollPane();
- scrollPane.setBorder(null);
- GroupLayout gl_panel_1 = new GroupLayout(panel_1);
- gl_panel_1.setHorizontalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(25)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 666, Short.MAX_VALUE)
- .addComponent(lblDearDoctor))
- .addContainerGap())
- );
- gl_panel_1.setVerticalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(22)
- .addComponent(lblDearDoctor)
- .addGap(18)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 120, Short.MAX_VALUE)
- .addContainerGap())
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(36)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 96, GroupLayout.PREFERRED_SIZE)
- .addContainerGap(56, Short.MAX_VALUE))
- );
-
- JTextPane txtpnTodayYouAre = new JTextPane();
- txtpnTodayYouAre.setBorder(null);
- txtpnTodayYouAre.setText("Today you are receiving a pharmacogenetic report based on the genetic information of your patient. Because the human genome contains extremely private and sensitive information of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier, it must be managed with care.\r\nToday you are receiving a pharmacogenetic report based on the genetic information of your patient. Because the human genome contains extremely private and sensitive information of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier, it must be managed with care.\r\nToday you are receiving a pharmacogenetic report based on the genetic information of your patient. Because the human genome contains extremely private and sensitive information of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier, it must be managed with care.");
- txtpnTodayYouAre.setFont(new Font("Tahoma", Font.PLAIN, 13));
- txtpnTodayYouAre.setEditable(false);
- txtpnTodayYouAre.setBackground(SystemColor.menu);
- scrollPane.setViewportView(txtpnTodayYouAre);
- panel_1.setLayout(gl_panel_1);
- jScrollPane4 = new javax.swing.JScrollPane();
- getContentPane().setLayout(layout);
-
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
- ReplySurvey replySurvey = commHandlerAdapter.callServiceSurvey();
-
- map = replySurvey.getQuestions();
- ids = map.keySet();
- locations = replySurvey.getLocations();
-
- panel_2 = new JPanel();
- panel_2.setBackground(Color.WHITE);
- panel_2.setBorder(new BevelBorder(BevelBorder.LOWERED, null, null, null, null));
- jScrollPane4.setViewportView(panel_2);
- panel_2.setLayout(new BoxLayout(panel_2, BoxLayout.Y_AXIS));
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
-
-
- for(Integer id : ids){
- ButtonGroup group = new ButtonGroup();
- JRadioButton r1 = new JRadioButton("1"); r1.setActionCommand("1"); r1.setBackground(Color.WHITE);
- JRadioButton r2 = new JRadioButton("2"); r2.setActionCommand("2"); r2.setBackground(Color.WHITE);
- JRadioButton r3 = new JRadioButton("3"); r3.setActionCommand("3"); r3.setBackground(Color.WHITE);
- JRadioButton r4 = new JRadioButton("4"); r4.setActionCommand("4"); r4.setBackground(Color.WHITE);
- JRadioButton r5 = new JRadioButton("5"); r5.setActionCommand("5"); r5.setBackground(Color.WHITE);
- group.add(r1);
- group.add(r2);
- group.add(r3);
- group.add(r4);
- group.add(r5);
- JPanel radio_panel = new JPanel();
- radio_panel.setLayout((new BoxLayout(radio_panel, BoxLayout.X_AXIS)));
- radio_panel.setBackground(Color.WHITE);
- radio_panel.setAlignmentX(Component.CENTER_ALIGNMENT);
- radio_panel.add(r1);
- radio_panel.add(r2);
- radio_panel.add(r3);
- radio_panel.add(r4);
- radio_panel.add(r5);
- radio_panel.doLayout();
- radio_panel.setPreferredSize(radio_panel.getPreferredSize());
- JTextArea question = new JTextArea(id + ") " + map.get(id).getQuestion());
- question.setLineWrap(true);
- question.setWrapStyleWord(true);
- question.setAlignmentX(Component.CENTER_ALIGNMENT);
- question.setFont(new Font("Tahoma", Font.PLAIN, 13));
- JPanel row_panel = new JPanel();
- row_panel.setLayout(new BoxLayout(row_panel, BoxLayout.X_AXIS));
- row_panel.add(question);
- row_panel.add(Box.createRigidArea(new Dimension(10,0)));
- row_panel.add(radio_panel);
-
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- panel_2.add(row_panel);
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- panel_2.add(radio_panel);
- panel_2.add(new JSeparator());
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
-// panel_2.setPreferredSize(panel_2.getPreferredSize());
- buttonGroupMap.put(id, group);
-
- }
-
-
-
- this.setSize(new Dimension(1200, 865));
-// pack();
- }// </editor-fold>//GEN-END:initComponents
-
-
- private void submitButtonActionPerformed(java.awt.event.ActionEvent evt){
-
- try{
- answers = new HashMap<String, String>();
- StringBuilder sb = new StringBuilder();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- sb.append(q).append(",");
- sb.append(bg.getSelection().getActionCommand()).append(";");
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- String answer = sb.toString();
- Integer id_loc = null;
- for(Integer i: locations.keySet()){
- if(locations.get(i).equals(comboBox.getSelectedItem().toString()))
- id_loc = i;
- }
-
- String id_p;
- if(jComboBox1.getSelectedItem().toString().equals("Select Patient"))
- id_p = "0";
- else
- id_p = jComboBox1.getSelectedItem().toString();
-
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
-
- String reply = commHandlerAdapter.callServiceSurveyAnswer(answer, id_loc.toString(), id_p);
-
- if(reply.equals("1")){
- survey_submitted = true;
-
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Congrats! Your aswers have been sent to the SHCS datacenter.",
- "Information Message",
- JOptionPane.INFORMATION_MESSAGE);
- }
- else{
- throw new IOException();
- }
-
-
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "The SHCS datacenter does not respond. Please save the survey and send it to jean.raisaro@epfl.ch.",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
- private void savePDFButtonActionPerformed(java.awt.event.ActionEvent evt){
- try {
-
- answers = new HashMap<String, String>();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- JFileChooser chooser = new JFileChooser();
- // Note: source for ExampleFileFilter can be found in FileChooserDemo,
- // under the demo/jfc directory in the JDK.
-
- int returnVal = chooser.showSaveDialog(this);
- System.out.println(returnVal);
- if(returnVal == JFileChooser.APPROVE_OPTION) {
- System.out.println("You chose to open this file: " +
- chooser.getSelectedFile().getPath());
- quest = new Questionnaire(chooser.getSelectedFile().getPath() + ".pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }else{
- quest = new Questionnaire("outputPDF/survey.pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }
-
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (DocumentException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (NullPointerException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
-
- private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
-
- JPanel contentPanel = new JPanel();
-
- dialog.setBounds(100, 100, 410, 80);
- dialog.getContentPane().setLayout(new BorderLayout());
- contentPanel.setLayout(new FlowLayout());
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- dialog.getContentPane().add(contentPanel, BorderLayout.CENTER);
- {
- JLabel label = new JLabel("Please wait...The overall computation can take few seconds");
- label.setHorizontalAlignment(SwingConstants.CENTER);
- label.setFont(new Font("Tahoma", Font.PLAIN, 12));
- contentPanel.add(label);
- }
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
- dialog.getContentPane().add(buttonPane, BorderLayout.SOUTH);
- }
- dialog.setLocationRelativeTo(this);
- dialog.setVisible(true);
-
- GUIWorker gw = new GUIWorker(this, props);
- Thread t = new Thread(gw);
- t.start();
-
- }
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JButton jButton1;
- private javax.swing.JComboBox<String> jComboBox1;
- private javax.swing.JLabel jLabel1;
- private javax.swing.JLabel jLabel2;
- private javax.swing.JLabel jLabel3;
- private javax.swing.JLabel jLabel4;
- private javax.swing.JMenu jMenu1;
- private javax.swing.JMenu jMenu2;
- private javax.swing.JMenuBar jMenuBar1;
- private javax.swing.JMenuItem jMenuItem1;
- private javax.swing.JPanel jPanel1;
- private javax.swing.JPanel jPanel2;
- private javax.swing.JScrollPane jScrollPane3;
- private javax.swing.JTabbedPane tabbedPane;
- private javax.swing.JScrollPane jScrollPane2;
- private javax.swing.JScrollPane jScrollPane4;
- private JPanel panel;
- private JPanel panel_1;
- private JPanel panel_2;
- private JLabel lblDearDoctor;
- private JLabel lblNewLabel_1;
- private JLabel lblNewLabel_2;
- private JLabel lblNewLabel_3;
- private JComboBox<String> comboBox;
- private Component rigidArea;
-
- // End of variables declaration//GEN-END:variables
-
-
- class GUIWorker implements Runnable{
-
- private JFrame mainFrame;
- private ClientProperties props;
- private MedUnit mu;
-
- public GUIWorker(GUI gui, ClientProperties props) {
- mainFrame = gui;
-
- this.props = props;
- this.mu = new MedUnit(props, 0);
- }
-
- @Override
- public void run() {
-
- try{
- int patientId = Integer.parseInt((String) jComboBox1.getSelectedItem());
-
- // convert selected tests to test identifiers
- ArrayList<TestName> selectedTests = new ArrayList<TestName>();
- for (String currentName : getSelectedTests()) {
- TestName currentTest = testsByName.get(currentName);
-
- if (currentTest == null) {
- throw new IllegalStateException("Trying to run unknown test: " + currentTest);
- }
-
- selectedTests.add(currentTest);
- }
-
- // run tests
- Diagnostic diagnostic = mu.runTests(patientId, selectedTests);
-
- // warn for tests with missing material
- warnFailedTests(diagnostic, selectedTests);
-
- // create report
- mu.createReport(patientId, selectedTests, diagnostic);
-
- dialog.setVisible(false);
-
- // specify file you wish to open (JPedal handles getting the byte data)
- String filepathReport = props.getPathPDF() + patientId + ".pdf";
-
- // open generated PDF
- // object must be either String in full filepath, or
- // File object which can be relative
- Object[] input = new Object[]{ new File(filepathReport) };
- viewer.executeCommand(Commands.OPENFILE, input);
-
- // display CAD result as bar plot
- if (diagnostic.hasCAD()) {
- System.out.println("CAD = " + diagnostic.getResultCAD());
- BarPlotFrame frame = new BarPlotFrame(diagnostic.getResultCAD(), patientId);
- frame.setVisible(true);
- frame.setAlwaysOnTop(true);
- }
-
-
- } catch (SQLException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Please select a patient.");
- }
-
- }
-
- private void warnFailedTests(Diagnostic diagnostic, ArrayList<TestName> selectedTests) {
- ArrayList<Integer> failedTests = diagnostic.getInvalidTests();
-
- if (!failedTests.isEmpty()) {
- String msg = "Could not complete tests: ";
- boolean first = true;
- for (TestName testName : selectedTests) {
- if (failedTests.contains(testName.getId())) {
- if (first) {
- first = false;
- } else {
- msg += ", ";
- }
- msg += testName.getName();
- }
- }
- displayError(msg);
- }
-
- }
-
- private void displayError(String msg) {
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- mainFrame,
- msg,
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
-
- private ArrayList<String> getSelectedTests() {
- ArrayList<String> tests = new ArrayList<String>();
-
- for (TreePath treePath : jTree.getSelectionPaths()) {
- tests.addAll(getChildrenTests(jTree.getModel(), treePath.getLastPathComponent()));
- }
-
- return tests;
- }
-
- private ArrayList<String> getChildrenTests(TreeModel model, Object node) {
- ArrayList<String> tests = new ArrayList<String>();
-
- if (model.isLeaf(node)) { // leaf
- DefaultMutableTreeNode leaf = (DefaultMutableTreeNode) node;
- tests.add(leaf.toString());
- }
- else { // iterate over children
- for (int i = 0; i < model.getChildCount(node); i++) {
- tests.addAll(getChildrenTests(model, model.getChild(node, i)));
- }
- }
-
- return tests;
- }
-
- }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/51/60a007a44dac001410e2e30aa85db9d1 b/.metadata/.plugins/org.eclipse.core.resources/.history/51/60a007a44dac001410e2e30aa85db9d1
deleted file mode 100644
index c13d37f..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/51/60a007a44dac001410e2e30aa85db9d1
+++ /dev/null
@@ -1,893 +0,0 @@
-package ui;
-
-import io.ClientConnection;
-import io.CommAdapter;
-import io.Questionnaire;
-
-import java.awt.BorderLayout;
-import java.awt.Color;
-import java.awt.Component;
-import java.awt.Dimension;
-import java.awt.FlowLayout;
-import java.awt.Font;
-import java.awt.SystemColor;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.awt.event.WindowAdapter;
-import java.io.File;
-import java.io.IOException;
-import java.sql.SQLException;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.LinkedList;
-import java.util.Map;
-import java.util.Set;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
-import javax.swing.Box;
-import javax.swing.BoxLayout;
-import javax.swing.ButtonGroup;
-import javax.swing.DefaultComboBoxModel;
-import javax.swing.GroupLayout;
-import javax.swing.GroupLayout.Alignment;
-import javax.swing.ImageIcon;
-import javax.swing.JButton;
-import javax.swing.JComboBox;
-import javax.swing.JDialog;
-import javax.swing.JFileChooser;
-import javax.swing.JFrame;
-import javax.swing.JLabel;
-import javax.swing.JOptionPane;
-import javax.swing.JPanel;
-import javax.swing.JRadioButton;
-import javax.swing.JScrollPane;
-import javax.swing.JSeparator;
-import javax.swing.JTabbedPane;
-import javax.swing.JTextArea;
-import javax.swing.JTextPane;
-import javax.swing.JTree;
-import javax.swing.LayoutStyle.ComponentPlacement;
-import javax.swing.SwingConstants;
-import javax.swing.UIManager;
-import javax.swing.border.BevelBorder;
-import javax.swing.border.EmptyBorder;
-import javax.swing.border.EtchedBorder;
-import javax.swing.tree.DefaultMutableTreeNode;
-import javax.swing.tree.TreeModel;
-import javax.swing.tree.TreePath;
-
-import org.jpedal.examples.viewer.Commands;
-import org.jpedal.examples.viewer.Viewer;
-
-import utils.ClientProperties;
-
-import com.itextpdf.text.DocumentException;
-
-import database.DBconnectorClient;
-import framework.Diagnostic;
-import framework.MedUnit;
-import framework.Question;
-import framework.reply.ReplySurvey;
-import framework.test.TestName;
-
-/**
- *
- * @author youssef, raisaro
- */
-public class GUI extends javax.swing.JFrame {
-
- private static final Logger LOGGER = Logger.getLogger(GUI.class.getName());
-
- private static final long serialVersionUID = -4582280515597700650L;
-
- // configuration
- private ClientProperties props;
-
- private JTree jTree;
- private DBconnectorClient connectorClientDB;
- private LinkedList<Integer> patients;
-
- /** List of all relevant tests */
- private HashMap<String, TestName> testsByName;
- private Viewer viewer;
- private JDialog dialog;
- private JFrame frame;
- private boolean survey_submitted;
- private int close_trials;
- private Map<Integer, ButtonGroup> buttonGroupMap;
- private Questionnaire quest;
- private Map<Integer, Question> map;
- private Set<Integer> ids;
- private Map<String,String> answers;
- private Map<Integer, String> locations;
-
-
- /**
- * Creates new form GUI
- */
- public GUI(ClientProperties props){
-
- frame = this;
- this.props = props;
- this.connectorClientDB = new DBconnectorClient(props.getDbMsAccess());
- survey_submitted = false;
- close_trials = 0;
-
-
- try {
- initComponents();
-
- viewer = new Viewer(jScrollPane2, null);
- viewer.setupViewer();
-
- // create questionnare
-
-
- System.out.println("#of questions: " + ids.size());
-
-// viewer_q = new Viewer(jScrollPane4, null);
-// viewer_q.setupViewer();
-//
-// // specify file you wish to open (JPedal handles getting the byte data)
-// String filepathReport = "outputPDF/buttons_filled.pdf";
-//
-// // open generated PDF
-// // object must be either String in full filepath, or
-// // File object which can be relative
-// Object[] input = new Object[]{ new File(filepathReport) };
-// viewer_q.executeCommand(Commands.OPENFILE, input);
-
- JButton btnSubmitQuestionnaire = new JButton("Submit Questionnaire");
- btnSubmitQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- btnSubmitQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- submitButtonActionPerformed(arg0);
- }
- });
- JButton btnResetQuestionnaire = new JButton("Save as PDF");
- btnResetQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- savePDFButtonActionPerformed(arg0);
- }
- });
- btnResetQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- JPanel panel_button = new JPanel();
- panel_button.setLayout(new BoxLayout(panel_button, BoxLayout.X_AXIS));
-
- lblNewLabel_3 = new JLabel("");
- lblNewLabel_3.setIcon(new ImageIcon("res/location_icon.png"));
- panel_button.add(lblNewLabel_3);
-
-
-
- comboBox = new JComboBox<String>();
- comboBox.setFont(new Font("Tahoma", Font.BOLD, 12));
- comboBox.setModel(new DefaultComboBoxModel<String>(new String[] {"Select Location"}));
- for(Integer id_loc : locations.keySet()){
- comboBox.addItem(locations.get(id_loc));
- }
-
-
- panel_button.add(comboBox);
-
- rigidArea = Box.createRigidArea(new Dimension(10, 0));
- panel_button.add(rigidArea);
-
- lblNewLabel_1 = new JLabel("");
- lblNewLabel_1.setIcon(new ImageIcon("res/submit.png"));
- panel_button.add(lblNewLabel_1);
- panel_button.add(btnSubmitQuestionnaire);
-
- panel_button.add(Box.createRigidArea(new Dimension(10,0)));
-
- lblNewLabel_2 = new JLabel("");
- lblNewLabel_2.setIcon(new ImageIcon("res/pdf.png"));
- panel_button.add(lblNewLabel_2);
- panel_button.add(btnResetQuestionnaire);
- panel_button.setPreferredSize(new Dimension(211, 35));
- panel_button.validate();
-
- JPanel panel_3 = new JPanel();
- GroupLayout gl_panel = new GroupLayout(panel);
- gl_panel.setHorizontalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(41)
- .addGroup(gl_panel.createParallelGroup(Alignment.TRAILING)
- .addComponent(jScrollPane4, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE)
- .addComponent(panel_1, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE))
- .addGap(32))
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(63)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addGap(103)
- .addComponent(panel_button, GroupLayout.DEFAULT_SIZE, 488, Short.MAX_VALUE)
- .addGap(241))
- );
- gl_panel.setVerticalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(22)
- .addComponent(panel_1, GroupLayout.DEFAULT_SIZE, 192, Short.MAX_VALUE)
- .addGap(18)
- .addComponent(jScrollPane4, GroupLayout.DEFAULT_SIZE, 437, Short.MAX_VALUE)
- .addGap(26)
- .addGroup(gl_panel.createParallelGroup(Alignment.LEADING)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(panel_button, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE)))
- );
- panel_3.setLayout(new BoxLayout(panel_3, BoxLayout.X_AXIS));
-
-
- panel.setLayout(gl_panel);
-
-
-
-
-
-
- /////////////////////////////////////////////////////////
- // display the tests available
-
- // get the tests
- HashMap<String, ArrayList<TestName>> testsRelevantByGroup = connectorClientDB.getRelevantTestsByGroup();
- ArrayList<String> groups = new ArrayList<String>(testsRelevantByGroup.keySet());
-
- // flatten hashmap into linkedlist
-// tests = new LinkedList<>();
- testsByName = new HashMap<String, TestName>();
- for (String group : groups) {
-// tests.addAll(testsRelevantByGroup.get(group));
- for (TestName test : testsRelevantByGroup.get(group)) {
- testsByName.put(test.getName(), test);
- }
- }
-
- // define tree structure of the tests
- DefaultMutableTreeNode root = new DefaultMutableTreeNode("All");
-
- for (String group : groups) {
- DefaultMutableTreeNode child = new DefaultMutableTreeNode(group);
- root.add(child);
-
- for (TestName test : testsRelevantByGroup.get(group)) {
- DefaultMutableTreeNode grandChild = new DefaultMutableTreeNode(test.getName());
- child.add(grandChild);
- }
- }
-
- // define swing object
- jTree = new JTree(root);
-
- for(int i=0;i<jTree.getRowCount();i++){
- jTree.expandRow(i);
- }
-
- jScrollPane3.setViewportView(jTree);
-// jTree.addTreeSelectionListener(new TreeSelectionListener() {
-//
-// @Override
-// public void valueChanged(TreeSelectionEvent e) {
-// tp = jTree.getSelectionPaths();
-// }
-// });
- jScrollPane3.setViewportView(jTree);
-
- /////////////////////////////////////////////////////////
- // display the patients registered
-
- patients = connectorClientDB.getPatients();
- for (Integer patientId : patients) {
- jComboBox1.addItem(patientId.toString());
- }
-
- } catch (SQLException ex) {
- Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex);
- ex.printStackTrace();
-// } catch (IOException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
-// } catch (DocumentException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
- }
-
- }
-
- /**
- * 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() {
-
- jPanel1 = new javax.swing.JPanel();
- jLabel2 = new javax.swing.JLabel();
- jLabel1 = new javax.swing.JLabel();
- jPanel2 = new javax.swing.JPanel();
- jComboBox1 = new javax.swing.JComboBox<String>();
- jButton1 = new javax.swing.JButton();
- jButton1.setFont(new Font("Tahoma", Font.BOLD, 12));
- jLabel3 = new javax.swing.JLabel();
- jLabel4 = new javax.swing.JLabel();
- jScrollPane3 = new javax.swing.JScrollPane();
- jScrollPane2 = new javax.swing.JScrollPane();
- jMenuBar1 = new javax.swing.JMenuBar();
- jMenu1 = new javax.swing.JMenu();
- jMenuItem1 = new javax.swing.JMenuItem();
- jMenu2 = new javax.swing.JMenu();
- dialog = new JDialog();
- tabbedPane = new JTabbedPane(JTabbedPane.TOP);
-
- setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
- addWindowListener(new WindowAdapter() {
- @Override
- public void windowClosing(java.awt.event.WindowEvent windowEvent) {
- if (!survey_submitted && close_trials <= 2){
- JOptionPane.showMessageDialog(frame, "Before closing the application, please fill in and submit the questionnaire.");
- close_trials++;
- tabbedPane.setSelectedIndex(1);
- }else{
- System.exit(0);
- }
- }
- });
- setTitle("HIV Pharmacogenomics\n");
-
- jLabel2.setIcon(new javax.swing.ImageIcon("res/shcs_logo2_small.gif")); // NOI18N
-
- jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
- jLabel1.setText("HIV Pharmacogenomics | Project #693");
-
- javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
- jPanel1.setLayout(jPanel1Layout);
- jPanel1Layout.setHorizontalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap(71, Short.MAX_VALUE)
- .addComponent(jLabel1)
- .addGap(18, 18, 18)
- .addComponent(jLabel2))
- );
- jPanel1Layout.setVerticalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jLabel1)
- .addGap(11, 11, 11))
- .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)
- );
-
- jPanel2.setBackground(new java.awt.Color(255, 255, 255));
- jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
-
- jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<String>(new String[]{"Select Patient"}));
-
- jButton1.setText("Run Test");
- jButton1.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton1ActionPerformed(evt);
- }
- });
-
- JLabel lblNewLabel = new JLabel("");
- lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
- lblNewLabel.setIcon(new javax.swing.ImageIcon("res/gears.png"));
-
-
-
- javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
- jPanel2Layout.setHorizontalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addComponent(jComboBox1, 0, 248, Short.MAX_VALUE)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addGap(75)
- .addGroup(jPanel2Layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jButton1)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 75, GroupLayout.PREFERRED_SIZE))
- .addContainerGap(98, Short.MAX_VALUE))
- );
- jPanel2Layout.setVerticalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addComponent(jComboBox1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED, 223, Short.MAX_VALUE)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jButton1)
- .addGap(19))
- );
- jPanel2.setLayout(jPanel2Layout);
-
- jLabel3.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel3.setText("Select Patient");
-
- jLabel4.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel4.setText("Select Test");
-
- jScrollPane3.setBackground(new java.awt.Color(255, 255, 255));
-
- jMenu1.setText("File");
-
- jMenuItem1.setText("Exit");
- jMenu1.add(jMenuItem1);
-
- jMenuBar1.add(jMenu1);
-
- jMenu2.setText("Edit");
- jMenuBar1.add(jMenu2);
-
- setJMenuBar(jMenuBar1);
-
-
-
- javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
- layout.setHorizontalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(layout.createParallelGroup(Alignment.LEADING, false)
- .addComponent(jLabel3)
- .addComponent(jLabel4)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, 244, Short.MAX_VALUE)
- .addComponent(jScrollPane3))
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 970, Short.MAX_VALUE))
- .addContainerGap())
- );
- layout.setVerticalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel4))
- .addPreferredGap(ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addComponent(jScrollPane3, GroupLayout.PREFERRED_SIZE, 388, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jLabel3)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 785, Short.MAX_VALUE))
- .addContainerGap())
- );
-
-
- jScrollPane2.setAutoscrolls(true);
- jScrollPane3.setAutoscrolls(true);
- tabbedPane.addTab("Report", new ImageIcon("res/report_icon.gif"), jScrollPane2, null);
- tabbedPane.setBackgroundAt(0, new Color(255, 255, 255));
-
- panel = new JPanel();
- tabbedPane.addTab("Survey", new ImageIcon("res/survey_icon.png"), panel, null);
- tabbedPane.setBackgroundAt(1, new Color(255, 255, 255));
- tabbedPane.setEnabledAt(1, true);
-
- panel_1 = new JPanel();
- panel_1.setBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null));
- panel_1.setBackground(UIManager.getColor("Button.background"));
-
- JLabel label = new JLabel("");
- label.setIcon(new ImageIcon("res/shcs_logo2_medium.gif"));
-
- lblDearDoctor = new JLabel("Dear Doctor,");
- lblDearDoctor.setFont(new Font("Tahoma", Font.BOLD, 14));
-
- JScrollPane scrollPane = new JScrollPane();
- scrollPane.setBorder(null);
- GroupLayout gl_panel_1 = new GroupLayout(panel_1);
- gl_panel_1.setHorizontalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(25)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 666, Short.MAX_VALUE)
- .addComponent(lblDearDoctor))
- .addContainerGap())
- );
- gl_panel_1.setVerticalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(22)
- .addComponent(lblDearDoctor)
- .addGap(18)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 120, Short.MAX_VALUE)
- .addContainerGap())
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(36)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 96, GroupLayout.PREFERRED_SIZE)
- .addContainerGap(56, Short.MAX_VALUE))
- );
-
- JTextPane txtpnTodayYouAre = new JTextPane();
- txtpnTodayYouAre.setBorder(null);
- txtpnTodayYouAre.setText("Today you are receiving a pharmacogenetic report based on the genetic information of your patient. Because the human genome contains extremely private and sensitive information of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier, it must be managed with care.\r\nToday you are receiving a pharmacogenetic report based on the genetic information of your patient. Because the human genome contains extremely private and sensitive information of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier, it must be managed with care.\r\nToday you are receiving a pharmacogenetic report based on the genetic information of your patient. Because the human genome contains extremely private and sensitive information of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier, it must be managed with care.");
- txtpnTodayYouAre.setFont(new Font("Tahoma", Font.PLAIN, 13));
- txtpnTodayYouAre.setEditable(false);
- txtpnTodayYouAre.setBackground(SystemColor.menu);
- scrollPane.setViewportView(txtpnTodayYouAre);
- panel_1.setLayout(gl_panel_1);
- jScrollPane4 = new javax.swing.JScrollPane();
- getContentPane().setLayout(layout);
-
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
- ReplySurvey replySurvey = commHandlerAdapter.callServiceSurvey();
-
- map = replySurvey.getQuestions();
- ids = map.keySet();
- locations = replySurvey.getLocations();
-
- panel_2 = new JPanel();
- panel_2.setBackground(Color.WHITE);
- panel_2.setBorder(new BevelBorder(BevelBorder.LOWERED, null, null, null, null));
- jScrollPane4.setViewportView(panel_2);
- panel_2.setLayout(new BoxLayout(panel_2, BoxLayout.Y_AXIS));
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
-
-
- for(Integer id : ids){
- ButtonGroup group = new ButtonGroup();
- JRadioButton r1 = new JRadioButton("1"); r1.setActionCommand("1"); r1.setBackground(Color.WHITE);
- JRadioButton r2 = new JRadioButton("2"); r2.setActionCommand("2"); r2.setBackground(Color.WHITE);
- JRadioButton r3 = new JRadioButton("3"); r3.setActionCommand("3"); r3.setBackground(Color.WHITE);
- JRadioButton r4 = new JRadioButton("4"); r4.setActionCommand("4"); r4.setBackground(Color.WHITE);
- JRadioButton r5 = new JRadioButton("5"); r5.setActionCommand("5"); r5.setBackground(Color.WHITE);
- group.add(r1);
- group.add(r2);
- group.add(r3);
- group.add(r4);
- group.add(r5);
- JPanel radio_panel = new JPanel();
- radio_panel.setLayout((new BoxLayout(radio_panel, BoxLayout.X_AXIS)));
- radio_panel.setBackground(Color.WHITE);
- radio_panel.setAlignmentX(Component.CENTER_ALIGNMENT);
- radio_panel.add(r1);
- radio_panel.add(r2);
- radio_panel.add(r3);
- radio_panel.add(r4);
- radio_panel.add(r5);
- radio_panel.doLayout();
- radio_panel.setPreferredSize(radio_panel.getPreferredSize());
- JTextArea question = new JTextArea(id + ") " + map.get(id).getQuestion());
- question.setLineWrap(true);
- question.setWrapStyleWord(true);
- question.setAlignmentX(Component.CENTER_ALIGNMENT);
- question.setFont(new Font("Tahoma", Font.PLAIN, 13));
- JPanel row_panel = new JPanel();
- row_panel.setLayout(new BoxLayout(row_panel, BoxLayout.X_AXIS));
- row_panel.add(question);
- row_panel.add(Box.createRigidArea(new Dimension(10,0)));
- row_panel.add(radio_panel);
-
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- panel_2.add(row_panel);
-// panel_2.add(Box.createRigidArea(new Dimension(0,5)));
-// panel_2.add(radio_panel);
- panel_2.add(new JSeparator());
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- panel_2.setPreferredSize(panel_2.getPreferredSize());
- buttonGroupMap.put(id, group);
-
- }
-
-
-
- this.setSize(new Dimension(1200, 865));
-// pack();
- }// </editor-fold>//GEN-END:initComponents
-
-
- private void submitButtonActionPerformed(java.awt.event.ActionEvent evt){
-
- try{
- answers = new HashMap<String, String>();
- StringBuilder sb = new StringBuilder();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- sb.append(q).append(",");
- sb.append(bg.getSelection().getActionCommand()).append(";");
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- String answer = sb.toString();
- Integer id_loc = null;
- for(Integer i: locations.keySet()){
- if(locations.get(i).equals(comboBox.getSelectedItem().toString()))
- id_loc = i;
- }
-
- String id_p;
- if(jComboBox1.getSelectedItem().toString().equals("Select Patient"))
- id_p = "0";
- else
- id_p = jComboBox1.getSelectedItem().toString();
-
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
-
- String reply = commHandlerAdapter.callServiceSurveyAnswer(answer, id_loc.toString(), id_p);
-
- if(reply.equals("1")){
- survey_submitted = true;
-
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Congrats! Your aswers have been sent to the SHCS datacenter.",
- "Information Message",
- JOptionPane.INFORMATION_MESSAGE);
- }
- else{
- throw new IOException();
- }
-
-
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "The SHCS datacenter does not respond. Please save the survey and send it to jean.raisaro@epfl.ch.",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
- private void savePDFButtonActionPerformed(java.awt.event.ActionEvent evt){
- try {
-
- answers = new HashMap<String, String>();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- JFileChooser chooser = new JFileChooser();
- // Note: source for ExampleFileFilter can be found in FileChooserDemo,
- // under the demo/jfc directory in the JDK.
-
- int returnVal = chooser.showSaveDialog(this);
- System.out.println(returnVal);
- if(returnVal == JFileChooser.APPROVE_OPTION) {
- System.out.println("You chose to open this file: " +
- chooser.getSelectedFile().getPath());
- quest = new Questionnaire(chooser.getSelectedFile().getPath() + ".pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }else{
- quest = new Questionnaire("outputPDF/survey.pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }
-
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (DocumentException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (NullPointerException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
-
- private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
-
- JPanel contentPanel = new JPanel();
-
- dialog.setBounds(100, 100, 410, 80);
- dialog.getContentPane().setLayout(new BorderLayout());
- contentPanel.setLayout(new FlowLayout());
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- dialog.getContentPane().add(contentPanel, BorderLayout.CENTER);
- {
- JLabel label = new JLabel("Please wait...The overall computation can take few seconds");
- label.setHorizontalAlignment(SwingConstants.CENTER);
- label.setFont(new Font("Tahoma", Font.PLAIN, 12));
- contentPanel.add(label);
- }
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
- dialog.getContentPane().add(buttonPane, BorderLayout.SOUTH);
- }
- dialog.setLocationRelativeTo(this);
- dialog.setVisible(true);
-
- GUIWorker gw = new GUIWorker(this, props);
- Thread t = new Thread(gw);
- t.start();
-
- }
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JButton jButton1;
- private javax.swing.JComboBox<String> jComboBox1;
- private javax.swing.JLabel jLabel1;
- private javax.swing.JLabel jLabel2;
- private javax.swing.JLabel jLabel3;
- private javax.swing.JLabel jLabel4;
- private javax.swing.JMenu jMenu1;
- private javax.swing.JMenu jMenu2;
- private javax.swing.JMenuBar jMenuBar1;
- private javax.swing.JMenuItem jMenuItem1;
- private javax.swing.JPanel jPanel1;
- private javax.swing.JPanel jPanel2;
- private javax.swing.JScrollPane jScrollPane3;
- private javax.swing.JTabbedPane tabbedPane;
- private javax.swing.JScrollPane jScrollPane2;
- private javax.swing.JScrollPane jScrollPane4;
- private JPanel panel;
- private JPanel panel_1;
- private JPanel panel_2;
- private JLabel lblDearDoctor;
- private JLabel lblNewLabel_1;
- private JLabel lblNewLabel_2;
- private JLabel lblNewLabel_3;
- private JComboBox<String> comboBox;
- private Component rigidArea;
-
- // End of variables declaration//GEN-END:variables
-
-
- class GUIWorker implements Runnable{
-
- private JFrame mainFrame;
- private ClientProperties props;
- private MedUnit mu;
-
- public GUIWorker(GUI gui, ClientProperties props) {
- mainFrame = gui;
-
- this.props = props;
- this.mu = new MedUnit(props, 0);
- }
-
- @Override
- public void run() {
-
- try{
- int patientId = Integer.parseInt((String) jComboBox1.getSelectedItem());
-
- // convert selected tests to test identifiers
- ArrayList<TestName> selectedTests = new ArrayList<TestName>();
- for (String currentName : getSelectedTests()) {
- TestName currentTest = testsByName.get(currentName);
-
- if (currentTest == null) {
- throw new IllegalStateException("Trying to run unknown test: " + currentTest);
- }
-
- selectedTests.add(currentTest);
- }
-
- // run tests
- Diagnostic diagnostic = mu.runTests(patientId, selectedTests);
-
- // warn for tests with missing material
- warnFailedTests(diagnostic, selectedTests);
-
- // create report
- mu.createReport(patientId, selectedTests, diagnostic);
-
- dialog.setVisible(false);
-
- // specify file you wish to open (JPedal handles getting the byte data)
- String filepathReport = props.getPathPDF() + patientId + ".pdf";
-
- // open generated PDF
- // object must be either String in full filepath, or
- // File object which can be relative
- Object[] input = new Object[]{ new File(filepathReport) };
- viewer.executeCommand(Commands.OPENFILE, input);
-
- // display CAD result as bar plot
- if (diagnostic.hasCAD()) {
- System.out.println("CAD = " + diagnostic.getResultCAD());
- BarPlotFrame frame = new BarPlotFrame(diagnostic.getResultCAD(), patientId);
- frame.setVisible(true);
- frame.setAlwaysOnTop(true);
- }
-
-
- } catch (SQLException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Please select a patient.");
- }
-
- }
-
- private void warnFailedTests(Diagnostic diagnostic, ArrayList<TestName> selectedTests) {
- ArrayList<Integer> failedTests = diagnostic.getInvalidTests();
-
- if (!failedTests.isEmpty()) {
- String msg = "Could not complete tests: ";
- boolean first = true;
- for (TestName testName : selectedTests) {
- if (failedTests.contains(testName.getId())) {
- if (first) {
- first = false;
- } else {
- msg += ", ";
- }
- msg += testName.getName();
- }
- }
- displayError(msg);
- }
-
- }
-
- private void displayError(String msg) {
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- mainFrame,
- msg,
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
-
- private ArrayList<String> getSelectedTests() {
- ArrayList<String> tests = new ArrayList<String>();
-
- for (TreePath treePath : jTree.getSelectionPaths()) {
- tests.addAll(getChildrenTests(jTree.getModel(), treePath.getLastPathComponent()));
- }
-
- return tests;
- }
-
- private ArrayList<String> getChildrenTests(TreeModel model, Object node) {
- ArrayList<String> tests = new ArrayList<String>();
-
- if (model.isLeaf(node)) { // leaf
- DefaultMutableTreeNode leaf = (DefaultMutableTreeNode) node;
- tests.add(leaf.toString());
- }
- else { // iterate over children
- for (int i = 0; i < model.getChildCount(node); i++) {
- tests.addAll(getChildrenTests(model, model.getChild(node, i)));
- }
- }
-
- return tests;
- }
-
- }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/56/b061d38052ac001410e2e30aa85db9d1 b/.metadata/.plugins/org.eclipse.core.resources/.history/56/b061d38052ac001410e2e30aa85db9d1
deleted file mode 100644
index 1a9ddb0..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/56/b061d38052ac001410e2e30aa85db9d1
+++ /dev/null
@@ -1,907 +0,0 @@
-package ui;
-
-import io.ClientConnection;
-import io.CommAdapter;
-import io.Questionnaire;
-
-import java.awt.BorderLayout;
-import java.awt.Color;
-import java.awt.Component;
-import java.awt.Dimension;
-import java.awt.FlowLayout;
-import java.awt.Font;
-import java.awt.SystemColor;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.awt.event.WindowAdapter;
-import java.io.File;
-import java.io.IOException;
-import java.sql.SQLException;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.LinkedList;
-import java.util.Map;
-import java.util.Set;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
-import javax.swing.Box;
-import javax.swing.BoxLayout;
-import javax.swing.ButtonGroup;
-import javax.swing.DefaultComboBoxModel;
-import javax.swing.GroupLayout;
-import javax.swing.GroupLayout.Alignment;
-import javax.swing.ImageIcon;
-import javax.swing.JButton;
-import javax.swing.JComboBox;
-import javax.swing.JDialog;
-import javax.swing.JFileChooser;
-import javax.swing.JFrame;
-import javax.swing.JLabel;
-import javax.swing.JOptionPane;
-import javax.swing.JPanel;
-import javax.swing.JRadioButton;
-import javax.swing.JScrollPane;
-import javax.swing.JSeparator;
-import javax.swing.JTabbedPane;
-import javax.swing.JTextArea;
-import javax.swing.JTextPane;
-import javax.swing.JTree;
-import javax.swing.LayoutStyle.ComponentPlacement;
-import javax.swing.SwingConstants;
-import javax.swing.UIManager;
-import javax.swing.border.BevelBorder;
-import javax.swing.border.EmptyBorder;
-import javax.swing.border.EtchedBorder;
-import javax.swing.tree.DefaultMutableTreeNode;
-import javax.swing.tree.TreeModel;
-import javax.swing.tree.TreePath;
-
-import org.jpedal.examples.viewer.Commands;
-import org.jpedal.examples.viewer.Viewer;
-
-import utils.ClientProperties;
-
-import com.itextpdf.text.DocumentException;
-
-import database.DBconnectorClient;
-import framework.Diagnostic;
-import framework.MedUnit;
-import framework.Question;
-import framework.reply.ReplySurvey;
-import framework.test.TestName;
-import javax.swing.border.SoftBevelBorder;
-import javax.swing.border.LineBorder;
-
-/**
- *
- * @author youssef, raisaro
- */
-public class GUI extends javax.swing.JFrame {
-
- private static final Logger LOGGER = Logger.getLogger(GUI.class.getName());
-
- private static final long serialVersionUID = -4582280515597700650L;
-
- // configuration
- private ClientProperties props;
-
- private JTree jTree;
- private DBconnectorClient connectorClientDB;
- private LinkedList<Integer> patients;
-
- /** List of all relevant tests */
- private HashMap<String, TestName> testsByName;
- private Viewer viewer;
- private JDialog dialog;
- private JFrame frame;
- private boolean survey_submitted;
- private int close_trials;
- private Map<Integer, ButtonGroup> buttonGroupMap;
- private Questionnaire quest;
- private Map<Integer, Question> map;
- private Set<Integer> ids;
- private Map<String,String> answers;
- private Map<Integer, String> locations;
-
-
- /**
- * Creates new form GUI
- */
- public GUI(ClientProperties props){
-
- frame = this;
- this.props = props;
- this.connectorClientDB = new DBconnectorClient(props.getDbMsAccess());
- survey_submitted = false;
- close_trials = 0;
-
-
- try {
- initComponents();
-
- viewer = new Viewer(jScrollPane2, null);
- viewer.setupViewer();
-
- // create questionnare
-
-
- System.out.println("#of questions: " + ids.size());
-
-// viewer_q = new Viewer(jScrollPane4, null);
-// viewer_q.setupViewer();
-//
-// // specify file you wish to open (JPedal handles getting the byte data)
-// String filepathReport = "outputPDF/buttons_filled.pdf";
-//
-// // open generated PDF
-// // object must be either String in full filepath, or
-// // File object which can be relative
-// Object[] input = new Object[]{ new File(filepathReport) };
-// viewer_q.executeCommand(Commands.OPENFILE, input);
-
- JButton btnSubmitQuestionnaire = new JButton("Submit Questionnaire");
- btnSubmitQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- btnSubmitQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- submitButtonActionPerformed(arg0);
- }
- });
- JButton btnResetQuestionnaire = new JButton("Save as PDF");
- btnResetQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- savePDFButtonActionPerformed(arg0);
- }
- });
- btnResetQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- JPanel panel_button = new JPanel();
- panel_button.setLayout(new BoxLayout(panel_button, BoxLayout.X_AXIS));
-
- lblNewLabel_3 = new JLabel("");
- lblNewLabel_3.setIcon(new ImageIcon("res/location_icon.png"));
- panel_button.add(lblNewLabel_3);
-
-
-
- comboBox = new JComboBox<String>();
- comboBox.setFont(new Font("Tahoma", Font.BOLD, 12));
- comboBox.setModel(new DefaultComboBoxModel<String>(new String[] {"Select Location"}));
- for(Integer id_loc : locations.keySet()){
- comboBox.addItem(locations.get(id_loc));
- }
-
-
- panel_button.add(comboBox);
-
- rigidArea = Box.createRigidArea(new Dimension(10, 0));
- panel_button.add(rigidArea);
-
- lblNewLabel_1 = new JLabel("");
- lblNewLabel_1.setIcon(new ImageIcon("res/submit.png"));
- panel_button.add(lblNewLabel_1);
- panel_button.add(btnSubmitQuestionnaire);
-
- panel_button.add(Box.createRigidArea(new Dimension(10,0)));
-
- lblNewLabel_2 = new JLabel("");
- lblNewLabel_2.setIcon(new ImageIcon("res/pdf.png"));
- panel_button.add(lblNewLabel_2);
- panel_button.add(btnResetQuestionnaire);
- panel_button.setPreferredSize(new Dimension(211, 35));
- panel_button.validate();
-
- JPanel panel_3 = new JPanel();
- GroupLayout gl_panel = new GroupLayout(panel);
- gl_panel.setHorizontalGroup(
- gl_panel.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(63)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addGap(103)
- .addComponent(panel_button, GroupLayout.DEFAULT_SIZE, 498, Short.MAX_VALUE)
- .addGap(241))
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(41)
- .addGroup(gl_panel.createParallelGroup(Alignment.TRAILING)
- .addComponent(jScrollPane4, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE)
- .addComponent(panel_1, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE))
- .addGap(32))
- );
- gl_panel.setVerticalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(22)
- .addComponent(panel_1, GroupLayout.PREFERRED_SIZE, 235, GroupLayout.PREFERRED_SIZE)
- .addGap(37)
- .addComponent(jScrollPane4, GroupLayout.DEFAULT_SIZE, 379, Short.MAX_VALUE)
- .addGap(26)
- .addGroup(gl_panel.createParallelGroup(Alignment.LEADING)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(panel_button, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE)))
- );
- panel_3.setLayout(new BoxLayout(panel_3, BoxLayout.X_AXIS));
-
-
- panel.setLayout(gl_panel);
-
-
-
-
-
-
- /////////////////////////////////////////////////////////
- // display the tests available
-
- // get the tests
- HashMap<String, ArrayList<TestName>> testsRelevantByGroup = connectorClientDB.getRelevantTestsByGroup();
- ArrayList<String> groups = new ArrayList<String>(testsRelevantByGroup.keySet());
-
- // flatten hashmap into linkedlist
-// tests = new LinkedList<>();
- testsByName = new HashMap<String, TestName>();
- for (String group : groups) {
-// tests.addAll(testsRelevantByGroup.get(group));
- for (TestName test : testsRelevantByGroup.get(group)) {
- testsByName.put(test.getName(), test);
- }
- }
-
- // define tree structure of the tests
- DefaultMutableTreeNode root = new DefaultMutableTreeNode("All");
-
- for (String group : groups) {
- DefaultMutableTreeNode child = new DefaultMutableTreeNode(group);
- root.add(child);
-
- for (TestName test : testsRelevantByGroup.get(group)) {
- DefaultMutableTreeNode grandChild = new DefaultMutableTreeNode(test.getName());
- child.add(grandChild);
- }
- }
-
- // define swing object
- jTree = new JTree(root);
-
- for(int i=0;i<jTree.getRowCount();i++){
- jTree.expandRow(i);
- }
-
- jScrollPane3.setViewportView(jTree);
-// jTree.addTreeSelectionListener(new TreeSelectionListener() {
-//
-// @Override
-// public void valueChanged(TreeSelectionEvent e) {
-// tp = jTree.getSelectionPaths();
-// }
-// });
- jScrollPane3.setViewportView(jTree);
-
- /////////////////////////////////////////////////////////
- // display the patients registered
-
- patients = connectorClientDB.getPatients();
- for (Integer patientId : patients) {
- jComboBox1.addItem(patientId.toString());
- }
-
- } catch (SQLException ex) {
- Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex);
- ex.printStackTrace();
-// } catch (IOException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
-// } catch (DocumentException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
- }
-
- }
-
- /**
- * 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() {
-
- jPanel1 = new javax.swing.JPanel();
- jLabel2 = new javax.swing.JLabel();
- jLabel1 = new javax.swing.JLabel();
- jPanel2 = new javax.swing.JPanel();
- jComboBox1 = new javax.swing.JComboBox<String>();
- jButton1 = new javax.swing.JButton();
- jButton1.setFont(new Font("Tahoma", Font.BOLD, 12));
- jLabel3 = new javax.swing.JLabel();
- jLabel4 = new javax.swing.JLabel();
- jScrollPane3 = new javax.swing.JScrollPane();
- jScrollPane2 = new javax.swing.JScrollPane();
- jMenuBar1 = new javax.swing.JMenuBar();
- jMenu1 = new javax.swing.JMenu();
- jMenuItem1 = new javax.swing.JMenuItem();
- jMenu2 = new javax.swing.JMenu();
- dialog = new JDialog();
- tabbedPane = new JTabbedPane(JTabbedPane.TOP);
-
- setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
- addWindowListener(new WindowAdapter() {
- @Override
- public void windowClosing(java.awt.event.WindowEvent windowEvent) {
- if (!survey_submitted && close_trials <= 2){
- JOptionPane.showMessageDialog(frame, "Before closing the application, please fill in and submit the questionnaire.");
- close_trials++;
- tabbedPane.setSelectedIndex(1);
- }else{
- System.exit(0);
- }
- }
- });
- setTitle("HIV Pharmacogenomics\n");
-
- jLabel2.setIcon(new javax.swing.ImageIcon("res/shcs_logo2_small.gif")); // NOI18N
-
- jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
- jLabel1.setText("HIV Pharmacogenomics | Project #693");
-
- javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
- jPanel1.setLayout(jPanel1Layout);
- jPanel1Layout.setHorizontalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap(71, Short.MAX_VALUE)
- .addComponent(jLabel1)
- .addGap(18, 18, 18)
- .addComponent(jLabel2))
- );
- jPanel1Layout.setVerticalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jLabel1)
- .addGap(11, 11, 11))
- .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)
- );
-
- jPanel2.setBackground(new java.awt.Color(255, 255, 255));
- jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
-
- jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<String>(new String[]{"Select Patient"}));
-
- jButton1.setText("Run Test");
- jButton1.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton1ActionPerformed(evt);
- }
- });
-
- JLabel lblNewLabel = new JLabel("");
- lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
- lblNewLabel.setIcon(new javax.swing.ImageIcon("res/gears.png"));
-
-
-
- javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
- jPanel2Layout.setHorizontalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addComponent(jComboBox1, 0, 248, Short.MAX_VALUE)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addGap(75)
- .addGroup(jPanel2Layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jButton1)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 75, GroupLayout.PREFERRED_SIZE))
- .addContainerGap(98, Short.MAX_VALUE))
- );
- jPanel2Layout.setVerticalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addComponent(jComboBox1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED, 223, Short.MAX_VALUE)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jButton1)
- .addGap(19))
- );
- jPanel2.setLayout(jPanel2Layout);
-
- jLabel3.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel3.setText("Select Patient");
-
- jLabel4.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel4.setText("Select Test");
-
- jScrollPane3.setBackground(new java.awt.Color(255, 255, 255));
-
- jMenu1.setText("File");
-
- jMenuItem1.setText("Exit");
- jMenu1.add(jMenuItem1);
-
- jMenuBar1.add(jMenu1);
-
- jMenu2.setText("Edit");
- jMenuBar1.add(jMenu2);
-
- setJMenuBar(jMenuBar1);
-
-
-
- javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
- layout.setHorizontalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(layout.createParallelGroup(Alignment.LEADING, false)
- .addComponent(jLabel3)
- .addComponent(jLabel4)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, 244, Short.MAX_VALUE)
- .addComponent(jScrollPane3))
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 970, Short.MAX_VALUE))
- .addContainerGap())
- );
- layout.setVerticalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel4))
- .addPreferredGap(ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addComponent(jScrollPane3, GroupLayout.PREFERRED_SIZE, 388, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jLabel3)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 785, Short.MAX_VALUE))
- .addContainerGap())
- );
-
-
- jScrollPane2.setAutoscrolls(true);
- jScrollPane3.setAutoscrolls(true);
- tabbedPane.addTab("Report", new ImageIcon("res/report_icon.gif"), jScrollPane2, null);
- tabbedPane.setBackgroundAt(0, new Color(255, 255, 255));
-
- panel = new JPanel();
- tabbedPane.addTab("Survey", new ImageIcon("res/survey_icon.png"), panel, null);
- tabbedPane.setBackgroundAt(1, new Color(255, 255, 255));
- tabbedPane.setEnabledAt(1, true);
-
- panel_1 = new JPanel();
- panel_1.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
- panel_1.setBackground(SystemColor.control);
-
- JLabel label = new JLabel("");
- label.setIcon(new ImageIcon("res/shcs_logo2_medium.gif"));
-
- lblDearDoctor = new JLabel("Dear Doctor,");
- lblDearDoctor.setFont(new Font("Tahoma", Font.BOLD, 14));
-
- JScrollPane scrollPane = new JScrollPane();
- scrollPane.setBorder(null);
- GroupLayout gl_panel_1 = new GroupLayout(panel_1);
- gl_panel_1.setHorizontalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(Alignment.LEADING, gl_panel_1.createSequentialGroup()
- .addGap(25)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addComponent(lblDearDoctor)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 661, Short.MAX_VALUE))
- .addContainerGap())
- );
- gl_panel_1.setVerticalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addContainerGap()
- .addComponent(lblDearDoctor)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 203, Short.MAX_VALUE))
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(36)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 96, GroupLayout.PREFERRED_SIZE)))
- .addContainerGap())
- );
-
- JTextPane txtpnTodayYouAre = new JTextPane();
- txtpnTodayYouAre.setBorder(null);
- txtpnTodayYouAre.setText("Today you are receiving a pharmacogenetics report based on the genome of your patient. Because of its highly sensitive nature, " +
- "the genetic information you are provided with is processed in a privacy-preserving way. In particular, to protect patients’ genomic privacy, " +
- "their genetic and clinical data is stored encrypted at the SHCS data center, and securely analyzed through a sophisticated algorithm designed and developed at EPFL [1, 2]. " +
- "The actual clinical and genetic information is never revealed. Only the authorized users, such as you, can get some processed information, for example, the final result of a " +
- "pharmacogenetics risk test.\nThis mechanism protects the data against insiders or hackers trying to illegally access patients’ medical information, while still allowing authorized " +
- "users to obtain the information they need." +
- "\n\nTo help us understanding the importance of genomic privacy in the medical domain, and the impact of privacy-enhancing technologies in daily clinical practice, please complete the following survey.");
- txtpnTodayYouAre.setFont(new Font("Tahoma", Font.PLAIN, 13));
- txtpnTodayYouAre.setEditable(false);
- txtpnTodayYouAre.setBackground(SystemColor.control);
- scrollPane.setViewportView(txtpnTodayYouAre);
- panel_1.setLayout(gl_panel_1);
- jScrollPane4 = new javax.swing.JScrollPane();
- jScrollPane4.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
- getContentPane().setLayout(layout);
-
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
- ReplySurvey replySurvey = commHandlerAdapter.callServiceSurvey();
-
- map = replySurvey.getQuestions();
- ids = map.keySet();
- locations = replySurvey.getLocations();
-
- panel_2 = new JPanel();
- panel_2.setBackground(Color.WHITE);
- panel_2.setBorder(null);
- jScrollPane4.setViewportView(panel_2);
- panel_2.setLayout(new BoxLayout(panel_2, BoxLayout.Y_AXIS));
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
-
-
- for(Integer id : ids){
- ButtonGroup group = new ButtonGroup();
- JRadioButton r1 = new JRadioButton("1"); r1.setActionCommand("1"); r1.setBackground(Color.WHITE);
- JRadioButton r2 = new JRadioButton("2"); r2.setActionCommand("2"); r2.setBackground(Color.WHITE);
- JRadioButton r3 = new JRadioButton("3"); r3.setActionCommand("3"); r3.setBackground(Color.WHITE);
- JRadioButton r4 = new JRadioButton("4"); r4.setActionCommand("4"); r4.setBackground(Color.WHITE);
- JRadioButton r5 = new JRadioButton("5"); r5.setActionCommand("5"); r5.setBackground(Color.WHITE);
- group.add(r1);
- group.add(r2);
- group.add(r3);
- group.add(r4);
- group.add(r5);
- JPanel radio_panel = new JPanel();
- radio_panel.setLayout((new BoxLayout(radio_panel, BoxLayout.X_AXIS)));
- radio_panel.setBackground(Color.WHITE);
- radio_panel.setAlignmentX(Component.CENTER_ALIGNMENT);
- radio_panel.add(r1);
- radio_panel.add(r2);
- radio_panel.add(r3);
- radio_panel.add(r4);
- radio_panel.add(r5);
- radio_panel.doLayout();
- radio_panel.setPreferredSize(radio_panel.getPreferredSize());
- JTextArea question = new JTextArea(id + ") " + map.get(id).getQuestion());
- question.setLineWrap(true);
- question.setWrapStyleWord(true);
- question.setAlignmentX(Component.CENTER_ALIGNMENT);
- question.setFont(new Font("Tahoma", Font.PLAIN, 13));
-
- JPanel row_panel = new JPanel();
- row_panel.setLayout(new BoxLayout(row_panel, BoxLayout.X_AXIS));
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.add(question);
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.add(radio_panel);
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.setBackground(Color.WHITE);
-
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- panel_2.add(row_panel);
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
-// panel_2.add(radio_panel);
- panel_2.add(new JSeparator());
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
-// panel_2.setPreferredSize(panel_2.getPreferredSize());
- buttonGroupMap.put(id, group);
-
- }
-
-
-
- this.setSize(new Dimension(1200, 865));
-// pack();
- }// </editor-fold>//GEN-END:initComponents
-
-
- private void submitButtonActionPerformed(java.awt.event.ActionEvent evt){
-
- try{
- answers = new HashMap<String, String>();
- StringBuilder sb = new StringBuilder();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- sb.append(q).append(",");
- sb.append(bg.getSelection().getActionCommand()).append(";");
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- String answer = sb.toString();
- Integer id_loc = null;
- for(Integer i: locations.keySet()){
- if(locations.get(i).equals(comboBox.getSelectedItem().toString()))
- id_loc = i;
- }
-
- String id_p;
- if(jComboBox1.getSelectedItem().toString().equals("Select Patient"))
- id_p = "0";
- else
- id_p = jComboBox1.getSelectedItem().toString();
-
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
-
- String reply = commHandlerAdapter.callServiceSurveyAnswer(answer, id_loc.toString(), id_p);
-
- if(reply.equals("1")){
- survey_submitted = true;
-
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Congrats! Your aswers have been sent to the SHCS datacenter.",
- "Information Message",
- JOptionPane.INFORMATION_MESSAGE);
- }
- else{
- throw new IOException();
- }
-
-
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "The SHCS datacenter does not respond. Please save the survey and send it to jean.raisaro@epfl.ch.",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
- private void savePDFButtonActionPerformed(java.awt.event.ActionEvent evt){
- try {
-
- answers = new HashMap<String, String>();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- JFileChooser chooser = new JFileChooser();
- // Note: source for ExampleFileFilter can be found in FileChooserDemo,
- // under the demo/jfc directory in the JDK.
-
- int returnVal = chooser.showSaveDialog(this);
- System.out.println(returnVal);
- if(returnVal == JFileChooser.APPROVE_OPTION) {
- System.out.println("You chose to open this file: " +
- chooser.getSelectedFile().getPath());
- quest = new Questionnaire(chooser.getSelectedFile().getPath() + ".pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }else{
- quest = new Questionnaire("outputPDF/survey.pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }
-
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (DocumentException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (NullPointerException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
-
- private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
-
- JPanel contentPanel = new JPanel();
-
- dialog.setBounds(100, 100, 410, 80);
- dialog.getContentPane().setLayout(new BorderLayout());
- contentPanel.setLayout(new FlowLayout());
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- dialog.getContentPane().add(contentPanel, BorderLayout.CENTER);
- {
- JLabel label = new JLabel("Please wait...The overall computation can take few seconds");
- label.setHorizontalAlignment(SwingConstants.CENTER);
- label.setFont(new Font("Tahoma", Font.PLAIN, 12));
- contentPanel.add(label);
- }
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
- dialog.getContentPane().add(buttonPane, BorderLayout.SOUTH);
- }
- dialog.setLocationRelativeTo(this);
- dialog.setVisible(true);
-
- GUIWorker gw = new GUIWorker(this, props);
- Thread t = new Thread(gw);
- t.start();
-
- }
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JButton jButton1;
- private javax.swing.JComboBox<String> jComboBox1;
- private javax.swing.JLabel jLabel1;
- private javax.swing.JLabel jLabel2;
- private javax.swing.JLabel jLabel3;
- private javax.swing.JLabel jLabel4;
- private javax.swing.JMenu jMenu1;
- private javax.swing.JMenu jMenu2;
- private javax.swing.JMenuBar jMenuBar1;
- private javax.swing.JMenuItem jMenuItem1;
- private javax.swing.JPanel jPanel1;
- private javax.swing.JPanel jPanel2;
- private javax.swing.JScrollPane jScrollPane3;
- private javax.swing.JTabbedPane tabbedPane;
- private javax.swing.JScrollPane jScrollPane2;
- private javax.swing.JScrollPane jScrollPane4;
- private JPanel panel;
- private JPanel panel_1;
- private JPanel panel_2;
- private JLabel lblDearDoctor;
- private JLabel lblNewLabel_1;
- private JLabel lblNewLabel_2;
- private JLabel lblNewLabel_3;
- private JComboBox<String> comboBox;
- private Component rigidArea;
-
- // End of variables declaration//GEN-END:variables
-
-
- class GUIWorker implements Runnable{
-
- private JFrame mainFrame;
- private ClientProperties props;
- private MedUnit mu;
-
- public GUIWorker(GUI gui, ClientProperties props) {
- mainFrame = gui;
-
- this.props = props;
- this.mu = new MedUnit(props, 0);
- }
-
- @Override
- public void run() {
-
- try{
- int patientId = Integer.parseInt((String) jComboBox1.getSelectedItem());
-
- // convert selected tests to test identifiers
- ArrayList<TestName> selectedTests = new ArrayList<TestName>();
- for (String currentName : getSelectedTests()) {
- TestName currentTest = testsByName.get(currentName);
-
- if (currentTest == null) {
- throw new IllegalStateException("Trying to run unknown test: " + currentTest);
- }
-
- selectedTests.add(currentTest);
- }
-
- // run tests
- Diagnostic diagnostic = mu.runTests(patientId, selectedTests);
-
- // warn for tests with missing material
- warnFailedTests(diagnostic, selectedTests);
-
- // create report
- mu.createReport(patientId, selectedTests, diagnostic);
-
- dialog.setVisible(false);
-
- // specify file you wish to open (JPedal handles getting the byte data)
- String filepathReport = props.getPathPDF() + patientId + ".pdf";
-
- // open generated PDF
- // object must be either String in full filepath, or
- // File object which can be relative
- Object[] input = new Object[]{ new File(filepathReport) };
- viewer.executeCommand(Commands.OPENFILE, input);
-
- // display CAD result as bar plot
- if (diagnostic.hasCAD()) {
- System.out.println("CAD = " + diagnostic.getResultCAD());
- BarPlotFrame frame = new BarPlotFrame(diagnostic.getResultCAD(), patientId);
- frame.setVisible(true);
- frame.setAlwaysOnTop(true);
- }
-
-
- } catch (SQLException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Please select a patient.");
- }
-
- }
-
- private void warnFailedTests(Diagnostic diagnostic, ArrayList<TestName> selectedTests) {
- ArrayList<Integer> failedTests = diagnostic.getInvalidTests();
-
- if (!failedTests.isEmpty()) {
- String msg = "Could not complete tests: ";
- boolean first = true;
- for (TestName testName : selectedTests) {
- if (failedTests.contains(testName.getId())) {
- if (first) {
- first = false;
- } else {
- msg += ", ";
- }
- msg += testName.getName();
- }
- }
- displayError(msg);
- }
-
- }
-
- private void displayError(String msg) {
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- mainFrame,
- msg,
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
-
- private ArrayList<String> getSelectedTests() {
- ArrayList<String> tests = new ArrayList<String>();
-
- for (TreePath treePath : jTree.getSelectionPaths()) {
- tests.addAll(getChildrenTests(jTree.getModel(), treePath.getLastPathComponent()));
- }
-
- return tests;
- }
-
- private ArrayList<String> getChildrenTests(TreeModel model, Object node) {
- ArrayList<String> tests = new ArrayList<String>();
-
- if (model.isLeaf(node)) { // leaf
- DefaultMutableTreeNode leaf = (DefaultMutableTreeNode) node;
- tests.add(leaf.toString());
- }
- else { // iterate over children
- for (int i = 0; i < model.getChildCount(node); i++) {
- tests.addAll(getChildrenTests(model, model.getChild(node, i)));
- }
- }
-
- return tests;
- }
-
- }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/57/40eae4fd4bac001410e2e30aa85db9d1 b/.metadata/.plugins/org.eclipse.core.resources/.history/57/40eae4fd4bac001410e2e30aa85db9d1
deleted file mode 100644
index 462c9fc..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/57/40eae4fd4bac001410e2e30aa85db9d1
+++ /dev/null
@@ -1,890 +0,0 @@
-package ui;
-
-import io.ClientConnection;
-import io.CommAdapter;
-import io.Questionnaire;
-
-import java.awt.BorderLayout;
-import java.awt.Color;
-import java.awt.Component;
-import java.awt.Dimension;
-import java.awt.FlowLayout;
-import java.awt.Font;
-import java.awt.SystemColor;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.awt.event.WindowAdapter;
-import java.io.File;
-import java.io.IOException;
-import java.sql.SQLException;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.LinkedList;
-import java.util.Map;
-import java.util.Set;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
-import javax.swing.Box;
-import javax.swing.BoxLayout;
-import javax.swing.ButtonGroup;
-import javax.swing.DefaultComboBoxModel;
-import javax.swing.GroupLayout;
-import javax.swing.GroupLayout.Alignment;
-import javax.swing.ImageIcon;
-import javax.swing.JButton;
-import javax.swing.JComboBox;
-import javax.swing.JDialog;
-import javax.swing.JFileChooser;
-import javax.swing.JFrame;
-import javax.swing.JLabel;
-import javax.swing.JOptionPane;
-import javax.swing.JPanel;
-import javax.swing.JRadioButton;
-import javax.swing.JScrollPane;
-import javax.swing.JSeparator;
-import javax.swing.JTabbedPane;
-import javax.swing.JTextArea;
-import javax.swing.JTextPane;
-import javax.swing.JTree;
-import javax.swing.LayoutStyle.ComponentPlacement;
-import javax.swing.SwingConstants;
-import javax.swing.UIManager;
-import javax.swing.border.BevelBorder;
-import javax.swing.border.EmptyBorder;
-import javax.swing.border.EtchedBorder;
-import javax.swing.tree.DefaultMutableTreeNode;
-import javax.swing.tree.TreeModel;
-import javax.swing.tree.TreePath;
-
-import org.jpedal.examples.viewer.Commands;
-import org.jpedal.examples.viewer.Viewer;
-
-import utils.ClientProperties;
-
-import com.itextpdf.text.DocumentException;
-
-import database.DBconnectorClient;
-import framework.Diagnostic;
-import framework.MedUnit;
-import framework.Question;
-import framework.reply.ReplySurvey;
-import framework.test.TestName;
-
-/**
- *
- * @author youssef, raisaro
- */
-public class GUI extends javax.swing.JFrame {
-
- private static final Logger LOGGER = Logger.getLogger(GUI.class.getName());
-
- private static final long serialVersionUID = -4582280515597700650L;
-
- // configuration
- private ClientProperties props;
-
- private JTree jTree;
- private DBconnectorClient connectorClientDB;
- private LinkedList<Integer> patients;
-
- /** List of all relevant tests */
- private HashMap<String, TestName> testsByName;
- private Viewer viewer;
- private JDialog dialog;
- private JFrame frame;
- private boolean survey_submitted;
- private int close_trials;
- private Map<Integer, ButtonGroup> buttonGroupMap;
- private Questionnaire quest;
- private Map<Integer, Question> map;
- private Set<Integer> ids;
- private Map<String,String> answers;
- private Map<Integer, String> locations;
-
-
- /**
- * Creates new form GUI
- */
- public GUI(ClientProperties props){
-
- frame = this;
- this.props = props;
- this.connectorClientDB = new DBconnectorClient(props.getDbMsAccess());
- survey_submitted = false;
- close_trials = 0;
-
-
- try {
- initComponents();
-
- viewer = new Viewer(jScrollPane2, null);
- viewer.setupViewer();
-
- // create questionnare
-
-
- System.out.println("#of questions: " + ids.size());
-
-// viewer_q = new Viewer(jScrollPane4, null);
-// viewer_q.setupViewer();
-//
-// // specify file you wish to open (JPedal handles getting the byte data)
-// String filepathReport = "outputPDF/buttons_filled.pdf";
-//
-// // open generated PDF
-// // object must be either String in full filepath, or
-// // File object which can be relative
-// Object[] input = new Object[]{ new File(filepathReport) };
-// viewer_q.executeCommand(Commands.OPENFILE, input);
-
- JButton btnSubmitQuestionnaire = new JButton("Submit Questionnaire");
- btnSubmitQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- btnSubmitQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- submitButtonActionPerformed(arg0);
- }
- });
- JButton btnResetQuestionnaire = new JButton("Save as PDF");
- btnResetQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- savePDFButtonActionPerformed(arg0);
- }
- });
- btnResetQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- JPanel panel_button = new JPanel();
- panel_button.setLayout(new BoxLayout(panel_button, BoxLayout.X_AXIS));
-
- lblNewLabel_3 = new JLabel("");
- lblNewLabel_3.setIcon(new ImageIcon("res/location_icon.png"));
- panel_button.add(lblNewLabel_3);
-
-
-
- comboBox = new JComboBox<String>();
- comboBox.setFont(new Font("Tahoma", Font.BOLD, 12));
- comboBox.setModel(new DefaultComboBoxModel<String>(new String[] {"Select Location"}));
- for(Integer id_loc : locations.keySet()){
- comboBox.addItem(locations.get(id_loc));
- }
-
-
- panel_button.add(comboBox);
-
- rigidArea = Box.createRigidArea(new Dimension(10, 0));
- panel_button.add(rigidArea);
-
- lblNewLabel_1 = new JLabel("");
- lblNewLabel_1.setIcon(new ImageIcon("res/submit.png"));
- panel_button.add(lblNewLabel_1);
- panel_button.add(btnSubmitQuestionnaire);
-
- panel_button.add(Box.createRigidArea(new Dimension(10,0)));
-
- lblNewLabel_2 = new JLabel("");
- lblNewLabel_2.setIcon(new ImageIcon("res/pdf.png"));
- panel_button.add(lblNewLabel_2);
- panel_button.add(btnResetQuestionnaire);
- panel_button.setPreferredSize(new Dimension(211, 35));
- panel_button.validate();
-
- JPanel panel_3 = new JPanel();
- GroupLayout gl_panel = new GroupLayout(panel);
- gl_panel.setHorizontalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(41)
- .addGroup(gl_panel.createParallelGroup(Alignment.TRAILING)
- .addComponent(jScrollPane4, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE)
- .addComponent(panel_1, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE))
- .addGap(32))
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(63)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addGap(103)
- .addComponent(panel_button, GroupLayout.DEFAULT_SIZE, 488, Short.MAX_VALUE)
- .addGap(241))
- );
- gl_panel.setVerticalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(22)
- .addComponent(panel_1, GroupLayout.DEFAULT_SIZE, 192, Short.MAX_VALUE)
- .addGap(18)
- .addComponent(jScrollPane4, GroupLayout.DEFAULT_SIZE, 437, Short.MAX_VALUE)
- .addGap(26)
- .addGroup(gl_panel.createParallelGroup(Alignment.LEADING)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(panel_button, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE)))
- );
- panel_3.setLayout(new BoxLayout(panel_3, BoxLayout.X_AXIS));
-
-
- panel.setLayout(gl_panel);
-
-
-
-
-
-
- /////////////////////////////////////////////////////////
- // display the tests available
-
- // get the tests
- HashMap<String, ArrayList<TestName>> testsRelevantByGroup = connectorClientDB.getRelevantTestsByGroup();
- ArrayList<String> groups = new ArrayList<String>(testsRelevantByGroup.keySet());
-
- // flatten hashmap into linkedlist
-// tests = new LinkedList<>();
- testsByName = new HashMap<String, TestName>();
- for (String group : groups) {
-// tests.addAll(testsRelevantByGroup.get(group));
- for (TestName test : testsRelevantByGroup.get(group)) {
- testsByName.put(test.getName(), test);
- }
- }
-
- // define tree structure of the tests
- DefaultMutableTreeNode root = new DefaultMutableTreeNode("All");
-
- for (String group : groups) {
- DefaultMutableTreeNode child = new DefaultMutableTreeNode(group);
- root.add(child);
-
- for (TestName test : testsRelevantByGroup.get(group)) {
- DefaultMutableTreeNode grandChild = new DefaultMutableTreeNode(test.getName());
- child.add(grandChild);
- }
- }
-
- // define swing object
- jTree = new JTree(root);
-
- for(int i=0;i<jTree.getRowCount();i++){
- jTree.expandRow(i);
- }
-
- jScrollPane3.setViewportView(jTree);
-// jTree.addTreeSelectionListener(new TreeSelectionListener() {
-//
-// @Override
-// public void valueChanged(TreeSelectionEvent e) {
-// tp = jTree.getSelectionPaths();
-// }
-// });
- jScrollPane3.setViewportView(jTree);
-
- /////////////////////////////////////////////////////////
- // display the patients registered
-
- patients = connectorClientDB.getPatients();
- for (Integer patientId : patients) {
- jComboBox1.addItem(patientId.toString());
- }
-
- } catch (SQLException ex) {
- Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex);
- ex.printStackTrace();
-// } catch (IOException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
-// } catch (DocumentException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
- }
-
- }
-
- /**
- * 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() {
-
- jPanel1 = new javax.swing.JPanel();
- jLabel2 = new javax.swing.JLabel();
- jLabel1 = new javax.swing.JLabel();
- jPanel2 = new javax.swing.JPanel();
- jComboBox1 = new javax.swing.JComboBox<String>();
- jButton1 = new javax.swing.JButton();
- jButton1.setFont(new Font("Tahoma", Font.BOLD, 12));
- jLabel3 = new javax.swing.JLabel();
- jLabel4 = new javax.swing.JLabel();
- jScrollPane3 = new javax.swing.JScrollPane();
- jScrollPane2 = new javax.swing.JScrollPane();
- jMenuBar1 = new javax.swing.JMenuBar();
- jMenu1 = new javax.swing.JMenu();
- jMenuItem1 = new javax.swing.JMenuItem();
- jMenu2 = new javax.swing.JMenu();
- dialog = new JDialog();
- tabbedPane = new JTabbedPane(JTabbedPane.TOP);
-
- setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
- addWindowListener(new WindowAdapter() {
- @Override
- public void windowClosing(java.awt.event.WindowEvent windowEvent) {
- if (!survey_submitted && close_trials <= 2){
- JOptionPane.showMessageDialog(frame, "Before closing the application, please fill in and submit the questionnaire.");
- close_trials++;
- tabbedPane.setSelectedIndex(1);
- }else{
- System.exit(0);
- }
- }
- });
- setTitle("HIV Pharmacogenomics\n");
-
- jLabel2.setIcon(new javax.swing.ImageIcon("res/shcs_logo2_small.gif")); // NOI18N
-
- jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
- jLabel1.setText("HIV Pharmacogenomics | Project #693");
-
- javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
- jPanel1.setLayout(jPanel1Layout);
- jPanel1Layout.setHorizontalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap(71, Short.MAX_VALUE)
- .addComponent(jLabel1)
- .addGap(18, 18, 18)
- .addComponent(jLabel2))
- );
- jPanel1Layout.setVerticalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jLabel1)
- .addGap(11, 11, 11))
- .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)
- );
-
- jPanel2.setBackground(new java.awt.Color(255, 255, 255));
- jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
-
- jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<String>(new String[]{"Select Patient"}));
-
- jButton1.setText("Run Test");
- jButton1.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton1ActionPerformed(evt);
- }
- });
-
- JLabel lblNewLabel = new JLabel("");
- lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
- lblNewLabel.setIcon(new javax.swing.ImageIcon("res/gears.png"));
-
-
-
- javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
- jPanel2Layout.setHorizontalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addComponent(jComboBox1, 0, 248, Short.MAX_VALUE)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addGap(75)
- .addGroup(jPanel2Layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jButton1)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 75, GroupLayout.PREFERRED_SIZE))
- .addContainerGap(98, Short.MAX_VALUE))
- );
- jPanel2Layout.setVerticalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addComponent(jComboBox1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED, 223, Short.MAX_VALUE)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jButton1)
- .addGap(19))
- );
- jPanel2.setLayout(jPanel2Layout);
-
- jLabel3.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel3.setText("Select Patient");
-
- jLabel4.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel4.setText("Select Test");
-
- jScrollPane3.setBackground(new java.awt.Color(255, 255, 255));
-
- jMenu1.setText("File");
-
- jMenuItem1.setText("Exit");
- jMenu1.add(jMenuItem1);
-
- jMenuBar1.add(jMenu1);
-
- jMenu2.setText("Edit");
- jMenuBar1.add(jMenu2);
-
- setJMenuBar(jMenuBar1);
-
-
-
- javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
- layout.setHorizontalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(layout.createParallelGroup(Alignment.LEADING, false)
- .addComponent(jLabel3)
- .addComponent(jLabel4)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, 244, Short.MAX_VALUE)
- .addComponent(jScrollPane3))
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 970, Short.MAX_VALUE))
- .addContainerGap())
- );
- layout.setVerticalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel4))
- .addPreferredGap(ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addComponent(jScrollPane3, GroupLayout.PREFERRED_SIZE, 388, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jLabel3)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 785, Short.MAX_VALUE))
- .addContainerGap())
- );
-
-
- jScrollPane2.setAutoscrolls(true);
- jScrollPane3.setAutoscrolls(true);
- tabbedPane.addTab("Report", new ImageIcon("res/report_icon.gif"), jScrollPane2, null);
- tabbedPane.setBackgroundAt(0, new Color(255, 255, 255));
-
- panel = new JPanel();
- tabbedPane.addTab("Survey", new ImageIcon("res/survey_icon.png"), panel, null);
- tabbedPane.setBackgroundAt(1, new Color(255, 255, 255));
- tabbedPane.setEnabledAt(1, true);
-
- panel_1 = new JPanel();
- panel_1.setBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null));
- panel_1.setBackground(UIManager.getColor("Button.background"));
-
- JLabel label = new JLabel("");
- label.setIcon(new ImageIcon("res/shcs_logo2_medium.gif"));
-
- lblDearDoctor = new JLabel("Dear Doctor,");
- lblDearDoctor.setFont(new Font("Tahoma", Font.BOLD, 14));
-
- JScrollPane scrollPane = new JScrollPane();
- scrollPane.setBorder(null);
- GroupLayout gl_panel_1 = new GroupLayout(panel_1);
- gl_panel_1.setHorizontalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(25)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 666, Short.MAX_VALUE)
- .addComponent(lblDearDoctor))
- .addContainerGap())
- );
- gl_panel_1.setVerticalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(22)
- .addComponent(lblDearDoctor)
- .addGap(18)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 120, Short.MAX_VALUE)
- .addContainerGap())
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(36)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 96, GroupLayout.PREFERRED_SIZE)
- .addContainerGap(56, Short.MAX_VALUE))
- );
-
- JTextPane txtpnTodayYouAre = new JTextPane();
- txtpnTodayYouAre.setBorder(null);
- txtpnTodayYouAre.setText("Today you are receiving a pharmacogenetic report based on the genetic information of your patient. Because the human genome contains extremely private and sensitive information of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier, it must be managed with care.\r\nToday you are receiving a pharmacogenetic report based on the genetic information of your patient. Because the human genome contains extremely private and sensitive information of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier, it must be managed with care.\r\nToday you are receiving a pharmacogenetic report based on the genetic information of your patient. Because the human genome contains extremely private and sensitive information of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier, it must be managed with care.");
- txtpnTodayYouAre.setFont(new Font("Tahoma", Font.PLAIN, 13));
- txtpnTodayYouAre.setEditable(false);
- txtpnTodayYouAre.setBackground(SystemColor.menu);
- scrollPane.setViewportView(txtpnTodayYouAre);
- panel_1.setLayout(gl_panel_1);
- jScrollPane4 = new javax.swing.JScrollPane();
- getContentPane().setLayout(layout);
-
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
- ReplySurvey replySurvey = commHandlerAdapter.callServiceSurvey();
-
- map = replySurvey.getQuestions();
- ids = map.keySet();
- locations = replySurvey.getLocations();
-
- panel_2 = new JPanel();
- panel_2.setBackground(Color.WHITE);
- panel_2.setBorder(new BevelBorder(BevelBorder.LOWERED, null, null, null, null));
- jScrollPane4.setViewportView(panel_2);
- panel_2.setLayout(new BoxLayout(panel_2, BoxLayout.Y_AXIS));
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
-
-
- for(Integer id : ids){
- ButtonGroup group = new ButtonGroup();
- JRadioButton r1 = new JRadioButton("1"); r1.setActionCommand("1"); r1.setBackground(Color.WHITE);
- JRadioButton r2 = new JRadioButton("2"); r2.setActionCommand("2"); r2.setBackground(Color.WHITE);
- JRadioButton r3 = new JRadioButton("3"); r3.setActionCommand("3"); r3.setBackground(Color.WHITE);
- JRadioButton r4 = new JRadioButton("4"); r4.setActionCommand("4"); r4.setBackground(Color.WHITE);
- JRadioButton r5 = new JRadioButton("5"); r5.setActionCommand("5"); r5.setBackground(Color.WHITE);
- group.add(r1);
- group.add(r2);
- group.add(r3);
- group.add(r4);
- group.add(r5);
- JPanel radio_panel = new JPanel();
- radio_panel.setLayout((new BoxLayout(radio_panel, BoxLayout.X_AXIS)));
- radio_panel.setBackground(Color.WHITE);
- radio_panel.setAlignmentX(Component.CENTER_ALIGNMENT);
- radio_panel.add(r1);
- radio_panel.add(r2);
- radio_panel.add(r3);
- radio_panel.add(r4);
- radio_panel.add(r5);
- radio_panel.doLayout();
- radio_panel.setPreferredSize(radio_panel.getPreferredSize());
- JTextArea question = new JTextArea(id + ") " + map.get(id).getQuestion());
- question.setLineWrap(true);
- question.setWrapStyleWord(true);
- question.setAlignmentX(Component.CENTER_ALIGNMENT);
- question.setFont(new Font("Tahoma", Font.PLAIN, 13));
- JPanel row_panel = new JPanel();
- row_panel.setLayout(new BoxLayout(row_panel, BoxLayout.X_AXIS));
- row_panel.add(radio_panel);
- row_panel.add(question);
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- panel_2.add(row_panel);
-// panel_2.add(Box.createRigidArea(new Dimension(0,5)));
-// panel_2.add(radio_panel);
- panel_2.add(new JSeparator());
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- buttonGroupMap.put(id, group);
-
- }
-
-
-
- this.setSize(new Dimension(1200, 865));
-// pack();
- }// </editor-fold>//GEN-END:initComponents
-
-
- private void submitButtonActionPerformed(java.awt.event.ActionEvent evt){
-
- try{
- answers = new HashMap<String, String>();
- StringBuilder sb = new StringBuilder();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- sb.append(q).append(",");
- sb.append(bg.getSelection().getActionCommand()).append(";");
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- String answer = sb.toString();
- Integer id_loc = null;
- for(Integer i: locations.keySet()){
- if(locations.get(i).equals(comboBox.getSelectedItem().toString()))
- id_loc = i;
- }
-
- String id_p;
- if(jComboBox1.getSelectedItem().toString().equals("Select Patient"))
- id_p = "0";
- else
- id_p = jComboBox1.getSelectedItem().toString();
-
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
-
- String reply = commHandlerAdapter.callServiceSurveyAnswer(answer, id_loc.toString(), id_p);
-
- if(reply.equals("1")){
- survey_submitted = true;
-
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Congrats! Your aswers have been sent to the SHCS datacenter.",
- "Information Message",
- JOptionPane.INFORMATION_MESSAGE);
- }
- else{
- throw new IOException();
- }
-
-
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "The SHCS datacenter does not respond. Please save the survey and send it to jean.raisaro@epfl.ch.",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
- private void savePDFButtonActionPerformed(java.awt.event.ActionEvent evt){
- try {
-
- answers = new HashMap<String, String>();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- JFileChooser chooser = new JFileChooser();
- // Note: source for ExampleFileFilter can be found in FileChooserDemo,
- // under the demo/jfc directory in the JDK.
-
- int returnVal = chooser.showSaveDialog(this);
- System.out.println(returnVal);
- if(returnVal == JFileChooser.APPROVE_OPTION) {
- System.out.println("You chose to open this file: " +
- chooser.getSelectedFile().getPath());
- quest = new Questionnaire(chooser.getSelectedFile().getPath() + ".pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }else{
- quest = new Questionnaire("outputPDF/survey.pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }
-
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (DocumentException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (NullPointerException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
-
- private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
-
- JPanel contentPanel = new JPanel();
-
- dialog.setBounds(100, 100, 410, 80);
- dialog.getContentPane().setLayout(new BorderLayout());
- contentPanel.setLayout(new FlowLayout());
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- dialog.getContentPane().add(contentPanel, BorderLayout.CENTER);
- {
- JLabel label = new JLabel("Please wait...The overall computation can take few seconds");
- label.setHorizontalAlignment(SwingConstants.CENTER);
- label.setFont(new Font("Tahoma", Font.PLAIN, 12));
- contentPanel.add(label);
- }
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
- dialog.getContentPane().add(buttonPane, BorderLayout.SOUTH);
- }
- dialog.setLocationRelativeTo(this);
- dialog.setVisible(true);
-
- GUIWorker gw = new GUIWorker(this, props);
- Thread t = new Thread(gw);
- t.start();
-
- }
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JButton jButton1;
- private javax.swing.JComboBox<String> jComboBox1;
- private javax.swing.JLabel jLabel1;
- private javax.swing.JLabel jLabel2;
- private javax.swing.JLabel jLabel3;
- private javax.swing.JLabel jLabel4;
- private javax.swing.JMenu jMenu1;
- private javax.swing.JMenu jMenu2;
- private javax.swing.JMenuBar jMenuBar1;
- private javax.swing.JMenuItem jMenuItem1;
- private javax.swing.JPanel jPanel1;
- private javax.swing.JPanel jPanel2;
- private javax.swing.JScrollPane jScrollPane3;
- private javax.swing.JTabbedPane tabbedPane;
- private javax.swing.JScrollPane jScrollPane2;
- private javax.swing.JScrollPane jScrollPane4;
- private JPanel panel;
- private JPanel panel_1;
- private JPanel panel_2;
- private JLabel lblDearDoctor;
- private JLabel lblNewLabel_1;
- private JLabel lblNewLabel_2;
- private JLabel lblNewLabel_3;
- private JComboBox<String> comboBox;
- private Component rigidArea;
-
- // End of variables declaration//GEN-END:variables
-
-
- class GUIWorker implements Runnable{
-
- private JFrame mainFrame;
- private ClientProperties props;
- private MedUnit mu;
-
- public GUIWorker(GUI gui, ClientProperties props) {
- mainFrame = gui;
-
- this.props = props;
- this.mu = new MedUnit(props, 0);
- }
-
- @Override
- public void run() {
-
- try{
- int patientId = Integer.parseInt((String) jComboBox1.getSelectedItem());
-
- // convert selected tests to test identifiers
- ArrayList<TestName> selectedTests = new ArrayList<TestName>();
- for (String currentName : getSelectedTests()) {
- TestName currentTest = testsByName.get(currentName);
-
- if (currentTest == null) {
- throw new IllegalStateException("Trying to run unknown test: " + currentTest);
- }
-
- selectedTests.add(currentTest);
- }
-
- // run tests
- Diagnostic diagnostic = mu.runTests(patientId, selectedTests);
-
- // warn for tests with missing material
- warnFailedTests(diagnostic, selectedTests);
-
- // create report
- mu.createReport(patientId, selectedTests, diagnostic);
-
- dialog.setVisible(false);
-
- // specify file you wish to open (JPedal handles getting the byte data)
- String filepathReport = props.getPathPDF() + patientId + ".pdf";
-
- // open generated PDF
- // object must be either String in full filepath, or
- // File object which can be relative
- Object[] input = new Object[]{ new File(filepathReport) };
- viewer.executeCommand(Commands.OPENFILE, input);
-
- // display CAD result as bar plot
- if (diagnostic.hasCAD()) {
- System.out.println("CAD = " + diagnostic.getResultCAD());
- BarPlotFrame frame = new BarPlotFrame(diagnostic.getResultCAD(), patientId);
- frame.setVisible(true);
- frame.setAlwaysOnTop(true);
- }
-
-
- } catch (SQLException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Please select a patient.");
- }
-
- }
-
- private void warnFailedTests(Diagnostic diagnostic, ArrayList<TestName> selectedTests) {
- ArrayList<Integer> failedTests = diagnostic.getInvalidTests();
-
- if (!failedTests.isEmpty()) {
- String msg = "Could not complete tests: ";
- boolean first = true;
- for (TestName testName : selectedTests) {
- if (failedTests.contains(testName.getId())) {
- if (first) {
- first = false;
- } else {
- msg += ", ";
- }
- msg += testName.getName();
- }
- }
- displayError(msg);
- }
-
- }
-
- private void displayError(String msg) {
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- mainFrame,
- msg,
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
-
- private ArrayList<String> getSelectedTests() {
- ArrayList<String> tests = new ArrayList<String>();
-
- for (TreePath treePath : jTree.getSelectionPaths()) {
- tests.addAll(getChildrenTests(jTree.getModel(), treePath.getLastPathComponent()));
- }
-
- return tests;
- }
-
- private ArrayList<String> getChildrenTests(TreeModel model, Object node) {
- ArrayList<String> tests = new ArrayList<String>();
-
- if (model.isLeaf(node)) { // leaf
- DefaultMutableTreeNode leaf = (DefaultMutableTreeNode) node;
- tests.add(leaf.toString());
- }
- else { // iterate over children
- for (int i = 0; i < model.getChildCount(node); i++) {
- tests.addAll(getChildrenTests(model, model.getChild(node, i)));
- }
- }
-
- return tests;
- }
-
- }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/59/d06c18c99ea7001417ceadf0100b5ef7 b/.metadata/.plugins/org.eclipse.core.resources/.history/59/d06c18c99ea7001417ceadf0100b5ef7
deleted file mode 100644
index 0352dba..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/59/d06c18c99ea7001417ceadf0100b5ef7
+++ /dev/null
@@ -1,287 +0,0 @@
-package io;
-
-import java.awt.BorderLayout;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.util.Map;
-import java.util.Set;
-
-import com.itextpdf.text.BaseColor;
-import com.itextpdf.text.Document;
-import com.itextpdf.text.DocumentException;
-import com.itextpdf.text.Element;
-import com.itextpdf.text.ExceptionConverter;
-import com.itextpdf.text.Font;
-import com.itextpdf.text.Font.FontFamily;
-import com.itextpdf.text.FontFactory;
-import com.itextpdf.text.Image;
-import com.itextpdf.text.PageSize;
-import com.itextpdf.text.Paragraph;
-import com.itextpdf.text.Phrase;
-import com.itextpdf.text.Rectangle;
-import com.itextpdf.text.pdf.AcroFields;
-import com.itextpdf.text.pdf.BaseFont;
-import com.itextpdf.text.pdf.ColumnText;
-import com.itextpdf.text.pdf.GrayColor;
-import com.itextpdf.text.pdf.PdfBorderDictionary;
-import com.itextpdf.text.pdf.PdfContentByte;
-import com.itextpdf.text.pdf.PdfFormField;
-import com.itextpdf.text.pdf.PdfPCell;
-import com.itextpdf.text.pdf.PdfPCellEvent;
-import com.itextpdf.text.pdf.PdfPTable;
-import com.itextpdf.text.pdf.PdfReader;
-import com.itextpdf.text.pdf.PdfStamper;
-import com.itextpdf.text.pdf.PdfWriter;
-import com.itextpdf.text.pdf.RadioCheckField;
-import com.itextpdf.text.pdf.TextField;
-
-import framework.Question;
-
-public class Questionnaire implements PdfPCellEvent{
-
- /** The path output file. */
- String pathOutputFile;
-
- /** The document. */
- Document document;
-
- int tf;
-
- public Questionnaire(String path){
- pathOutputFile = path;
- document = new Document(PageSize.A4, 25, 25, 50, 50);
- }
- public Questionnaire(int tf){
- this.tf = tf;
- }
-
- /** The resulting PDF. */
- public static final String RESULT1 = "outputPDF/buttons.pdf";
- /** The resulting PDF. */
- public static final String RESULT2 = "outputPDF/buttons_filled.pdf";
- /** Path to a JavaScript resource. */
- public static final String RESOURCE = "res/buttons.js";
- /** Path to an image used as button icon. */
- public static final String IMAGE = "res/info.png";
- /** Possible values of a radio field / checkboxes */
- public static final String[] LANGUAGES = { "English", "German", "French", "Spanish", "Dutch" };
-
- /**
- * Creates a PDF document.
- * @param filename the path to the new PDF document
- * @throws DocumentException
- * @throws IOException
- */
- public void createPdf(Map<Integer, Question> map, Set<Integer> ids) throws IOException, DocumentException {
-
- @SuppressWarnings("unused")
- PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(pathOutputFile));
-
-
- document.open();
- Image logo = Image.getInstance("res/shcs_logo2.gif");
-
- logo.scalePercent(30f);
- float[] columnWidths1 = {0.2f, 0.8f};
- PdfPTable table_title = new PdfPTable(columnWidths1);
- PdfPCell c01 = new PdfPCell(logo, false);
- PdfPCell c02 = new PdfPCell(new Paragraph("Survery | Project #693",
- FontFactory.getFont(FontFactory.HELVETICA, 20, Font.BOLD, BaseColor.BLACK)));
- c01.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setHorizontalAlignment(Element.ALIGN_CENTER);
- c01.setBorder(Rectangle.NO_BORDER);
- c02.setBorder(Rectangle.NO_BORDER);
-
- table_title.addCell(c01);
- table_title.addCell(c02);
- table_title.setWidthPercentage(100);
- table_title.setSpacingBefore(0);
- table_title.setSpacingAfter(25);
- document.add(table_title);
-
-
- //----------------------------------------------------------------------------------
-
-
- PdfPTable table1 = new PdfPTable(1);
- table1.setWidthPercentage(100);
- PdfPCell c11 = new PdfPCell(new Phrase("Today you are receiving a pharmacogenetic report based on the genetic " +
- "information of your patient. Because the human genome contains extremely private and sensitive information" +
- " of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier," +
- " it must be managed with care. ",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.NORMAL, BaseColor.BLACK)));
- c11.setLeading(1.5f, 1.5f);
- c11.setPaddingBottom(8);
-
-
- table1.addCell(c11);
- table1.setSpacingAfter(10);
- document.add(table1);
-
-
- //----------------------------------------------------------------------------------
-
-// // step 4
-// // add the JavaScript
-// writer.addJavaScript(Utilities.readFileToString(RESOURCE));
-
- for(Integer id: ids){
- PdfPCell c2;
-
- PdfPTable table = new PdfPTable(1);
- table.setSpacingAfter(10);
- table.setWidthPercentage(100);
-
- PdfPCell c1 = new PdfPCell(new Phrase(id + ") " + map.get(id).getQuestion(),FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c1.setPaddingTop(5);
- c1.setPaddingBottom(5);
- c1.setHorizontalAlignment(Element.ALIGN_CENTER);
- c1.setBorder(Rectangle.NO_BORDER);
- table.addCell(c1);
-
- c2 = new PdfPCell(new Phrase(" 1" +
- " 2" +
- " 3" +
- " 4" +
- " 5",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c2.setHorizontalAlignment(Element.ALIGN_LEFT);
- c2.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c2.setCellEvent(new Questionnaire(id));
- c2.setBorder(Rectangle.TOP);
- c2.setPaddingTop(2);
- c2.setPaddingBottom(5);
- c2.setBackgroundColor(new BaseColor(242, 242, 242));
-
- table.addCell(c2);
-
-
-
- document.add(table);
- }
-
-
- //----------------------------------------------------------------------------------
-
- // step 5
- document.close();
-
- }
-
- @Override
- public void cellLayout(PdfPCell cell, Rectangle position,
- PdfContentByte[] canvases) {
- PdfWriter writer = canvases[0].getPdfWriter();
- PdfFormField radiogroup = PdfFormField.createRadioButton(writer, true);
- radiogroup.setFieldName(String.valueOf(tf));
- System.out.println(tf);
-
- float llx = position.getLeft();
- float lly = position.getBottom();
-
- float cell_h = cell.getHeight();
- float cell_w = cell.getWidth();
-
- Rectangle rect;
-
- for(int i=1 ; i<=5; i++){
-
- rect = new Rectangle(llx + (3+i)*cell_w/12, lly+cell_h/2-6, llx + (3+i)*cell_w/12+12 ,lly+cell_h/2+6);
-
- RadioCheckField radio = new RadioCheckField(writer, rect, null, String.valueOf(i));
- radio.setBorderColor(GrayColor.GRAYBLACK);
- radio.setCheckType(RadioCheckField.TYPE_SQUARE);
-
-
- try {
- PdfFormField field = radio.getRadioField();
- radiogroup.addKid(field);
-
- writer.addAnnotation(radiogroup);
- }
-
- catch(IOException ioe) {
- throw new ExceptionConverter(ioe);
- }
- catch(DocumentException de) {
- throw new ExceptionConverter(de);
- }
- }
-
-
-
- }
-
-
- public String getAnswers() throws IOException, DocumentException{
- PdfReader reader = new PdfReader(pathOutputFile);
-
- PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(pathOutputFile));
- AcroFields form = stamper.getAcroFields();
-
- StringBuilder sb = new StringBuilder();
-
-
- Set<String> fields = form.getFields().keySet();
- for(String key: fields){
- System.out.println("key = " + key);
- if(form.getFieldType(key)==AcroFields.FIELD_TYPE_RADIOBUTTON){
- sb.append(key);
- sb.append(",");
- sb.append(form.getField(key));
- sb.append(";");
- }
- }
- reader.close();
- stamper.close();
-
- return sb.toString();
-
- }
-
-
-// /**
-// * Manipulates a PDF file src with the file dest as result
-// * @param src the original PDF
-// * @param dest the resulting PDF
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public void manipulatePdf(String src, String dest) throws IOException, DocumentException {
-// PdfReader reader = new PdfReader(src);
-// PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(dest));
-// AcroFields form = stamper.getAcroFields();
-// String[] radiostates = form.getAppearanceStates("language");
-// form.setField("language", radiostates[4]);
-// for (int i = 0; i < LANGUAGES.length; i++) {
-// String[] checkboxstates = form.getAppearanceStates("English");
-// form.setField(LANGUAGES[i], checkboxstates[i % 2 == 0 ? 1 : 0]);
-// }
-// stamper.close();
-// reader.close();
-//
-// PdfReader r = new PdfReader(dest);
-// AcroFields f = r.getAcroFields();
-// Set<String> fields = form.getFields().keySet();
-// for(String key: fields){
-// if(f.getFieldType(key)==AcroFields.FIELD_TYPE_RADIOBUTTON){
-// System.out.println(key);
-// System.out.println(f.getField(key));
-//
-// }
-// }
-// r.close();
-//
-// }
-//
-// /**
-// * Main method
-// * @param args no arguments needed
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public static void main(String[] args) throws IOException, DocumentException {
-// Questionnaire buttons = new Questionnaire();
-// buttons.createPdf(RESULT1);
-// buttons.manipulatePdf(RESULT1, RESULT2);
-// }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/59/e0f83ac9b2a7001417ceadf0100b5ef7 b/.metadata/.plugins/org.eclipse.core.resources/.history/59/e0f83ac9b2a7001417ceadf0100b5ef7
deleted file mode 100644
index 9391b82..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/59/e0f83ac9b2a7001417ceadf0100b5ef7
+++ /dev/null
@@ -1,96 +0,0 @@
-package testpdf;
-
-import java.io.FileOutputStream;
-import java.io.IOException;
-
-import com.itextpdf.text.DocumentException;
-import com.itextpdf.text.Rectangle;
-import com.itextpdf.text.pdf.GrayColor;
-import com.itextpdf.text.pdf.PdfAction;
-import com.itextpdf.text.pdf.PdfFormField;
-import com.itextpdf.text.pdf.PdfReader;
-import com.itextpdf.text.pdf.PdfStamper;
-import com.itextpdf.text.pdf.PushbuttonField;
-
-public class SubmitForm {
-
- /** The resulting PDF file. */
- public static final String RESULT
- = "outputPDF/submit_me.pdf";
-
- /**
- * Manipulates a PDF file src with the file dest as result
- * @param src the original PDF
- * @param dest the resulting PDF
- * @throws IOException
- * @throws DocumentException
- */
- public void manipulatePdf(String src, String dest)
- throws IOException, DocumentException {
- // create a reader
- PdfReader reader = new PdfReader(src);
- // create a stamper
- PdfStamper stamper = new PdfStamper(reader,
- new FileOutputStream(dest));
- // create a submit button that posts the form as an HTML query string
- PushbuttonField button1 = new PushbuttonField(
- stamper.getWriter(), new Rectangle(90, 660, 140, 690), "post");
- button1.setText("POST");
- button1.setBackgroundColor(new GrayColor(0.7f));
- button1.setVisibility(PushbuttonField.VISIBLE_BUT_DOES_NOT_PRINT);
- PdfFormField submit1 = button1.getField();
- submit1.setAction(PdfAction.createSubmitForm(
- "/book/request", null,
- PdfAction.SUBMIT_HTML_FORMAT | PdfAction.SUBMIT_COORDINATES));
- // add the button
- stamper.addAnnotation(submit1, 1);
- // create a submit button that posts the form as FDF
- PushbuttonField button2 = new PushbuttonField(
- stamper.getWriter(), new Rectangle(200, 660, 250, 690), "FDF");
- button2.setBackgroundColor(new GrayColor(0.7f));
- button2.setText("FDF");
- button2.setVisibility(PushbuttonField.VISIBLE_BUT_DOES_NOT_PRINT);
- PdfFormField submit2 = button2.getField();
- submit2.setAction(PdfAction.createSubmitForm(
- "/book/request", null, PdfAction.SUBMIT_EXCL_F_KEY));
- // add the button
- stamper.addAnnotation(submit2, 1);
- // create a submit button that posts the form as XFDF
- PushbuttonField button3 = new PushbuttonField(
- stamper.getWriter(), new Rectangle(310, 660, 360, 690), "XFDF");
- button3.setBackgroundColor(new GrayColor(0.7f));
- button3.setText("XFDF");
- button3.setVisibility(PushbuttonField.VISIBLE_BUT_DOES_NOT_PRINT);
- PdfFormField submit3 = button3.getField();
- submit3.setAction(PdfAction.createSubmitForm(
- "/book/request", null, PdfAction.SUBMIT_XFDF));
- // add the button
- stamper.addAnnotation(submit3, 1);
- // create a reset button
- PushbuttonField button4 = new PushbuttonField(
- stamper.getWriter(), new Rectangle(420, 660, 470, 690), "reset");
- button4.setBackgroundColor(new GrayColor(0.7f));
- button4.setText("RESET");
- button4.setVisibility(PushbuttonField.VISIBLE_BUT_DOES_NOT_PRINT);
- PdfFormField reset = button4.getField();
- reset.setAction(PdfAction.createResetForm(null, 0));
- // add the button
- stamper.addAnnotation(reset, 1);
- // close the stamper
- stamper.close();
- reader.close();
- }
-
- /**
- * Main method.
- *
- * @param args no arguments needed
- * @throws DocumentException
- * @throws IOException
- */
- public static void main(String[] args)
- throws IOException, DocumentException {
- new Subscribe().createPdf(Subscribe.FORM);
- new SubmitForm().manipulatePdf(Subscribe.FORM, RESULT);
- }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/5a/304ab28650ac001410e2e30aa85db9d1 b/.metadata/.plugins/org.eclipse.core.resources/.history/5a/304ab28650ac001410e2e30aa85db9d1
deleted file mode 100644
index e9af00c..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/5a/304ab28650ac001410e2e30aa85db9d1
+++ /dev/null
@@ -1,904 +0,0 @@
-package ui;
-
-import io.ClientConnection;
-import io.CommAdapter;
-import io.Questionnaire;
-
-import java.awt.BorderLayout;
-import java.awt.Color;
-import java.awt.Component;
-import java.awt.Dimension;
-import java.awt.FlowLayout;
-import java.awt.Font;
-import java.awt.SystemColor;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.awt.event.WindowAdapter;
-import java.io.File;
-import java.io.IOException;
-import java.sql.SQLException;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.LinkedList;
-import java.util.Map;
-import java.util.Set;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
-import javax.swing.Box;
-import javax.swing.BoxLayout;
-import javax.swing.ButtonGroup;
-import javax.swing.DefaultComboBoxModel;
-import javax.swing.GroupLayout;
-import javax.swing.GroupLayout.Alignment;
-import javax.swing.ImageIcon;
-import javax.swing.JButton;
-import javax.swing.JComboBox;
-import javax.swing.JDialog;
-import javax.swing.JFileChooser;
-import javax.swing.JFrame;
-import javax.swing.JLabel;
-import javax.swing.JOptionPane;
-import javax.swing.JPanel;
-import javax.swing.JRadioButton;
-import javax.swing.JScrollPane;
-import javax.swing.JSeparator;
-import javax.swing.JTabbedPane;
-import javax.swing.JTextArea;
-import javax.swing.JTextPane;
-import javax.swing.JTree;
-import javax.swing.LayoutStyle.ComponentPlacement;
-import javax.swing.SwingConstants;
-import javax.swing.UIManager;
-import javax.swing.border.BevelBorder;
-import javax.swing.border.EmptyBorder;
-import javax.swing.border.EtchedBorder;
-import javax.swing.tree.DefaultMutableTreeNode;
-import javax.swing.tree.TreeModel;
-import javax.swing.tree.TreePath;
-
-import org.jpedal.examples.viewer.Commands;
-import org.jpedal.examples.viewer.Viewer;
-
-import utils.ClientProperties;
-
-import com.itextpdf.text.DocumentException;
-
-import database.DBconnectorClient;
-import framework.Diagnostic;
-import framework.MedUnit;
-import framework.Question;
-import framework.reply.ReplySurvey;
-import framework.test.TestName;
-
-/**
- *
- * @author youssef, raisaro
- */
-public class GUI extends javax.swing.JFrame {
-
- private static final Logger LOGGER = Logger.getLogger(GUI.class.getName());
-
- private static final long serialVersionUID = -4582280515597700650L;
-
- // configuration
- private ClientProperties props;
-
- private JTree jTree;
- private DBconnectorClient connectorClientDB;
- private LinkedList<Integer> patients;
-
- /** List of all relevant tests */
- private HashMap<String, TestName> testsByName;
- private Viewer viewer;
- private JDialog dialog;
- private JFrame frame;
- private boolean survey_submitted;
- private int close_trials;
- private Map<Integer, ButtonGroup> buttonGroupMap;
- private Questionnaire quest;
- private Map<Integer, Question> map;
- private Set<Integer> ids;
- private Map<String,String> answers;
- private Map<Integer, String> locations;
-
-
- /**
- * Creates new form GUI
- */
- public GUI(ClientProperties props){
-
- frame = this;
- this.props = props;
- this.connectorClientDB = new DBconnectorClient(props.getDbMsAccess());
- survey_submitted = false;
- close_trials = 0;
-
-
- try {
- initComponents();
-
- viewer = new Viewer(jScrollPane2, null);
- viewer.setupViewer();
-
- // create questionnare
-
-
- System.out.println("#of questions: " + ids.size());
-
-// viewer_q = new Viewer(jScrollPane4, null);
-// viewer_q.setupViewer();
-//
-// // specify file you wish to open (JPedal handles getting the byte data)
-// String filepathReport = "outputPDF/buttons_filled.pdf";
-//
-// // open generated PDF
-// // object must be either String in full filepath, or
-// // File object which can be relative
-// Object[] input = new Object[]{ new File(filepathReport) };
-// viewer_q.executeCommand(Commands.OPENFILE, input);
-
- JButton btnSubmitQuestionnaire = new JButton("Submit Questionnaire");
- btnSubmitQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- btnSubmitQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- submitButtonActionPerformed(arg0);
- }
- });
- JButton btnResetQuestionnaire = new JButton("Save as PDF");
- btnResetQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- savePDFButtonActionPerformed(arg0);
- }
- });
- btnResetQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- JPanel panel_button = new JPanel();
- panel_button.setLayout(new BoxLayout(panel_button, BoxLayout.X_AXIS));
-
- lblNewLabel_3 = new JLabel("");
- lblNewLabel_3.setIcon(new ImageIcon("res/location_icon.png"));
- panel_button.add(lblNewLabel_3);
-
-
-
- comboBox = new JComboBox<String>();
- comboBox.setFont(new Font("Tahoma", Font.BOLD, 12));
- comboBox.setModel(new DefaultComboBoxModel<String>(new String[] {"Select Location"}));
- for(Integer id_loc : locations.keySet()){
- comboBox.addItem(locations.get(id_loc));
- }
-
-
- panel_button.add(comboBox);
-
- rigidArea = Box.createRigidArea(new Dimension(10, 0));
- panel_button.add(rigidArea);
-
- lblNewLabel_1 = new JLabel("");
- lblNewLabel_1.setIcon(new ImageIcon("res/submit.png"));
- panel_button.add(lblNewLabel_1);
- panel_button.add(btnSubmitQuestionnaire);
-
- panel_button.add(Box.createRigidArea(new Dimension(10,0)));
-
- lblNewLabel_2 = new JLabel("");
- lblNewLabel_2.setIcon(new ImageIcon("res/pdf.png"));
- panel_button.add(lblNewLabel_2);
- panel_button.add(btnResetQuestionnaire);
- panel_button.setPreferredSize(new Dimension(211, 35));
- panel_button.validate();
-
- JPanel panel_3 = new JPanel();
- GroupLayout gl_panel = new GroupLayout(panel);
- gl_panel.setHorizontalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(63)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addGap(103)
- .addComponent(panel_button, GroupLayout.DEFAULT_SIZE, 498, Short.MAX_VALUE)
- .addGap(241))
- .addGroup(Alignment.TRAILING, gl_panel.createSequentialGroup()
- .addGap(41)
- .addGroup(gl_panel.createParallelGroup(Alignment.TRAILING)
- .addComponent(panel_1, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE)
- .addComponent(jScrollPane4, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE))
- .addGap(32))
- );
- gl_panel.setVerticalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(22)
- .addComponent(panel_1, GroupLayout.PREFERRED_SIZE, 245, GroupLayout.PREFERRED_SIZE)
- .addGap(18)
- .addComponent(jScrollPane4, GroupLayout.DEFAULT_SIZE, 384, Short.MAX_VALUE)
- .addGap(26)
- .addGroup(gl_panel.createParallelGroup(Alignment.LEADING)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(panel_button, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE)))
- );
- panel_3.setLayout(new BoxLayout(panel_3, BoxLayout.X_AXIS));
-
-
- panel.setLayout(gl_panel);
-
-
-
-
-
-
- /////////////////////////////////////////////////////////
- // display the tests available
-
- // get the tests
- HashMap<String, ArrayList<TestName>> testsRelevantByGroup = connectorClientDB.getRelevantTestsByGroup();
- ArrayList<String> groups = new ArrayList<String>(testsRelevantByGroup.keySet());
-
- // flatten hashmap into linkedlist
-// tests = new LinkedList<>();
- testsByName = new HashMap<String, TestName>();
- for (String group : groups) {
-// tests.addAll(testsRelevantByGroup.get(group));
- for (TestName test : testsRelevantByGroup.get(group)) {
- testsByName.put(test.getName(), test);
- }
- }
-
- // define tree structure of the tests
- DefaultMutableTreeNode root = new DefaultMutableTreeNode("All");
-
- for (String group : groups) {
- DefaultMutableTreeNode child = new DefaultMutableTreeNode(group);
- root.add(child);
-
- for (TestName test : testsRelevantByGroup.get(group)) {
- DefaultMutableTreeNode grandChild = new DefaultMutableTreeNode(test.getName());
- child.add(grandChild);
- }
- }
-
- // define swing object
- jTree = new JTree(root);
-
- for(int i=0;i<jTree.getRowCount();i++){
- jTree.expandRow(i);
- }
-
- jScrollPane3.setViewportView(jTree);
-// jTree.addTreeSelectionListener(new TreeSelectionListener() {
-//
-// @Override
-// public void valueChanged(TreeSelectionEvent e) {
-// tp = jTree.getSelectionPaths();
-// }
-// });
- jScrollPane3.setViewportView(jTree);
-
- /////////////////////////////////////////////////////////
- // display the patients registered
-
- patients = connectorClientDB.getPatients();
- for (Integer patientId : patients) {
- jComboBox1.addItem(patientId.toString());
- }
-
- } catch (SQLException ex) {
- Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex);
- ex.printStackTrace();
-// } catch (IOException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
-// } catch (DocumentException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
- }
-
- }
-
- /**
- * 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() {
-
- jPanel1 = new javax.swing.JPanel();
- jLabel2 = new javax.swing.JLabel();
- jLabel1 = new javax.swing.JLabel();
- jPanel2 = new javax.swing.JPanel();
- jComboBox1 = new javax.swing.JComboBox<String>();
- jButton1 = new javax.swing.JButton();
- jButton1.setFont(new Font("Tahoma", Font.BOLD, 12));
- jLabel3 = new javax.swing.JLabel();
- jLabel4 = new javax.swing.JLabel();
- jScrollPane3 = new javax.swing.JScrollPane();
- jScrollPane2 = new javax.swing.JScrollPane();
- jMenuBar1 = new javax.swing.JMenuBar();
- jMenu1 = new javax.swing.JMenu();
- jMenuItem1 = new javax.swing.JMenuItem();
- jMenu2 = new javax.swing.JMenu();
- dialog = new JDialog();
- tabbedPane = new JTabbedPane(JTabbedPane.TOP);
-
- setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
- addWindowListener(new WindowAdapter() {
- @Override
- public void windowClosing(java.awt.event.WindowEvent windowEvent) {
- if (!survey_submitted && close_trials <= 2){
- JOptionPane.showMessageDialog(frame, "Before closing the application, please fill in and submit the questionnaire.");
- close_trials++;
- tabbedPane.setSelectedIndex(1);
- }else{
- System.exit(0);
- }
- }
- });
- setTitle("HIV Pharmacogenomics\n");
-
- jLabel2.setIcon(new javax.swing.ImageIcon("res/shcs_logo2_small.gif")); // NOI18N
-
- jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
- jLabel1.setText("HIV Pharmacogenomics | Project #693");
-
- javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
- jPanel1.setLayout(jPanel1Layout);
- jPanel1Layout.setHorizontalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap(71, Short.MAX_VALUE)
- .addComponent(jLabel1)
- .addGap(18, 18, 18)
- .addComponent(jLabel2))
- );
- jPanel1Layout.setVerticalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jLabel1)
- .addGap(11, 11, 11))
- .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)
- );
-
- jPanel2.setBackground(new java.awt.Color(255, 255, 255));
- jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
-
- jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<String>(new String[]{"Select Patient"}));
-
- jButton1.setText("Run Test");
- jButton1.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton1ActionPerformed(evt);
- }
- });
-
- JLabel lblNewLabel = new JLabel("");
- lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
- lblNewLabel.setIcon(new javax.swing.ImageIcon("res/gears.png"));
-
-
-
- javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
- jPanel2Layout.setHorizontalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addComponent(jComboBox1, 0, 248, Short.MAX_VALUE)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addGap(75)
- .addGroup(jPanel2Layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jButton1)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 75, GroupLayout.PREFERRED_SIZE))
- .addContainerGap(98, Short.MAX_VALUE))
- );
- jPanel2Layout.setVerticalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addComponent(jComboBox1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED, 223, Short.MAX_VALUE)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jButton1)
- .addGap(19))
- );
- jPanel2.setLayout(jPanel2Layout);
-
- jLabel3.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel3.setText("Select Patient");
-
- jLabel4.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel4.setText("Select Test");
-
- jScrollPane3.setBackground(new java.awt.Color(255, 255, 255));
-
- jMenu1.setText("File");
-
- jMenuItem1.setText("Exit");
- jMenu1.add(jMenuItem1);
-
- jMenuBar1.add(jMenu1);
-
- jMenu2.setText("Edit");
- jMenuBar1.add(jMenu2);
-
- setJMenuBar(jMenuBar1);
-
-
-
- javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
- layout.setHorizontalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(layout.createParallelGroup(Alignment.LEADING, false)
- .addComponent(jLabel3)
- .addComponent(jLabel4)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, 244, Short.MAX_VALUE)
- .addComponent(jScrollPane3))
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 970, Short.MAX_VALUE))
- .addContainerGap())
- );
- layout.setVerticalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel4))
- .addPreferredGap(ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addComponent(jScrollPane3, GroupLayout.PREFERRED_SIZE, 388, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jLabel3)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 785, Short.MAX_VALUE))
- .addContainerGap())
- );
-
-
- jScrollPane2.setAutoscrolls(true);
- jScrollPane3.setAutoscrolls(true);
- tabbedPane.addTab("Report", new ImageIcon("res/report_icon.gif"), jScrollPane2, null);
- tabbedPane.setBackgroundAt(0, new Color(255, 255, 255));
-
- panel = new JPanel();
- tabbedPane.addTab("Survey", new ImageIcon("res/survey_icon.png"), panel, null);
- tabbedPane.setBackgroundAt(1, new Color(255, 255, 255));
- tabbedPane.setEnabledAt(1, true);
-
- panel_1 = new JPanel();
- panel_1.setBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null));
- panel_1.setBackground(UIManager.getColor("Button.background"));
-
- JLabel label = new JLabel("");
- label.setIcon(new ImageIcon("res/shcs_logo2_medium.gif"));
-
- lblDearDoctor = new JLabel("Dear Doctor,");
- lblDearDoctor.setFont(new Font("Tahoma", Font.BOLD, 14));
-
- JScrollPane scrollPane = new JScrollPane();
- scrollPane.setBorder(null);
- GroupLayout gl_panel_1 = new GroupLayout(panel_1);
- gl_panel_1.setHorizontalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(Alignment.LEADING, gl_panel_1.createSequentialGroup()
- .addGap(25)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addComponent(lblDearDoctor)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 661, Short.MAX_VALUE))
- .addContainerGap())
- );
- gl_panel_1.setVerticalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addContainerGap()
- .addComponent(lblDearDoctor)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 203, Short.MAX_VALUE))
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(36)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 96, GroupLayout.PREFERRED_SIZE)))
- .addContainerGap())
- );
-
- JTextPane txtpnTodayYouAre = new JTextPane();
- txtpnTodayYouAre.setBorder(null);
- txtpnTodayYouAre.setText("Today you are receiving a pharmacogenetics report based on the genome of your patient. Because of its highly sensitive nature, " +
- "the genetic information you are provided with is processed in a privacy-preserving way. In particular, to protect patients’ genomic privacy, " +
- "their genetic and clinical data is stored encrypted at the SHCS data center, and securely analyzed through a sophisticated algorithm designed and developed at EPFL [1, 2]. " +
- "The actual clinical and genetic information is never revealed. Only the authorized users, such as you, can get some processed information, for example, the final result of a " +
- "pharmacogenetics risk test.\nThis mechanism protects the data against insiders or hackers trying to illegally access patients’ medical information, while still allowing authorized " +
- "users to obtain the information they need." +
- "\n\nTo help us understanding the importance of genomic privacy in the medical domain, and the impact of privacy-enhancing technologies in daily clinical practice, please complete the following survey.");
- txtpnTodayYouAre.setFont(new Font("Tahoma", Font.PLAIN, 13));
- txtpnTodayYouAre.setEditable(false);
- txtpnTodayYouAre.setBackground(SystemColor.menu);
- scrollPane.setViewportView(txtpnTodayYouAre);
- panel_1.setLayout(gl_panel_1);
- jScrollPane4 = new javax.swing.JScrollPane();
- getContentPane().setLayout(layout);
-
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
- ReplySurvey replySurvey = commHandlerAdapter.callServiceSurvey();
-
- map = replySurvey.getQuestions();
- ids = map.keySet();
- locations = replySurvey.getLocations();
-
- panel_2 = new JPanel();
- panel_2.setBackground(Color.WHITE);
- panel_2.setBorder(new BevelBorder(BevelBorder.LOWERED, null, null, null, null));
- jScrollPane4.setViewportView(panel_2);
- panel_2.setLayout(new BoxLayout(panel_2, BoxLayout.Y_AXIS));
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
-
-
- for(Integer id : ids){
- ButtonGroup group = new ButtonGroup();
- JRadioButton r1 = new JRadioButton("1"); r1.setActionCommand("1"); r1.setBackground(Color.WHITE);
- JRadioButton r2 = new JRadioButton("2"); r2.setActionCommand("2"); r2.setBackground(Color.WHITE);
- JRadioButton r3 = new JRadioButton("3"); r3.setActionCommand("3"); r3.setBackground(Color.WHITE);
- JRadioButton r4 = new JRadioButton("4"); r4.setActionCommand("4"); r4.setBackground(Color.WHITE);
- JRadioButton r5 = new JRadioButton("5"); r5.setActionCommand("5"); r5.setBackground(Color.WHITE);
- group.add(r1);
- group.add(r2);
- group.add(r3);
- group.add(r4);
- group.add(r5);
- JPanel radio_panel = new JPanel();
- radio_panel.setLayout((new BoxLayout(radio_panel, BoxLayout.X_AXIS)));
- radio_panel.setBackground(Color.WHITE);
- radio_panel.setAlignmentX(Component.CENTER_ALIGNMENT);
- radio_panel.add(r1);
- radio_panel.add(r2);
- radio_panel.add(r3);
- radio_panel.add(r4);
- radio_panel.add(r5);
- radio_panel.doLayout();
- radio_panel.setPreferredSize(radio_panel.getPreferredSize());
- JTextArea question = new JTextArea(id + ") " + map.get(id).getQuestion());
- question.setLineWrap(true);
- question.setWrapStyleWord(true);
- question.setAlignmentX(Component.CENTER_ALIGNMENT);
- question.setFont(new Font("Tahoma", Font.PLAIN, 13));
-
- JPanel row_panel = new JPanel();
- row_panel.setLayout(new BoxLayout(row_panel, BoxLayout.X_AXIS));
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.add(question);
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.add(radio_panel);
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.setBackground(Color.WHITE);
-
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- panel_2.add(row_panel);
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
-// panel_2.add(radio_panel);
- panel_2.add(new JSeparator());
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
-// panel_2.setPreferredSize(panel_2.getPreferredSize());
- buttonGroupMap.put(id, group);
-
- }
-
-
-
- this.setSize(new Dimension(1200, 865));
-// pack();
- }// </editor-fold>//GEN-END:initComponents
-
-
- private void submitButtonActionPerformed(java.awt.event.ActionEvent evt){
-
- try{
- answers = new HashMap<String, String>();
- StringBuilder sb = new StringBuilder();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- sb.append(q).append(",");
- sb.append(bg.getSelection().getActionCommand()).append(";");
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- String answer = sb.toString();
- Integer id_loc = null;
- for(Integer i: locations.keySet()){
- if(locations.get(i).equals(comboBox.getSelectedItem().toString()))
- id_loc = i;
- }
-
- String id_p;
- if(jComboBox1.getSelectedItem().toString().equals("Select Patient"))
- id_p = "0";
- else
- id_p = jComboBox1.getSelectedItem().toString();
-
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
-
- String reply = commHandlerAdapter.callServiceSurveyAnswer(answer, id_loc.toString(), id_p);
-
- if(reply.equals("1")){
- survey_submitted = true;
-
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Congrats! Your aswers have been sent to the SHCS datacenter.",
- "Information Message",
- JOptionPane.INFORMATION_MESSAGE);
- }
- else{
- throw new IOException();
- }
-
-
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "The SHCS datacenter does not respond. Please save the survey and send it to jean.raisaro@epfl.ch.",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
- private void savePDFButtonActionPerformed(java.awt.event.ActionEvent evt){
- try {
-
- answers = new HashMap<String, String>();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- JFileChooser chooser = new JFileChooser();
- // Note: source for ExampleFileFilter can be found in FileChooserDemo,
- // under the demo/jfc directory in the JDK.
-
- int returnVal = chooser.showSaveDialog(this);
- System.out.println(returnVal);
- if(returnVal == JFileChooser.APPROVE_OPTION) {
- System.out.println("You chose to open this file: " +
- chooser.getSelectedFile().getPath());
- quest = new Questionnaire(chooser.getSelectedFile().getPath() + ".pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }else{
- quest = new Questionnaire("outputPDF/survey.pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }
-
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (DocumentException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (NullPointerException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
-
- private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
-
- JPanel contentPanel = new JPanel();
-
- dialog.setBounds(100, 100, 410, 80);
- dialog.getContentPane().setLayout(new BorderLayout());
- contentPanel.setLayout(new FlowLayout());
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- dialog.getContentPane().add(contentPanel, BorderLayout.CENTER);
- {
- JLabel label = new JLabel("Please wait...The overall computation can take few seconds");
- label.setHorizontalAlignment(SwingConstants.CENTER);
- label.setFont(new Font("Tahoma", Font.PLAIN, 12));
- contentPanel.add(label);
- }
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
- dialog.getContentPane().add(buttonPane, BorderLayout.SOUTH);
- }
- dialog.setLocationRelativeTo(this);
- dialog.setVisible(true);
-
- GUIWorker gw = new GUIWorker(this, props);
- Thread t = new Thread(gw);
- t.start();
-
- }
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JButton jButton1;
- private javax.swing.JComboBox<String> jComboBox1;
- private javax.swing.JLabel jLabel1;
- private javax.swing.JLabel jLabel2;
- private javax.swing.JLabel jLabel3;
- private javax.swing.JLabel jLabel4;
- private javax.swing.JMenu jMenu1;
- private javax.swing.JMenu jMenu2;
- private javax.swing.JMenuBar jMenuBar1;
- private javax.swing.JMenuItem jMenuItem1;
- private javax.swing.JPanel jPanel1;
- private javax.swing.JPanel jPanel2;
- private javax.swing.JScrollPane jScrollPane3;
- private javax.swing.JTabbedPane tabbedPane;
- private javax.swing.JScrollPane jScrollPane2;
- private javax.swing.JScrollPane jScrollPane4;
- private JPanel panel;
- private JPanel panel_1;
- private JPanel panel_2;
- private JLabel lblDearDoctor;
- private JLabel lblNewLabel_1;
- private JLabel lblNewLabel_2;
- private JLabel lblNewLabel_3;
- private JComboBox<String> comboBox;
- private Component rigidArea;
-
- // End of variables declaration//GEN-END:variables
-
-
- class GUIWorker implements Runnable{
-
- private JFrame mainFrame;
- private ClientProperties props;
- private MedUnit mu;
-
- public GUIWorker(GUI gui, ClientProperties props) {
- mainFrame = gui;
-
- this.props = props;
- this.mu = new MedUnit(props, 0);
- }
-
- @Override
- public void run() {
-
- try{
- int patientId = Integer.parseInt((String) jComboBox1.getSelectedItem());
-
- // convert selected tests to test identifiers
- ArrayList<TestName> selectedTests = new ArrayList<TestName>();
- for (String currentName : getSelectedTests()) {
- TestName currentTest = testsByName.get(currentName);
-
- if (currentTest == null) {
- throw new IllegalStateException("Trying to run unknown test: " + currentTest);
- }
-
- selectedTests.add(currentTest);
- }
-
- // run tests
- Diagnostic diagnostic = mu.runTests(patientId, selectedTests);
-
- // warn for tests with missing material
- warnFailedTests(diagnostic, selectedTests);
-
- // create report
- mu.createReport(patientId, selectedTests, diagnostic);
-
- dialog.setVisible(false);
-
- // specify file you wish to open (JPedal handles getting the byte data)
- String filepathReport = props.getPathPDF() + patientId + ".pdf";
-
- // open generated PDF
- // object must be either String in full filepath, or
- // File object which can be relative
- Object[] input = new Object[]{ new File(filepathReport) };
- viewer.executeCommand(Commands.OPENFILE, input);
-
- // display CAD result as bar plot
- if (diagnostic.hasCAD()) {
- System.out.println("CAD = " + diagnostic.getResultCAD());
- BarPlotFrame frame = new BarPlotFrame(diagnostic.getResultCAD(), patientId);
- frame.setVisible(true);
- frame.setAlwaysOnTop(true);
- }
-
-
- } catch (SQLException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Please select a patient.");
- }
-
- }
-
- private void warnFailedTests(Diagnostic diagnostic, ArrayList<TestName> selectedTests) {
- ArrayList<Integer> failedTests = diagnostic.getInvalidTests();
-
- if (!failedTests.isEmpty()) {
- String msg = "Could not complete tests: ";
- boolean first = true;
- for (TestName testName : selectedTests) {
- if (failedTests.contains(testName.getId())) {
- if (first) {
- first = false;
- } else {
- msg += ", ";
- }
- msg += testName.getName();
- }
- }
- displayError(msg);
- }
-
- }
-
- private void displayError(String msg) {
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- mainFrame,
- msg,
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
-
- private ArrayList<String> getSelectedTests() {
- ArrayList<String> tests = new ArrayList<String>();
-
- for (TreePath treePath : jTree.getSelectionPaths()) {
- tests.addAll(getChildrenTests(jTree.getModel(), treePath.getLastPathComponent()));
- }
-
- return tests;
- }
-
- private ArrayList<String> getChildrenTests(TreeModel model, Object node) {
- ArrayList<String> tests = new ArrayList<String>();
-
- if (model.isLeaf(node)) { // leaf
- DefaultMutableTreeNode leaf = (DefaultMutableTreeNode) node;
- tests.add(leaf.toString());
- }
- else { // iterate over children
- for (int i = 0; i < model.getChildCount(node); i++) {
- tests.addAll(getChildrenTests(model, model.getChild(node, i)));
- }
- }
-
- return tests;
- }
-
- }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/5e/80499d8698a7001417ceadf0100b5ef7 b/.metadata/.plugins/org.eclipse.core.resources/.history/5e/80499d8698a7001417ceadf0100b5ef7
deleted file mode 100644
index 0cc5bc5..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/5e/80499d8698a7001417ceadf0100b5ef7
+++ /dev/null
@@ -1,261 +0,0 @@
-package io;
-
-import java.awt.BorderLayout;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.util.Map;
-import java.util.Set;
-
-import com.itextpdf.text.BaseColor;
-import com.itextpdf.text.Document;
-import com.itextpdf.text.DocumentException;
-import com.itextpdf.text.Element;
-import com.itextpdf.text.ExceptionConverter;
-import com.itextpdf.text.Font;
-import com.itextpdf.text.Font.FontFamily;
-import com.itextpdf.text.FontFactory;
-import com.itextpdf.text.Image;
-import com.itextpdf.text.PageSize;
-import com.itextpdf.text.Paragraph;
-import com.itextpdf.text.Phrase;
-import com.itextpdf.text.Rectangle;
-import com.itextpdf.text.pdf.BaseFont;
-import com.itextpdf.text.pdf.ColumnText;
-import com.itextpdf.text.pdf.GrayColor;
-import com.itextpdf.text.pdf.PdfBorderDictionary;
-import com.itextpdf.text.pdf.PdfContentByte;
-import com.itextpdf.text.pdf.PdfFormField;
-import com.itextpdf.text.pdf.PdfPCell;
-import com.itextpdf.text.pdf.PdfPCellEvent;
-import com.itextpdf.text.pdf.PdfPTable;
-import com.itextpdf.text.pdf.PdfWriter;
-import com.itextpdf.text.pdf.RadioCheckField;
-import com.itextpdf.text.pdf.TextField;
-
-import framework.Question;
-
-public class Questionnaire implements PdfPCellEvent{
-
- /** The path output file. */
- String pathOutputFile;
-
- /** The document. */
- Document document;
-
- int tf;
-
- public Questionnaire(String path){
- pathOutputFile = path;
- document = new Document(PageSize.A4, 25, 25, 50, 50);
- }
- public Questionnaire(int tf){
- this.tf = tf;
- }
-
- /** The resulting PDF. */
- public static final String RESULT1 = "outputPDF/buttons.pdf";
- /** The resulting PDF. */
- public static final String RESULT2 = "outputPDF/buttons_filled.pdf";
- /** Path to a JavaScript resource. */
- public static final String RESOURCE = "res/buttons.js";
- /** Path to an image used as button icon. */
- public static final String IMAGE = "res/info.png";
- /** Possible values of a radio field / checkboxes */
- public static final String[] LANGUAGES = { "English", "German", "French", "Spanish", "Dutch" };
-
- /**
- * Creates a PDF document.
- * @param filename the path to the new PDF document
- * @throws DocumentException
- * @throws IOException
- */
- public void createPdf(Map<Integer, Question> map, Set<Integer> ids) throws IOException, DocumentException {
-
- @SuppressWarnings("unused")
- PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(pathOutputFile));
-
-
- document.open();
- Image logo = Image.getInstance("res/shcs_logo2.gif");
-
- logo.scalePercent(30f);
- float[] columnWidths1 = {0.2f, 0.8f};
- PdfPTable table_title = new PdfPTable(columnWidths1);
- PdfPCell c01 = new PdfPCell(logo, false);
- PdfPCell c02 = new PdfPCell(new Paragraph("Survery | Project #693",
- FontFactory.getFont(FontFactory.HELVETICA, 20, Font.BOLD, BaseColor.BLACK)));
- c01.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setHorizontalAlignment(Element.ALIGN_CENTER);
- c01.setBorder(Rectangle.NO_BORDER);
- c02.setBorder(Rectangle.NO_BORDER);
-
- table_title.addCell(c01);
- table_title.addCell(c02);
- table_title.setWidthPercentage(100);
- table_title.setSpacingBefore(0);
- table_title.setSpacingAfter(25);
- document.add(table_title);
-
-
- //----------------------------------------------------------------------------------
-
-
- PdfPTable table1 = new PdfPTable(1);
- table1.setWidthPercentage(100);
- PdfPCell c11 = new PdfPCell(new Phrase("Today you are receiving a pharmacogenetic report based on the genetic " +
- "information of your patient. Because the human genome contains extremely private and sensitive information" +
- " of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier," +
- " it must be managed with care. ",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.NORMAL, BaseColor.BLACK)));
- c11.setLeading(1.5f, 1.5f);
- c11.setPaddingBottom(8);
-
-
- table1.addCell(c11);
- table1.setSpacingAfter(10);
- document.add(table1);
-
-
- //----------------------------------------------------------------------------------
-
-// // step 4
-// // add the JavaScript
-// writer.addJavaScript(Utilities.readFileToString(RESOURCE));
-
-
-
-
- // add the radio buttons
- for(Integer id: ids){
- PdfPCell c2;
-
- PdfPTable table = new PdfPTable(1);
- table.setSpacingAfter(10);
- table.setWidthPercentage(100);
-// table.setWidths(new int[]{ 1, 2});
-
- PdfPCell c1 = new PdfPCell(new Phrase(id + ") " + map.get(id).getQuestion(),FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c1.setPaddingTop(5);
- c1.setPaddingBottom(5);
- c1.setHorizontalAlignment(Element.ALIGN_CENTER);
- c1.setBorder(Rectangle.NO_BORDER);
- table.addCell(c1);
-
- c2 = new PdfPCell(new Phrase(" 1" +
- " 2" +
- " 3" +
- " 4" +
- " 5",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c2.setHorizontalAlignment(Element.ALIGN_LEFT);
- c2.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c2.setCellEvent(new Questionnaire(id));
-// c2.setLeading(1.5f, 1.5f);
- c2.setBorder(Rectangle.TOP);
- c2.setPaddingTop(2);
- c2.setPaddingBottom(5);
- c2.setBackgroundColor(new BaseColor(242, 242, 242));
-
- table.addCell(c2);
-
-
-
- document.add(table);
- }
-
-//
- // step 5
- document.close();
-
- }
-
- @Override
- public void cellLayout(PdfPCell cell, Rectangle position,
- PdfContentByte[] canvases) {
- PdfWriter writer = canvases[0].getPdfWriter();
- PdfFormField radiogroup = PdfFormField.createRadioButton(writer, true);
- radiogroup.setFieldName(String.valueOf(tf));
-
- float llx = position.getLeft();
- float lly = position.getBottom();
- float urx = position.getRight();
- float ury = position.getTop();
- float cell_h = cell.getHeight();
- float cell_w = cell.getWidth();
-
- Rectangle rect;
-
- for(int i=1 ; i<=5; i++){
-
-
- rect = new Rectangle(llx + (3+i)*cell_w/12, lly+cell_h/2-6, llx + (3+i)*cell_w/12+12 ,lly+cell_h/2+6);
-
- RadioCheckField radio = new RadioCheckField(writer, rect, null, String.valueOf(i));
- radio.setBorderColor(GrayColor.GRAYBLACK);
- radio.setCheckType(RadioCheckField.TYPE_SQUARE);
-
-
- try {
- PdfFormField field = radio.getRadioField();
- radiogroup.addKid(field);
-
- writer.addAnnotation(radiogroup);
- }
-
- catch(IOException ioe) {
- throw new ExceptionConverter(ioe);
- }
- catch(DocumentException de) {
- throw new ExceptionConverter(de);
- }
- }
-
-
-
- }
-
-// /**
-// * Manipulates a PDF file src with the file dest as result
-// * @param src the original PDF
-// * @param dest the resulting PDF
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public void manipulatePdf(String src, String dest) throws IOException, DocumentException {
-// PdfReader reader = new PdfReader(src);
-// PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(dest));
-// AcroFields form = stamper.getAcroFields();
-// String[] radiostates = form.getAppearanceStates("language");
-// form.setField("language", radiostates[4]);
-// for (int i = 0; i < LANGUAGES.length; i++) {
-// String[] checkboxstates = form.getAppearanceStates("English");
-// form.setField(LANGUAGES[i], checkboxstates[i % 2 == 0 ? 1 : 0]);
-// }
-// stamper.close();
-// reader.close();
-//
-// PdfReader r = new PdfReader(dest);
-// AcroFields f = r.getAcroFields();
-// Set<String> fields = form.getFields().keySet();
-// for(String key: fields){
-// if(f.getFieldType(key)==AcroFields.FIELD_TYPE_RADIOBUTTON){
-// System.out.println(key);
-// System.out.println(f.getField(key));
-//
-// }
-// }
-// r.close();
-//
-// }
-//
-// /**
-// * Main method
-// * @param args no arguments needed
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public static void main(String[] args) throws IOException, DocumentException {
-// Questionnaire buttons = new Questionnaire();
-// buttons.createPdf(RESULT1);
-// buttons.manipulatePdf(RESULT1, RESULT2);
-// }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/5f/006cffda49ac001410e2e30aa85db9d1 b/.metadata/.plugins/org.eclipse.core.resources/.history/5f/006cffda49ac001410e2e30aa85db9d1
deleted file mode 100644
index 6b5850d..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/5f/006cffda49ac001410e2e30aa85db9d1
+++ /dev/null
@@ -1,71 +0,0 @@
-package io;
-
-import io.serializer.url.URLParserDecrypt;
-import io.serializer.url.URLParserMaterial;
-import io.serializer.xml.XMLParserDecrypt;
-import io.serializer.xml.XMLParserMaterial;
-import io.serializer.xml.XMLParserSurvey;
-
-import java.util.logging.Logger;
-
-import framework.Type;
-import framework.reply.ReplyDecryption;
-import framework.reply.ReplyMaterial;
-import framework.reply.ReplySurvey;
-import framework.request.RequestDecryption;
-import framework.request.RequestMaterial;
-
-public class CommAdapter {
-
- @SuppressWarnings("unused")
- private static final Logger LOGGER = Logger.getLogger(CommAdapter.class.getName());
-
- public ClientConnection connectSPU = null;
-
- public CommAdapter(ClientConnection connectSPU) {
- this.connectSPU = connectSPU;
- }
-
- public ReplyDecryption callServiceDecrypt(RequestDecryption rqtDecrypt) {
- String requestString = URLParserDecrypt.requestToString(rqtDecrypt);
-// String replyString = "<awr_decrypt><patient>30351</patient><v_timestamp>1417188729390</v_timestamp><decrypt_val>,,,,,,,,,,,,,,,,2,AwHR3OO0/hkwgEHluLDFLtn4aaTBAwBEJjJpMegGa29ASgtyt1ha2OOyxvEvNgkIaY0xWXtTmqrqhSBKDG6J7Lps0g==,AwE/oifhonvUZDA4mqRK8K1WCkoepEuL9SidjdFXMNNZQXCMUvVN6pBUYVFgJeFX6mT2jruK8ic3y6yI14PfKl/Pvg==,AgBHs6HGF9AYNc5RlFTGv025WEaT91i/MPy+HXqhvHOrp0Ol9/aKyvv2BgAzeAdsdSEbVs2sahiyL/kbKjeUoI9tsA==,,,,,,,,,,,,,2,AgHIofEmf4aJMLBnKAY3/8WcLXUETF4y/68fzZR6hsS5btZTyI0E4ZTltDzV6hBzIT14cC4S/BMclo1aoLt5C9f+Cg==,AgDOXZAZAwO4KXslqU1wKctrVlH8CcGvpO8gGrPl3YjrY8SR3a6gStvZvjcUKXhvtDkRwSLAIkD3lFrKSXWestHSqQ==,AgG7Y5so9ZTRng2Xm3ziWx3+7zfaVLkIJ2v7g+qEUx5Vl2/udDOcg/was8W6qbKYeo/W0EGTlNXKTOdIatGVxyuoZA==,,,,,2,AgDAVy0/nE6X4iAengG9lCiYEBMtK6rAAiy7OwC7U/QSbokiEzH0RafH7rb+5L5R/ii9/3kZCcKmgOIoPzkmeloDfg==,AgHuvmLAeIFYm4ObEBO2v9xTK6tjYfdh+x4kwULBpDNlUiW4kNNaeoeziRA7nlRvcSfxPlR070N/3qzBMu3EKZ2csQ==,AgDk/CzCL4XUobuNaLsvrH5s0COMKYBqY/18YRR0d7mIsVVYrKVGF+IWnEluhbLt+BoRBdvL5UElgroyORJpiKz06w==,,,,,2,AgH0nW+2h+vcOZgPe3uR7jEHmEPi+g4izQ3OIU9An2vekwbG1liBFgTo33pEhyXhNWPhGCbSb73sJ7pt0JLL+hhWMw==,AgHG039OnpvmllkV6QBsmoMdqISrRuW2q5M3jfUp5TUbU6F/3S2FK1iSVKWgTsI291re6lz6KH5d8rWrnoCAozhIeg==,AwGjmnLUMd42F7a/tsSkeqcxoHMAXNKdvF4kOXoAxmc6ZSxaUhzkGkcgNOO8SFNiWqTKgtZCffJ7hfI0voAUX0TD1w==,,,,,2,AwHfYRjQFscHzOvVozackTaM3sybOjyd2aLc4B+WQ7KiWHoGKkzQScoDiy8hiA2cJpv8ngfitTqJRLlyegvuM+Ietw==,AwAP92OqrJFpFmdrMUUx6FeFhwVLYtAsfw3sem2RYu7ljPry+uJnvluuzTvVaFhs8BAAD8VBFs1vqrSHyQEq8Ocsmw==,AwDNXg/JA4QXA6wu30DUE7peOk1a10aHbd38iwjN1Q0DKy3BqS36+EQKg5hbwELxN2+/Yu4UA1IKWYJI0zNs6TJUtA==,,,,,2,AwBWFv3ivyQz4CGIilJ7CVtpQGOs1tnIW+0uxQyiWIO3HDjJtfxPyQ1AJWPsBQ9eYmaoKmPnN+euPCm7bP0LxBL/Tg==,AwHg7AZb5DV5OJrl0omtKx2OqckXcQEUT8pZ+Bmo9AyULgL5HOq2AVU04qhvbdy0W4OMYqxF3uBwqT6dNhFptsKEKQ==,AwG9dyMbI5EI8UCXuj5JkQRMimcT1u6zCBAfmRvANtT54yDtC8KS6VeOr7h/NP4qrf/mbl5tMaePbkkHrc6E39ntsA==,,,,,2,AwHkMyCOJm/RlYOybGhX3DchR/wSN2L3PuXKalMszgk3WOCiWSpYlP3SOPLWvJTRQaTxoN+oA5IkCTvlp02+Mduaxg==,AgHhR8HjavXjnsy+rHptc/JSI5pLFjM0RczUygxTX7vqV/yqwZ280Rq7YpXKp2GBfiZvFf0qIQoWe4vx5DBxwvHkdA==,AwEf2yisEpflVm8R2X08SCJM89apu7tUFzbpndsTIt5o9/xdoXKomMUk9REz+yrpkd+jFhlkJMQHHVMhgjiWYCEdpQ==,,,,,2,AwBaIc8ZWFm4O9QO0ofJeS9Q7tki7CAscBXRDnajEp7rmKNgrpRyyu1ezSpborwaloWR9kDKPLdYVV8SNk2V/1EudA==,AwGE8MPAnPKKXF15EyrAx1bRinwgoqYVO4Junz5IXQjGLyQpSr5NwO/hqu5E5egHte20jm380Wn2Qy6GgKNiRLy/gQ==,AwCAOjOQNdMN5uIB0POFzYS/fpxZ0Q5KfhlP5fijNmc/daO5frSrwhgcMH5lMKL4EGjBI1p6JMe3fuMqb5t1ImeTBg==,,,,,2,AgARSg2izcK6iZLFe4YkIS6yZgnt8cd9DFqpQ37gNmcccZwBI+mpsaijTUPo1GT+QUD8zC+6qr/GrzG9q+q7BPxpVw==,AwGM/jFdtoNViQXxgqeL27ZKobjsfyeuXrx8re3UfIe3c4XN16srSpcTfxEZNXDKo1Ff9fRvDVBOwdS6XU2nvo++ng==,AwAtK0eOqcVfzkdJIIkk7BORWwSDTAjtx4aEXwyZ0bla+2rIWDgXi3U5xlgnjeXJNtGsLokkvvX92BOBIw9SuCGhnw==,2,AgCWAAWTW+7jv2a2lc4pGFnumEgyH59wSDRXEYUASCVB249JBmeKFWRKNFTQlph5hTR5Rb+YHFP/qvzmwU11Hs2b0w==,AgANdxpkN+DS4De3aokNjt+e/Ou8GT+p8pUJA+6LHrDBXAddoCR8KpeXW7mESokq6BTEVQXxU3TdqavRkqaeFmpXkw==,AgDDDSEO3e8DCsm1n6dbj2PB9Z/tUzluDCt/utdSLrYFfdFY+Y5K7Vxo9F5/17CzaUbX172SGLt8TfCfuYBrtupgAg==,2,AgB1OG6bj+6kfRvLj8yjMQbl80FdZHZrRVRUfNVRwvjvvbRa5f9s9fNZ8J0a3s3hH+RyfZmGJ4Ufjh5mMiQkwiur6w==,AwBX4GFZNjUdtRdwtWgxyQz7h8Hk0ztaZeM8/e+8ll0o+RjYN+CNP8+lnXEw7wpuC4wcMX05mrjPvHOuy0hOFVNkhQ==,AgDf3el4vbMYIAFEH9WV151/uzl+gkfTQ79T8Iu4KxEVo6UJvCfqkjETlR6aXUJiqaCbSV5odMT50lURsmfgALf6AQ==,,,,,2,AgENmnviZkgQWXZ5QDgCCE2zq0IiXURTqK2UNPtEg3o64yjlrQQUd2rO/KgKolyCQcKYTVoMj7k2VeCSSVRr8KGC7w==,AwFv6ZJzhpV/Ms00QkrkNiCKVRFczn/yqnkiBFUHC1RQv3tqzzYSEUeXmDHmm0/kEBtnfgRWjHQm9zxS8Jzy7srDLQ==,AwB8aS5KA1dFLKCA1a/7Wsjhef+6kkNAB/GO9AOvRZbFW/dhl5fx04Alh+g78fwcVMX+eEIEJgSyH0jhv7kmiQh4ew==,,,,,2,AgG8fXrCra6UgP5G89TaE6PH5E0TANb/PJPbKwzdi78XEHRUmcTz6PIhYtclTmcdq5TH0IwQv+ra5ppf4qR4LtkGig==,AgEKzsmZrikmXzJywMpzkAdG9hAPlOiRY9oXKf4Sh50CL8btUItjfVJWg3ubNhotzJK+fnNlRrcMkWQEBD/aGKpf8A==,AwFi+2cGpuvVdR+pT1P9Ur8jAkzmjJK2XmUQbFpyMi5Jc9a5/fPnBWCxmTX8CH5wks0PicYC6rzZC3NEIt0EoM1Qfg==,,,,,2,AgHbTZgTAv8lLBsoX06Hkm9XPU+crlRqKl0xL8v18xeUUPY1YAvUYf2OAutmTtPRycXyzrDWSpn2h5xfk/dtq/BICg==,AwAjPydfoUhfSVFKWNI4Ox4a/psZGDIGzEEWh9HyVtAmjdNb5ctr/S6z+akiRfPlNCsVf6TdkzJ2Su6BO4sOX/SHKA==,AwBVmjn7AitCe4zQ/Fl0sYW2XqXkJxJBDviwl9jYhoq29v90n9escDsiA3Cy+1uW69MezdZBEszFdEWlX0EzbQZQ6A==,,,,,2,AwCG0RBHwHuame/1G7qtUjmwz0gkCP1tyZiEgm7aTKpsCjt7UsMirMmx/ZrNlvSzkGuVbRO97Szzr+9fo4baH1rEZA==,AwHyMK/q8FUUvoHTt7O7KJUxYz/ZHF6SntbmKfbygLVw4HWc/eFic4DXHKbEGWvrMO5b37GksqxfQHc2xlAuj8ZRIw==,AgB5x0BxqiMYxRvzlq0+/RkbOuNA7hYuMG+7D6wlMOxSskgqyfwA0MfW+AkXFqnqfqsoJRpDy15bABWhH6MIdJsPEA==,,,,,2,AwAS/nCH0pcrsllSy2duadUs1rMtL6vtz7VTUAVhn1/YYlZ068ysBi1Mdz9gJFewdyeGLnFhyg+W15rFB317nyeGHg==,AwBh6f5UVRMM5ekWqkrx6XiVOK/BL0TinjsSLna8BjkQPXU2DvGxiKPhA03/GtBdEpihEX4bVaHQhiOupTf7wh6bCQ==,AgGPDFH8Kv8hz2aUJ955nHu8NiAoTmDjqhlXuJ1T83h+O0sc2GieLhmXmpEjxjEAyxkqjb2nFxvDhi+YGs4MqI4S5A==,,,,,2,AwDqwFv6bqpM/6PTCJ/wgRALYVT+Rn54HIB2icP6ODNexaoqILBS9p1k1QENbQsBZ9LmJJwngRQXi07Q4P8br76Qfw==,AgG8yTiO8tFWZqQELBr+Zt1fKKA3bl08836nUEEpD55Sid0ZywCrWe+Va58xbMIWscISLPbBvXIdO48ZgoHsLgA7Jw==,AwCI1Ud0GJLnS86mSC58HNB91lH9kPpQbufGn+WJErGxAQubtSFBc3rnT0SNE3CbW+1MPjYBbdCgxpHjN/iQf96++w==,,,,;2,AgB9YhljgPngkwwYTBMUaMGR+rWMjvlK0tgrzkG8OT9NGNJfaaLP6AzfhWrT5oe9NRnabU25pQvDhAIGZCajDy8N2g==,AwE5Irce6LOSxfLgn4PZh1PeDPjAHb5wPTNfmQoWFY83dNQLYN44FupJaQRRUqBqyGNB0SL76GKzr8G9tKLAHOxRSQ==,BAG5iWHEhlWkvtyAlQy4bwKa1iNRzJq8WJTh2GE9oT4DeJRmO1pCHy9P+9YktDT+4RgV9s8AzOYih1LmHW14uP27HQGg1nTdHyab9/nFUe9BFxIi8xQTPG8et9++5I+gKIeWGCXBL31sBhpaMewvVhDjl2d3+7H2PUv9IY3lyIRFA6N16A==,2,AwAPIoQJqSbXFKXQAIG9J+/+/41NLX0rDINImk4eBgAnZ4V0R8YSqkHD3nd0IrEMyK7OpkCXkxTzOlwJlfEfti+vew==,AwAQ8KdMYsEOqM3eyGv/XbHnGf+TqCAG39Gz/juBcioOOJmLOFjl6oCITozJOyPusbTRXZ4eIwgQYkl12mt6saTpgQ==,BACkTO+3rRUF81w5yzZskFiIRyVxc6sdJfDFX6C+Jy5A+s/sfHskrFx2GYNklZaYztP0/B64a6v6HvFWVz8GuYj2wgHhiCL+QwLThFpaRxh8kUMSrt4VuXSIjtHwRXzhSdEbG2T6C/+CJZxIFh/ugEV9SS51l1HrLdnJDb2Kdu3QC3lRkQ==;2,AgC99VyiRLJ2kFf3oCkb+JPVV7B4tXVGI2NVT7fdKtB+gEjCcdkbS5YEXm/Sq6NAJEOKilMTFUDLYFDOe+7JHj/4pw==,AgAbT080sbKVHH9lim3tVCYS4cMz+rLownRKqtYZ7AfR8qy819R1GFywQ0kImgcdjEey5C4m0OPTwgtkO+C5uWtKfQ==,BADKYt9i0zTJeh3H8t6d8pZdncz3f28v1oWrssLZwAutkIcF3XKkPNmK3X75K3sImUSch//IIRIB1Yi5/MrZZeDrxQHhQZEg6AA8bDxgt0JdOEX2t4crzDu3gW5I8y+Ya0fZr1RmxvfMr2UxRhSsNsz949v/g+GPfsrEfDqIWTiNlJfwyg==,2,AgEPMjgCfgGRaZ/5I1hLqDoJ8nXYeTlnt9YeK4K8w+HnRAoAD09zkPcLMWajIjupe/CUFrHz00sAvs+vOPeKxGrLiQ==,AgDy7g2DcDwmIW7LtTTteHExD/cyP4BMWimEAM1RfAd/Y6P8XkmRGgglfdLJ7RGTR2YIMB1lxQ/LQUbmzyjTiiuWow==,BAHJ7oHVr/0wweyGlg4f9Dqmx8h0m35jMdrEFwVY8l/ENKpOTxG/oh9vAvo1uw39wUOn4CWGBmAFE2lsvWFW18gt+gHPFt5/9ihUFN9mtxFLT1Q3W4Uf8IdekHPMbNlxEp1wId7EH3XsAox3Eo8b3XnYpwfsAXoDwQa2wyiO5h104Ptvsg==;2,AwClCMGcHdd7rD8sYDC/GXyAtLmZ/JI4v+aOK4PXzjWJi/zvcsXT5dJUOm9bW6AAtzgOKPd0WwU3hSytJ+ATy146Uw==,AgADzN6ysOIC9GAuMF9suYNfkR027H/9OcpeVJb4HRHfZ/EOmQWSdJmJFw3F/NLUrreNnFCvuF1+1bbmHa3tvznjeA==,BADwaRJF9z3DW7HE3qhGu6Yd9d2WBfWy8opd7Mhkg7TpAQsn9oA3UcpCarn4DMSnVGG94Y3Pxsj5vlm5G7GMKiGoxAERnETH6pVgBxhtrnBU6l4vHl+X4rd8I/zheZiG0EFKJza41rmwKHTY4+42PJ8/3Y2rCanbY1RSAJEgiZR89k6nGg==,2,AgCK80PhKSC23aVKQ8uYm+79GWZiwpbV5lc8Fzcpwu8hdKGAMH4f62Y//cmrQmCIltm03PTVPMn6rMwkfoz+9M2LDQ==,AgH5aXThIKUjENFTGCGwcTRql7xIe8vR9h78KikTYkD8itQ+YBDrnx5OaNyWRjpIJHAZ2B61W2aVjZ5Rmo0d1B1Pcw==,BAAEZsEKw59QSRxN1QmWcx4X2LaK4+zBuawh+2CIRPljWyxK6XhIM6EEalr44Klce4OTK2QbxT5n3Kjnh5jNuwCOawAH/wiNrx09+HY8SZrRjCjv1+Lnicybrqg/IFDNoAGT5aguaGRIMmGOLe0QFJr0T0iW3RnYGlmSd/r6ex8+MpOgLw==</decrypt_val></awr_decrypt>";
- String replyString = connectSPU.sendReceive(Type.DECRYPT, requestString);
- System.out.println("REQUEST URL: " + requestString);
- System.out.println("REPLY: " + replyString);
- ReplyDecryption reply = (new XMLParserDecrypt()).stringToReply(replyString);
- return reply;
- }
-
- public ReplyMaterial callServiceMaterial(RequestMaterial rqtMaterial) {
- String requestString = URLParserMaterial.requestToString(rqtMaterial);
- String replyString = connectSPU.sendReceive(Type.MATERIAL, requestString);
-
- System.out.println("Material request:");
- System.out.println(replyString);
-
- ReplyMaterial reply = (new XMLParserMaterial()).stringToReply(replyString);
- return reply;
- }
-
- public ReplySurvey callServiceSurvey(){
-
-// String replyString = connectSPU.sendReceive(Type.SURVEY_Q,"");
- //4::What's your name?::1;5::Where are you from?::2;6::How old are you?::3;7::What's your name?::1;8::Where are you from?::2;9::How old are you?::3;10::What's your name?::1;11::Where are you from?::2;12::How old are you?::3;13::What's your name?::1;14::Where are you from?::2;15::How old are you?::3
- String replyString ="<awr_survey><v_questions>1::What's your name?::1;2::Where are you from?::2;3::How old are you?::3;4::A hacker or a disgruntled employee steals from a hospital database the unprotected genome of a known personality. He finds out this person's ethnicity and predisposition to diseases. As a result, he sells this information to tabloids and newspapers. Theft of unprotected medical data is an important concern and hospitals should take more steps to make sure that unauthorized people cannot access personal information in their computers.::3</v_questions><v_locations>50::Lausanne;60::Basel;70::Zurich</v_locations></awr_survey>";
- ReplySurvey reply = (new XMLParserSurvey()).stringToReply(replyString);
- return reply;
- }
-
- public String callServiceSurveyAnswer(String survey, String id_loc, String id_p){
-
- StringBuilder sb = new StringBuilder();
- sb.append("id_p=").append(id_p);
- sb.append("&timestamp=").append(System.currentTimeMillis());
- sb.append("&id_loc=").append(id_loc);
- sb.append("&answer=").append(survey);
- String replyString = connectSPU.sendReceive(Type.SURVEY_A, sb.toString());
- return replyString;
-
- }
-
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/5f/50905e9c9ba7001417ceadf0100b5ef7 b/.metadata/.plugins/org.eclipse.core.resources/.history/5f/50905e9c9ba7001417ceadf0100b5ef7
deleted file mode 100644
index 36fcc91..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/5f/50905e9c9ba7001417ceadf0100b5ef7
+++ /dev/null
@@ -1,280 +0,0 @@
-package io;
-
-import java.awt.BorderLayout;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.util.Map;
-import java.util.Set;
-
-import com.itextpdf.text.BaseColor;
-import com.itextpdf.text.Document;
-import com.itextpdf.text.DocumentException;
-import com.itextpdf.text.Element;
-import com.itextpdf.text.ExceptionConverter;
-import com.itextpdf.text.Font;
-import com.itextpdf.text.Font.FontFamily;
-import com.itextpdf.text.FontFactory;
-import com.itextpdf.text.Image;
-import com.itextpdf.text.PageSize;
-import com.itextpdf.text.Paragraph;
-import com.itextpdf.text.Phrase;
-import com.itextpdf.text.Rectangle;
-import com.itextpdf.text.pdf.AcroFields;
-import com.itextpdf.text.pdf.BaseFont;
-import com.itextpdf.text.pdf.ColumnText;
-import com.itextpdf.text.pdf.GrayColor;
-import com.itextpdf.text.pdf.PdfBorderDictionary;
-import com.itextpdf.text.pdf.PdfContentByte;
-import com.itextpdf.text.pdf.PdfFormField;
-import com.itextpdf.text.pdf.PdfPCell;
-import com.itextpdf.text.pdf.PdfPCellEvent;
-import com.itextpdf.text.pdf.PdfPTable;
-import com.itextpdf.text.pdf.PdfReader;
-import com.itextpdf.text.pdf.PdfWriter;
-import com.itextpdf.text.pdf.RadioCheckField;
-import com.itextpdf.text.pdf.TextField;
-
-import framework.Question;
-
-public class Questionnaire implements PdfPCellEvent{
-
- /** The path output file. */
- String pathOutputFile;
-
- /** The document. */
- Document document;
-
- int tf;
-
- public Questionnaire(String path){
- pathOutputFile = path;
- document = new Document(PageSize.A4, 25, 25, 50, 50);
- }
- public Questionnaire(int tf){
- this.tf = tf;
- }
-
- /** The resulting PDF. */
- public static final String RESULT1 = "outputPDF/buttons.pdf";
- /** The resulting PDF. */
- public static final String RESULT2 = "outputPDF/buttons_filled.pdf";
- /** Path to a JavaScript resource. */
- public static final String RESOURCE = "res/buttons.js";
- /** Path to an image used as button icon. */
- public static final String IMAGE = "res/info.png";
- /** Possible values of a radio field / checkboxes */
- public static final String[] LANGUAGES = { "English", "German", "French", "Spanish", "Dutch" };
-
- /**
- * Creates a PDF document.
- * @param filename the path to the new PDF document
- * @throws DocumentException
- * @throws IOException
- */
- public void createPdf(Map<Integer, Question> map, Set<Integer> ids) throws IOException, DocumentException {
-
- @SuppressWarnings("unused")
- PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(pathOutputFile));
-
-
- document.open();
- Image logo = Image.getInstance("res/shcs_logo2.gif");
-
- logo.scalePercent(30f);
- float[] columnWidths1 = {0.2f, 0.8f};
- PdfPTable table_title = new PdfPTable(columnWidths1);
- PdfPCell c01 = new PdfPCell(logo, false);
- PdfPCell c02 = new PdfPCell(new Paragraph("Survery | Project #693",
- FontFactory.getFont(FontFactory.HELVETICA, 20, Font.BOLD, BaseColor.BLACK)));
- c01.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setHorizontalAlignment(Element.ALIGN_CENTER);
- c01.setBorder(Rectangle.NO_BORDER);
- c02.setBorder(Rectangle.NO_BORDER);
-
- table_title.addCell(c01);
- table_title.addCell(c02);
- table_title.setWidthPercentage(100);
- table_title.setSpacingBefore(0);
- table_title.setSpacingAfter(25);
- document.add(table_title);
-
-
- //----------------------------------------------------------------------------------
-
-
- PdfPTable table1 = new PdfPTable(1);
- table1.setWidthPercentage(100);
- PdfPCell c11 = new PdfPCell(new Phrase("Today you are receiving a pharmacogenetic report based on the genetic " +
- "information of your patient. Because the human genome contains extremely private and sensitive information" +
- " of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier," +
- " it must be managed with care. ",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.NORMAL, BaseColor.BLACK)));
- c11.setLeading(1.5f, 1.5f);
- c11.setPaddingBottom(8);
-
-
- table1.addCell(c11);
- table1.setSpacingAfter(10);
- document.add(table1);
-
-
- //----------------------------------------------------------------------------------
-
-// // step 4
-// // add the JavaScript
-// writer.addJavaScript(Utilities.readFileToString(RESOURCE));
-
- for(Integer id: ids){
- PdfPCell c2;
-
- PdfPTable table = new PdfPTable(1);
- table.setSpacingAfter(10);
- table.setWidthPercentage(100);
-
- PdfPCell c1 = new PdfPCell(new Phrase(id + ") " + map.get(id).getQuestion(),FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c1.setPaddingTop(5);
- c1.setPaddingBottom(5);
- c1.setHorizontalAlignment(Element.ALIGN_CENTER);
- c1.setBorder(Rectangle.NO_BORDER);
- table.addCell(c1);
-
- c2 = new PdfPCell(new Phrase(" 1" +
- " 2" +
- " 3" +
- " 4" +
- " 5",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c2.setHorizontalAlignment(Element.ALIGN_LEFT);
- c2.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c2.setCellEvent(new Questionnaire(id));
- c2.setBorder(Rectangle.TOP);
- c2.setPaddingTop(2);
- c2.setPaddingBottom(5);
- c2.setBackgroundColor(new BaseColor(242, 242, 242));
-
- table.addCell(c2);
-
-
-
- document.add(table);
- }
-
-
- //----------------------------------------------------------------------------------
-
- // step 5
- document.close();
-
- }
-
- @Override
- public void cellLayout(PdfPCell cell, Rectangle position,
- PdfContentByte[] canvases) {
- PdfWriter writer = canvases[0].getPdfWriter();
- PdfFormField radiogroup = PdfFormField.createRadioButton(writer, true);
- radiogroup.setFieldName(String.valueOf(tf));
- System.out.println(tf);
-
- float llx = position.getLeft();
- float lly = position.getBottom();
-
- float cell_h = cell.getHeight();
- float cell_w = cell.getWidth();
-
- Rectangle rect;
-
- for(int i=1 ; i<=5; i++){
-
- rect = new Rectangle(llx + (3+i)*cell_w/12, lly+cell_h/2-6, llx + (3+i)*cell_w/12+12 ,lly+cell_h/2+6);
-
- RadioCheckField radio = new RadioCheckField(writer, rect, null, String.valueOf(i));
- radio.setBorderColor(GrayColor.GRAYBLACK);
- radio.setCheckType(RadioCheckField.TYPE_SQUARE);
-
-
- try {
- PdfFormField field = radio.getRadioField();
- radiogroup.addKid(field);
-
- writer.addAnnotation(radiogroup);
- }
-
- catch(IOException ioe) {
- throw new ExceptionConverter(ioe);
- }
- catch(DocumentException de) {
- throw new ExceptionConverter(de);
- }
- }
-
-
-
- }
-
-
- public String getAnswers() throws IOException{
- StringBuilder sb = new StringBuilder();
- PdfReader reader = new PdfReader(pathOutputFile);
- AcroFields form = reader.getAcroFields();
- Set<String> fields = form.getFields().keySet();
- for(String key: fields){
- System.out.println("key = " + key);
- if(form.getFieldType(key)==AcroFields.FIELD_TYPE_RADIOBUTTON){
- sb.append(key);
- sb.append(",");
- sb.append(form.getField(key));
- sb.append(";");
- }
- }
- reader.close();
-
- return sb.toString();
-
- }
-
-
-// /**
-// * Manipulates a PDF file src with the file dest as result
-// * @param src the original PDF
-// * @param dest the resulting PDF
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public void manipulatePdf(String src, String dest) throws IOException, DocumentException {
-// PdfReader reader = new PdfReader(src);
-// PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(dest));
-// AcroFields form = stamper.getAcroFields();
-// String[] radiostates = form.getAppearanceStates("language");
-// form.setField("language", radiostates[4]);
-// for (int i = 0; i < LANGUAGES.length; i++) {
-// String[] checkboxstates = form.getAppearanceStates("English");
-// form.setField(LANGUAGES[i], checkboxstates[i % 2 == 0 ? 1 : 0]);
-// }
-// stamper.close();
-// reader.close();
-//
-// PdfReader r = new PdfReader(dest);
-// AcroFields f = r.getAcroFields();
-// Set<String> fields = form.getFields().keySet();
-// for(String key: fields){
-// if(f.getFieldType(key)==AcroFields.FIELD_TYPE_RADIOBUTTON){
-// System.out.println(key);
-// System.out.println(f.getField(key));
-//
-// }
-// }
-// r.close();
-//
-// }
-//
-// /**
-// * Main method
-// * @param args no arguments needed
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public static void main(String[] args) throws IOException, DocumentException {
-// Questionnaire buttons = new Questionnaire();
-// buttons.createPdf(RESULT1);
-// buttons.manipulatePdf(RESULT1, RESULT2);
-// }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/6/c0472803f4a60014162f978bbd19228b b/.metadata/.plugins/org.eclipse.core.resources/.history/6/c0472803f4a60014162f978bbd19228b
deleted file mode 100644
index c2482d4..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/6/c0472803f4a60014162f978bbd19228b
+++ /dev/null
@@ -1,56 +0,0 @@
-package io;
-
-import java.io.IOException;
-
-import com.itextpdf.text.DocumentException;
-import com.itextpdf.text.Rectangle;
-import com.itextpdf.text.pdf.GrayColor;
-import com.itextpdf.text.pdf.PdfContentByte;
-import com.itextpdf.text.pdf.PdfFormField;
-import com.itextpdf.text.pdf.PdfPCell;
-import com.itextpdf.text.pdf.PdfPCellEvent;
-import com.itextpdf.text.pdf.PdfWriter;
-import com.itextpdf.text.pdf.RadioCheckField;
-
-public class RadioGroup implements PdfPCellEvent{
-
- protected int id;
-
- public RadioGroup(int ID){
- this.id = ID;
- }
-
- @Override
- public void cellLayout(PdfPCell cell, Rectangle position,
- PdfContentByte[] canvases) {
- PdfWriter writer = canvases[0].getPdfWriter();
- PdfFormField radiogroup = PdfFormField.createRadioButton(writer, true);
- radiogroup.setFieldName(String.valueOf(id));
-
- RadioCheckField radio;
- PdfFormField radiofield;
-
- for(int i=0; i<5; i++){
- radio = new RadioCheckField(writer, position, null, String.valueOf(i+1));
- radio.setBackgroundColor(new GrayColor(0.8f));
- radio.setCheckType(RadioCheckField.TYPE_CIRCLE);
- radio.setBorderColor(GrayColor.GRAYBLACK);
- try {
- radiofield = radio.getRadioField();
- radiogroup.addKid(radiofield);
-
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (DocumentException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
-
-
- }
- writer.addAnnotation(radiogroup);
-
-
-}
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/62/0074e68f55ac001410e2e30aa85db9d1 b/.metadata/.plugins/org.eclipse.core.resources/.history/62/0074e68f55ac001410e2e30aa85db9d1
deleted file mode 100644
index beef44b..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/62/0074e68f55ac001410e2e30aa85db9d1
+++ /dev/null
@@ -1,927 +0,0 @@
-package ui;
-
-import io.ClientConnection;
-import io.CommAdapter;
-import io.Questionnaire;
-
-import java.awt.BorderLayout;
-import java.awt.Color;
-import java.awt.Component;
-import java.awt.Dimension;
-import java.awt.FlowLayout;
-import java.awt.Font;
-import java.awt.SystemColor;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.awt.event.WindowAdapter;
-import java.io.File;
-import java.io.IOException;
-import java.sql.SQLException;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.LinkedList;
-import java.util.Map;
-import java.util.Set;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
-import javax.swing.Box;
-import javax.swing.BoxLayout;
-import javax.swing.ButtonGroup;
-import javax.swing.DefaultComboBoxModel;
-import javax.swing.GroupLayout;
-import javax.swing.GroupLayout.Alignment;
-import javax.swing.ImageIcon;
-import javax.swing.JButton;
-import javax.swing.JComboBox;
-import javax.swing.JDialog;
-import javax.swing.JFileChooser;
-import javax.swing.JFrame;
-import javax.swing.JLabel;
-import javax.swing.JOptionPane;
-import javax.swing.JPanel;
-import javax.swing.JRadioButton;
-import javax.swing.JScrollPane;
-import javax.swing.JSeparator;
-import javax.swing.JTabbedPane;
-import javax.swing.JTextArea;
-import javax.swing.JTextPane;
-import javax.swing.JTree;
-import javax.swing.LayoutStyle.ComponentPlacement;
-import javax.swing.SwingConstants;
-import javax.swing.border.EmptyBorder;
-import javax.swing.border.LineBorder;
-import javax.swing.tree.DefaultMutableTreeNode;
-import javax.swing.tree.TreeModel;
-import javax.swing.tree.TreePath;
-
-import org.jpedal.examples.viewer.Commands;
-import org.jpedal.examples.viewer.Viewer;
-
-import utils.ClientProperties;
-
-import com.itextpdf.text.DocumentException;
-
-import database.DBconnectorClient;
-import framework.Diagnostic;
-import framework.MedUnit;
-import framework.Question;
-import framework.reply.ReplySurvey;
-import framework.test.TestName;
-
-/**
- *
- * @author youssef, raisaro
- */
-public class GUI extends javax.swing.JFrame {
-
- private static final Logger LOGGER = Logger.getLogger(GUI.class.getName());
-
- private static final long serialVersionUID = -4582280515597700650L;
-
- // configuration
- private ClientProperties props;
-
- private JTree jTree;
- private DBconnectorClient connectorClientDB;
- private LinkedList<Integer> patients;
-
- /** List of all relevant tests */
- private HashMap<String, TestName> testsByName;
- private Viewer viewer;
- private JDialog dialog;
- private JFrame frame;
- private boolean survey_submitted;
- private int close_trials;
- private Map<Integer, ButtonGroup> buttonGroupMap;
- private Questionnaire quest;
- private Map<Integer, Question> map;
- private Set<Integer> ids;
- private Map<String,String> answers;
- private Map<Integer, String> locations;
-
-
- /**
- * Creates new form GUI
- */
- public GUI(ClientProperties props){
-
- frame = this;
- this.props = props;
- this.connectorClientDB = new DBconnectorClient(props.getDbMsAccess());
- survey_submitted = false;
- close_trials = 0;
-
-
- try {
- initComponents();
-
- viewer = new Viewer(jScrollPane2, null);
- viewer.setupViewer();
-
- // create questionnare
-
-
- System.out.println("#of questions: " + ids.size());
-
-// viewer_q = new Viewer(jScrollPane4, null);
-// viewer_q.setupViewer();
-//
-// // specify file you wish to open (JPedal handles getting the byte data)
-// String filepathReport = "outputPDF/buttons_filled.pdf";
-//
-// // open generated PDF
-// // object must be either String in full filepath, or
-// // File object which can be relative
-// Object[] input = new Object[]{ new File(filepathReport) };
-// viewer_q.executeCommand(Commands.OPENFILE, input);
-
- JButton btnSubmitQuestionnaire = new JButton("Submit Questionnaire");
- btnSubmitQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- btnSubmitQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- submitButtonActionPerformed(arg0);
- }
- });
- JButton btnResetQuestionnaire = new JButton("Save as PDF");
- btnResetQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- savePDFButtonActionPerformed(arg0);
- }
- });
- btnResetQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- JPanel panel_button = new JPanel();
- panel_button.setLayout(new BoxLayout(panel_button, BoxLayout.X_AXIS));
-
- lblNewLabel_3 = new JLabel("");
- lblNewLabel_3.setIcon(new ImageIcon("res/location_icon.png"));
- panel_button.add(lblNewLabel_3);
-
-
-
- comboBox = new JComboBox<String>();
- comboBox.setFont(new Font("Tahoma", Font.BOLD, 12));
- comboBox.setModel(new DefaultComboBoxModel<String>(new String[] {"Select Location"}));
- for(Integer id_loc : locations.keySet()){
- comboBox.addItem(locations.get(id_loc));
- }
-
-
- panel_button.add(comboBox);
-
- rigidArea = Box.createRigidArea(new Dimension(10, 0));
- panel_button.add(rigidArea);
-
- lblNewLabel_1 = new JLabel("");
- lblNewLabel_1.setIcon(new ImageIcon("res/submit.png"));
- panel_button.add(lblNewLabel_1);
- panel_button.add(btnSubmitQuestionnaire);
-
- panel_button.add(Box.createRigidArea(new Dimension(10,0)));
-
- lblNewLabel_2 = new JLabel("");
- lblNewLabel_2.setIcon(new ImageIcon("res/pdf.png"));
- panel_button.add(lblNewLabel_2);
- panel_button.add(btnResetQuestionnaire);
- panel_button.setPreferredSize(new Dimension(211, 35));
- panel_button.validate();
-
- JPanel panel_3 = new JPanel();
- GroupLayout gl_panel = new GroupLayout(panel);
- gl_panel.setHorizontalGroup(
- gl_panel.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(63)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addGap(103)
- .addComponent(panel_button, GroupLayout.DEFAULT_SIZE, 498, Short.MAX_VALUE)
- .addGap(241))
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(41)
- .addGroup(gl_panel.createParallelGroup(Alignment.TRAILING)
- .addComponent(jScrollPane4, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE)
- .addComponent(panel_1, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE))
- .addGap(32))
- );
- gl_panel.setVerticalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(22)
- .addComponent(panel_1, GroupLayout.PREFERRED_SIZE, 235, GroupLayout.PREFERRED_SIZE)
- .addGap(37)
- .addComponent(jScrollPane4, GroupLayout.DEFAULT_SIZE, 379, Short.MAX_VALUE)
- .addGap(26)
- .addGroup(gl_panel.createParallelGroup(Alignment.LEADING)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(panel_button, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE)))
- );
- panel_3.setLayout(new BoxLayout(panel_3, BoxLayout.X_AXIS));
-
-
- panel.setLayout(gl_panel);
-
-
-
-
-
-
- /////////////////////////////////////////////////////////
- // display the tests available
-
- // get the tests
- HashMap<String, ArrayList<TestName>> testsRelevantByGroup = connectorClientDB.getRelevantTestsByGroup();
- ArrayList<String> groups = new ArrayList<String>(testsRelevantByGroup.keySet());
-
- // flatten hashmap into linkedlist
-// tests = new LinkedList<>();
- testsByName = new HashMap<String, TestName>();
- for (String group : groups) {
-// tests.addAll(testsRelevantByGroup.get(group));
- for (TestName test : testsRelevantByGroup.get(group)) {
- testsByName.put(test.getName(), test);
- }
- }
-
- // define tree structure of the tests
- DefaultMutableTreeNode root = new DefaultMutableTreeNode("All");
-
- for (String group : groups) {
- DefaultMutableTreeNode child = new DefaultMutableTreeNode(group);
- root.add(child);
-
- for (TestName test : testsRelevantByGroup.get(group)) {
- DefaultMutableTreeNode grandChild = new DefaultMutableTreeNode(test.getName());
- child.add(grandChild);
- }
- }
-
- // define swing object
- jTree = new JTree(root);
-
- for(int i=0;i<jTree.getRowCount();i++){
- jTree.expandRow(i);
- }
-
- jScrollPane3.setViewportView(jTree);
-// jTree.addTreeSelectionListener(new TreeSelectionListener() {
-//
-// @Override
-// public void valueChanged(TreeSelectionEvent e) {
-// tp = jTree.getSelectionPaths();
-// }
-// });
- jScrollPane3.setViewportView(jTree);
-
- /////////////////////////////////////////////////////////
- // display the patients registered
-
- patients = connectorClientDB.getPatients();
- for (Integer patientId : patients) {
- jComboBox1.addItem(patientId.toString());
- }
-
- } catch (SQLException ex) {
- Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex);
- ex.printStackTrace();
-// } catch (IOException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
-// } catch (DocumentException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
- }
-
- }
-
- /**
- * 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() {
-
- jPanel1 = new javax.swing.JPanel();
- jLabel2 = new javax.swing.JLabel();
- jLabel1 = new javax.swing.JLabel();
- jPanel2 = new javax.swing.JPanel();
- jComboBox1 = new javax.swing.JComboBox<String>();
- jButton1 = new javax.swing.JButton();
- jButton1.setFont(new Font("Tahoma", Font.BOLD, 12));
- jLabel3 = new javax.swing.JLabel();
- jLabel4 = new javax.swing.JLabel();
- jScrollPane3 = new javax.swing.JScrollPane();
- jScrollPane2 = new javax.swing.JScrollPane();
- jMenuBar1 = new javax.swing.JMenuBar();
- jMenu1 = new javax.swing.JMenu();
- jMenuItem1 = new javax.swing.JMenuItem();
- jMenu2 = new javax.swing.JMenu();
- dialog = new JDialog();
- tabbedPane = new JTabbedPane(JTabbedPane.TOP);
-
- setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
- addWindowListener(new WindowAdapter() {
- @Override
- public void windowClosing(java.awt.event.WindowEvent windowEvent) {
- if (!survey_submitted && close_trials <= 2){
- JOptionPane.showMessageDialog(frame, "Before closing the application, please fill in and submit the questionnaire.");
- close_trials++;
- tabbedPane.setSelectedIndex(1);
- }else{
- System.exit(0);
- }
- }
- });
- setTitle("HIV Pharmacogenomics\n");
-
- jLabel2.setIcon(new javax.swing.ImageIcon("res/shcs_logo2_small.gif")); // NOI18N
-
- jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
- jLabel1.setText("HIV Pharmacogenomics | Project #693");
-
- javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
- jPanel1.setLayout(jPanel1Layout);
- jPanel1Layout.setHorizontalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap(71, Short.MAX_VALUE)
- .addComponent(jLabel1)
- .addGap(18, 18, 18)
- .addComponent(jLabel2))
- );
- jPanel1Layout.setVerticalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jLabel1)
- .addGap(11, 11, 11))
- .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)
- );
-
- jPanel2.setBackground(new java.awt.Color(255, 255, 255));
- jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
-
- jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<String>(new String[]{"Select Patient"}));
-
- jButton1.setText("Run Test");
- jButton1.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton1ActionPerformed(evt);
- }
- });
-
- JLabel lblNewLabel = new JLabel("");
- lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
- lblNewLabel.setIcon(new javax.swing.ImageIcon("res/gears.png"));
-
-
-
- javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
- jPanel2Layout.setHorizontalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addComponent(jComboBox1, 0, 248, Short.MAX_VALUE)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addGap(75)
- .addGroup(jPanel2Layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jButton1)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 75, GroupLayout.PREFERRED_SIZE))
- .addContainerGap(98, Short.MAX_VALUE))
- );
- jPanel2Layout.setVerticalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addComponent(jComboBox1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED, 223, Short.MAX_VALUE)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jButton1)
- .addGap(19))
- );
- jPanel2.setLayout(jPanel2Layout);
-
- jLabel3.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel3.setText("Select Patient");
-
- jLabel4.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel4.setText("Select Test");
-
- jScrollPane3.setBackground(new java.awt.Color(255, 255, 255));
-
- jMenu1.setText("File");
-
- jMenuItem1.setText("Exit");
- jMenu1.add(jMenuItem1);
-
- jMenuBar1.add(jMenu1);
-
- jMenu2.setText("Edit");
- jMenuBar1.add(jMenu2);
-
- setJMenuBar(jMenuBar1);
-
-
-
- javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
- layout.setHorizontalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(layout.createParallelGroup(Alignment.LEADING, false)
- .addComponent(jLabel3)
- .addComponent(jLabel4)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, 244, Short.MAX_VALUE)
- .addComponent(jScrollPane3))
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 970, Short.MAX_VALUE))
- .addContainerGap())
- );
- layout.setVerticalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel4))
- .addPreferredGap(ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addComponent(jScrollPane3, GroupLayout.PREFERRED_SIZE, 388, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jLabel3)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 785, Short.MAX_VALUE))
- .addContainerGap())
- );
-
-
- jScrollPane2.setAutoscrolls(true);
- jScrollPane3.setAutoscrolls(true);
- tabbedPane.addTab("Report", new ImageIcon("res/report_icon.gif"), jScrollPane2, null);
- tabbedPane.setBackgroundAt(0, new Color(255, 255, 255));
-
- panel = new JPanel();
- tabbedPane.addTab("Survey", new ImageIcon("res/survey_icon.png"), panel, null);
- tabbedPane.setBackgroundAt(1, new Color(255, 255, 255));
- tabbedPane.setEnabledAt(1, true);
-
- panel_1 = new JPanel();
- panel_1.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
- panel_1.setBackground(SystemColor.control);
-
- JLabel label = new JLabel("");
- label.setIcon(new ImageIcon("res/shcs_logo2_medium.gif"));
-
- lblDearDoctor = new JLabel("Dear Doctor,");
- lblDearDoctor.setFont(new Font("Tahoma", Font.BOLD, 14));
-
- JScrollPane scrollPane = new JScrollPane();
- scrollPane.setBorder(null);
- GroupLayout gl_panel_1 = new GroupLayout(panel_1);
- gl_panel_1.setHorizontalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(Alignment.LEADING, gl_panel_1.createSequentialGroup()
- .addGap(25)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addComponent(lblDearDoctor)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 661, Short.MAX_VALUE))
- .addContainerGap())
- );
- gl_panel_1.setVerticalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addContainerGap()
- .addComponent(lblDearDoctor)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 203, Short.MAX_VALUE))
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(36)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 96, GroupLayout.PREFERRED_SIZE)))
- .addContainerGap())
- );
-
- JTextPane txtpnTodayYouAre = new JTextPane();
- txtpnTodayYouAre.setBorder(null);
- txtpnTodayYouAre.setText("Today you are receiving a pharmacogenetics report based on the genome of your patient. Because of its highly sensitive nature, " +
- "the genetic information you are provided with is processed in a privacy-preserving way. In particular, to protect patients’ genomic privacy, " +
- "their genetic and clinical data is stored encrypted at the SHCS data center, and securely analyzed through a sophisticated algorithm designed and developed at EPFL [1, 2]. " +
- "The actual clinical and genetic information is never revealed. Only the authorized users, such as you, can get some processed information, for example, the final result of a " +
- "pharmacogenetics risk test.\nThis mechanism protects the data against insiders or hackers trying to illegally access patients’ medical information, while still allowing authorized " +
- "users to obtain the information they need." +
- "\n\nTo help us understanding the importance of genomic privacy in the medical domain, and the impact of privacy-enhancing technologies in daily clinical practice, please complete the following survey.");
- txtpnTodayYouAre.setFont(new Font("Tahoma", Font.PLAIN, 13));
- txtpnTodayYouAre.setEditable(false);
- txtpnTodayYouAre.setBackground(SystemColor.control);
- scrollPane.setViewportView(txtpnTodayYouAre);
- panel_1.setLayout(gl_panel_1);
- jScrollPane4 = new javax.swing.JScrollPane();
- jScrollPane4.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
- getContentPane().setLayout(layout);
-
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
- ReplySurvey replySurvey = commHandlerAdapter.callServiceSurvey();
-
- map = replySurvey.getQuestions();
- ids = map.keySet();
- locations = replySurvey.getLocations();
-
- panel_2 = new JPanel();
- panel_2.setBackground(Color.WHITE);
- panel_2.setBorder(null);
- jScrollPane4.setViewportView(panel_2);
- panel_2.setLayout(new BoxLayout(panel_2, BoxLayout.Y_AXIS));
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
-
- int type = 0;
- for(Integer id : ids){
- ButtonGroup group = new ButtonGroup();
- JRadioButton r1 = new JRadioButton("1"); r1.setActionCommand("1"); r1.setBackground(Color.WHITE);
- JRadioButton r2 = new JRadioButton("2"); r2.setActionCommand("2"); r2.setBackground(Color.WHITE);
- JRadioButton r3 = new JRadioButton("3"); r3.setActionCommand("3"); r3.setBackground(Color.WHITE);
- JRadioButton r4 = new JRadioButton("4"); r4.setActionCommand("4"); r4.setBackground(Color.WHITE);
- JRadioButton r5 = new JRadioButton("5"); r5.setActionCommand("5"); r5.setBackground(Color.WHITE);
- group.add(r1);
- group.add(r2);
- group.add(r3);
- group.add(r4);
- group.add(r5);
- JPanel radio_panel = new JPanel();
- radio_panel.setLayout((new BoxLayout(radio_panel, BoxLayout.X_AXIS)));
- radio_panel.setBackground(Color.WHITE);
- radio_panel.setAlignmentX(Component.CENTER_ALIGNMENT);
- radio_panel.add(r1);
- radio_panel.add(r2);
- radio_panel.add(r3);
- radio_panel.add(r4);
- radio_panel.add(r5);
- radio_panel.doLayout();
- radio_panel.setPreferredSize(radio_panel.getPreferredSize());
- JTextArea question = new JTextArea(id + ") " + map.get(id).getQuestion());
- question.setEditable(false);
- question.setLineWrap(true);
- question.setWrapStyleWord(true);
-
-
- JPanel row_panel = new JPanel();
- row_panel.setLayout(new BoxLayout(row_panel, BoxLayout.X_AXIS));
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.add(question);
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.add(radio_panel);
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.setBackground(Color.WHITE);
-
- int type_new = map.get(id).getType();
-
- if(type_new != type){
- type = type_new;
- JLabel question_group = new JLabel("");
- switch(type){
- case 1:
- question_group.setText("Clinical Utility");
- break;
- case 2:
- question_group.setText("Privacy Concerns");
- break;
- case 3:
- question_group.setText("Usability Assessment");
- break;
- }
- question_group.setAlignmentX(Component.CENTER_ALIGNMENT);
- question_group.setFont(new Font("Tahoma", Font.BOLD, 13));
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- panel_2.add(question_group);
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- panel_2.add(new JSeparator());
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- }
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- panel_2.add(row_panel);
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
-// panel_2.add(radio_panel);
- panel_2.add(new JSeparator());
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
-// panel_2.setPreferredSize(panel_2.getPreferredSize());
- buttonGroupMap.put(id, group);
-
- }
-
-
-
- this.setSize(new Dimension(1300, 865));
-// pack();
- }// </editor-fold>//GEN-END:initComponents
-
-
- private void submitButtonActionPerformed(java.awt.event.ActionEvent evt){
-
- try{
- answers = new HashMap<String, String>();
- StringBuilder sb = new StringBuilder();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- sb.append(q).append(",");
- sb.append(bg.getSelection().getActionCommand()).append(";");
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- String answer = sb.toString();
- Integer id_loc = null;
- for(Integer i: locations.keySet()){
- if(locations.get(i).equals(comboBox.getSelectedItem().toString()))
- id_loc = i;
- }
-
- String id_p;
- if(jComboBox1.getSelectedItem().toString().equals("Select Patient"))
- id_p = "0";
- else
- id_p = jComboBox1.getSelectedItem().toString();
-
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
-
- String reply = commHandlerAdapter.callServiceSurveyAnswer(answer, id_loc.toString(), id_p);
-
- if(reply.equals("1")){
- survey_submitted = true;
-
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Congrats! Your aswers have been sent to the SHCS datacenter.",
- "Information Message",
- JOptionPane.INFORMATION_MESSAGE);
- }
- else{
- throw new IOException();
- }
-
-
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "The SHCS datacenter does not respond. Please save the survey and send it to jean.raisaro@epfl.ch.",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
- private void savePDFButtonActionPerformed(java.awt.event.ActionEvent evt){
- try {
-
- answers = new HashMap<String, String>();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- JFileChooser chooser = new JFileChooser();
- // Note: source for ExampleFileFilter can be found in FileChooserDemo,
- // under the demo/jfc directory in the JDK.
-
- int returnVal = chooser.showSaveDialog(this);
- System.out.println(returnVal);
- if(returnVal == JFileChooser.APPROVE_OPTION) {
- System.out.println("You chose to open this file: " +
- chooser.getSelectedFile().getPath());
- quest = new Questionnaire(chooser.getSelectedFile().getPath() + ".pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }else{
- quest = new Questionnaire("outputPDF/survey.pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }
-
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (DocumentException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (NullPointerException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
-
- private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
-
- JPanel contentPanel = new JPanel();
-
- dialog.setBounds(100, 100, 410, 80);
- dialog.getContentPane().setLayout(new BorderLayout());
- contentPanel.setLayout(new FlowLayout());
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- dialog.getContentPane().add(contentPanel, BorderLayout.CENTER);
- {
- JLabel label = new JLabel("Please wait...The overall computation can take few seconds");
- label.setHorizontalAlignment(SwingConstants.CENTER);
- label.setFont(new Font("Tahoma", Font.PLAIN, 12));
- contentPanel.add(label);
- }
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
- dialog.getContentPane().add(buttonPane, BorderLayout.SOUTH);
- }
- dialog.setLocationRelativeTo(this);
- dialog.setVisible(true);
-
- GUIWorker gw = new GUIWorker(this, props);
- Thread t = new Thread(gw);
- t.start();
-
- }
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JButton jButton1;
- private javax.swing.JComboBox<String> jComboBox1;
- private javax.swing.JLabel jLabel1;
- private javax.swing.JLabel jLabel2;
- private javax.swing.JLabel jLabel3;
- private javax.swing.JLabel jLabel4;
- private javax.swing.JMenu jMenu1;
- private javax.swing.JMenu jMenu2;
- private javax.swing.JMenuBar jMenuBar1;
- private javax.swing.JMenuItem jMenuItem1;
- private javax.swing.JPanel jPanel1;
- private javax.swing.JPanel jPanel2;
- private javax.swing.JScrollPane jScrollPane3;
- private javax.swing.JTabbedPane tabbedPane;
- private javax.swing.JScrollPane jScrollPane2;
- private javax.swing.JScrollPane jScrollPane4;
- private JPanel panel;
- private JPanel panel_1;
- private JPanel panel_2;
- private JLabel lblDearDoctor;
- private JLabel lblNewLabel_1;
- private JLabel lblNewLabel_2;
- private JLabel lblNewLabel_3;
- private JComboBox<String> comboBox;
- private Component rigidArea;
-
- // End of variables declaration//GEN-END:variables
-
-
- class GUIWorker implements Runnable{
-
- private JFrame mainFrame;
- private ClientProperties props;
- private MedUnit mu;
-
- public GUIWorker(GUI gui, ClientProperties props) {
- mainFrame = gui;
-
- this.props = props;
- this.mu = new MedUnit(props, 0);
- }
-
- @Override
- public void run() {
-
- try{
- int patientId = Integer.parseInt((String) jComboBox1.getSelectedItem());
-
- // convert selected tests to test identifiers
- ArrayList<TestName> selectedTests = new ArrayList<TestName>();
- for (String currentName : getSelectedTests()) {
- TestName currentTest = testsByName.get(currentName);
-
- if (currentTest == null) {
- throw new IllegalStateException("Trying to run unknown test: " + currentTest);
- }
-
- selectedTests.add(currentTest);
- }
-
- // run tests
- Diagnostic diagnostic = mu.runTests(patientId, selectedTests);
-
- // warn for tests with missing material
- warnFailedTests(diagnostic, selectedTests);
-
- // create report
- mu.createReport(patientId, selectedTests, diagnostic);
-
- dialog.setVisible(false);
-
- // specify file you wish to open (JPedal handles getting the byte data)
- String filepathReport = props.getPathPDF() + patientId + ".pdf";
-
- // open generated PDF
- // object must be either String in full filepath, or
- // File object which can be relative
- Object[] input = new Object[]{ new File(filepathReport) };
- viewer.executeCommand(Commands.OPENFILE, input);
-
- // display CAD result as bar plot
- if (diagnostic.hasCAD()) {
- System.out.println("CAD = " + diagnostic.getResultCAD());
- BarPlotFrame frame = new BarPlotFrame(diagnostic.getResultCAD(), patientId);
- frame.setVisible(true);
- frame.setAlwaysOnTop(true);
- }
-
-
- } catch (SQLException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Please select a patient.");
- }
-
- }
-
- private void warnFailedTests(Diagnostic diagnostic, ArrayList<TestName> selectedTests) {
- ArrayList<Integer> failedTests = diagnostic.getInvalidTests();
-
- if (!failedTests.isEmpty()) {
- String msg = "Could not complete tests: ";
- boolean first = true;
- for (TestName testName : selectedTests) {
- if (failedTests.contains(testName.getId())) {
- if (first) {
- first = false;
- } else {
- msg += ", ";
- }
- msg += testName.getName();
- }
- }
- displayError(msg);
- }
-
- }
-
- private void displayError(String msg) {
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- mainFrame,
- msg,
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
-
- private ArrayList<String> getSelectedTests() {
- ArrayList<String> tests = new ArrayList<String>();
-
- for (TreePath treePath : jTree.getSelectionPaths()) {
- tests.addAll(getChildrenTests(jTree.getModel(), treePath.getLastPathComponent()));
- }
-
- return tests;
- }
-
- private ArrayList<String> getChildrenTests(TreeModel model, Object node) {
- ArrayList<String> tests = new ArrayList<String>();
-
- if (model.isLeaf(node)) { // leaf
- DefaultMutableTreeNode leaf = (DefaultMutableTreeNode) node;
- tests.add(leaf.toString());
- }
- else { // iterate over children
- for (int i = 0; i < model.getChildCount(node); i++) {
- tests.addAll(getChildrenTests(model, model.getChild(node, i)));
- }
- }
-
- return tests;
- }
-
- }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/63/c08e8778eca60014162f978bbd19228b b/.metadata/.plugins/org.eclipse.core.resources/.history/63/c08e8778eca60014162f978bbd19228b
deleted file mode 100644
index 821355f..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/63/c08e8778eca60014162f978bbd19228b
+++ /dev/null
@@ -1,5 +0,0 @@
-package io;
-
-public class RadioGroup {
-
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/65/f02ab665a4a7001417ceadf0100b5ef7 b/.metadata/.plugins/org.eclipse.core.resources/.history/65/f02ab665a4a7001417ceadf0100b5ef7
deleted file mode 100644
index c26260c..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/65/f02ab665a4a7001417ceadf0100b5ef7
+++ /dev/null
@@ -1,5 +0,0 @@
-package io;
-
-public class ChildFieldEvent {
-
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/68/f0bfa866b2a7001417ceadf0100b5ef7 b/.metadata/.plugins/org.eclipse.core.resources/.history/68/f0bfa866b2a7001417ceadf0100b5ef7
deleted file mode 100644
index a26b76f..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/68/f0bfa866b2a7001417ceadf0100b5ef7
+++ /dev/null
@@ -1,122 +0,0 @@
-package testpdf;
-
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.util.HashMap;
-
-import com.itextpdf.text.Document;
-import com.itextpdf.text.DocumentException;
-import com.itextpdf.text.Rectangle;
-import com.itextpdf.text.pdf.AcroFields;
-import com.itextpdf.text.pdf.PdfFormField;
-import com.itextpdf.text.pdf.PdfPCell;
-import com.itextpdf.text.pdf.PdfPTable;
-import com.itextpdf.text.pdf.PdfReader;
-import com.itextpdf.text.pdf.PdfStamper;
-import com.itextpdf.text.pdf.PdfWriter;
-import com.itextpdf.text.pdf.TextField;
-
-public class Subscribe {
-
- /** The resulting PDF. */
- public static final String FORM = "results/part2/chapter08/subscribe.pdf";
- /** The resulting PDFs. */
- public static final String RESULT = "results/part2/chapter08/filled_form_%d.pdf";
-
- /**
- * Manipulates a PDF file src with the file dest as result
- * @param src the original PDF
- * @param dest the resulting PDF
- * @param cache a map that will be used to cache text field information
- * @param name the name of a person
- * @param login the login name of the same person
- * @throws IOException
- * @throws DocumentException
- */
- public void manipulatePdf(String src, String dest,
- HashMap<String,TextField> cache, String name, String login)
- throws IOException, DocumentException {
- PdfReader reader = new PdfReader(src);
- PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(dest));
- AcroFields form = stamper.getAcroFields();
- form.setFieldCache(cache);
- form.setExtraMargin(2, 0);
- form.removeField("personal.password");
- form.setField("personal.name", name);
- form.setField("personal.loginname", login);
- form.renameField("personal.reason", "personal.motivation");
- form.setFieldProperty("personal.loginname", "setfflags", TextField.READ_ONLY, null);
- stamper.setFormFlattening(true);
- stamper.partialFormFlattening("personal.name");
- stamper.close();
- reader.close();
- }
-
- /**
- * Creates a PDF document.
- * @param filename the path to the new PDF document
- * @throws DocumentException
- * @throws IOException
- */
- public void createPdf(String filename) throws IOException, DocumentException {
- // step 1
- Document document = new Document();
- // step 2
- PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(filename));
- // step 3
- document.open();
- // step 4
- PdfFormField personal = PdfFormField.createEmpty(writer);
- personal.setFieldName("personal");
- PdfPTable table = new PdfPTable(3);
- PdfPCell cell;
-
- table.addCell("Your name:");
- cell = new PdfPCell();
- cell.setColspan(2);
- TextField field = new TextField(writer, new Rectangle(0, 0), "name");
- field.setFontSize(12);
- cell.setCellEvent(new ChildFieldEvent(personal, field.getTextField(), 1));
- table.addCell(cell);
- table.addCell("Login:");
- cell = new PdfPCell();
- field = new TextField(writer, new Rectangle(0, 0), "loginname");
- field.setFontSize(12);
- cell.setCellEvent(new ChildFieldEvent(personal, field.getTextField(), 1));
- table.addCell(cell);
- cell = new PdfPCell();
- field = new TextField(writer, new Rectangle(0, 0), "password");
- field.setOptions(TextField.PASSWORD);
- field.setFontSize(12);
- cell.setCellEvent(new ChildFieldEvent(personal, field.getTextField(), 1));
- table.addCell(cell);
- table.addCell("Your motivation:");
- cell = new PdfPCell();
- cell.setColspan(2);
- cell.setFixedHeight(60);
- field = new TextField(writer, new Rectangle(0, 0), "reason");
- field.setOptions(TextField.MULTILINE);
- field.setFontSize(12);
- cell.setCellEvent(new ChildFieldEvent(personal, field.getTextField(), 1));
- table.addCell(cell);
- document.add(table);
- writer.addAnnotation(personal);
- // step 5
- document.close();
- }
-
- /**
- * Main method
- * @param args no arguments needed
- * @throws IOException
- * @throws DocumentException
- */
- public static void main(String[] args) throws IOException, DocumentException {
- Subscribe subscribe = new Subscribe();
- subscribe.createPdf(FORM);
- HashMap<String,TextField> fieldCache = new HashMap<String,TextField>();
- subscribe.manipulatePdf(FORM, String.format(RESULT, 1), fieldCache, "Bruno Lowagie", "blowagie");
- subscribe.manipulatePdf(FORM, String.format(RESULT, 2), fieldCache, "Paulo Soares", "psoares");
- subscribe.manipulatePdf(FORM, String.format(RESULT, 3), fieldCache, "Mark Storer", "mstorer");
- }
-}
\ No newline at end of file
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/69/4023c6f966a8001419a38fd8608ce0e6 b/.metadata/.plugins/org.eclipse.core.resources/.history/69/4023c6f966a8001419a38fd8608ce0e6
deleted file mode 100644
index df6604e..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/69/4023c6f966a8001419a38fd8608ce0e6
+++ /dev/null
@@ -1,291 +0,0 @@
-package io;
-
-import java.awt.BorderLayout;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.util.Map;
-import java.util.Set;
-
-import com.itextpdf.text.BaseColor;
-import com.itextpdf.text.Document;
-import com.itextpdf.text.DocumentException;
-import com.itextpdf.text.Element;
-import com.itextpdf.text.ExceptionConverter;
-import com.itextpdf.text.Font;
-import com.itextpdf.text.Font.FontFamily;
-import com.itextpdf.text.FontFactory;
-import com.itextpdf.text.Image;
-import com.itextpdf.text.PageSize;
-import com.itextpdf.text.Paragraph;
-import com.itextpdf.text.Phrase;
-import com.itextpdf.text.Rectangle;
-import com.itextpdf.text.pdf.AcroFields;
-import com.itextpdf.text.pdf.BaseFont;
-import com.itextpdf.text.pdf.ColumnText;
-import com.itextpdf.text.pdf.GrayColor;
-import com.itextpdf.text.pdf.PdfAction;
-import com.itextpdf.text.pdf.PdfBorderDictionary;
-import com.itextpdf.text.pdf.PdfContentByte;
-import com.itextpdf.text.pdf.PdfFormField;
-import com.itextpdf.text.pdf.PdfPCell;
-import com.itextpdf.text.pdf.PdfPCellEvent;
-import com.itextpdf.text.pdf.PdfPTable;
-import com.itextpdf.text.pdf.PdfReader;
-import com.itextpdf.text.pdf.PdfStamper;
-import com.itextpdf.text.pdf.PdfWriter;
-import com.itextpdf.text.pdf.PushbuttonField;
-import com.itextpdf.text.pdf.RadioCheckField;
-import com.itextpdf.text.pdf.TextField;
-
-import framework.Question;
-
-public class Questionnaire implements PdfPCellEvent{
-
- /** The path output file. */
- String pathOutputFile;
-
- /** The document. */
- Document document;
-
-
-
- int tf;
-
- public Questionnaire(String path){
- pathOutputFile = path;
- document = new Document(PageSize.A4, 25, 25, 50, 50);
- }
- public Questionnaire(int tf){
- this.tf = tf;
-
- }
-
- /** The resulting PDF. */
- public static final String RESULT1 = "outputPDF/buttons.pdf";
- /** The resulting PDF. */
- public static final String RESULT2 = "outputPDF/buttons_filled.pdf";
- /** Path to a JavaScript resource. */
- public static final String RESOURCE = "res/buttons.js";
- /** Path to an image used as button icon. */
- public static final String IMAGE = "res/info.png";
- /** Possible values of a radio field / checkboxes */
- public static final String[] LANGUAGES = { "English", "German", "French", "Spanish", "Dutch" };
-
- /**
- * Creates a PDF document.
- * @param filename the path to the new PDF document
- * @throws DocumentException
- * @throws IOException
- */
- public void createPdf(Map<Integer, Question> map, Set<Integer> ids) throws IOException, DocumentException {
-
- @SuppressWarnings("unused")
- PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(pathOutputFile));
-
-
- document.open();
- Image logo = Image.getInstance("res/shcs_logo2.gif");
-
- logo.scalePercent(30f);
- float[] columnWidths1 = {0.2f, 0.8f};
- PdfPTable table_title = new PdfPTable(columnWidths1);
- PdfPCell c01 = new PdfPCell(logo, false);
- PdfPCell c02 = new PdfPCell(new Paragraph("Survery | Project #693",
- FontFactory.getFont(FontFactory.HELVETICA, 20, Font.BOLD, BaseColor.BLACK)));
- c01.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setHorizontalAlignment(Element.ALIGN_CENTER);
- c01.setBorder(Rectangle.NO_BORDER);
- c02.setBorder(Rectangle.NO_BORDER);
-
- table_title.addCell(c01);
- table_title.addCell(c02);
- table_title.setWidthPercentage(100);
- table_title.setSpacingBefore(0);
- table_title.setSpacingAfter(25);
- document.add(table_title);
-
-
- //----------------------------------------------------------------------------------
-
-
- PdfPTable table1 = new PdfPTable(1);
- table1.setWidthPercentage(100);
- PdfPCell c11 = new PdfPCell(new Phrase("Today you are receiving a pharmacogenetic report based on the genetic " +
- "information of your patient. Because the human genome contains extremely private and sensitive information" +
- " of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier," +
- " it must be managed with care. ",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.NORMAL, BaseColor.BLACK)));
- c11.setLeading(1.5f, 1.5f);
- c11.setPaddingBottom(8);
-
-
- table1.addCell(c11);
- table1.setSpacingAfter(10);
- document.add(table1);
-
-
- //----------------------------------------------------------------------------------
-
-// // step 4
-// // add the JavaScript
-// writer.addJavaScript(Utilities.readFileToString(RESOURCE));
-
- for(Integer id: ids){
- PdfPCell c2;
-
- PdfPTable table = new PdfPTable(1);
- table.setSpacingAfter(10);
- table.setWidthPercentage(100);
-
- PdfPCell c1 = new PdfPCell(new Phrase(id + ") " + map.get(id).getQuestion(),FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c1.setPaddingTop(5);
- c1.setPaddingBottom(5);
- c1.setHorizontalAlignment(Element.ALIGN_CENTER);
- c1.setBorder(Rectangle.NO_BORDER);
- table.addCell(c1);
-
- c2 = new PdfPCell(new Phrase(" 1" +
- " 2" +
- " 3" +
- " 4" +
- " 5",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c2.setHorizontalAlignment(Element.ALIGN_LEFT);
- c2.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c2.setCellEvent(new Questionnaire(id));
- c2.setBorder(Rectangle.TOP);
- c2.setPaddingTop(2);
- c2.setPaddingBottom(5);
- c2.setBackgroundColor(new BaseColor(242, 242, 242));
-
- table.addCell(c2);
-
-
-
- document.add(table);
- }
-
-
- //----------------------------------------------------------------------------------
-
- // step 5
- document.close();
-
-
-
- }
-
- @Override
- public void cellLayout(PdfPCell cell, Rectangle position,
- PdfContentByte[] canvases) {
- PdfWriter writer = canvases[0].getPdfWriter();
- PdfFormField radiogroup = PdfFormField.createRadioButton(writer, true);
- radiogroup.setFieldName(String.valueOf(tf));
- System.out.println(tf);
-
- float llx = position.getLeft();
- float lly = position.getBottom();
-
- float cell_h = cell.getHeight();
- float cell_w = cell.getWidth();
-
- Rectangle rect;
-
- for(int i=1 ; i<=5; i++){
-
- rect = new Rectangle(llx + (3+i)*cell_w/12, lly+cell_h/2-6, llx + (3+i)*cell_w/12+12 ,lly+cell_h/2+6);
-
- RadioCheckField radio = new RadioCheckField(writer, rect, String.valueOf(i), String.valueOf(i));
- radio.setBorderColor(GrayColor.GRAYBLACK);
- radio.setCheckType(RadioCheckField.TYPE_SQUARE);
-
-
- try {
- PdfFormField field = radio.getRadioField();
- radiogroup.addKid(field);
-
- writer.addAnnotation(radiogroup);
- }
-
- catch(IOException ioe) {
- throw new ExceptionConverter(ioe);
- }
- catch(DocumentException de) {
- throw new ExceptionConverter(de);
- }
- }
-
-
-
- }
-
-
- public void writeAnswers(Map<String, String> answers) throws IOException, DocumentException{
-
- PdfReader reader = new PdfReader(pathOutputFile);
- PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(pathOutputFile));
-
-
- AcroFields form = stamper.getAcroFields();
-
-
-
-
- Set<String> fields = form.getFields().keySet();
- for(String key: fields){
-
- if(answers.containsKey(key)){
- form.setField(key, answers.get(key));
- }
- }
- stamper.close();
- reader.close();
-
- }
-
-
-// /**
-// * Manipulates a PDF file src with the file dest as result
-// * @param src the original PDF
-// * @param dest the resulting PDF
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public void manipulatePdf(String src, String dest) throws IOException, DocumentException {
-// PdfReader reader = new PdfReader(src);
-// PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(dest));
-// AcroFields form = stamper.getAcroFields();
-// String[] radiostates = form.getAppearanceStates("language");
-// form.setField("language", radiostates[4]);
-// for (int i = 0; i < LANGUAGES.length; i++) {
-// String[] checkboxstates = form.getAppearanceStates("English");
-// form.setField(LANGUAGES[i], checkboxstates[i % 2 == 0 ? 1 : 0]);
-// }
-// stamper.close();
-// reader.close();
-//
-// PdfReader r = new PdfReader(dest);
-// AcroFields f = r.getAcroFields();
-// Set<String> fields = form.getFields().keySet();
-// for(String key: fields){
-// if(f.getFieldType(key)==AcroFields.FIELD_TYPE_RADIOBUTTON){
-// System.out.println(key);
-// System.out.println(f.getField(key));
-//
-// }
-// }
-// r.close();
-//
-// }
-//
-// /**
-// * Main method
-// * @param args no arguments needed
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public static void main(String[] args) throws IOException, DocumentException {
-// Questionnaire buttons = new Questionnaire();
-// buttons.createPdf(RESULT1);
-// buttons.manipulatePdf(RESULT1, RESULT2);
-// }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/6a/20204cd899a7001417ceadf0100b5ef7 b/.metadata/.plugins/org.eclipse.core.resources/.history/6a/20204cd899a7001417ceadf0100b5ef7
deleted file mode 100644
index 955c003..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/6a/20204cd899a7001417ceadf0100b5ef7
+++ /dev/null
@@ -1,279 +0,0 @@
-package io;
-
-import java.awt.BorderLayout;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.util.Map;
-import java.util.Set;
-
-import com.itextpdf.text.BaseColor;
-import com.itextpdf.text.Document;
-import com.itextpdf.text.DocumentException;
-import com.itextpdf.text.Element;
-import com.itextpdf.text.ExceptionConverter;
-import com.itextpdf.text.Font;
-import com.itextpdf.text.Font.FontFamily;
-import com.itextpdf.text.FontFactory;
-import com.itextpdf.text.Image;
-import com.itextpdf.text.PageSize;
-import com.itextpdf.text.Paragraph;
-import com.itextpdf.text.Phrase;
-import com.itextpdf.text.Rectangle;
-import com.itextpdf.text.pdf.AcroFields;
-import com.itextpdf.text.pdf.BaseFont;
-import com.itextpdf.text.pdf.ColumnText;
-import com.itextpdf.text.pdf.GrayColor;
-import com.itextpdf.text.pdf.PdfBorderDictionary;
-import com.itextpdf.text.pdf.PdfContentByte;
-import com.itextpdf.text.pdf.PdfFormField;
-import com.itextpdf.text.pdf.PdfPCell;
-import com.itextpdf.text.pdf.PdfPCellEvent;
-import com.itextpdf.text.pdf.PdfPTable;
-import com.itextpdf.text.pdf.PdfReader;
-import com.itextpdf.text.pdf.PdfWriter;
-import com.itextpdf.text.pdf.RadioCheckField;
-import com.itextpdf.text.pdf.TextField;
-
-import framework.Question;
-
-public class Questionnaire implements PdfPCellEvent{
-
- /** The path output file. */
- String pathOutputFile;
-
- /** The document. */
- Document document;
-
- int tf;
-
- public Questionnaire(String path){
- pathOutputFile = path;
- document = new Document(PageSize.A4, 25, 25, 50, 50);
- }
- public Questionnaire(int tf){
- this.tf = tf;
- }
-
- /** The resulting PDF. */
- public static final String RESULT1 = "outputPDF/buttons.pdf";
- /** The resulting PDF. */
- public static final String RESULT2 = "outputPDF/buttons_filled.pdf";
- /** Path to a JavaScript resource. */
- public static final String RESOURCE = "res/buttons.js";
- /** Path to an image used as button icon. */
- public static final String IMAGE = "res/info.png";
- /** Possible values of a radio field / checkboxes */
- public static final String[] LANGUAGES = { "English", "German", "French", "Spanish", "Dutch" };
-
- /**
- * Creates a PDF document.
- * @param filename the path to the new PDF document
- * @throws DocumentException
- * @throws IOException
- */
- public void createPdf(Map<Integer, Question> map, Set<Integer> ids) throws IOException, DocumentException {
-
- @SuppressWarnings("unused")
- PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(pathOutputFile));
-
-
- document.open();
- Image logo = Image.getInstance("res/shcs_logo2.gif");
-
- logo.scalePercent(30f);
- float[] columnWidths1 = {0.2f, 0.8f};
- PdfPTable table_title = new PdfPTable(columnWidths1);
- PdfPCell c01 = new PdfPCell(logo, false);
- PdfPCell c02 = new PdfPCell(new Paragraph("Survery | Project #693",
- FontFactory.getFont(FontFactory.HELVETICA, 20, Font.BOLD, BaseColor.BLACK)));
- c01.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setHorizontalAlignment(Element.ALIGN_CENTER);
- c01.setBorder(Rectangle.NO_BORDER);
- c02.setBorder(Rectangle.NO_BORDER);
-
- table_title.addCell(c01);
- table_title.addCell(c02);
- table_title.setWidthPercentage(100);
- table_title.setSpacingBefore(0);
- table_title.setSpacingAfter(25);
- document.add(table_title);
-
-
- //----------------------------------------------------------------------------------
-
-
- PdfPTable table1 = new PdfPTable(1);
- table1.setWidthPercentage(100);
- PdfPCell c11 = new PdfPCell(new Phrase("Today you are receiving a pharmacogenetic report based on the genetic " +
- "information of your patient. Because the human genome contains extremely private and sensitive information" +
- " of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier," +
- " it must be managed with care. ",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.NORMAL, BaseColor.BLACK)));
- c11.setLeading(1.5f, 1.5f);
- c11.setPaddingBottom(8);
-
-
- table1.addCell(c11);
- table1.setSpacingAfter(10);
- document.add(table1);
-
-
- //----------------------------------------------------------------------------------
-
-// // step 4
-// // add the JavaScript
-// writer.addJavaScript(Utilities.readFileToString(RESOURCE));
-
- for(Integer id: ids){
- PdfPCell c2;
-
- PdfPTable table = new PdfPTable(1);
- table.setSpacingAfter(10);
- table.setWidthPercentage(100);
-
- PdfPCell c1 = new PdfPCell(new Phrase(id + ") " + map.get(id).getQuestion(),FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c1.setPaddingTop(5);
- c1.setPaddingBottom(5);
- c1.setHorizontalAlignment(Element.ALIGN_CENTER);
- c1.setBorder(Rectangle.NO_BORDER);
- table.addCell(c1);
-
- c2 = new PdfPCell(new Phrase(" 1" +
- " 2" +
- " 3" +
- " 4" +
- " 5",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c2.setHorizontalAlignment(Element.ALIGN_LEFT);
- c2.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c2.setCellEvent(new Questionnaire(id));
- c2.setBorder(Rectangle.TOP);
- c2.setPaddingTop(2);
- c2.setPaddingBottom(5);
- c2.setBackgroundColor(new BaseColor(242, 242, 242));
-
- table.addCell(c2);
-
-
-
- document.add(table);
- }
-
-
- //----------------------------------------------------------------------------------
-
- // step 5
- document.close();
-
- }
-
- @Override
- public void cellLayout(PdfPCell cell, Rectangle position,
- PdfContentByte[] canvases) {
- PdfWriter writer = canvases[0].getPdfWriter();
- PdfFormField radiogroup = PdfFormField.createRadioButton(writer, true);
- radiogroup.setFieldName(String.valueOf(tf));
- System.out.println(tf);
-
- float llx = position.getLeft();
- float lly = position.getBottom();
-
- float cell_h = cell.getHeight();
- float cell_w = cell.getWidth();
-
- Rectangle rect;
-
- for(int i=1 ; i<=5; i++){
-
- rect = new Rectangle(llx + (3+i)*cell_w/12, lly+cell_h/2-6, llx + (3+i)*cell_w/12+12 ,lly+cell_h/2+6);
-
- RadioCheckField radio = new RadioCheckField(writer, rect, null, String.valueOf(i));
- radio.setBorderColor(GrayColor.GRAYBLACK);
- radio.setCheckType(RadioCheckField.TYPE_SQUARE);
-
-
- try {
- PdfFormField field = radio.getRadioField();
- radiogroup.addKid(field);
-
- writer.addAnnotation(radiogroup);
- }
-
- catch(IOException ioe) {
- throw new ExceptionConverter(ioe);
- }
- catch(DocumentException de) {
- throw new ExceptionConverter(de);
- }
- }
-
-
-
- }
-
-
- public String getAnswers() throws IOException{
- StringBuilder sb = new StringBuilder();
- PdfReader reader = new PdfReader(pathOutputFile);
- AcroFields form = reader.getAcroFields();
- Set<String> fields = form.getFields().keySet();
- for(String key: fields){
- if(form.getFieldType(key)==AcroFields.FIELD_TYPE_RADIOBUTTON){
- sb.append(key);
- sb.append(",");
- sb.append(form.getField(key));
- sb.append(";");
- }
- }
-
-
- return sb.toString();
-
- }
-
-
-// /**
-// * Manipulates a PDF file src with the file dest as result
-// * @param src the original PDF
-// * @param dest the resulting PDF
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public void manipulatePdf(String src, String dest) throws IOException, DocumentException {
-// PdfReader reader = new PdfReader(src);
-// PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(dest));
-// AcroFields form = stamper.getAcroFields();
-// String[] radiostates = form.getAppearanceStates("language");
-// form.setField("language", radiostates[4]);
-// for (int i = 0; i < LANGUAGES.length; i++) {
-// String[] checkboxstates = form.getAppearanceStates("English");
-// form.setField(LANGUAGES[i], checkboxstates[i % 2 == 0 ? 1 : 0]);
-// }
-// stamper.close();
-// reader.close();
-//
-// PdfReader r = new PdfReader(dest);
-// AcroFields f = r.getAcroFields();
-// Set<String> fields = form.getFields().keySet();
-// for(String key: fields){
-// if(f.getFieldType(key)==AcroFields.FIELD_TYPE_RADIOBUTTON){
-// System.out.println(key);
-// System.out.println(f.getField(key));
-//
-// }
-// }
-// r.close();
-//
-// }
-//
-// /**
-// * Main method
-// * @param args no arguments needed
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public static void main(String[] args) throws IOException, DocumentException {
-// Questionnaire buttons = new Questionnaire();
-// buttons.createPdf(RESULT1);
-// buttons.manipulatePdf(RESULT1, RESULT2);
-// }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/6e/80e9773db7a7001417ceadf0100b5ef7 b/.metadata/.plugins/org.eclipse.core.resources/.history/6e/80e9773db7a7001417ceadf0100b5ef7
deleted file mode 100644
index 4dd33b1..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/6e/80e9773db7a7001417ceadf0100b5ef7
+++ /dev/null
@@ -1,297 +0,0 @@
-package io;
-
-import java.awt.BorderLayout;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.util.Map;
-import java.util.Set;
-
-import com.itextpdf.text.BaseColor;
-import com.itextpdf.text.Document;
-import com.itextpdf.text.DocumentException;
-import com.itextpdf.text.Element;
-import com.itextpdf.text.ExceptionConverter;
-import com.itextpdf.text.Font;
-import com.itextpdf.text.Font.FontFamily;
-import com.itextpdf.text.FontFactory;
-import com.itextpdf.text.Image;
-import com.itextpdf.text.PageSize;
-import com.itextpdf.text.Paragraph;
-import com.itextpdf.text.Phrase;
-import com.itextpdf.text.Rectangle;
-import com.itextpdf.text.pdf.AcroFields;
-import com.itextpdf.text.pdf.BaseFont;
-import com.itextpdf.text.pdf.ColumnText;
-import com.itextpdf.text.pdf.GrayColor;
-import com.itextpdf.text.pdf.PdfAction;
-import com.itextpdf.text.pdf.PdfBorderDictionary;
-import com.itextpdf.text.pdf.PdfContentByte;
-import com.itextpdf.text.pdf.PdfFormField;
-import com.itextpdf.text.pdf.PdfPCell;
-import com.itextpdf.text.pdf.PdfPCellEvent;
-import com.itextpdf.text.pdf.PdfPTable;
-import com.itextpdf.text.pdf.PdfReader;
-import com.itextpdf.text.pdf.PdfStamper;
-import com.itextpdf.text.pdf.PdfWriter;
-import com.itextpdf.text.pdf.PushbuttonField;
-import com.itextpdf.text.pdf.RadioCheckField;
-import com.itextpdf.text.pdf.TextField;
-
-import framework.Question;
-
-public class Questionnaire implements PdfPCellEvent{
-
- /** The path output file. */
- String pathOutputFile;
-
- /** The document. */
- Document document;
-
- PdfReader reader;
-
- int tf;
-
- public Questionnaire(String path){
- pathOutputFile = path;
- document = new Document(PageSize.A4, 25, 25, 50, 50);
- }
- public Questionnaire(int tf, Map<Integer, Question> map, Set<Integer> ids) throws IOException, DocumentException{
- this.tf = tf;
- createPdf(map, ids);
- reader = new PdfReader(pathOutputFile);
-
- }
-
- /** The resulting PDF. */
- public static final String RESULT1 = "outputPDF/buttons.pdf";
- /** The resulting PDF. */
- public static final String RESULT2 = "outputPDF/buttons_filled.pdf";
- /** Path to a JavaScript resource. */
- public static final String RESOURCE = "res/buttons.js";
- /** Path to an image used as button icon. */
- public static final String IMAGE = "res/info.png";
- /** Possible values of a radio field / checkboxes */
- public static final String[] LANGUAGES = { "English", "German", "French", "Spanish", "Dutch" };
-
- /**
- * Creates a PDF document.
- * @param filename the path to the new PDF document
- * @throws DocumentException
- * @throws IOException
- */
- public void createPdf(Map<Integer, Question> map, Set<Integer> ids) throws IOException, DocumentException {
-
- @SuppressWarnings("unused")
- PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(pathOutputFile));
-
-
- document.open();
- Image logo = Image.getInstance("res/shcs_logo2.gif");
-
- logo.scalePercent(30f);
- float[] columnWidths1 = {0.2f, 0.8f};
- PdfPTable table_title = new PdfPTable(columnWidths1);
- PdfPCell c01 = new PdfPCell(logo, false);
- PdfPCell c02 = new PdfPCell(new Paragraph("Survery | Project #693",
- FontFactory.getFont(FontFactory.HELVETICA, 20, Font.BOLD, BaseColor.BLACK)));
- c01.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setHorizontalAlignment(Element.ALIGN_CENTER);
- c01.setBorder(Rectangle.NO_BORDER);
- c02.setBorder(Rectangle.NO_BORDER);
-
- table_title.addCell(c01);
- table_title.addCell(c02);
- table_title.setWidthPercentage(100);
- table_title.setSpacingBefore(0);
- table_title.setSpacingAfter(25);
- document.add(table_title);
-
-
- //----------------------------------------------------------------------------------
-
-
- PdfPTable table1 = new PdfPTable(1);
- table1.setWidthPercentage(100);
- PdfPCell c11 = new PdfPCell(new Phrase("Today you are receiving a pharmacogenetic report based on the genetic " +
- "information of your patient. Because the human genome contains extremely private and sensitive information" +
- " of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier," +
- " it must be managed with care. ",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.NORMAL, BaseColor.BLACK)));
- c11.setLeading(1.5f, 1.5f);
- c11.setPaddingBottom(8);
-
-
- table1.addCell(c11);
- table1.setSpacingAfter(10);
- document.add(table1);
-
-
- //----------------------------------------------------------------------------------
-
-// // step 4
-// // add the JavaScript
-// writer.addJavaScript(Utilities.readFileToString(RESOURCE));
-
- for(Integer id: ids){
- PdfPCell c2;
-
- PdfPTable table = new PdfPTable(1);
- table.setSpacingAfter(10);
- table.setWidthPercentage(100);
-
- PdfPCell c1 = new PdfPCell(new Phrase(id + ") " + map.get(id).getQuestion(),FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c1.setPaddingTop(5);
- c1.setPaddingBottom(5);
- c1.setHorizontalAlignment(Element.ALIGN_CENTER);
- c1.setBorder(Rectangle.NO_BORDER);
- table.addCell(c1);
-
- c2 = new PdfPCell(new Phrase(" 1" +
- " 2" +
- " 3" +
- " 4" +
- " 5",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c2.setHorizontalAlignment(Element.ALIGN_LEFT);
- c2.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c2.setCellEvent(new Questionnaire(id));
- c2.setBorder(Rectangle.TOP);
- c2.setPaddingTop(2);
- c2.setPaddingBottom(5);
- c2.setBackgroundColor(new BaseColor(242, 242, 242));
-
- table.addCell(c2);
-
-
-
- document.add(table);
- }
-
-
- //----------------------------------------------------------------------------------
-
- // step 5
- document.close();
-
- }
-
- @Override
- public void cellLayout(PdfPCell cell, Rectangle position,
- PdfContentByte[] canvases) {
- PdfWriter writer = canvases[0].getPdfWriter();
- PdfFormField radiogroup = PdfFormField.createRadioButton(writer, true);
- radiogroup.setFieldName(String.valueOf(tf));
- System.out.println(tf);
-
- float llx = position.getLeft();
- float lly = position.getBottom();
-
- float cell_h = cell.getHeight();
- float cell_w = cell.getWidth();
-
- Rectangle rect;
-
- for(int i=1 ; i<=5; i++){
-
- rect = new Rectangle(llx + (3+i)*cell_w/12, lly+cell_h/2-6, llx + (3+i)*cell_w/12+12 ,lly+cell_h/2+6);
-
- RadioCheckField radio = new RadioCheckField(writer, rect, null, String.valueOf(i));
- radio.setBorderColor(GrayColor.GRAYBLACK);
- radio.setCheckType(RadioCheckField.TYPE_SQUARE);
-
-
- try {
- PdfFormField field = radio.getRadioField();
- radiogroup.addKid(field);
-
- writer.addAnnotation(radiogroup);
- }
-
- catch(IOException ioe) {
- throw new ExceptionConverter(ioe);
- }
- catch(DocumentException de) {
- throw new ExceptionConverter(de);
- }
- }
-
-
-
- }
-
-
- public String getAnswers() throws IOException, DocumentException{
-
- reader.removeUsageRights();
- PdfStamper stamper = new PdfStamper(reader, new FileOutputStream("outputPDF/buttons_filled2.pdf"));
-
-
- AcroFields form = stamper.getAcroFields();
-
- StringBuilder sb = new StringBuilder();
-
-
- Set<String> fields = form.getFields().keySet();
- for(String key: fields){
- System.out.println("key = " + key);
- if(form.getFieldType(key)==AcroFields.FIELD_TYPE_RADIOBUTTON){
- sb.append(key);
- sb.append(",");
- sb.append(form.getField(key));
- sb.append(";");
- }
- }
- stamper.close();
- reader.close();
-
-
- return sb.toString();
-
- }
-
-
-// /**
-// * Manipulates a PDF file src with the file dest as result
-// * @param src the original PDF
-// * @param dest the resulting PDF
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public void manipulatePdf(String src, String dest) throws IOException, DocumentException {
-// PdfReader reader = new PdfReader(src);
-// PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(dest));
-// AcroFields form = stamper.getAcroFields();
-// String[] radiostates = form.getAppearanceStates("language");
-// form.setField("language", radiostates[4]);
-// for (int i = 0; i < LANGUAGES.length; i++) {
-// String[] checkboxstates = form.getAppearanceStates("English");
-// form.setField(LANGUAGES[i], checkboxstates[i % 2 == 0 ? 1 : 0]);
-// }
-// stamper.close();
-// reader.close();
-//
-// PdfReader r = new PdfReader(dest);
-// AcroFields f = r.getAcroFields();
-// Set<String> fields = form.getFields().keySet();
-// for(String key: fields){
-// if(f.getFieldType(key)==AcroFields.FIELD_TYPE_RADIOBUTTON){
-// System.out.println(key);
-// System.out.println(f.getField(key));
-//
-// }
-// }
-// r.close();
-//
-// }
-//
-// /**
-// * Main method
-// * @param args no arguments needed
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public static void main(String[] args) throws IOException, DocumentException {
-// Questionnaire buttons = new Questionnaire();
-// buttons.createPdf(RESULT1);
-// buttons.manipulatePdf(RESULT1, RESULT2);
-// }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/6f/10e27224f3a60014162f978bbd19228b b/.metadata/.plugins/org.eclipse.core.resources/.history/6f/10e27224f3a60014162f978bbd19228b
deleted file mode 100644
index 31ff521..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/6f/10e27224f3a60014162f978bbd19228b
+++ /dev/null
@@ -1,54 +0,0 @@
-package io;
-
-import java.io.IOException;
-
-import com.itextpdf.text.DocumentException;
-import com.itextpdf.text.Rectangle;
-import com.itextpdf.text.pdf.GrayColor;
-import com.itextpdf.text.pdf.PdfContentByte;
-import com.itextpdf.text.pdf.PdfFormField;
-import com.itextpdf.text.pdf.PdfPCell;
-import com.itextpdf.text.pdf.PdfPCellEvent;
-import com.itextpdf.text.pdf.PdfWriter;
-import com.itextpdf.text.pdf.RadioCheckField;
-
-public class RadioGroup implements PdfPCellEvent{
-
- protected int id;
-
- public RadioGroup(int ID){
- this.id = ID;
- }
-
- @Override
- public void cellLayout(PdfPCell cell, Rectangle position,
- PdfContentByte[] canvases) {
- PdfWriter writer = canvases[0].getPdfWriter();
- PdfFormField radiogroup = PdfFormField.createRadioButton(writer, true);
- radiogroup.setFieldName(String.valueOf(id));
-
- RadioCheckField radio;
- PdfFormField radiofield;
-
- for(int i=0; i<5; i++){
- radio = new RadioCheckField(writer, position, null, String.valueOf(i+1));
- radio.setBackgroundColor(new GrayColor(0.8f));
- try {
- radiofield = radio.getRadioField();
- radiogroup.addKid(radiofield);
-
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (DocumentException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
-
-
- }
- writer.addAnnotation(radiogroup);
-
- }
-
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/71/d0b18f5b63a8001419a38fd8608ce0e6 b/.metadata/.plugins/org.eclipse.core.resources/.history/71/d0b18f5b63a8001419a38fd8608ce0e6
deleted file mode 100644
index 9ef00aa..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/71/d0b18f5b63a8001419a38fd8608ce0e6
+++ /dev/null
@@ -1,297 +0,0 @@
-package io;
-
-import java.awt.BorderLayout;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.util.Map;
-import java.util.Set;
-
-import com.itextpdf.text.BaseColor;
-import com.itextpdf.text.Document;
-import com.itextpdf.text.DocumentException;
-import com.itextpdf.text.Element;
-import com.itextpdf.text.ExceptionConverter;
-import com.itextpdf.text.Font;
-import com.itextpdf.text.Font.FontFamily;
-import com.itextpdf.text.FontFactory;
-import com.itextpdf.text.Image;
-import com.itextpdf.text.PageSize;
-import com.itextpdf.text.Paragraph;
-import com.itextpdf.text.Phrase;
-import com.itextpdf.text.Rectangle;
-import com.itextpdf.text.pdf.AcroFields;
-import com.itextpdf.text.pdf.BaseFont;
-import com.itextpdf.text.pdf.ColumnText;
-import com.itextpdf.text.pdf.GrayColor;
-import com.itextpdf.text.pdf.PdfAction;
-import com.itextpdf.text.pdf.PdfBorderDictionary;
-import com.itextpdf.text.pdf.PdfContentByte;
-import com.itextpdf.text.pdf.PdfFormField;
-import com.itextpdf.text.pdf.PdfPCell;
-import com.itextpdf.text.pdf.PdfPCellEvent;
-import com.itextpdf.text.pdf.PdfPTable;
-import com.itextpdf.text.pdf.PdfReader;
-import com.itextpdf.text.pdf.PdfStamper;
-import com.itextpdf.text.pdf.PdfWriter;
-import com.itextpdf.text.pdf.PushbuttonField;
-import com.itextpdf.text.pdf.RadioCheckField;
-import com.itextpdf.text.pdf.TextField;
-
-import framework.Question;
-
-public class Questionnaire implements PdfPCellEvent{
-
- /** The path output file. */
- String pathOutputFile;
-
- /** The document. */
- Document document;
-
-
-
- int tf;
-
- public Questionnaire(String path){
- pathOutputFile = path;
- document = new Document(PageSize.A4, 25, 25, 50, 50);
- }
- public Questionnaire(int tf){
- this.tf = tf;
-
- }
-
- /** The resulting PDF. */
- public static final String RESULT1 = "outputPDF/buttons.pdf";
- /** The resulting PDF. */
- public static final String RESULT2 = "outputPDF/buttons_filled.pdf";
- /** Path to a JavaScript resource. */
- public static final String RESOURCE = "res/buttons.js";
- /** Path to an image used as button icon. */
- public static final String IMAGE = "res/info.png";
- /** Possible values of a radio field / checkboxes */
- public static final String[] LANGUAGES = { "English", "German", "French", "Spanish", "Dutch" };
-
- /**
- * Creates a PDF document.
- * @param filename the path to the new PDF document
- * @throws DocumentException
- * @throws IOException
- */
- public void createPdf(Map<Integer, Question> map, Set<Integer> ids) throws IOException, DocumentException {
-
- @SuppressWarnings("unused")
- PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(pathOutputFile));
-
-
- document.open();
- Image logo = Image.getInstance("res/shcs_logo2.gif");
-
- logo.scalePercent(30f);
- float[] columnWidths1 = {0.2f, 0.8f};
- PdfPTable table_title = new PdfPTable(columnWidths1);
- PdfPCell c01 = new PdfPCell(logo, false);
- PdfPCell c02 = new PdfPCell(new Paragraph("Survery | Project #693",
- FontFactory.getFont(FontFactory.HELVETICA, 20, Font.BOLD, BaseColor.BLACK)));
- c01.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setHorizontalAlignment(Element.ALIGN_CENTER);
- c01.setBorder(Rectangle.NO_BORDER);
- c02.setBorder(Rectangle.NO_BORDER);
-
- table_title.addCell(c01);
- table_title.addCell(c02);
- table_title.setWidthPercentage(100);
- table_title.setSpacingBefore(0);
- table_title.setSpacingAfter(25);
- document.add(table_title);
-
-
- //----------------------------------------------------------------------------------
-
-
- PdfPTable table1 = new PdfPTable(1);
- table1.setWidthPercentage(100);
- PdfPCell c11 = new PdfPCell(new Phrase("Today you are receiving a pharmacogenetic report based on the genetic " +
- "information of your patient. Because the human genome contains extremely private and sensitive information" +
- " of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier," +
- " it must be managed with care. ",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.NORMAL, BaseColor.BLACK)));
- c11.setLeading(1.5f, 1.5f);
- c11.setPaddingBottom(8);
-
-
- table1.addCell(c11);
- table1.setSpacingAfter(10);
- document.add(table1);
-
-
- //----------------------------------------------------------------------------------
-
-// // step 4
-// // add the JavaScript
-// writer.addJavaScript(Utilities.readFileToString(RESOURCE));
-
- for(Integer id: ids){
- PdfPCell c2;
-
- PdfPTable table = new PdfPTable(1);
- table.setSpacingAfter(10);
- table.setWidthPercentage(100);
-
- PdfPCell c1 = new PdfPCell(new Phrase(id + ") " + map.get(id).getQuestion(),FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c1.setPaddingTop(5);
- c1.setPaddingBottom(5);
- c1.setHorizontalAlignment(Element.ALIGN_CENTER);
- c1.setBorder(Rectangle.NO_BORDER);
- table.addCell(c1);
-
- c2 = new PdfPCell(new Phrase(" 1" +
- " 2" +
- " 3" +
- " 4" +
- " 5",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c2.setHorizontalAlignment(Element.ALIGN_LEFT);
- c2.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c2.setCellEvent(new Questionnaire(id));
- c2.setBorder(Rectangle.TOP);
- c2.setPaddingTop(2);
- c2.setPaddingBottom(5);
- c2.setBackgroundColor(new BaseColor(242, 242, 242));
-
- table.addCell(c2);
-
-
-
- document.add(table);
- }
-
-
- //----------------------------------------------------------------------------------
-
- // step 5
- document.close();
-
-
-
- }
-
- @Override
- public void cellLayout(PdfPCell cell, Rectangle position,
- PdfContentByte[] canvases) {
- PdfWriter writer = canvases[0].getPdfWriter();
- PdfFormField radiogroup = PdfFormField.createRadioButton(writer, true);
- radiogroup.setFieldName(String.valueOf(tf));
- System.out.println(tf);
-
- float llx = position.getLeft();
- float lly = position.getBottom();
-
- float cell_h = cell.getHeight();
- float cell_w = cell.getWidth();
-
- Rectangle rect;
-
- for(int i=1 ; i<=5; i++){
-
- rect = new Rectangle(llx + (3+i)*cell_w/12, lly+cell_h/2-6, llx + (3+i)*cell_w/12+12 ,lly+cell_h/2+6);
-
- RadioCheckField radio = new RadioCheckField(writer, rect, null, String.valueOf(i));
- radio.setBorderColor(GrayColor.GRAYBLACK);
- radio.setCheckType(RadioCheckField.TYPE_SQUARE);
-
-
- try {
- PdfFormField field = radio.getRadioField();
- radiogroup.addKid(field);
-
- writer.addAnnotation(radiogroup);
- }
-
- catch(IOException ioe) {
- throw new ExceptionConverter(ioe);
- }
- catch(DocumentException de) {
- throw new ExceptionConverter(de);
- }
- }
-
-
-
- }
-
-
- public String writeAnswers(Map<Integer, Integer> answers) throws IOException, DocumentException{
-
- PdfReader reader = new PdfReader(pathOutputFile);
- PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(pathOutputFile));
-
-
- AcroFields form = stamper.getAcroFields();
-
-
-
-
- Set<String> fields = form.getFields().keySet();
- for(String key: fields){
- System.out.println("key = " + key);
- if(form.getFieldType(key)==AcroFields.FIELD_TYPE_RADIOBUTTON){
- sb.append(key);
- sb.append(",");
- sb.append(form.getField(key));
- sb.append(";");
- }
- }
- stamper.close();
- reader.close();
-
-
- return sb.toString();
-
- }
-
-
-// /**
-// * Manipulates a PDF file src with the file dest as result
-// * @param src the original PDF
-// * @param dest the resulting PDF
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public void manipulatePdf(String src, String dest) throws IOException, DocumentException {
-// PdfReader reader = new PdfReader(src);
-// PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(dest));
-// AcroFields form = stamper.getAcroFields();
-// String[] radiostates = form.getAppearanceStates("language");
-// form.setField("language", radiostates[4]);
-// for (int i = 0; i < LANGUAGES.length; i++) {
-// String[] checkboxstates = form.getAppearanceStates("English");
-// form.setField(LANGUAGES[i], checkboxstates[i % 2 == 0 ? 1 : 0]);
-// }
-// stamper.close();
-// reader.close();
-//
-// PdfReader r = new PdfReader(dest);
-// AcroFields f = r.getAcroFields();
-// Set<String> fields = form.getFields().keySet();
-// for(String key: fields){
-// if(f.getFieldType(key)==AcroFields.FIELD_TYPE_RADIOBUTTON){
-// System.out.println(key);
-// System.out.println(f.getField(key));
-//
-// }
-// }
-// r.close();
-//
-// }
-//
-// /**
-// * Main method
-// * @param args no arguments needed
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public static void main(String[] args) throws IOException, DocumentException {
-// Questionnaire buttons = new Questionnaire();
-// buttons.createPdf(RESULT1);
-// buttons.manipulatePdf(RESULT1, RESULT2);
-// }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/72/40379350b2a7001417ceadf0100b5ef7 b/.metadata/.plugins/org.eclipse.core.resources/.history/72/40379350b2a7001417ceadf0100b5ef7
deleted file mode 100644
index 024d389..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/72/40379350b2a7001417ceadf0100b5ef7
+++ /dev/null
@@ -1,5 +0,0 @@
-package testpdf;
-
-public class Subscribe {
-
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/75/1074f4a59ea7001417ceadf0100b5ef7 b/.metadata/.plugins/org.eclipse.core.resources/.history/75/1074f4a59ea7001417ceadf0100b5ef7
deleted file mode 100644
index 165fd02..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/75/1074f4a59ea7001417ceadf0100b5ef7
+++ /dev/null
@@ -1,286 +0,0 @@
-package io;
-
-import java.awt.BorderLayout;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.util.Map;
-import java.util.Set;
-
-import com.itextpdf.text.BaseColor;
-import com.itextpdf.text.Document;
-import com.itextpdf.text.DocumentException;
-import com.itextpdf.text.Element;
-import com.itextpdf.text.ExceptionConverter;
-import com.itextpdf.text.Font;
-import com.itextpdf.text.Font.FontFamily;
-import com.itextpdf.text.FontFactory;
-import com.itextpdf.text.Image;
-import com.itextpdf.text.PageSize;
-import com.itextpdf.text.Paragraph;
-import com.itextpdf.text.Phrase;
-import com.itextpdf.text.Rectangle;
-import com.itextpdf.text.pdf.AcroFields;
-import com.itextpdf.text.pdf.BaseFont;
-import com.itextpdf.text.pdf.ColumnText;
-import com.itextpdf.text.pdf.GrayColor;
-import com.itextpdf.text.pdf.PdfBorderDictionary;
-import com.itextpdf.text.pdf.PdfContentByte;
-import com.itextpdf.text.pdf.PdfFormField;
-import com.itextpdf.text.pdf.PdfPCell;
-import com.itextpdf.text.pdf.PdfPCellEvent;
-import com.itextpdf.text.pdf.PdfPTable;
-import com.itextpdf.text.pdf.PdfReader;
-import com.itextpdf.text.pdf.PdfStamper;
-import com.itextpdf.text.pdf.PdfWriter;
-import com.itextpdf.text.pdf.RadioCheckField;
-import com.itextpdf.text.pdf.TextField;
-
-import framework.Question;
-
-public class Questionnaire implements PdfPCellEvent{
-
- /** The path output file. */
- String pathOutputFile;
-
- /** The document. */
- Document document;
-
- int tf;
-
- public Questionnaire(String path){
- pathOutputFile = path;
- document = new Document(PageSize.A4, 25, 25, 50, 50);
- }
- public Questionnaire(int tf){
- this.tf = tf;
- }
-
- /** The resulting PDF. */
- public static final String RESULT1 = "outputPDF/buttons.pdf";
- /** The resulting PDF. */
- public static final String RESULT2 = "outputPDF/buttons_filled.pdf";
- /** Path to a JavaScript resource. */
- public static final String RESOURCE = "res/buttons.js";
- /** Path to an image used as button icon. */
- public static final String IMAGE = "res/info.png";
- /** Possible values of a radio field / checkboxes */
- public static final String[] LANGUAGES = { "English", "German", "French", "Spanish", "Dutch" };
-
- /**
- * Creates a PDF document.
- * @param filename the path to the new PDF document
- * @throws DocumentException
- * @throws IOException
- */
- public void createPdf(Map<Integer, Question> map, Set<Integer> ids) throws IOException, DocumentException {
-
- @SuppressWarnings("unused")
- PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(pathOutputFile));
-
-
- document.open();
- Image logo = Image.getInstance("res/shcs_logo2.gif");
-
- logo.scalePercent(30f);
- float[] columnWidths1 = {0.2f, 0.8f};
- PdfPTable table_title = new PdfPTable(columnWidths1);
- PdfPCell c01 = new PdfPCell(logo, false);
- PdfPCell c02 = new PdfPCell(new Paragraph("Survery | Project #693",
- FontFactory.getFont(FontFactory.HELVETICA, 20, Font.BOLD, BaseColor.BLACK)));
- c01.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setHorizontalAlignment(Element.ALIGN_CENTER);
- c01.setBorder(Rectangle.NO_BORDER);
- c02.setBorder(Rectangle.NO_BORDER);
-
- table_title.addCell(c01);
- table_title.addCell(c02);
- table_title.setWidthPercentage(100);
- table_title.setSpacingBefore(0);
- table_title.setSpacingAfter(25);
- document.add(table_title);
-
-
- //----------------------------------------------------------------------------------
-
-
- PdfPTable table1 = new PdfPTable(1);
- table1.setWidthPercentage(100);
- PdfPCell c11 = new PdfPCell(new Phrase("Today you are receiving a pharmacogenetic report based on the genetic " +
- "information of your patient. Because the human genome contains extremely private and sensitive information" +
- " of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier," +
- " it must be managed with care. ",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.NORMAL, BaseColor.BLACK)));
- c11.setLeading(1.5f, 1.5f);
- c11.setPaddingBottom(8);
-
-
- table1.addCell(c11);
- table1.setSpacingAfter(10);
- document.add(table1);
-
-
- //----------------------------------------------------------------------------------
-
-// // step 4
-// // add the JavaScript
-// writer.addJavaScript(Utilities.readFileToString(RESOURCE));
-
- for(Integer id: ids){
- PdfPCell c2;
-
- PdfPTable table = new PdfPTable(1);
- table.setSpacingAfter(10);
- table.setWidthPercentage(100);
-
- PdfPCell c1 = new PdfPCell(new Phrase(id + ") " + map.get(id).getQuestion(),FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c1.setPaddingTop(5);
- c1.setPaddingBottom(5);
- c1.setHorizontalAlignment(Element.ALIGN_CENTER);
- c1.setBorder(Rectangle.NO_BORDER);
- table.addCell(c1);
-
- c2 = new PdfPCell(new Phrase(" 1" +
- " 2" +
- " 3" +
- " 4" +
- " 5",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c2.setHorizontalAlignment(Element.ALIGN_LEFT);
- c2.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c2.setCellEvent(new Questionnaire(id));
- c2.setBorder(Rectangle.TOP);
- c2.setPaddingTop(2);
- c2.setPaddingBottom(5);
- c2.setBackgroundColor(new BaseColor(242, 242, 242));
-
- table.addCell(c2);
-
-
-
- document.add(table);
- }
-
-
- //----------------------------------------------------------------------------------
-
- // step 5
- document.close();
-
- }
-
- @Override
- public void cellLayout(PdfPCell cell, Rectangle position,
- PdfContentByte[] canvases) {
- PdfWriter writer = canvases[0].getPdfWriter();
- PdfFormField radiogroup = PdfFormField.createRadioButton(writer, true);
- radiogroup.setFieldName(String.valueOf(tf));
- System.out.println(tf);
-
- float llx = position.getLeft();
- float lly = position.getBottom();
-
- float cell_h = cell.getHeight();
- float cell_w = cell.getWidth();
-
- Rectangle rect;
-
- for(int i=1 ; i<=5; i++){
-
- rect = new Rectangle(llx + (3+i)*cell_w/12, lly+cell_h/2-6, llx + (3+i)*cell_w/12+12 ,lly+cell_h/2+6);
-
- RadioCheckField radio = new RadioCheckField(writer, rect, null, String.valueOf(i));
- radio.setBorderColor(GrayColor.GRAYBLACK);
- radio.setCheckType(RadioCheckField.TYPE_SQUARE);
-
-
- try {
- PdfFormField field = radio.getRadioField();
- radiogroup.addKid(field);
-
- writer.addAnnotation(radiogroup);
- }
-
- catch(IOException ioe) {
- throw new ExceptionConverter(ioe);
- }
- catch(DocumentException de) {
- throw new ExceptionConverter(de);
- }
- }
-
-
-
- }
-
-
- public String getAnswers() throws IOException, DocumentException{
- PdfReader reader = new PdfReader(pathOutputFile);
-
- PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(pathOutputFile));
- AcroFields form = stamper.getAcroFields();
-
- StringBuilder sb = new StringBuilder();
-
-
- Set<String> fields = form.getFields().keySet();
- for(String key: fields){
- System.out.println("key = " + key);
- if(form.getFieldType(key)==AcroFields.FIELD_TYPE_RADIOBUTTON){
- sb.append(key);
- sb.append(",");
- sb.append(form.getField(key));
- sb.append(";");
- }
- }
- reader.close();
-
- return sb.toString();
-
- }
-
-
-// /**
-// * Manipulates a PDF file src with the file dest as result
-// * @param src the original PDF
-// * @param dest the resulting PDF
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public void manipulatePdf(String src, String dest) throws IOException, DocumentException {
-// PdfReader reader = new PdfReader(src);
-// PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(dest));
-// AcroFields form = stamper.getAcroFields();
-// String[] radiostates = form.getAppearanceStates("language");
-// form.setField("language", radiostates[4]);
-// for (int i = 0; i < LANGUAGES.length; i++) {
-// String[] checkboxstates = form.getAppearanceStates("English");
-// form.setField(LANGUAGES[i], checkboxstates[i % 2 == 0 ? 1 : 0]);
-// }
-// stamper.close();
-// reader.close();
-//
-// PdfReader r = new PdfReader(dest);
-// AcroFields f = r.getAcroFields();
-// Set<String> fields = form.getFields().keySet();
-// for(String key: fields){
-// if(f.getFieldType(key)==AcroFields.FIELD_TYPE_RADIOBUTTON){
-// System.out.println(key);
-// System.out.println(f.getField(key));
-//
-// }
-// }
-// r.close();
-//
-// }
-//
-// /**
-// * Main method
-// * @param args no arguments needed
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public static void main(String[] args) throws IOException, DocumentException {
-// Questionnaire buttons = new Questionnaire();
-// buttons.createPdf(RESULT1);
-// buttons.manipulatePdf(RESULT1, RESULT2);
-// }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/75/7004f3e0a6a7001417ceadf0100b5ef7 b/.metadata/.plugins/org.eclipse.core.resources/.history/75/7004f3e0a6a7001417ceadf0100b5ef7
deleted file mode 100644
index 1c75480..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/75/7004f3e0a6a7001417ceadf0100b5ef7
+++ /dev/null
@@ -1,288 +0,0 @@
-package io;
-
-import java.awt.BorderLayout;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.util.Map;
-import java.util.Set;
-
-import com.itextpdf.text.BaseColor;
-import com.itextpdf.text.Document;
-import com.itextpdf.text.DocumentException;
-import com.itextpdf.text.Element;
-import com.itextpdf.text.ExceptionConverter;
-import com.itextpdf.text.Font;
-import com.itextpdf.text.Font.FontFamily;
-import com.itextpdf.text.FontFactory;
-import com.itextpdf.text.Image;
-import com.itextpdf.text.PageSize;
-import com.itextpdf.text.Paragraph;
-import com.itextpdf.text.Phrase;
-import com.itextpdf.text.Rectangle;
-import com.itextpdf.text.pdf.AcroFields;
-import com.itextpdf.text.pdf.BaseFont;
-import com.itextpdf.text.pdf.ColumnText;
-import com.itextpdf.text.pdf.GrayColor;
-import com.itextpdf.text.pdf.PdfBorderDictionary;
-import com.itextpdf.text.pdf.PdfContentByte;
-import com.itextpdf.text.pdf.PdfFormField;
-import com.itextpdf.text.pdf.PdfPCell;
-import com.itextpdf.text.pdf.PdfPCellEvent;
-import com.itextpdf.text.pdf.PdfPTable;
-import com.itextpdf.text.pdf.PdfReader;
-import com.itextpdf.text.pdf.PdfStamper;
-import com.itextpdf.text.pdf.PdfWriter;
-import com.itextpdf.text.pdf.RadioCheckField;
-import com.itextpdf.text.pdf.TextField;
-
-import framework.Question;
-
-public class Questionnaire implements PdfPCellEvent{
-
- /** The path output file. */
- String pathOutputFile;
-
- /** The document. */
- Document document;
-
- int tf;
-
- public Questionnaire(String path){
- pathOutputFile = path;
- document = new Document(PageSize.A4, 25, 25, 50, 50);
- }
- public Questionnaire(int tf){
- this.tf = tf;
- }
-
- /** The resulting PDF. */
- public static final String RESULT1 = "outputPDF/buttons.pdf";
- /** The resulting PDF. */
- public static final String RESULT2 = "outputPDF/buttons_filled.pdf";
- /** Path to a JavaScript resource. */
- public static final String RESOURCE = "res/buttons.js";
- /** Path to an image used as button icon. */
- public static final String IMAGE = "res/info.png";
- /** Possible values of a radio field / checkboxes */
- public static final String[] LANGUAGES = { "English", "German", "French", "Spanish", "Dutch" };
-
- /**
- * Creates a PDF document.
- * @param filename the path to the new PDF document
- * @throws DocumentException
- * @throws IOException
- */
- public void createPdf(Map<Integer, Question> map, Set<Integer> ids) throws IOException, DocumentException {
-
- @SuppressWarnings("unused")
- PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(pathOutputFile));
-
-
- document.open();
- Image logo = Image.getInstance("res/shcs_logo2.gif");
-
- logo.scalePercent(30f);
- float[] columnWidths1 = {0.2f, 0.8f};
- PdfPTable table_title = new PdfPTable(columnWidths1);
- PdfPCell c01 = new PdfPCell(logo, false);
- PdfPCell c02 = new PdfPCell(new Paragraph("Survery | Project #693",
- FontFactory.getFont(FontFactory.HELVETICA, 20, Font.BOLD, BaseColor.BLACK)));
- c01.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setHorizontalAlignment(Element.ALIGN_CENTER);
- c01.setBorder(Rectangle.NO_BORDER);
- c02.setBorder(Rectangle.NO_BORDER);
-
- table_title.addCell(c01);
- table_title.addCell(c02);
- table_title.setWidthPercentage(100);
- table_title.setSpacingBefore(0);
- table_title.setSpacingAfter(25);
- document.add(table_title);
-
-
- //----------------------------------------------------------------------------------
-
-
- PdfPTable table1 = new PdfPTable(1);
- table1.setWidthPercentage(100);
- PdfPCell c11 = new PdfPCell(new Phrase("Today you are receiving a pharmacogenetic report based on the genetic " +
- "information of your patient. Because the human genome contains extremely private and sensitive information" +
- " of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier," +
- " it must be managed with care. ",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.NORMAL, BaseColor.BLACK)));
- c11.setLeading(1.5f, 1.5f);
- c11.setPaddingBottom(8);
-
-
- table1.addCell(c11);
- table1.setSpacingAfter(10);
- document.add(table1);
-
-
- //----------------------------------------------------------------------------------
-
-// // step 4
-// // add the JavaScript
-// writer.addJavaScript(Utilities.readFileToString(RESOURCE));
-
- for(Integer id: ids){
- PdfPCell c2;
-
- PdfPTable table = new PdfPTable(1);
- table.setSpacingAfter(10);
- table.setWidthPercentage(100);
-
- PdfPCell c1 = new PdfPCell(new Phrase(id + ") " + map.get(id).getQuestion(),FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c1.setPaddingTop(5);
- c1.setPaddingBottom(5);
- c1.setHorizontalAlignment(Element.ALIGN_CENTER);
- c1.setBorder(Rectangle.NO_BORDER);
- table.addCell(c1);
-
- c2 = new PdfPCell(new Phrase(" 1" +
- " 2" +
- " 3" +
- " 4" +
- " 5",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c2.setHorizontalAlignment(Element.ALIGN_LEFT);
- c2.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c2.setCellEvent(new Questionnaire(id));
- c2.setBorder(Rectangle.TOP);
- c2.setPaddingTop(2);
- c2.setPaddingBottom(5);
- c2.setBackgroundColor(new BaseColor(242, 242, 242));
-
- table.addCell(c2);
-
-
-
- document.add(table);
- }
-
-
- //----------------------------------------------------------------------------------
-
- // step 5
- document.close();
-
- }
-
- @Override
- public void cellLayout(PdfPCell cell, Rectangle position,
- PdfContentByte[] canvases) {
- PdfWriter writer = canvases[0].getPdfWriter();
- PdfFormField radiogroup = PdfFormField.createRadioButton(writer, true);
- radiogroup.setFieldName(String.valueOf(tf));
- System.out.println(tf);
-
- float llx = position.getLeft();
- float lly = position.getBottom();
-
- float cell_h = cell.getHeight();
- float cell_w = cell.getWidth();
-
- Rectangle rect;
-
- for(int i=1 ; i<=5; i++){
-
- rect = new Rectangle(llx + (3+i)*cell_w/12, lly+cell_h/2-6, llx + (3+i)*cell_w/12+12 ,lly+cell_h/2+6);
-
- RadioCheckField radio = new RadioCheckField(writer, rect, null, String.valueOf(i));
- radio.setBorderColor(GrayColor.GRAYBLACK);
- radio.setCheckType(RadioCheckField.TYPE_SQUARE);
-
-
- try {
- PdfFormField field = radio.getRadioField();
- radiogroup.addKid(field);
-
- writer.addAnnotation(radiogroup);
- }
-
- catch(IOException ioe) {
- throw new ExceptionConverter(ioe);
- }
- catch(DocumentException de) {
- throw new ExceptionConverter(de);
- }
- }
-
-
-
- }
-
-
- public String getAnswers() throws IOException, DocumentException{
- PdfReader reader = new PdfReader(pathOutputFile);
- reader.removeUsageRights();
-// PdfStamper stamper = new PdfStamper(reader, new FileOutputStream("outputPDF/buttons_filled2.pdf"));
- AcroFields form = reader.getAcroFields();
-
- StringBuilder sb = new StringBuilder();
-
-
- Set<String> fields = form.getFields().keySet();
- for(String key: fields){
- System.out.println("key = " + key);
- if(form.getFieldType(key)==AcroFields.FIELD_TYPE_RADIOBUTTON){
- sb.append(key);
- sb.append(",");
- sb.append(form.getField(key));
- sb.append(";");
- }
- }
-// stamper.close();
- reader.close();
-
-
- return sb.toString();
-
- }
-
-
-// /**
-// * Manipulates a PDF file src with the file dest as result
-// * @param src the original PDF
-// * @param dest the resulting PDF
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public void manipulatePdf(String src, String dest) throws IOException, DocumentException {
-// PdfReader reader = new PdfReader(src);
-// PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(dest));
-// AcroFields form = stamper.getAcroFields();
-// String[] radiostates = form.getAppearanceStates("language");
-// form.setField("language", radiostates[4]);
-// for (int i = 0; i < LANGUAGES.length; i++) {
-// String[] checkboxstates = form.getAppearanceStates("English");
-// form.setField(LANGUAGES[i], checkboxstates[i % 2 == 0 ? 1 : 0]);
-// }
-// stamper.close();
-// reader.close();
-//
-// PdfReader r = new PdfReader(dest);
-// AcroFields f = r.getAcroFields();
-// Set<String> fields = form.getFields().keySet();
-// for(String key: fields){
-// if(f.getFieldType(key)==AcroFields.FIELD_TYPE_RADIOBUTTON){
-// System.out.println(key);
-// System.out.println(f.getField(key));
-//
-// }
-// }
-// r.close();
-//
-// }
-//
-// /**
-// * Main method
-// * @param args no arguments needed
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public static void main(String[] args) throws IOException, DocumentException {
-// Questionnaire buttons = new Questionnaire();
-// buttons.createPdf(RESULT1);
-// buttons.manipulatePdf(RESULT1, RESULT2);
-// }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/77/705b8e4050ac001410e2e30aa85db9d1 b/.metadata/.plugins/org.eclipse.core.resources/.history/77/705b8e4050ac001410e2e30aa85db9d1
deleted file mode 100644
index 5c6d661..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/77/705b8e4050ac001410e2e30aa85db9d1
+++ /dev/null
@@ -1,903 +0,0 @@
-package ui;
-
-import io.ClientConnection;
-import io.CommAdapter;
-import io.Questionnaire;
-
-import java.awt.BorderLayout;
-import java.awt.Color;
-import java.awt.Component;
-import java.awt.Dimension;
-import java.awt.FlowLayout;
-import java.awt.Font;
-import java.awt.SystemColor;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.awt.event.WindowAdapter;
-import java.io.File;
-import java.io.IOException;
-import java.sql.SQLException;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.LinkedList;
-import java.util.Map;
-import java.util.Set;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
-import javax.swing.Box;
-import javax.swing.BoxLayout;
-import javax.swing.ButtonGroup;
-import javax.swing.DefaultComboBoxModel;
-import javax.swing.GroupLayout;
-import javax.swing.GroupLayout.Alignment;
-import javax.swing.ImageIcon;
-import javax.swing.JButton;
-import javax.swing.JComboBox;
-import javax.swing.JDialog;
-import javax.swing.JFileChooser;
-import javax.swing.JFrame;
-import javax.swing.JLabel;
-import javax.swing.JOptionPane;
-import javax.swing.JPanel;
-import javax.swing.JRadioButton;
-import javax.swing.JScrollPane;
-import javax.swing.JSeparator;
-import javax.swing.JTabbedPane;
-import javax.swing.JTextArea;
-import javax.swing.JTextPane;
-import javax.swing.JTree;
-import javax.swing.LayoutStyle.ComponentPlacement;
-import javax.swing.SwingConstants;
-import javax.swing.UIManager;
-import javax.swing.border.BevelBorder;
-import javax.swing.border.EmptyBorder;
-import javax.swing.border.EtchedBorder;
-import javax.swing.tree.DefaultMutableTreeNode;
-import javax.swing.tree.TreeModel;
-import javax.swing.tree.TreePath;
-
-import org.jpedal.examples.viewer.Commands;
-import org.jpedal.examples.viewer.Viewer;
-
-import utils.ClientProperties;
-
-import com.itextpdf.text.DocumentException;
-
-import database.DBconnectorClient;
-import framework.Diagnostic;
-import framework.MedUnit;
-import framework.Question;
-import framework.reply.ReplySurvey;
-import framework.test.TestName;
-
-/**
- *
- * @author youssef, raisaro
- */
-public class GUI extends javax.swing.JFrame {
-
- private static final Logger LOGGER = Logger.getLogger(GUI.class.getName());
-
- private static final long serialVersionUID = -4582280515597700650L;
-
- // configuration
- private ClientProperties props;
-
- private JTree jTree;
- private DBconnectorClient connectorClientDB;
- private LinkedList<Integer> patients;
-
- /** List of all relevant tests */
- private HashMap<String, TestName> testsByName;
- private Viewer viewer;
- private JDialog dialog;
- private JFrame frame;
- private boolean survey_submitted;
- private int close_trials;
- private Map<Integer, ButtonGroup> buttonGroupMap;
- private Questionnaire quest;
- private Map<Integer, Question> map;
- private Set<Integer> ids;
- private Map<String,String> answers;
- private Map<Integer, String> locations;
-
-
- /**
- * Creates new form GUI
- */
- public GUI(ClientProperties props){
-
- frame = this;
- this.props = props;
- this.connectorClientDB = new DBconnectorClient(props.getDbMsAccess());
- survey_submitted = false;
- close_trials = 0;
-
-
- try {
- initComponents();
-
- viewer = new Viewer(jScrollPane2, null);
- viewer.setupViewer();
-
- // create questionnare
-
-
- System.out.println("#of questions: " + ids.size());
-
-// viewer_q = new Viewer(jScrollPane4, null);
-// viewer_q.setupViewer();
-//
-// // specify file you wish to open (JPedal handles getting the byte data)
-// String filepathReport = "outputPDF/buttons_filled.pdf";
-//
-// // open generated PDF
-// // object must be either String in full filepath, or
-// // File object which can be relative
-// Object[] input = new Object[]{ new File(filepathReport) };
-// viewer_q.executeCommand(Commands.OPENFILE, input);
-
- JButton btnSubmitQuestionnaire = new JButton("Submit Questionnaire");
- btnSubmitQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- btnSubmitQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- submitButtonActionPerformed(arg0);
- }
- });
- JButton btnResetQuestionnaire = new JButton("Save as PDF");
- btnResetQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- savePDFButtonActionPerformed(arg0);
- }
- });
- btnResetQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- JPanel panel_button = new JPanel();
- panel_button.setLayout(new BoxLayout(panel_button, BoxLayout.X_AXIS));
-
- lblNewLabel_3 = new JLabel("");
- lblNewLabel_3.setIcon(new ImageIcon("res/location_icon.png"));
- panel_button.add(lblNewLabel_3);
-
-
-
- comboBox = new JComboBox<String>();
- comboBox.setFont(new Font("Tahoma", Font.BOLD, 12));
- comboBox.setModel(new DefaultComboBoxModel<String>(new String[] {"Select Location"}));
- for(Integer id_loc : locations.keySet()){
- comboBox.addItem(locations.get(id_loc));
- }
-
-
- panel_button.add(comboBox);
-
- rigidArea = Box.createRigidArea(new Dimension(10, 0));
- panel_button.add(rigidArea);
-
- lblNewLabel_1 = new JLabel("");
- lblNewLabel_1.setIcon(new ImageIcon("res/submit.png"));
- panel_button.add(lblNewLabel_1);
- panel_button.add(btnSubmitQuestionnaire);
-
- panel_button.add(Box.createRigidArea(new Dimension(10,0)));
-
- lblNewLabel_2 = new JLabel("");
- lblNewLabel_2.setIcon(new ImageIcon("res/pdf.png"));
- panel_button.add(lblNewLabel_2);
- panel_button.add(btnResetQuestionnaire);
- panel_button.setPreferredSize(new Dimension(211, 35));
- panel_button.validate();
-
- JPanel panel_3 = new JPanel();
- GroupLayout gl_panel = new GroupLayout(panel);
- gl_panel.setHorizontalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(63)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addGap(103)
- .addComponent(panel_button, GroupLayout.DEFAULT_SIZE, 498, Short.MAX_VALUE)
- .addGap(241))
- .addGroup(Alignment.TRAILING, gl_panel.createSequentialGroup()
- .addGap(41)
- .addGroup(gl_panel.createParallelGroup(Alignment.TRAILING)
- .addComponent(panel_1, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE)
- .addComponent(jScrollPane4, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE))
- .addGap(32))
- );
- gl_panel.setVerticalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(22)
- .addComponent(panel_1, GroupLayout.PREFERRED_SIZE, 245, GroupLayout.PREFERRED_SIZE)
- .addGap(18)
- .addComponent(jScrollPane4, GroupLayout.DEFAULT_SIZE, 384, Short.MAX_VALUE)
- .addGap(26)
- .addGroup(gl_panel.createParallelGroup(Alignment.LEADING)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(panel_button, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE)))
- );
- panel_3.setLayout(new BoxLayout(panel_3, BoxLayout.X_AXIS));
-
-
- panel.setLayout(gl_panel);
-
-
-
-
-
-
- /////////////////////////////////////////////////////////
- // display the tests available
-
- // get the tests
- HashMap<String, ArrayList<TestName>> testsRelevantByGroup = connectorClientDB.getRelevantTestsByGroup();
- ArrayList<String> groups = new ArrayList<String>(testsRelevantByGroup.keySet());
-
- // flatten hashmap into linkedlist
-// tests = new LinkedList<>();
- testsByName = new HashMap<String, TestName>();
- for (String group : groups) {
-// tests.addAll(testsRelevantByGroup.get(group));
- for (TestName test : testsRelevantByGroup.get(group)) {
- testsByName.put(test.getName(), test);
- }
- }
-
- // define tree structure of the tests
- DefaultMutableTreeNode root = new DefaultMutableTreeNode("All");
-
- for (String group : groups) {
- DefaultMutableTreeNode child = new DefaultMutableTreeNode(group);
- root.add(child);
-
- for (TestName test : testsRelevantByGroup.get(group)) {
- DefaultMutableTreeNode grandChild = new DefaultMutableTreeNode(test.getName());
- child.add(grandChild);
- }
- }
-
- // define swing object
- jTree = new JTree(root);
-
- for(int i=0;i<jTree.getRowCount();i++){
- jTree.expandRow(i);
- }
-
- jScrollPane3.setViewportView(jTree);
-// jTree.addTreeSelectionListener(new TreeSelectionListener() {
-//
-// @Override
-// public void valueChanged(TreeSelectionEvent e) {
-// tp = jTree.getSelectionPaths();
-// }
-// });
- jScrollPane3.setViewportView(jTree);
-
- /////////////////////////////////////////////////////////
- // display the patients registered
-
- patients = connectorClientDB.getPatients();
- for (Integer patientId : patients) {
- jComboBox1.addItem(patientId.toString());
- }
-
- } catch (SQLException ex) {
- Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex);
- ex.printStackTrace();
-// } catch (IOException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
-// } catch (DocumentException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
- }
-
- }
-
- /**
- * 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() {
-
- jPanel1 = new javax.swing.JPanel();
- jLabel2 = new javax.swing.JLabel();
- jLabel1 = new javax.swing.JLabel();
- jPanel2 = new javax.swing.JPanel();
- jComboBox1 = new javax.swing.JComboBox<String>();
- jButton1 = new javax.swing.JButton();
- jButton1.setFont(new Font("Tahoma", Font.BOLD, 12));
- jLabel3 = new javax.swing.JLabel();
- jLabel4 = new javax.swing.JLabel();
- jScrollPane3 = new javax.swing.JScrollPane();
- jScrollPane2 = new javax.swing.JScrollPane();
- jMenuBar1 = new javax.swing.JMenuBar();
- jMenu1 = new javax.swing.JMenu();
- jMenuItem1 = new javax.swing.JMenuItem();
- jMenu2 = new javax.swing.JMenu();
- dialog = new JDialog();
- tabbedPane = new JTabbedPane(JTabbedPane.TOP);
-
- setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
- addWindowListener(new WindowAdapter() {
- @Override
- public void windowClosing(java.awt.event.WindowEvent windowEvent) {
- if (!survey_submitted && close_trials <= 2){
- JOptionPane.showMessageDialog(frame, "Before closing the application, please fill in and submit the questionnaire.");
- close_trials++;
- tabbedPane.setSelectedIndex(1);
- }else{
- System.exit(0);
- }
- }
- });
- setTitle("HIV Pharmacogenomics\n");
-
- jLabel2.setIcon(new javax.swing.ImageIcon("res/shcs_logo2_small.gif")); // NOI18N
-
- jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
- jLabel1.setText("HIV Pharmacogenomics | Project #693");
-
- javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
- jPanel1.setLayout(jPanel1Layout);
- jPanel1Layout.setHorizontalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap(71, Short.MAX_VALUE)
- .addComponent(jLabel1)
- .addGap(18, 18, 18)
- .addComponent(jLabel2))
- );
- jPanel1Layout.setVerticalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jLabel1)
- .addGap(11, 11, 11))
- .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)
- );
-
- jPanel2.setBackground(new java.awt.Color(255, 255, 255));
- jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
-
- jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<String>(new String[]{"Select Patient"}));
-
- jButton1.setText("Run Test");
- jButton1.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton1ActionPerformed(evt);
- }
- });
-
- JLabel lblNewLabel = new JLabel("");
- lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
- lblNewLabel.setIcon(new javax.swing.ImageIcon("res/gears.png"));
-
-
-
- javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
- jPanel2Layout.setHorizontalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addComponent(jComboBox1, 0, 248, Short.MAX_VALUE)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addGap(75)
- .addGroup(jPanel2Layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jButton1)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 75, GroupLayout.PREFERRED_SIZE))
- .addContainerGap(98, Short.MAX_VALUE))
- );
- jPanel2Layout.setVerticalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addComponent(jComboBox1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED, 223, Short.MAX_VALUE)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jButton1)
- .addGap(19))
- );
- jPanel2.setLayout(jPanel2Layout);
-
- jLabel3.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel3.setText("Select Patient");
-
- jLabel4.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel4.setText("Select Test");
-
- jScrollPane3.setBackground(new java.awt.Color(255, 255, 255));
-
- jMenu1.setText("File");
-
- jMenuItem1.setText("Exit");
- jMenu1.add(jMenuItem1);
-
- jMenuBar1.add(jMenu1);
-
- jMenu2.setText("Edit");
- jMenuBar1.add(jMenu2);
-
- setJMenuBar(jMenuBar1);
-
-
-
- javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
- layout.setHorizontalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(layout.createParallelGroup(Alignment.LEADING, false)
- .addComponent(jLabel3)
- .addComponent(jLabel4)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, 244, Short.MAX_VALUE)
- .addComponent(jScrollPane3))
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 970, Short.MAX_VALUE))
- .addContainerGap())
- );
- layout.setVerticalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel4))
- .addPreferredGap(ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addComponent(jScrollPane3, GroupLayout.PREFERRED_SIZE, 388, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jLabel3)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 785, Short.MAX_VALUE))
- .addContainerGap())
- );
-
-
- jScrollPane2.setAutoscrolls(true);
- jScrollPane3.setAutoscrolls(true);
- tabbedPane.addTab("Report", new ImageIcon("res/report_icon.gif"), jScrollPane2, null);
- tabbedPane.setBackgroundAt(0, new Color(255, 255, 255));
-
- panel = new JPanel();
- tabbedPane.addTab("Survey", new ImageIcon("res/survey_icon.png"), panel, null);
- tabbedPane.setBackgroundAt(1, new Color(255, 255, 255));
- tabbedPane.setEnabledAt(1, true);
-
- panel_1 = new JPanel();
- panel_1.setBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null));
- panel_1.setBackground(UIManager.getColor("Button.background"));
-
- JLabel label = new JLabel("");
- label.setIcon(new ImageIcon("res/shcs_logo2_medium.gif"));
-
- lblDearDoctor = new JLabel("Dear Doctor,");
- lblDearDoctor.setFont(new Font("Tahoma", Font.BOLD, 14));
-
- JScrollPane scrollPane = new JScrollPane();
- scrollPane.setBorder(null);
- GroupLayout gl_panel_1 = new GroupLayout(panel_1);
- gl_panel_1.setHorizontalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(Alignment.LEADING, gl_panel_1.createSequentialGroup()
- .addGap(25)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addComponent(lblDearDoctor)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 661, Short.MAX_VALUE))
- .addContainerGap())
- );
- gl_panel_1.setVerticalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addContainerGap()
- .addComponent(lblDearDoctor)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 203, Short.MAX_VALUE))
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(36)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 96, GroupLayout.PREFERRED_SIZE)))
- .addContainerGap())
- );
-
- JTextPane txtpnTodayYouAre = new JTextPane();
- txtpnTodayYouAre.setBorder(null);
- txtpnTodayYouAre.setText("Today you are receiving a pharmacogenetics report based on the genome of your patient. Because of its highly sensitive nature, " +
- "the genetic information you are provided with is processed in a privacy-preserving way. In particular, to protect patients’ genomic privacy, " +
- "their genetic and clinical data is stored encrypted at the SHCS data center, and securely analyzed through a sophisticated algorithm designed and developed at EPFL [1, 2]. " +
- "The actual clinical and genetic information is never revealed. Only the authorized users, such as you, can get some processed information, for example, the final result of a " +
- "pharmacogenetics risk test.\nThis mechanism protects the data against insiders or hackers trying to illegally access patients’ medical information, while still allowing authorized " +
- "users to obtain the information they need." +
- "\n\nTo help us understanding the importance of genomic privacy in the medical domain, and the impact of privacy-enhancing technologies in daily clinical practice, please complete the following survey.");
- txtpnTodayYouAre.setFont(new Font("Tahoma", Font.PLAIN, 13));
- txtpnTodayYouAre.setEditable(false);
- txtpnTodayYouAre.setBackground(SystemColor.menu);
- scrollPane.setViewportView(txtpnTodayYouAre);
- panel_1.setLayout(gl_panel_1);
- jScrollPane4 = new javax.swing.JScrollPane();
- getContentPane().setLayout(layout);
-
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
- ReplySurvey replySurvey = commHandlerAdapter.callServiceSurvey();
-
- map = replySurvey.getQuestions();
- ids = map.keySet();
- locations = replySurvey.getLocations();
-
- panel_2 = new JPanel();
- panel_2.setBackground(Color.WHITE);
- panel_2.setBorder(new BevelBorder(BevelBorder.LOWERED, null, null, null, null));
- jScrollPane4.setViewportView(panel_2);
- panel_2.setLayout(new BoxLayout(panel_2, BoxLayout.Y_AXIS));
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
-
-
- for(Integer id : ids){
- ButtonGroup group = new ButtonGroup();
- JRadioButton r1 = new JRadioButton("1"); r1.setActionCommand("1"); r1.setBackground(Color.WHITE);
- JRadioButton r2 = new JRadioButton("2"); r2.setActionCommand("2"); r2.setBackground(Color.WHITE);
- JRadioButton r3 = new JRadioButton("3"); r3.setActionCommand("3"); r3.setBackground(Color.WHITE);
- JRadioButton r4 = new JRadioButton("4"); r4.setActionCommand("4"); r4.setBackground(Color.WHITE);
- JRadioButton r5 = new JRadioButton("5"); r5.setActionCommand("5"); r5.setBackground(Color.WHITE);
- group.add(r1);
- group.add(r2);
- group.add(r3);
- group.add(r4);
- group.add(r5);
- JPanel radio_panel = new JPanel();
- radio_panel.setLayout((new BoxLayout(radio_panel, BoxLayout.X_AXIS)));
- radio_panel.setBackground(Color.WHITE);
- radio_panel.setAlignmentX(Component.CENTER_ALIGNMENT);
- radio_panel.add(r1);
- radio_panel.add(r2);
- radio_panel.add(r3);
- radio_panel.add(r4);
- radio_panel.add(r5);
- radio_panel.doLayout();
- radio_panel.setPreferredSize(radio_panel.getPreferredSize());
- JTextArea question = new JTextArea(id + ") " + map.get(id).getQuestion());
- question.setLineWrap(true);
- question.setWrapStyleWord(true);
- question.setAlignmentX(Component.CENTER_ALIGNMENT);
- question.setFont(new Font("Tahoma", Font.PLAIN, 13));
-
- JPanel row_panel = new JPanel();
- row_panel.setLayout(new BoxLayout(row_panel, BoxLayout.X_AXIS));
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.add(question);
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.add(radio_panel);
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
-
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- panel_2.add(row_panel);
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
-// panel_2.add(radio_panel);
- panel_2.add(new JSeparator());
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
-// panel_2.setPreferredSize(panel_2.getPreferredSize());
- buttonGroupMap.put(id, group);
-
- }
-
-
-
- this.setSize(new Dimension(1200, 865));
-// pack();
- }// </editor-fold>//GEN-END:initComponents
-
-
- private void submitButtonActionPerformed(java.awt.event.ActionEvent evt){
-
- try{
- answers = new HashMap<String, String>();
- StringBuilder sb = new StringBuilder();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- sb.append(q).append(",");
- sb.append(bg.getSelection().getActionCommand()).append(";");
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- String answer = sb.toString();
- Integer id_loc = null;
- for(Integer i: locations.keySet()){
- if(locations.get(i).equals(comboBox.getSelectedItem().toString()))
- id_loc = i;
- }
-
- String id_p;
- if(jComboBox1.getSelectedItem().toString().equals("Select Patient"))
- id_p = "0";
- else
- id_p = jComboBox1.getSelectedItem().toString();
-
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
-
- String reply = commHandlerAdapter.callServiceSurveyAnswer(answer, id_loc.toString(), id_p);
-
- if(reply.equals("1")){
- survey_submitted = true;
-
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Congrats! Your aswers have been sent to the SHCS datacenter.",
- "Information Message",
- JOptionPane.INFORMATION_MESSAGE);
- }
- else{
- throw new IOException();
- }
-
-
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "The SHCS datacenter does not respond. Please save the survey and send it to jean.raisaro@epfl.ch.",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
- private void savePDFButtonActionPerformed(java.awt.event.ActionEvent evt){
- try {
-
- answers = new HashMap<String, String>();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- JFileChooser chooser = new JFileChooser();
- // Note: source for ExampleFileFilter can be found in FileChooserDemo,
- // under the demo/jfc directory in the JDK.
-
- int returnVal = chooser.showSaveDialog(this);
- System.out.println(returnVal);
- if(returnVal == JFileChooser.APPROVE_OPTION) {
- System.out.println("You chose to open this file: " +
- chooser.getSelectedFile().getPath());
- quest = new Questionnaire(chooser.getSelectedFile().getPath() + ".pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }else{
- quest = new Questionnaire("outputPDF/survey.pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }
-
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (DocumentException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (NullPointerException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
-
- private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
-
- JPanel contentPanel = new JPanel();
-
- dialog.setBounds(100, 100, 410, 80);
- dialog.getContentPane().setLayout(new BorderLayout());
- contentPanel.setLayout(new FlowLayout());
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- dialog.getContentPane().add(contentPanel, BorderLayout.CENTER);
- {
- JLabel label = new JLabel("Please wait...The overall computation can take few seconds");
- label.setHorizontalAlignment(SwingConstants.CENTER);
- label.setFont(new Font("Tahoma", Font.PLAIN, 12));
- contentPanel.add(label);
- }
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
- dialog.getContentPane().add(buttonPane, BorderLayout.SOUTH);
- }
- dialog.setLocationRelativeTo(this);
- dialog.setVisible(true);
-
- GUIWorker gw = new GUIWorker(this, props);
- Thread t = new Thread(gw);
- t.start();
-
- }
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JButton jButton1;
- private javax.swing.JComboBox<String> jComboBox1;
- private javax.swing.JLabel jLabel1;
- private javax.swing.JLabel jLabel2;
- private javax.swing.JLabel jLabel3;
- private javax.swing.JLabel jLabel4;
- private javax.swing.JMenu jMenu1;
- private javax.swing.JMenu jMenu2;
- private javax.swing.JMenuBar jMenuBar1;
- private javax.swing.JMenuItem jMenuItem1;
- private javax.swing.JPanel jPanel1;
- private javax.swing.JPanel jPanel2;
- private javax.swing.JScrollPane jScrollPane3;
- private javax.swing.JTabbedPane tabbedPane;
- private javax.swing.JScrollPane jScrollPane2;
- private javax.swing.JScrollPane jScrollPane4;
- private JPanel panel;
- private JPanel panel_1;
- private JPanel panel_2;
- private JLabel lblDearDoctor;
- private JLabel lblNewLabel_1;
- private JLabel lblNewLabel_2;
- private JLabel lblNewLabel_3;
- private JComboBox<String> comboBox;
- private Component rigidArea;
-
- // End of variables declaration//GEN-END:variables
-
-
- class GUIWorker implements Runnable{
-
- private JFrame mainFrame;
- private ClientProperties props;
- private MedUnit mu;
-
- public GUIWorker(GUI gui, ClientProperties props) {
- mainFrame = gui;
-
- this.props = props;
- this.mu = new MedUnit(props, 0);
- }
-
- @Override
- public void run() {
-
- try{
- int patientId = Integer.parseInt((String) jComboBox1.getSelectedItem());
-
- // convert selected tests to test identifiers
- ArrayList<TestName> selectedTests = new ArrayList<TestName>();
- for (String currentName : getSelectedTests()) {
- TestName currentTest = testsByName.get(currentName);
-
- if (currentTest == null) {
- throw new IllegalStateException("Trying to run unknown test: " + currentTest);
- }
-
- selectedTests.add(currentTest);
- }
-
- // run tests
- Diagnostic diagnostic = mu.runTests(patientId, selectedTests);
-
- // warn for tests with missing material
- warnFailedTests(diagnostic, selectedTests);
-
- // create report
- mu.createReport(patientId, selectedTests, diagnostic);
-
- dialog.setVisible(false);
-
- // specify file you wish to open (JPedal handles getting the byte data)
- String filepathReport = props.getPathPDF() + patientId + ".pdf";
-
- // open generated PDF
- // object must be either String in full filepath, or
- // File object which can be relative
- Object[] input = new Object[]{ new File(filepathReport) };
- viewer.executeCommand(Commands.OPENFILE, input);
-
- // display CAD result as bar plot
- if (diagnostic.hasCAD()) {
- System.out.println("CAD = " + diagnostic.getResultCAD());
- BarPlotFrame frame = new BarPlotFrame(diagnostic.getResultCAD(), patientId);
- frame.setVisible(true);
- frame.setAlwaysOnTop(true);
- }
-
-
- } catch (SQLException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Please select a patient.");
- }
-
- }
-
- private void warnFailedTests(Diagnostic diagnostic, ArrayList<TestName> selectedTests) {
- ArrayList<Integer> failedTests = diagnostic.getInvalidTests();
-
- if (!failedTests.isEmpty()) {
- String msg = "Could not complete tests: ";
- boolean first = true;
- for (TestName testName : selectedTests) {
- if (failedTests.contains(testName.getId())) {
- if (first) {
- first = false;
- } else {
- msg += ", ";
- }
- msg += testName.getName();
- }
- }
- displayError(msg);
- }
-
- }
-
- private void displayError(String msg) {
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- mainFrame,
- msg,
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
-
- private ArrayList<String> getSelectedTests() {
- ArrayList<String> tests = new ArrayList<String>();
-
- for (TreePath treePath : jTree.getSelectionPaths()) {
- tests.addAll(getChildrenTests(jTree.getModel(), treePath.getLastPathComponent()));
- }
-
- return tests;
- }
-
- private ArrayList<String> getChildrenTests(TreeModel model, Object node) {
- ArrayList<String> tests = new ArrayList<String>();
-
- if (model.isLeaf(node)) { // leaf
- DefaultMutableTreeNode leaf = (DefaultMutableTreeNode) node;
- tests.add(leaf.toString());
- }
- else { // iterate over children
- for (int i = 0; i < model.getChildCount(node); i++) {
- tests.addAll(getChildrenTests(model, model.getChild(node, i)));
- }
- }
-
- return tests;
- }
-
- }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/79/d00fe0f6a1a7001417ceadf0100b5ef7 b/.metadata/.plugins/org.eclipse.core.resources/.history/79/d00fe0f6a1a7001417ceadf0100b5ef7
deleted file mode 100644
index af11983..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/79/d00fe0f6a1a7001417ceadf0100b5ef7
+++ /dev/null
@@ -1,288 +0,0 @@
-package io;
-
-import java.awt.BorderLayout;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.util.Map;
-import java.util.Set;
-
-import com.itextpdf.text.BaseColor;
-import com.itextpdf.text.Document;
-import com.itextpdf.text.DocumentException;
-import com.itextpdf.text.Element;
-import com.itextpdf.text.ExceptionConverter;
-import com.itextpdf.text.Font;
-import com.itextpdf.text.Font.FontFamily;
-import com.itextpdf.text.FontFactory;
-import com.itextpdf.text.Image;
-import com.itextpdf.text.PageSize;
-import com.itextpdf.text.Paragraph;
-import com.itextpdf.text.Phrase;
-import com.itextpdf.text.Rectangle;
-import com.itextpdf.text.pdf.AcroFields;
-import com.itextpdf.text.pdf.BaseFont;
-import com.itextpdf.text.pdf.ColumnText;
-import com.itextpdf.text.pdf.GrayColor;
-import com.itextpdf.text.pdf.PdfBorderDictionary;
-import com.itextpdf.text.pdf.PdfContentByte;
-import com.itextpdf.text.pdf.PdfFormField;
-import com.itextpdf.text.pdf.PdfPCell;
-import com.itextpdf.text.pdf.PdfPCellEvent;
-import com.itextpdf.text.pdf.PdfPTable;
-import com.itextpdf.text.pdf.PdfReader;
-import com.itextpdf.text.pdf.PdfStamper;
-import com.itextpdf.text.pdf.PdfWriter;
-import com.itextpdf.text.pdf.RadioCheckField;
-import com.itextpdf.text.pdf.TextField;
-
-import framework.Question;
-
-public class Questionnaire implements PdfPCellEvent{
-
- /** The path output file. */
- String pathOutputFile;
-
- /** The document. */
- Document document;
-
- int tf;
-
- public Questionnaire(String path){
- pathOutputFile = path;
- document = new Document(PageSize.A4, 25, 25, 50, 50);
- }
- public Questionnaire(int tf){
- this.tf = tf;
- }
-
- /** The resulting PDF. */
- public static final String RESULT1 = "outputPDF/buttons.pdf";
- /** The resulting PDF. */
- public static final String RESULT2 = "outputPDF/buttons_filled.pdf";
- /** Path to a JavaScript resource. */
- public static final String RESOURCE = "res/buttons.js";
- /** Path to an image used as button icon. */
- public static final String IMAGE = "res/info.png";
- /** Possible values of a radio field / checkboxes */
- public static final String[] LANGUAGES = { "English", "German", "French", "Spanish", "Dutch" };
-
- /**
- * Creates a PDF document.
- * @param filename the path to the new PDF document
- * @throws DocumentException
- * @throws IOException
- */
- public void createPdf(Map<Integer, Question> map, Set<Integer> ids) throws IOException, DocumentException {
-
- @SuppressWarnings("unused")
- PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(pathOutputFile));
-
-
- document.open();
- Image logo = Image.getInstance("res/shcs_logo2.gif");
-
- logo.scalePercent(30f);
- float[] columnWidths1 = {0.2f, 0.8f};
- PdfPTable table_title = new PdfPTable(columnWidths1);
- PdfPCell c01 = new PdfPCell(logo, false);
- PdfPCell c02 = new PdfPCell(new Paragraph("Survery | Project #693",
- FontFactory.getFont(FontFactory.HELVETICA, 20, Font.BOLD, BaseColor.BLACK)));
- c01.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setHorizontalAlignment(Element.ALIGN_CENTER);
- c01.setBorder(Rectangle.NO_BORDER);
- c02.setBorder(Rectangle.NO_BORDER);
-
- table_title.addCell(c01);
- table_title.addCell(c02);
- table_title.setWidthPercentage(100);
- table_title.setSpacingBefore(0);
- table_title.setSpacingAfter(25);
- document.add(table_title);
-
-
- //----------------------------------------------------------------------------------
-
-
- PdfPTable table1 = new PdfPTable(1);
- table1.setWidthPercentage(100);
- PdfPCell c11 = new PdfPCell(new Phrase("Today you are receiving a pharmacogenetic report based on the genetic " +
- "information of your patient. Because the human genome contains extremely private and sensitive information" +
- " of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier," +
- " it must be managed with care. ",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.NORMAL, BaseColor.BLACK)));
- c11.setLeading(1.5f, 1.5f);
- c11.setPaddingBottom(8);
-
-
- table1.addCell(c11);
- table1.setSpacingAfter(10);
- document.add(table1);
-
-
- //----------------------------------------------------------------------------------
-
-// // step 4
-// // add the JavaScript
-// writer.addJavaScript(Utilities.readFileToString(RESOURCE));
-
- for(Integer id: ids){
- PdfPCell c2;
-
- PdfPTable table = new PdfPTable(1);
- table.setSpacingAfter(10);
- table.setWidthPercentage(100);
-
- PdfPCell c1 = new PdfPCell(new Phrase(id + ") " + map.get(id).getQuestion(),FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c1.setPaddingTop(5);
- c1.setPaddingBottom(5);
- c1.setHorizontalAlignment(Element.ALIGN_CENTER);
- c1.setBorder(Rectangle.NO_BORDER);
- table.addCell(c1);
-
- c2 = new PdfPCell(new Phrase(" 1" +
- " 2" +
- " 3" +
- " 4" +
- " 5",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c2.setHorizontalAlignment(Element.ALIGN_LEFT);
- c2.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c2.setCellEvent(new Questionnaire(id));
- c2.setBorder(Rectangle.TOP);
- c2.setPaddingTop(2);
- c2.setPaddingBottom(5);
- c2.setBackgroundColor(new BaseColor(242, 242, 242));
-
- table.addCell(c2);
-
-
-
- document.add(table);
- }
-
-
- //----------------------------------------------------------------------------------
-
- // step 5
- document.close();
-
- }
-
- @Override
- public void cellLayout(PdfPCell cell, Rectangle position,
- PdfContentByte[] canvases) {
- PdfWriter writer = canvases[0].getPdfWriter();
- PdfFormField radiogroup = PdfFormField.createRadioButton(writer, true);
- radiogroup.setFieldName(String.valueOf(tf));
- System.out.println(tf);
-
- float llx = position.getLeft();
- float lly = position.getBottom();
-
- float cell_h = cell.getHeight();
- float cell_w = cell.getWidth();
-
- Rectangle rect;
-
- for(int i=1 ; i<=5; i++){
-
- rect = new Rectangle(llx + (3+i)*cell_w/12, lly+cell_h/2-6, llx + (3+i)*cell_w/12+12 ,lly+cell_h/2+6);
-
- RadioCheckField radio = new RadioCheckField(writer, rect, null, String.valueOf(i));
- radio.setBorderColor(GrayColor.GRAYBLACK);
- radio.setCheckType(RadioCheckField.TYPE_SQUARE);
-
-
- try {
- PdfFormField field = radio.getRadioField();
- radiogroup.addKid(field);
-
- writer.addAnnotation(radiogroup);
- }
-
- catch(IOException ioe) {
- throw new ExceptionConverter(ioe);
- }
- catch(DocumentException de) {
- throw new ExceptionConverter(de);
- }
- }
-
-
-
- }
-
-
- public String getAnswers() throws IOException, DocumentException{
- PdfReader reader = new PdfReader(pathOutputFile);
- reader.removeUsageRights();
-// PdfStamper stamper = new PdfStamper(reader, new FileOutputStream("outputPDF/buttons_filled2.pdf"));
- AcroFields form = reader.getAcroFields();
-
- StringBuilder sb = new StringBuilder();
-
-
- Set<String> fields = form.getFields().keySet();
- for(String key: fields){
- System.out.println("key = " + key);
- if(form.getFieldType(key)==AcroFields.FIELD_TYPE_RADIOBUTTON){
- sb.append(key);
- sb.append(",");
- sb.append(form.getFieldRichValue(key));
- sb.append(";");
- }
- }
-// stamper.close();
- reader.close();
-
-
- return sb.toString();
-
- }
-
-
-// /**
-// * Manipulates a PDF file src with the file dest as result
-// * @param src the original PDF
-// * @param dest the resulting PDF
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public void manipulatePdf(String src, String dest) throws IOException, DocumentException {
-// PdfReader reader = new PdfReader(src);
-// PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(dest));
-// AcroFields form = stamper.getAcroFields();
-// String[] radiostates = form.getAppearanceStates("language");
-// form.setField("language", radiostates[4]);
-// for (int i = 0; i < LANGUAGES.length; i++) {
-// String[] checkboxstates = form.getAppearanceStates("English");
-// form.setField(LANGUAGES[i], checkboxstates[i % 2 == 0 ? 1 : 0]);
-// }
-// stamper.close();
-// reader.close();
-//
-// PdfReader r = new PdfReader(dest);
-// AcroFields f = r.getAcroFields();
-// Set<String> fields = form.getFields().keySet();
-// for(String key: fields){
-// if(f.getFieldType(key)==AcroFields.FIELD_TYPE_RADIOBUTTON){
-// System.out.println(key);
-// System.out.println(f.getField(key));
-//
-// }
-// }
-// r.close();
-//
-// }
-//
-// /**
-// * Main method
-// * @param args no arguments needed
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public static void main(String[] args) throws IOException, DocumentException {
-// Questionnaire buttons = new Questionnaire();
-// buttons.createPdf(RESULT1);
-// buttons.manipulatePdf(RESULT1, RESULT2);
-// }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/7a/a063f62c55ac001410e2e30aa85db9d1 b/.metadata/.plugins/org.eclipse.core.resources/.history/7a/a063f62c55ac001410e2e30aa85db9d1
deleted file mode 100644
index e957aba..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/7a/a063f62c55ac001410e2e30aa85db9d1
+++ /dev/null
@@ -1,928 +0,0 @@
-package ui;
-
-import io.ClientConnection;
-import io.CommAdapter;
-import io.Questionnaire;
-
-import java.awt.BorderLayout;
-import java.awt.Color;
-import java.awt.Component;
-import java.awt.Dimension;
-import java.awt.FlowLayout;
-import java.awt.Font;
-import java.awt.SystemColor;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.awt.event.WindowAdapter;
-import java.io.File;
-import java.io.IOException;
-import java.sql.SQLException;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.LinkedList;
-import java.util.Map;
-import java.util.Set;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
-import javax.swing.Box;
-import javax.swing.BoxLayout;
-import javax.swing.ButtonGroup;
-import javax.swing.DefaultComboBoxModel;
-import javax.swing.GroupLayout;
-import javax.swing.GroupLayout.Alignment;
-import javax.swing.ImageIcon;
-import javax.swing.JButton;
-import javax.swing.JComboBox;
-import javax.swing.JDialog;
-import javax.swing.JFileChooser;
-import javax.swing.JFrame;
-import javax.swing.JLabel;
-import javax.swing.JOptionPane;
-import javax.swing.JPanel;
-import javax.swing.JRadioButton;
-import javax.swing.JScrollPane;
-import javax.swing.JSeparator;
-import javax.swing.JTabbedPane;
-import javax.swing.JTextArea;
-import javax.swing.JTextPane;
-import javax.swing.JTree;
-import javax.swing.LayoutStyle.ComponentPlacement;
-import javax.swing.SwingConstants;
-import javax.swing.border.EmptyBorder;
-import javax.swing.border.LineBorder;
-import javax.swing.tree.DefaultMutableTreeNode;
-import javax.swing.tree.TreeModel;
-import javax.swing.tree.TreePath;
-
-import org.jpedal.examples.viewer.Commands;
-import org.jpedal.examples.viewer.Viewer;
-
-import utils.ClientProperties;
-
-import com.itextpdf.text.DocumentException;
-
-import database.DBconnectorClient;
-import framework.Diagnostic;
-import framework.MedUnit;
-import framework.Question;
-import framework.reply.ReplySurvey;
-import framework.test.TestName;
-
-/**
- *
- * @author youssef, raisaro
- */
-public class GUI extends javax.swing.JFrame {
-
- private static final Logger LOGGER = Logger.getLogger(GUI.class.getName());
-
- private static final long serialVersionUID = -4582280515597700650L;
-
- // configuration
- private ClientProperties props;
-
- private JTree jTree;
- private DBconnectorClient connectorClientDB;
- private LinkedList<Integer> patients;
-
- /** List of all relevant tests */
- private HashMap<String, TestName> testsByName;
- private Viewer viewer;
- private JDialog dialog;
- private JFrame frame;
- private boolean survey_submitted;
- private int close_trials;
- private Map<Integer, ButtonGroup> buttonGroupMap;
- private Questionnaire quest;
- private Map<Integer, Question> map;
- private Set<Integer> ids;
- private Map<String,String> answers;
- private Map<Integer, String> locations;
-
-
- /**
- * Creates new form GUI
- */
- public GUI(ClientProperties props){
-
- frame = this;
- this.props = props;
- this.connectorClientDB = new DBconnectorClient(props.getDbMsAccess());
- survey_submitted = false;
- close_trials = 0;
-
-
- try {
- initComponents();
-
- viewer = new Viewer(jScrollPane2, null);
- viewer.setupViewer();
-
- // create questionnare
-
-
- System.out.println("#of questions: " + ids.size());
-
-// viewer_q = new Viewer(jScrollPane4, null);
-// viewer_q.setupViewer();
-//
-// // specify file you wish to open (JPedal handles getting the byte data)
-// String filepathReport = "outputPDF/buttons_filled.pdf";
-//
-// // open generated PDF
-// // object must be either String in full filepath, or
-// // File object which can be relative
-// Object[] input = new Object[]{ new File(filepathReport) };
-// viewer_q.executeCommand(Commands.OPENFILE, input);
-
- JButton btnSubmitQuestionnaire = new JButton("Submit Questionnaire");
- btnSubmitQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- btnSubmitQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- submitButtonActionPerformed(arg0);
- }
- });
- JButton btnResetQuestionnaire = new JButton("Save as PDF");
- btnResetQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- savePDFButtonActionPerformed(arg0);
- }
- });
- btnResetQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- JPanel panel_button = new JPanel();
- panel_button.setLayout(new BoxLayout(panel_button, BoxLayout.X_AXIS));
-
- lblNewLabel_3 = new JLabel("");
- lblNewLabel_3.setIcon(new ImageIcon("res/location_icon.png"));
- panel_button.add(lblNewLabel_3);
-
-
-
- comboBox = new JComboBox<String>();
- comboBox.setFont(new Font("Tahoma", Font.BOLD, 12));
- comboBox.setModel(new DefaultComboBoxModel<String>(new String[] {"Select Location"}));
- for(Integer id_loc : locations.keySet()){
- comboBox.addItem(locations.get(id_loc));
- }
-
-
- panel_button.add(comboBox);
-
- rigidArea = Box.createRigidArea(new Dimension(10, 0));
- panel_button.add(rigidArea);
-
- lblNewLabel_1 = new JLabel("");
- lblNewLabel_1.setIcon(new ImageIcon("res/submit.png"));
- panel_button.add(lblNewLabel_1);
- panel_button.add(btnSubmitQuestionnaire);
-
- panel_button.add(Box.createRigidArea(new Dimension(10,0)));
-
- lblNewLabel_2 = new JLabel("");
- lblNewLabel_2.setIcon(new ImageIcon("res/pdf.png"));
- panel_button.add(lblNewLabel_2);
- panel_button.add(btnResetQuestionnaire);
- panel_button.setPreferredSize(new Dimension(211, 35));
- panel_button.validate();
-
- JPanel panel_3 = new JPanel();
- GroupLayout gl_panel = new GroupLayout(panel);
- gl_panel.setHorizontalGroup(
- gl_panel.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(63)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addGap(103)
- .addComponent(panel_button, GroupLayout.DEFAULT_SIZE, 498, Short.MAX_VALUE)
- .addGap(241))
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(41)
- .addGroup(gl_panel.createParallelGroup(Alignment.TRAILING)
- .addComponent(jScrollPane4, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE)
- .addComponent(panel_1, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE))
- .addGap(32))
- );
- gl_panel.setVerticalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(22)
- .addComponent(panel_1, GroupLayout.PREFERRED_SIZE, 235, GroupLayout.PREFERRED_SIZE)
- .addGap(37)
- .addComponent(jScrollPane4, GroupLayout.DEFAULT_SIZE, 379, Short.MAX_VALUE)
- .addGap(26)
- .addGroup(gl_panel.createParallelGroup(Alignment.LEADING)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(panel_button, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE)))
- );
- panel_3.setLayout(new BoxLayout(panel_3, BoxLayout.X_AXIS));
-
-
- panel.setLayout(gl_panel);
-
-
-
-
-
-
- /////////////////////////////////////////////////////////
- // display the tests available
-
- // get the tests
- HashMap<String, ArrayList<TestName>> testsRelevantByGroup = connectorClientDB.getRelevantTestsByGroup();
- ArrayList<String> groups = new ArrayList<String>(testsRelevantByGroup.keySet());
-
- // flatten hashmap into linkedlist
-// tests = new LinkedList<>();
- testsByName = new HashMap<String, TestName>();
- for (String group : groups) {
-// tests.addAll(testsRelevantByGroup.get(group));
- for (TestName test : testsRelevantByGroup.get(group)) {
- testsByName.put(test.getName(), test);
- }
- }
-
- // define tree structure of the tests
- DefaultMutableTreeNode root = new DefaultMutableTreeNode("All");
-
- for (String group : groups) {
- DefaultMutableTreeNode child = new DefaultMutableTreeNode(group);
- root.add(child);
-
- for (TestName test : testsRelevantByGroup.get(group)) {
- DefaultMutableTreeNode grandChild = new DefaultMutableTreeNode(test.getName());
- child.add(grandChild);
- }
- }
-
- // define swing object
- jTree = new JTree(root);
-
- for(int i=0;i<jTree.getRowCount();i++){
- jTree.expandRow(i);
- }
-
- jScrollPane3.setViewportView(jTree);
-// jTree.addTreeSelectionListener(new TreeSelectionListener() {
-//
-// @Override
-// public void valueChanged(TreeSelectionEvent e) {
-// tp = jTree.getSelectionPaths();
-// }
-// });
- jScrollPane3.setViewportView(jTree);
-
- /////////////////////////////////////////////////////////
- // display the patients registered
-
- patients = connectorClientDB.getPatients();
- for (Integer patientId : patients) {
- jComboBox1.addItem(patientId.toString());
- }
-
- } catch (SQLException ex) {
- Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex);
- ex.printStackTrace();
-// } catch (IOException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
-// } catch (DocumentException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
- }
-
- }
-
- /**
- * 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() {
-
- jPanel1 = new javax.swing.JPanel();
- jLabel2 = new javax.swing.JLabel();
- jLabel1 = new javax.swing.JLabel();
- jPanel2 = new javax.swing.JPanel();
- jComboBox1 = new javax.swing.JComboBox<String>();
- jButton1 = new javax.swing.JButton();
- jButton1.setFont(new Font("Tahoma", Font.BOLD, 12));
- jLabel3 = new javax.swing.JLabel();
- jLabel4 = new javax.swing.JLabel();
- jScrollPane3 = new javax.swing.JScrollPane();
- jScrollPane2 = new javax.swing.JScrollPane();
- jMenuBar1 = new javax.swing.JMenuBar();
- jMenu1 = new javax.swing.JMenu();
- jMenuItem1 = new javax.swing.JMenuItem();
- jMenu2 = new javax.swing.JMenu();
- dialog = new JDialog();
- tabbedPane = new JTabbedPane(JTabbedPane.TOP);
-
- setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
- addWindowListener(new WindowAdapter() {
- @Override
- public void windowClosing(java.awt.event.WindowEvent windowEvent) {
- if (!survey_submitted && close_trials <= 2){
- JOptionPane.showMessageDialog(frame, "Before closing the application, please fill in and submit the questionnaire.");
- close_trials++;
- tabbedPane.setSelectedIndex(1);
- }else{
- System.exit(0);
- }
- }
- });
- setTitle("HIV Pharmacogenomics\n");
-
- jLabel2.setIcon(new javax.swing.ImageIcon("res/shcs_logo2_small.gif")); // NOI18N
-
- jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
- jLabel1.setText("HIV Pharmacogenomics | Project #693");
-
- javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
- jPanel1.setLayout(jPanel1Layout);
- jPanel1Layout.setHorizontalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap(71, Short.MAX_VALUE)
- .addComponent(jLabel1)
- .addGap(18, 18, 18)
- .addComponent(jLabel2))
- );
- jPanel1Layout.setVerticalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jLabel1)
- .addGap(11, 11, 11))
- .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)
- );
-
- jPanel2.setBackground(new java.awt.Color(255, 255, 255));
- jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
-
- jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<String>(new String[]{"Select Patient"}));
-
- jButton1.setText("Run Test");
- jButton1.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton1ActionPerformed(evt);
- }
- });
-
- JLabel lblNewLabel = new JLabel("");
- lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
- lblNewLabel.setIcon(new javax.swing.ImageIcon("res/gears.png"));
-
-
-
- javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
- jPanel2Layout.setHorizontalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addComponent(jComboBox1, 0, 248, Short.MAX_VALUE)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addGap(75)
- .addGroup(jPanel2Layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jButton1)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 75, GroupLayout.PREFERRED_SIZE))
- .addContainerGap(98, Short.MAX_VALUE))
- );
- jPanel2Layout.setVerticalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addComponent(jComboBox1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED, 223, Short.MAX_VALUE)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jButton1)
- .addGap(19))
- );
- jPanel2.setLayout(jPanel2Layout);
-
- jLabel3.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel3.setText("Select Patient");
-
- jLabel4.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel4.setText("Select Test");
-
- jScrollPane3.setBackground(new java.awt.Color(255, 255, 255));
-
- jMenu1.setText("File");
-
- jMenuItem1.setText("Exit");
- jMenu1.add(jMenuItem1);
-
- jMenuBar1.add(jMenu1);
-
- jMenu2.setText("Edit");
- jMenuBar1.add(jMenu2);
-
- setJMenuBar(jMenuBar1);
-
-
-
- javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
- layout.setHorizontalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(layout.createParallelGroup(Alignment.LEADING, false)
- .addComponent(jLabel3)
- .addComponent(jLabel4)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, 244, Short.MAX_VALUE)
- .addComponent(jScrollPane3))
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 970, Short.MAX_VALUE))
- .addContainerGap())
- );
- layout.setVerticalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel4))
- .addPreferredGap(ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addComponent(jScrollPane3, GroupLayout.PREFERRED_SIZE, 388, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jLabel3)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 785, Short.MAX_VALUE))
- .addContainerGap())
- );
-
-
- jScrollPane2.setAutoscrolls(true);
- jScrollPane3.setAutoscrolls(true);
- tabbedPane.addTab("Report", new ImageIcon("res/report_icon.gif"), jScrollPane2, null);
- tabbedPane.setBackgroundAt(0, new Color(255, 255, 255));
-
- panel = new JPanel();
- tabbedPane.addTab("Survey", new ImageIcon("res/survey_icon.png"), panel, null);
- tabbedPane.setBackgroundAt(1, new Color(255, 255, 255));
- tabbedPane.setEnabledAt(1, true);
-
- panel_1 = new JPanel();
- panel_1.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
- panel_1.setBackground(SystemColor.control);
-
- JLabel label = new JLabel("");
- label.setIcon(new ImageIcon("res/shcs_logo2_medium.gif"));
-
- lblDearDoctor = new JLabel("Dear Doctor,");
- lblDearDoctor.setFont(new Font("Tahoma", Font.BOLD, 14));
-
- JScrollPane scrollPane = new JScrollPane();
- scrollPane.setBorder(null);
- GroupLayout gl_panel_1 = new GroupLayout(panel_1);
- gl_panel_1.setHorizontalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(Alignment.LEADING, gl_panel_1.createSequentialGroup()
- .addGap(25)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addComponent(lblDearDoctor)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 661, Short.MAX_VALUE))
- .addContainerGap())
- );
- gl_panel_1.setVerticalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addContainerGap()
- .addComponent(lblDearDoctor)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 203, Short.MAX_VALUE))
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(36)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 96, GroupLayout.PREFERRED_SIZE)))
- .addContainerGap())
- );
-
- JTextPane txtpnTodayYouAre = new JTextPane();
- txtpnTodayYouAre.setBorder(null);
- txtpnTodayYouAre.setText("Today you are receiving a pharmacogenetics report based on the genome of your patient. Because of its highly sensitive nature, " +
- "the genetic information you are provided with is processed in a privacy-preserving way. In particular, to protect patients’ genomic privacy, " +
- "their genetic and clinical data is stored encrypted at the SHCS data center, and securely analyzed through a sophisticated algorithm designed and developed at EPFL [1, 2]. " +
- "The actual clinical and genetic information is never revealed. Only the authorized users, such as you, can get some processed information, for example, the final result of a " +
- "pharmacogenetics risk test.\nThis mechanism protects the data against insiders or hackers trying to illegally access patients’ medical information, while still allowing authorized " +
- "users to obtain the information they need." +
- "\n\nTo help us understanding the importance of genomic privacy in the medical domain, and the impact of privacy-enhancing technologies in daily clinical practice, please complete the following survey.");
- txtpnTodayYouAre.setFont(new Font("Tahoma", Font.PLAIN, 13));
- txtpnTodayYouAre.setEditable(false);
- txtpnTodayYouAre.setBackground(SystemColor.control);
- scrollPane.setViewportView(txtpnTodayYouAre);
- panel_1.setLayout(gl_panel_1);
- jScrollPane4 = new javax.swing.JScrollPane();
- jScrollPane4.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
- getContentPane().setLayout(layout);
-
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
- ReplySurvey replySurvey = commHandlerAdapter.callServiceSurvey();
-
- map = replySurvey.getQuestions();
- ids = map.keySet();
- locations = replySurvey.getLocations();
-
- panel_2 = new JPanel();
- panel_2.setBackground(Color.WHITE);
- panel_2.setBorder(null);
- jScrollPane4.setViewportView(panel_2);
- panel_2.setLayout(new BoxLayout(panel_2, BoxLayout.Y_AXIS));
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
-
- int type = 0;
- for(Integer id : ids){
- ButtonGroup group = new ButtonGroup();
- JRadioButton r1 = new JRadioButton("1"); r1.setActionCommand("1"); r1.setBackground(Color.WHITE);
- JRadioButton r2 = new JRadioButton("2"); r2.setActionCommand("2"); r2.setBackground(Color.WHITE);
- JRadioButton r3 = new JRadioButton("3"); r3.setActionCommand("3"); r3.setBackground(Color.WHITE);
- JRadioButton r4 = new JRadioButton("4"); r4.setActionCommand("4"); r4.setBackground(Color.WHITE);
- JRadioButton r5 = new JRadioButton("5"); r5.setActionCommand("5"); r5.setBackground(Color.WHITE);
- group.add(r1);
- group.add(r2);
- group.add(r3);
- group.add(r4);
- group.add(r5);
- JPanel radio_panel = new JPanel();
- radio_panel.setLayout((new BoxLayout(radio_panel, BoxLayout.X_AXIS)));
- radio_panel.setBackground(Color.WHITE);
- radio_panel.setAlignmentX(Component.CENTER_ALIGNMENT);
- radio_panel.add(r1);
- radio_panel.add(r2);
- radio_panel.add(r3);
- radio_panel.add(r4);
- radio_panel.add(r5);
- radio_panel.doLayout();
- radio_panel.setPreferredSize(radio_panel.getPreferredSize());
- JTextArea question = new JTextArea(id + ") " + map.get(id).getQuestion());
- question.setEditable(false);
- question.setLineWrap(true);
- question.setWrapStyleWord(true);
-
-
- JPanel row_panel = new JPanel();
- row_panel.setLayout(new BoxLayout(row_panel, BoxLayout.X_AXIS));
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.add(question);
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.add(radio_panel);
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.setBackground(Color.WHITE);
-
- int type_new = map.get(id).getType();
-
- if(type_new != type){
- type = type_new;
- JLabel question_group = new JLabel();
- switch(type){
- case 1:
- question_group.setText("Clinical Utility");
- break;
- case 2:
- question_group.setText("Privacy Concerns");
- break;
- case 3:
- question_group.setText("Usability Assessment");
- break;
- }
- question_group.setAlignmentX(Component.CENTER_ALIGNMENT);
- question_group.setFont(new Font("Tahoma", Font.BOLD, 13));
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- panel_2.add(question_group);
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
-// panel_2.add(radio_panel);
- panel_2.add(new JSeparator());
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- }
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- panel_2.add(row_panel);
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
-// panel_2.add(radio_panel);
- panel_2.add(new JSeparator());
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
-// panel_2.setPreferredSize(panel_2.getPreferredSize());
- buttonGroupMap.put(id, group);
-
- }
-
-
-
- this.setSize(new Dimension(1300, 865));
-// pack();
- }// </editor-fold>//GEN-END:initComponents
-
-
- private void submitButtonActionPerformed(java.awt.event.ActionEvent evt){
-
- try{
- answers = new HashMap<String, String>();
- StringBuilder sb = new StringBuilder();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- sb.append(q).append(",");
- sb.append(bg.getSelection().getActionCommand()).append(";");
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- String answer = sb.toString();
- Integer id_loc = null;
- for(Integer i: locations.keySet()){
- if(locations.get(i).equals(comboBox.getSelectedItem().toString()))
- id_loc = i;
- }
-
- String id_p;
- if(jComboBox1.getSelectedItem().toString().equals("Select Patient"))
- id_p = "0";
- else
- id_p = jComboBox1.getSelectedItem().toString();
-
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
-
- String reply = commHandlerAdapter.callServiceSurveyAnswer(answer, id_loc.toString(), id_p);
-
- if(reply.equals("1")){
- survey_submitted = true;
-
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Congrats! Your aswers have been sent to the SHCS datacenter.",
- "Information Message",
- JOptionPane.INFORMATION_MESSAGE);
- }
- else{
- throw new IOException();
- }
-
-
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "The SHCS datacenter does not respond. Please save the survey and send it to jean.raisaro@epfl.ch.",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
- private void savePDFButtonActionPerformed(java.awt.event.ActionEvent evt){
- try {
-
- answers = new HashMap<String, String>();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- JFileChooser chooser = new JFileChooser();
- // Note: source for ExampleFileFilter can be found in FileChooserDemo,
- // under the demo/jfc directory in the JDK.
-
- int returnVal = chooser.showSaveDialog(this);
- System.out.println(returnVal);
- if(returnVal == JFileChooser.APPROVE_OPTION) {
- System.out.println("You chose to open this file: " +
- chooser.getSelectedFile().getPath());
- quest = new Questionnaire(chooser.getSelectedFile().getPath() + ".pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }else{
- quest = new Questionnaire("outputPDF/survey.pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }
-
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (DocumentException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (NullPointerException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
-
- private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
-
- JPanel contentPanel = new JPanel();
-
- dialog.setBounds(100, 100, 410, 80);
- dialog.getContentPane().setLayout(new BorderLayout());
- contentPanel.setLayout(new FlowLayout());
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- dialog.getContentPane().add(contentPanel, BorderLayout.CENTER);
- {
- JLabel label = new JLabel("Please wait...The overall computation can take few seconds");
- label.setHorizontalAlignment(SwingConstants.CENTER);
- label.setFont(new Font("Tahoma", Font.PLAIN, 12));
- contentPanel.add(label);
- }
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
- dialog.getContentPane().add(buttonPane, BorderLayout.SOUTH);
- }
- dialog.setLocationRelativeTo(this);
- dialog.setVisible(true);
-
- GUIWorker gw = new GUIWorker(this, props);
- Thread t = new Thread(gw);
- t.start();
-
- }
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JButton jButton1;
- private javax.swing.JComboBox<String> jComboBox1;
- private javax.swing.JLabel jLabel1;
- private javax.swing.JLabel jLabel2;
- private javax.swing.JLabel jLabel3;
- private javax.swing.JLabel jLabel4;
- private javax.swing.JMenu jMenu1;
- private javax.swing.JMenu jMenu2;
- private javax.swing.JMenuBar jMenuBar1;
- private javax.swing.JMenuItem jMenuItem1;
- private javax.swing.JPanel jPanel1;
- private javax.swing.JPanel jPanel2;
- private javax.swing.JScrollPane jScrollPane3;
- private javax.swing.JTabbedPane tabbedPane;
- private javax.swing.JScrollPane jScrollPane2;
- private javax.swing.JScrollPane jScrollPane4;
- private JPanel panel;
- private JPanel panel_1;
- private JPanel panel_2;
- private JLabel lblDearDoctor;
- private JLabel lblNewLabel_1;
- private JLabel lblNewLabel_2;
- private JLabel lblNewLabel_3;
- private JComboBox<String> comboBox;
- private Component rigidArea;
-
- // End of variables declaration//GEN-END:variables
-
-
- class GUIWorker implements Runnable{
-
- private JFrame mainFrame;
- private ClientProperties props;
- private MedUnit mu;
-
- public GUIWorker(GUI gui, ClientProperties props) {
- mainFrame = gui;
-
- this.props = props;
- this.mu = new MedUnit(props, 0);
- }
-
- @Override
- public void run() {
-
- try{
- int patientId = Integer.parseInt((String) jComboBox1.getSelectedItem());
-
- // convert selected tests to test identifiers
- ArrayList<TestName> selectedTests = new ArrayList<TestName>();
- for (String currentName : getSelectedTests()) {
- TestName currentTest = testsByName.get(currentName);
-
- if (currentTest == null) {
- throw new IllegalStateException("Trying to run unknown test: " + currentTest);
- }
-
- selectedTests.add(currentTest);
- }
-
- // run tests
- Diagnostic diagnostic = mu.runTests(patientId, selectedTests);
-
- // warn for tests with missing material
- warnFailedTests(diagnostic, selectedTests);
-
- // create report
- mu.createReport(patientId, selectedTests, diagnostic);
-
- dialog.setVisible(false);
-
- // specify file you wish to open (JPedal handles getting the byte data)
- String filepathReport = props.getPathPDF() + patientId + ".pdf";
-
- // open generated PDF
- // object must be either String in full filepath, or
- // File object which can be relative
- Object[] input = new Object[]{ new File(filepathReport) };
- viewer.executeCommand(Commands.OPENFILE, input);
-
- // display CAD result as bar plot
- if (diagnostic.hasCAD()) {
- System.out.println("CAD = " + diagnostic.getResultCAD());
- BarPlotFrame frame = new BarPlotFrame(diagnostic.getResultCAD(), patientId);
- frame.setVisible(true);
- frame.setAlwaysOnTop(true);
- }
-
-
- } catch (SQLException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Please select a patient.");
- }
-
- }
-
- private void warnFailedTests(Diagnostic diagnostic, ArrayList<TestName> selectedTests) {
- ArrayList<Integer> failedTests = diagnostic.getInvalidTests();
-
- if (!failedTests.isEmpty()) {
- String msg = "Could not complete tests: ";
- boolean first = true;
- for (TestName testName : selectedTests) {
- if (failedTests.contains(testName.getId())) {
- if (first) {
- first = false;
- } else {
- msg += ", ";
- }
- msg += testName.getName();
- }
- }
- displayError(msg);
- }
-
- }
-
- private void displayError(String msg) {
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- mainFrame,
- msg,
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
-
- private ArrayList<String> getSelectedTests() {
- ArrayList<String> tests = new ArrayList<String>();
-
- for (TreePath treePath : jTree.getSelectionPaths()) {
- tests.addAll(getChildrenTests(jTree.getModel(), treePath.getLastPathComponent()));
- }
-
- return tests;
- }
-
- private ArrayList<String> getChildrenTests(TreeModel model, Object node) {
- ArrayList<String> tests = new ArrayList<String>();
-
- if (model.isLeaf(node)) { // leaf
- DefaultMutableTreeNode leaf = (DefaultMutableTreeNode) node;
- tests.add(leaf.toString());
- }
- else { // iterate over children
- for (int i = 0; i < model.getChildCount(node); i++) {
- tests.addAll(getChildrenTests(model, model.getChild(node, i)));
- }
- }
-
- return tests;
- }
-
- }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/7d/00b5d66a4eac001410e2e30aa85db9d1 b/.metadata/.plugins/org.eclipse.core.resources/.history/7d/00b5d66a4eac001410e2e30aa85db9d1
deleted file mode 100644
index b678e52..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/7d/00b5d66a4eac001410e2e30aa85db9d1
+++ /dev/null
@@ -1,71 +0,0 @@
-package io;
-
-import io.serializer.url.URLParserDecrypt;
-import io.serializer.url.URLParserMaterial;
-import io.serializer.xml.XMLParserDecrypt;
-import io.serializer.xml.XMLParserMaterial;
-import io.serializer.xml.XMLParserSurvey;
-
-import java.util.logging.Logger;
-
-import framework.Type;
-import framework.reply.ReplyDecryption;
-import framework.reply.ReplyMaterial;
-import framework.reply.ReplySurvey;
-import framework.request.RequestDecryption;
-import framework.request.RequestMaterial;
-
-public class CommAdapter {
-
- @SuppressWarnings("unused")
- private static final Logger LOGGER = Logger.getLogger(CommAdapter.class.getName());
-
- public ClientConnection connectSPU = null;
-
- public CommAdapter(ClientConnection connectSPU) {
- this.connectSPU = connectSPU;
- }
-
- public ReplyDecryption callServiceDecrypt(RequestDecryption rqtDecrypt) {
- String requestString = URLParserDecrypt.requestToString(rqtDecrypt);
-// String replyString = "<awr_decrypt><patient>30351</patient><v_timestamp>1417188729390</v_timestamp><decrypt_val>,,,,,,,,,,,,,,,,2,AwHR3OO0/hkwgEHluLDFLtn4aaTBAwBEJjJpMegGa29ASgtyt1ha2OOyxvEvNgkIaY0xWXtTmqrqhSBKDG6J7Lps0g==,AwE/oifhonvUZDA4mqRK8K1WCkoepEuL9SidjdFXMNNZQXCMUvVN6pBUYVFgJeFX6mT2jruK8ic3y6yI14PfKl/Pvg==,AgBHs6HGF9AYNc5RlFTGv025WEaT91i/MPy+HXqhvHOrp0Ol9/aKyvv2BgAzeAdsdSEbVs2sahiyL/kbKjeUoI9tsA==,,,,,,,,,,,,,2,AgHIofEmf4aJMLBnKAY3/8WcLXUETF4y/68fzZR6hsS5btZTyI0E4ZTltDzV6hBzIT14cC4S/BMclo1aoLt5C9f+Cg==,AgDOXZAZAwO4KXslqU1wKctrVlH8CcGvpO8gGrPl3YjrY8SR3a6gStvZvjcUKXhvtDkRwSLAIkD3lFrKSXWestHSqQ==,AgG7Y5so9ZTRng2Xm3ziWx3+7zfaVLkIJ2v7g+qEUx5Vl2/udDOcg/was8W6qbKYeo/W0EGTlNXKTOdIatGVxyuoZA==,,,,,2,AgDAVy0/nE6X4iAengG9lCiYEBMtK6rAAiy7OwC7U/QSbokiEzH0RafH7rb+5L5R/ii9/3kZCcKmgOIoPzkmeloDfg==,AgHuvmLAeIFYm4ObEBO2v9xTK6tjYfdh+x4kwULBpDNlUiW4kNNaeoeziRA7nlRvcSfxPlR070N/3qzBMu3EKZ2csQ==,AgDk/CzCL4XUobuNaLsvrH5s0COMKYBqY/18YRR0d7mIsVVYrKVGF+IWnEluhbLt+BoRBdvL5UElgroyORJpiKz06w==,,,,,2,AgH0nW+2h+vcOZgPe3uR7jEHmEPi+g4izQ3OIU9An2vekwbG1liBFgTo33pEhyXhNWPhGCbSb73sJ7pt0JLL+hhWMw==,AgHG039OnpvmllkV6QBsmoMdqISrRuW2q5M3jfUp5TUbU6F/3S2FK1iSVKWgTsI291re6lz6KH5d8rWrnoCAozhIeg==,AwGjmnLUMd42F7a/tsSkeqcxoHMAXNKdvF4kOXoAxmc6ZSxaUhzkGkcgNOO8SFNiWqTKgtZCffJ7hfI0voAUX0TD1w==,,,,,2,AwHfYRjQFscHzOvVozackTaM3sybOjyd2aLc4B+WQ7KiWHoGKkzQScoDiy8hiA2cJpv8ngfitTqJRLlyegvuM+Ietw==,AwAP92OqrJFpFmdrMUUx6FeFhwVLYtAsfw3sem2RYu7ljPry+uJnvluuzTvVaFhs8BAAD8VBFs1vqrSHyQEq8Ocsmw==,AwDNXg/JA4QXA6wu30DUE7peOk1a10aHbd38iwjN1Q0DKy3BqS36+EQKg5hbwELxN2+/Yu4UA1IKWYJI0zNs6TJUtA==,,,,,2,AwBWFv3ivyQz4CGIilJ7CVtpQGOs1tnIW+0uxQyiWIO3HDjJtfxPyQ1AJWPsBQ9eYmaoKmPnN+euPCm7bP0LxBL/Tg==,AwHg7AZb5DV5OJrl0omtKx2OqckXcQEUT8pZ+Bmo9AyULgL5HOq2AVU04qhvbdy0W4OMYqxF3uBwqT6dNhFptsKEKQ==,AwG9dyMbI5EI8UCXuj5JkQRMimcT1u6zCBAfmRvANtT54yDtC8KS6VeOr7h/NP4qrf/mbl5tMaePbkkHrc6E39ntsA==,,,,,2,AwHkMyCOJm/RlYOybGhX3DchR/wSN2L3PuXKalMszgk3WOCiWSpYlP3SOPLWvJTRQaTxoN+oA5IkCTvlp02+Mduaxg==,AgHhR8HjavXjnsy+rHptc/JSI5pLFjM0RczUygxTX7vqV/yqwZ280Rq7YpXKp2GBfiZvFf0qIQoWe4vx5DBxwvHkdA==,AwEf2yisEpflVm8R2X08SCJM89apu7tUFzbpndsTIt5o9/xdoXKomMUk9REz+yrpkd+jFhlkJMQHHVMhgjiWYCEdpQ==,,,,,2,AwBaIc8ZWFm4O9QO0ofJeS9Q7tki7CAscBXRDnajEp7rmKNgrpRyyu1ezSpborwaloWR9kDKPLdYVV8SNk2V/1EudA==,AwGE8MPAnPKKXF15EyrAx1bRinwgoqYVO4Junz5IXQjGLyQpSr5NwO/hqu5E5egHte20jm380Wn2Qy6GgKNiRLy/gQ==,AwCAOjOQNdMN5uIB0POFzYS/fpxZ0Q5KfhlP5fijNmc/daO5frSrwhgcMH5lMKL4EGjBI1p6JMe3fuMqb5t1ImeTBg==,,,,,2,AgARSg2izcK6iZLFe4YkIS6yZgnt8cd9DFqpQ37gNmcccZwBI+mpsaijTUPo1GT+QUD8zC+6qr/GrzG9q+q7BPxpVw==,AwGM/jFdtoNViQXxgqeL27ZKobjsfyeuXrx8re3UfIe3c4XN16srSpcTfxEZNXDKo1Ff9fRvDVBOwdS6XU2nvo++ng==,AwAtK0eOqcVfzkdJIIkk7BORWwSDTAjtx4aEXwyZ0bla+2rIWDgXi3U5xlgnjeXJNtGsLokkvvX92BOBIw9SuCGhnw==,2,AgCWAAWTW+7jv2a2lc4pGFnumEgyH59wSDRXEYUASCVB249JBmeKFWRKNFTQlph5hTR5Rb+YHFP/qvzmwU11Hs2b0w==,AgANdxpkN+DS4De3aokNjt+e/Ou8GT+p8pUJA+6LHrDBXAddoCR8KpeXW7mESokq6BTEVQXxU3TdqavRkqaeFmpXkw==,AgDDDSEO3e8DCsm1n6dbj2PB9Z/tUzluDCt/utdSLrYFfdFY+Y5K7Vxo9F5/17CzaUbX172SGLt8TfCfuYBrtupgAg==,2,AgB1OG6bj+6kfRvLj8yjMQbl80FdZHZrRVRUfNVRwvjvvbRa5f9s9fNZ8J0a3s3hH+RyfZmGJ4Ufjh5mMiQkwiur6w==,AwBX4GFZNjUdtRdwtWgxyQz7h8Hk0ztaZeM8/e+8ll0o+RjYN+CNP8+lnXEw7wpuC4wcMX05mrjPvHOuy0hOFVNkhQ==,AgDf3el4vbMYIAFEH9WV151/uzl+gkfTQ79T8Iu4KxEVo6UJvCfqkjETlR6aXUJiqaCbSV5odMT50lURsmfgALf6AQ==,,,,,2,AgENmnviZkgQWXZ5QDgCCE2zq0IiXURTqK2UNPtEg3o64yjlrQQUd2rO/KgKolyCQcKYTVoMj7k2VeCSSVRr8KGC7w==,AwFv6ZJzhpV/Ms00QkrkNiCKVRFczn/yqnkiBFUHC1RQv3tqzzYSEUeXmDHmm0/kEBtnfgRWjHQm9zxS8Jzy7srDLQ==,AwB8aS5KA1dFLKCA1a/7Wsjhef+6kkNAB/GO9AOvRZbFW/dhl5fx04Alh+g78fwcVMX+eEIEJgSyH0jhv7kmiQh4ew==,,,,,2,AgG8fXrCra6UgP5G89TaE6PH5E0TANb/PJPbKwzdi78XEHRUmcTz6PIhYtclTmcdq5TH0IwQv+ra5ppf4qR4LtkGig==,AgEKzsmZrikmXzJywMpzkAdG9hAPlOiRY9oXKf4Sh50CL8btUItjfVJWg3ubNhotzJK+fnNlRrcMkWQEBD/aGKpf8A==,AwFi+2cGpuvVdR+pT1P9Ur8jAkzmjJK2XmUQbFpyMi5Jc9a5/fPnBWCxmTX8CH5wks0PicYC6rzZC3NEIt0EoM1Qfg==,,,,,2,AgHbTZgTAv8lLBsoX06Hkm9XPU+crlRqKl0xL8v18xeUUPY1YAvUYf2OAutmTtPRycXyzrDWSpn2h5xfk/dtq/BICg==,AwAjPydfoUhfSVFKWNI4Ox4a/psZGDIGzEEWh9HyVtAmjdNb5ctr/S6z+akiRfPlNCsVf6TdkzJ2Su6BO4sOX/SHKA==,AwBVmjn7AitCe4zQ/Fl0sYW2XqXkJxJBDviwl9jYhoq29v90n9escDsiA3Cy+1uW69MezdZBEszFdEWlX0EzbQZQ6A==,,,,,2,AwCG0RBHwHuame/1G7qtUjmwz0gkCP1tyZiEgm7aTKpsCjt7UsMirMmx/ZrNlvSzkGuVbRO97Szzr+9fo4baH1rEZA==,AwHyMK/q8FUUvoHTt7O7KJUxYz/ZHF6SntbmKfbygLVw4HWc/eFic4DXHKbEGWvrMO5b37GksqxfQHc2xlAuj8ZRIw==,AgB5x0BxqiMYxRvzlq0+/RkbOuNA7hYuMG+7D6wlMOxSskgqyfwA0MfW+AkXFqnqfqsoJRpDy15bABWhH6MIdJsPEA==,,,,,2,AwAS/nCH0pcrsllSy2duadUs1rMtL6vtz7VTUAVhn1/YYlZ068ysBi1Mdz9gJFewdyeGLnFhyg+W15rFB317nyeGHg==,AwBh6f5UVRMM5ekWqkrx6XiVOK/BL0TinjsSLna8BjkQPXU2DvGxiKPhA03/GtBdEpihEX4bVaHQhiOupTf7wh6bCQ==,AgGPDFH8Kv8hz2aUJ955nHu8NiAoTmDjqhlXuJ1T83h+O0sc2GieLhmXmpEjxjEAyxkqjb2nFxvDhi+YGs4MqI4S5A==,,,,,2,AwDqwFv6bqpM/6PTCJ/wgRALYVT+Rn54HIB2icP6ODNexaoqILBS9p1k1QENbQsBZ9LmJJwngRQXi07Q4P8br76Qfw==,AgG8yTiO8tFWZqQELBr+Zt1fKKA3bl08836nUEEpD55Sid0ZywCrWe+Va58xbMIWscISLPbBvXIdO48ZgoHsLgA7Jw==,AwCI1Ud0GJLnS86mSC58HNB91lH9kPpQbufGn+WJErGxAQubtSFBc3rnT0SNE3CbW+1MPjYBbdCgxpHjN/iQf96++w==,,,,;2,AgB9YhljgPngkwwYTBMUaMGR+rWMjvlK0tgrzkG8OT9NGNJfaaLP6AzfhWrT5oe9NRnabU25pQvDhAIGZCajDy8N2g==,AwE5Irce6LOSxfLgn4PZh1PeDPjAHb5wPTNfmQoWFY83dNQLYN44FupJaQRRUqBqyGNB0SL76GKzr8G9tKLAHOxRSQ==,BAG5iWHEhlWkvtyAlQy4bwKa1iNRzJq8WJTh2GE9oT4DeJRmO1pCHy9P+9YktDT+4RgV9s8AzOYih1LmHW14uP27HQGg1nTdHyab9/nFUe9BFxIi8xQTPG8et9++5I+gKIeWGCXBL31sBhpaMewvVhDjl2d3+7H2PUv9IY3lyIRFA6N16A==,2,AwAPIoQJqSbXFKXQAIG9J+/+/41NLX0rDINImk4eBgAnZ4V0R8YSqkHD3nd0IrEMyK7OpkCXkxTzOlwJlfEfti+vew==,AwAQ8KdMYsEOqM3eyGv/XbHnGf+TqCAG39Gz/juBcioOOJmLOFjl6oCITozJOyPusbTRXZ4eIwgQYkl12mt6saTpgQ==,BACkTO+3rRUF81w5yzZskFiIRyVxc6sdJfDFX6C+Jy5A+s/sfHskrFx2GYNklZaYztP0/B64a6v6HvFWVz8GuYj2wgHhiCL+QwLThFpaRxh8kUMSrt4VuXSIjtHwRXzhSdEbG2T6C/+CJZxIFh/ugEV9SS51l1HrLdnJDb2Kdu3QC3lRkQ==;2,AgC99VyiRLJ2kFf3oCkb+JPVV7B4tXVGI2NVT7fdKtB+gEjCcdkbS5YEXm/Sq6NAJEOKilMTFUDLYFDOe+7JHj/4pw==,AgAbT080sbKVHH9lim3tVCYS4cMz+rLownRKqtYZ7AfR8qy819R1GFywQ0kImgcdjEey5C4m0OPTwgtkO+C5uWtKfQ==,BADKYt9i0zTJeh3H8t6d8pZdncz3f28v1oWrssLZwAutkIcF3XKkPNmK3X75K3sImUSch//IIRIB1Yi5/MrZZeDrxQHhQZEg6AA8bDxgt0JdOEX2t4crzDu3gW5I8y+Ya0fZr1RmxvfMr2UxRhSsNsz949v/g+GPfsrEfDqIWTiNlJfwyg==,2,AgEPMjgCfgGRaZ/5I1hLqDoJ8nXYeTlnt9YeK4K8w+HnRAoAD09zkPcLMWajIjupe/CUFrHz00sAvs+vOPeKxGrLiQ==,AgDy7g2DcDwmIW7LtTTteHExD/cyP4BMWimEAM1RfAd/Y6P8XkmRGgglfdLJ7RGTR2YIMB1lxQ/LQUbmzyjTiiuWow==,BAHJ7oHVr/0wweyGlg4f9Dqmx8h0m35jMdrEFwVY8l/ENKpOTxG/oh9vAvo1uw39wUOn4CWGBmAFE2lsvWFW18gt+gHPFt5/9ihUFN9mtxFLT1Q3W4Uf8IdekHPMbNlxEp1wId7EH3XsAox3Eo8b3XnYpwfsAXoDwQa2wyiO5h104Ptvsg==;2,AwClCMGcHdd7rD8sYDC/GXyAtLmZ/JI4v+aOK4PXzjWJi/zvcsXT5dJUOm9bW6AAtzgOKPd0WwU3hSytJ+ATy146Uw==,AgADzN6ysOIC9GAuMF9suYNfkR027H/9OcpeVJb4HRHfZ/EOmQWSdJmJFw3F/NLUrreNnFCvuF1+1bbmHa3tvznjeA==,BADwaRJF9z3DW7HE3qhGu6Yd9d2WBfWy8opd7Mhkg7TpAQsn9oA3UcpCarn4DMSnVGG94Y3Pxsj5vlm5G7GMKiGoxAERnETH6pVgBxhtrnBU6l4vHl+X4rd8I/zheZiG0EFKJza41rmwKHTY4+42PJ8/3Y2rCanbY1RSAJEgiZR89k6nGg==,2,AgCK80PhKSC23aVKQ8uYm+79GWZiwpbV5lc8Fzcpwu8hdKGAMH4f62Y//cmrQmCIltm03PTVPMn6rMwkfoz+9M2LDQ==,AgH5aXThIKUjENFTGCGwcTRql7xIe8vR9h78KikTYkD8itQ+YBDrnx5OaNyWRjpIJHAZ2B61W2aVjZ5Rmo0d1B1Pcw==,BAAEZsEKw59QSRxN1QmWcx4X2LaK4+zBuawh+2CIRPljWyxK6XhIM6EEalr44Klce4OTK2QbxT5n3Kjnh5jNuwCOawAH/wiNrx09+HY8SZrRjCjv1+Lnicybrqg/IFDNoAGT5aguaGRIMmGOLe0QFJr0T0iW3RnYGlmSd/r6ex8+MpOgLw==</decrypt_val></awr_decrypt>";
- String replyString = connectSPU.sendReceive(Type.DECRYPT, requestString);
- System.out.println("REQUEST URL: " + requestString);
- System.out.println("REPLY: " + replyString);
- ReplyDecryption reply = (new XMLParserDecrypt()).stringToReply(replyString);
- return reply;
- }
-
- public ReplyMaterial callServiceMaterial(RequestMaterial rqtMaterial) {
- String requestString = URLParserMaterial.requestToString(rqtMaterial);
- String replyString = connectSPU.sendReceive(Type.MATERIAL, requestString);
-
- System.out.println("Material request:");
- System.out.println(replyString);
-
- ReplyMaterial reply = (new XMLParserMaterial()).stringToReply(replyString);
- return reply;
- }
-
- public ReplySurvey callServiceSurvey(){
-
-// String replyString = connectSPU.sendReceive(Type.SURVEY_Q,"");
- //4::What's your name?::1;5::Where are you from?::2;6::How old are you?::3;7::What's your name?::1;8::Where are you from?::2;9::How old are you?::3;10::What's your name?::1;11::Where are you from?::2;12::How old are you?::3;13::What's your name?::1;14::Where are you from?::2;15::How old are you?::3
- String replyString ="<awr_survey><v_questions>1::What's your name?::1;2::Where are you from?::2;3::How old are you?::3;4::A hacker or a disgruntled employee steals from a hospital database the unprotected genome of a known personality. He finds out this person's ethnicity and predisposition to diseases. As a result, he sells this information to tabloids and newspapers. Theft of unprotected medical data is an important concern and hospitals should take more steps to make sure that unauthorized people cannot access personal information in their computers.::3;4::A hacker or a disgruntled employee steals from a hospital database the unprotected genome of a known personality. He finds out this person's ethnicity and predisposition to diseases. As a result, he sells this information to tabloids and newspapers. Theft of unprotected medical data is an important concern and hospitals should take more steps to make sure that unauthorized people cannot access personal information in their computers.::3;5::A hacker or a disgruntled employee steals from a hospital database the unprotected genome of a known personality. He finds out this person's ethnicity and predisposition to diseases. As a result, he sells this information to tabloids and newspapers. Theft of unprotected medical data is an important concern and hospitals should take more steps to make sure that unauthorized people cannot access personal information in their computers.::3;</v_questions><v_locations>50::Lausanne;60::Basel;70::Zurich</v_locations></awr_survey>";
- ReplySurvey reply = (new XMLParserSurvey()).stringToReply(replyString);
- return reply;
- }
-
- public String callServiceSurveyAnswer(String survey, String id_loc, String id_p){
-
- StringBuilder sb = new StringBuilder();
- sb.append("id_p=").append(id_p);
- sb.append("&timestamp=").append(System.currentTimeMillis());
- sb.append("&id_loc=").append(id_loc);
- sb.append("&answer=").append(survey);
- String replyString = connectSPU.sendReceive(Type.SURVEY_A, sb.toString());
- return replyString;
-
- }
-
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/e2/70e70c886cac00141cc3aa66275e9c24 b/.metadata/.plugins/org.eclipse.core.resources/.history/7d/10096d8a55b80014199a8682e9990d0e
similarity index 74%
copy from .metadata/.plugins/org.eclipse.core.resources/.history/e2/70e70c886cac00141cc3aa66275e9c24
copy to .metadata/.plugins/org.eclipse.core.resources/.history/7d/10096d8a55b80014199a8682e9990d0e
index 8b30fef..a09e459 100644
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/e2/70e70c886cac00141cc3aa66275e9c24
+++ b/.metadata/.plugins/org.eclipse.core.resources/.history/7d/10096d8a55b80014199a8682e9990d0e
@@ -1,927 +1,944 @@
package ui;
import io.ClientConnection;
import io.CommAdapter;
import io.Questionnaire;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Font;
import java.awt.SystemColor;
+import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowAdapter;
import java.io.File;
import java.io.IOException;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.Map;
import java.util.Set;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.Box;
import javax.swing.BoxLayout;
import javax.swing.ButtonGroup;
import javax.swing.DefaultComboBoxModel;
import javax.swing.GroupLayout;
import javax.swing.GroupLayout.Alignment;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JDialog;
import javax.swing.JFileChooser;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JRadioButton;
import javax.swing.JScrollPane;
import javax.swing.JSeparator;
import javax.swing.JTabbedPane;
import javax.swing.JTextArea;
import javax.swing.JTextPane;
import javax.swing.JTree;
import javax.swing.LayoutStyle.ComponentPlacement;
import javax.swing.SwingConstants;
import javax.swing.border.EmptyBorder;
import javax.swing.border.LineBorder;
import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.tree.TreeModel;
import javax.swing.tree.TreePath;
import org.jpedal.examples.viewer.Commands;
import org.jpedal.examples.viewer.Viewer;
import utils.ClientProperties;
import com.itextpdf.text.DocumentException;
import database.DBconnectorClient;
import framework.Diagnostic;
import framework.MedUnit;
import framework.Question;
import framework.reply.ReplySurvey;
import framework.test.TestName;
+import javax.swing.JSplitPane;
+import java.awt.event.MouseAdapter;
+import java.awt.event.MouseEvent;
/**
*
- * @author youssef, raisaro
+ * @author raisaro
*/
public class GUI extends javax.swing.JFrame {
private static final Logger LOGGER = Logger.getLogger(GUI.class.getName());
private static final long serialVersionUID = -4582280515597700650L;
// configuration
private ClientProperties props;
private JTree jTree;
private DBconnectorClient connectorClientDB;
private LinkedList<Integer> patients;
/** List of all relevant tests */
private HashMap<String, TestName> testsByName;
private Viewer viewer;
private JDialog dialog;
private JFrame frame;
private boolean survey_submitted;
private int close_trials;
private Map<Integer, ButtonGroup> buttonGroupMap;
private Questionnaire quest;
private Map<Integer, Question> map;
private Set<Integer> ids;
private Map<String,String> answers;
private Map<Integer, String> locations;
+ private JButton btnSubmitQuestionnaire;
/**
* Creates new form GUI
*/
public GUI(ClientProperties props){
+ setLocationByPlatform(true);
+ setIconImage(Toolkit.getDefaultToolkit().getImage("res/shcs_logo2_icon.png"));
frame = this;
this.props = props;
this.connectorClientDB = new DBconnectorClient(props.getDbMsAccess());
survey_submitted = false;
close_trials = 0;
try {
initComponents();
viewer = new Viewer(jScrollPane2, null);
viewer.setupViewer();
- // create questionnare
-
+ // create questionnare
+
System.out.println("#of questions: " + ids.size());
-// viewer_q = new Viewer(jScrollPane4, null);
-// viewer_q.setupViewer();
-//
-// // specify file you wish to open (JPedal handles getting the byte data)
-// String filepathReport = "outputPDF/buttons_filled.pdf";
-//
-// // open generated PDF
-// // object must be either String in full filepath, or
-// // File object which can be relative
-// Object[] input = new Object[]{ new File(filepathReport) };
-// viewer_q.executeCommand(Commands.OPENFILE, input);
-
- JButton btnSubmitQuestionnaire = new JButton("Submit Questionnaire");
+
+ btnSubmitQuestionnaire = new JButton("Submit Questionnaire");
btnSubmitQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
btnSubmitQuestionnaire.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
submitButtonActionPerformed(arg0);
}
});
JButton btnResetQuestionnaire = new JButton("Save as PDF");
btnResetQuestionnaire.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
savePDFButtonActionPerformed(arg0);
}
});
btnResetQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
JPanel panel_button = new JPanel();
panel_button.setLayout(new BoxLayout(panel_button, BoxLayout.X_AXIS));
lblNewLabel_3 = new JLabel("");
lblNewLabel_3.setIcon(new ImageIcon("res/location_icon.png"));
panel_button.add(lblNewLabel_3);
comboBox = new JComboBox<String>();
comboBox.setFont(new Font("Tahoma", Font.BOLD, 12));
comboBox.setModel(new DefaultComboBoxModel<String>(new String[] {"Select Location"}));
for(Integer id_loc : locations.keySet()){
comboBox.addItem(locations.get(id_loc));
}
panel_button.add(comboBox);
rigidArea = Box.createRigidArea(new Dimension(10, 0));
panel_button.add(rigidArea);
lblNewLabel_1 = new JLabel("");
lblNewLabel_1.setIcon(new ImageIcon("res/submit.png"));
panel_button.add(lblNewLabel_1);
panel_button.add(btnSubmitQuestionnaire);
panel_button.add(Box.createRigidArea(new Dimension(10,0)));
lblNewLabel_2 = new JLabel("");
lblNewLabel_2.setIcon(new ImageIcon("res/pdf.png"));
panel_button.add(lblNewLabel_2);
panel_button.add(btnResetQuestionnaire);
panel_button.setPreferredSize(new Dimension(211, 35));
panel_button.validate();
- JPanel panel_3 = new JPanel();
+ splitPane = new JSplitPane();
+ splitPane.setOneTouchExpandable(true);
+ splitPane.setResizeWeight(0.52);
+ splitPane.setOrientation(JSplitPane.VERTICAL_SPLIT);
+
GroupLayout gl_panel = new GroupLayout(panel);
gl_panel.setHorizontalGroup(
- gl_panel.createParallelGroup(Alignment.TRAILING)
+ gl_panel.createParallelGroup(Alignment.LEADING)
.addGroup(gl_panel.createSequentialGroup()
- .addGap(63)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addGap(103)
- .addComponent(panel_button, GroupLayout.DEFAULT_SIZE, 498, Short.MAX_VALUE)
- .addGap(241))
+ .addGap(165)
+ .addComponent(panel_button, GroupLayout.DEFAULT_SIZE, 421, Short.MAX_VALUE)
+ .addGap(242))
.addGroup(gl_panel.createSequentialGroup()
- .addGap(41)
- .addGroup(gl_panel.createParallelGroup(Alignment.TRAILING)
- .addComponent(jScrollPane4, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE)
- .addComponent(panel_1, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE))
- .addGap(32))
+ .addContainerGap()
+ .addComponent(splitPane, GroupLayout.DEFAULT_SIZE, 738, Short.MAX_VALUE)
+ .addGap(80))
);
gl_panel.setVerticalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
+ gl_panel.createParallelGroup(Alignment.TRAILING)
.addGroup(gl_panel.createSequentialGroup()
- .addGap(22)
- .addComponent(panel_1, GroupLayout.PREFERRED_SIZE, 235, GroupLayout.PREFERRED_SIZE)
- .addGap(37)
- .addComponent(jScrollPane4, GroupLayout.DEFAULT_SIZE, 379, Short.MAX_VALUE)
- .addGap(26)
- .addGroup(gl_panel.createParallelGroup(Alignment.LEADING)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(panel_button, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE)))
+ .addContainerGap()
+ .addComponent(splitPane, GroupLayout.DEFAULT_SIZE, 603, Short.MAX_VALUE)
+ .addPreferredGap(ComponentPlacement.RELATED)
+ .addComponent(panel_button, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE)
+ .addGap(11))
+ );
+
+ panel_1 = new JPanel();
+ panel_1.setMinimumSize(new Dimension(10, 0));
+ panel_1.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
+ panel_1.setBackground(SystemColor.menu);
+ splitPane.setLeftComponent(panel_1);
+
+ label_1 = new JLabel("");
+ label_1.setIcon(new ImageIcon("res/shcs_logo2_medium.gif"));
+
+ label_2 = new JLabel("");
+ label_2.setIcon(new ImageIcon("res/EPFL_logo.png"));
+
+ label_3 = new JLabel("");
+ label_3.setIcon(new ImageIcon("res/chuv_logo.png"));
+
+ label_4 = new JLabel("Dear Doctor,");
+ label_4.setFont(new Font("Tahoma", Font.BOLD, 14));
+
+ scrollPane = new JScrollPane();
+ scrollPane.setBorder(null);
+ GroupLayout gl_panel_1 = new GroupLayout(panel_1);
+ gl_panel_1.setHorizontalGroup(
+ gl_panel_1.createParallelGroup(Alignment.LEADING)
+ .addGroup(gl_panel_1.createSequentialGroup()
+ .addGap(25)
+ .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
+ .addComponent(label_3)
+ .addComponent(label_2)
+ .addComponent(label_1, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE))
+ .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
+ .addGroup(gl_panel_1.createSequentialGroup()
+ .addGap(20)
+ .addComponent(label_4)
+ .addGap(109))
+ .addGroup(gl_panel_1.createSequentialGroup()
+ .addGap(10)
+ .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 557, Short.MAX_VALUE)
+ .addContainerGap())))
);
- panel_3.setLayout(new BoxLayout(panel_3, BoxLayout.X_AXIS));
+ gl_panel_1.setVerticalGroup(
+ gl_panel_1.createParallelGroup(Alignment.LEADING)
+ .addGroup(gl_panel_1.createSequentialGroup()
+ .addContainerGap()
+ .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
+ .addGroup(gl_panel_1.createSequentialGroup()
+ .addComponent(label_4)
+ .addPreferredGap(ComponentPlacement.UNRELATED)
+ .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 416, Short.MAX_VALUE))
+ .addGroup(gl_panel_1.createSequentialGroup()
+ .addGap(9)
+ .addComponent(label_1, GroupLayout.PREFERRED_SIZE, 96, GroupLayout.PREFERRED_SIZE)
+ .addGap(18)
+ .addComponent(label_2)
+ .addGap(28)
+ .addComponent(label_3)))
+ .addContainerGap(114, GroupLayout.PREFERRED_SIZE))
+ );
+
+ introduction = new JTextPane();
+ introduction.setBackground(SystemColor.control);
+ introduction.setContentType("text/html");
+ introduction.setText("You are receiving a pharmacogenetics report based on the genome of your patient. Because of its highly sensitive nature, the genetic information you are provided with is processed in a privacy-preserving way. In particular, to protect patients\u2019 genomic privacy, their genetic and clinical data are stored encrypted at the SHCS data center, and securely analyzed through a sophisticated algorithm designed and developed at EPFL [1, 2]. The actual clinical and genetic information is never revealed. Only the authorized users, such as you, can get some processed information, for example, the interpreted final result of a pharmacogenetics risk test.\r\nThis mechanism protects the data against insiders or hackers trying to illegally access patients\u2019 medical information, while still allowing authorized users to obtain the information they need.\r\n<br><br>\r\n<b>To help us better understanding the importance of genomic privacy in the medical domain, and the impact of privacy-enhancing technologies in daily clinical practice, please complete the following survey. Answers are on a scale from 1 (Strongly Disagree) to 5 (Strongly Agree).</b>\r\n<font size=\"2\">\r\n<br><br>\r\nNote: this work is part of Project #693, funded by the Swiss HIV Cohort. PIs: Prof. A. Telenti, formerly at CHUV, and Prof. J.-P. Hubaux, at EPFL.\r\n<br><br>\r\n[1] J. L. Raisaro, E. Ayday, P. J. McLaren, J.-P. Hubaux, and A. Telenti. Privacy-Preserving HIV Pharmacogenetics: A Real Use Case of Genomic Data Protection. GenoPri 2014<br>\r\n[2] E. Ayday, J. L. Raisaro, J. Rougemont, and J.-P. Hubaux. Protecting and Evaluating Genomic Privacy in Medical Tests and Personalized Medicine. WPES 2013\r\n</font>");
+ scrollPane.setViewportView(introduction);
+ panel_1.setLayout(gl_panel_1);
+
+ jScrollPane4 = new JScrollPane();
+ jScrollPane4.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
+ splitPane.setRightComponent(jScrollPane4);
+
+
+ jScrollPane4.setViewportView(panel_2);
+ javax.swing.SwingUtilities.invokeLater(new Runnable() {
+ public void run() {
+ jScrollPane4.getVerticalScrollBar().setValue(0);
+ }
+ });
+ introduction.setCaretPosition(0);
panel.setLayout(gl_panel);
/////////////////////////////////////////////////////////
// display the tests available
// get the tests
HashMap<String, ArrayList<TestName>> testsRelevantByGroup = connectorClientDB.getRelevantTestsByGroup();
ArrayList<String> groups = new ArrayList<String>(testsRelevantByGroup.keySet());
// flatten hashmap into linkedlist
// tests = new LinkedList<>();
testsByName = new HashMap<String, TestName>();
for (String group : groups) {
// tests.addAll(testsRelevantByGroup.get(group));
for (TestName test : testsRelevantByGroup.get(group)) {
testsByName.put(test.getName(), test);
}
}
// define tree structure of the tests
DefaultMutableTreeNode root = new DefaultMutableTreeNode("All");
for (String group : groups) {
DefaultMutableTreeNode child = new DefaultMutableTreeNode(group);
root.add(child);
for (TestName test : testsRelevantByGroup.get(group)) {
DefaultMutableTreeNode grandChild = new DefaultMutableTreeNode(test.getName());
child.add(grandChild);
}
}
// define swing object
jTree = new JTree(root);
+ jTree.setFont(new Font("Tahoma", Font.PLAIN, 11));
for(int i=0;i<jTree.getRowCount();i++){
jTree.expandRow(i);
}
jScrollPane3.setViewportView(jTree);
// jTree.addTreeSelectionListener(new TreeSelectionListener() {
//
// @Override
// public void valueChanged(TreeSelectionEvent e) {
// tp = jTree.getSelectionPaths();
// }
// });
jScrollPane3.setViewportView(jTree);
/////////////////////////////////////////////////////////
// display the patients registered
patients = connectorClientDB.getPatients();
for (Integer patientId : patients) {
jComboBox1.addItem(patientId.toString());
}
} catch (SQLException ex) {
Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex);
ex.printStackTrace();
// } catch (IOException e) {
// // TODO Auto-generated catch block
// e.printStackTrace();
// } catch (DocumentException e) {
// // TODO Auto-generated catch block
// e.printStackTrace();
}
}
/**
* 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() {
-
- jPanel1 = new javax.swing.JPanel();
- jLabel2 = new javax.swing.JLabel();
- jLabel1 = new javax.swing.JLabel();
jPanel2 = new javax.swing.JPanel();
jComboBox1 = new javax.swing.JComboBox<String>();
+ jComboBox1.setFont(new Font("Tahoma", Font.BOLD, 12));
jButton1 = new javax.swing.JButton();
jButton1.setFont(new Font("Tahoma", Font.BOLD, 12));
jLabel3 = new javax.swing.JLabel();
jLabel4 = new javax.swing.JLabel();
jScrollPane3 = new javax.swing.JScrollPane();
jScrollPane2 = new javax.swing.JScrollPane();
+ jScrollPane2.setMinimumSize(new Dimension(5, 5));
jMenuBar1 = new javax.swing.JMenuBar();
jMenu1 = new javax.swing.JMenu();
jMenuItem1 = new javax.swing.JMenuItem();
jMenu2 = new javax.swing.JMenu();
dialog = new JDialog();
tabbedPane = new JTabbedPane(JTabbedPane.TOP);
+ tabbedPane.setFont(new Font("Tahoma", Font.BOLD, 12));
setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
addWindowListener(new WindowAdapter() {
@Override
public void windowClosing(java.awt.event.WindowEvent windowEvent) {
if (!survey_submitted && close_trials <= 2){
JOptionPane.showMessageDialog(frame, "Before closing the application, please fill in and submit the questionnaire.");
close_trials++;
tabbedPane.setSelectedIndex(1);
}else{
System.exit(0);
}
}
});
- setTitle("HIV Pharmacogenomics\n");
-
- jLabel2.setIcon(new javax.swing.ImageIcon("res/shcs_logo2_small.gif")); // NOI18N
-
- jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
- jLabel1.setText("HIV Pharmacogenomics | Project #693");
-
- javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
- jPanel1.setLayout(jPanel1Layout);
- jPanel1Layout.setHorizontalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap(71, Short.MAX_VALUE)
- .addComponent(jLabel1)
- .addGap(18, 18, 18)
- .addComponent(jLabel2))
- );
- jPanel1Layout.setVerticalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jLabel1)
- .addGap(11, 11, 11))
- .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)
- );
+ setTitle("Privacy-Preserving HIV Pharmacogenomics\r\n");
jPanel2.setBackground(new java.awt.Color(255, 255, 255));
jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<String>(new String[]{"Select Patient"}));
jButton1.setText("Run Test");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});
JLabel lblNewLabel = new JLabel("");
lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
lblNewLabel.setIcon(new javax.swing.ImageIcon("res/gears.png"));
javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
jPanel2Layout.setHorizontalGroup(
jPanel2Layout.createParallelGroup(Alignment.LEADING)
.addComponent(jComboBox1, 0, 248, Short.MAX_VALUE)
.addGroup(jPanel2Layout.createSequentialGroup()
.addGap(75)
.addGroup(jPanel2Layout.createParallelGroup(Alignment.TRAILING)
.addComponent(jButton1)
.addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 75, GroupLayout.PREFERRED_SIZE))
.addContainerGap(98, Short.MAX_VALUE))
);
jPanel2Layout.setVerticalGroup(
jPanel2Layout.createParallelGroup(Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addComponent(jComboBox1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
.addPreferredGap(ComponentPlacement.RELATED, 223, Short.MAX_VALUE)
.addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE)
.addPreferredGap(ComponentPlacement.RELATED)
.addComponent(jButton1)
.addGap(19))
);
jPanel2.setLayout(jPanel2Layout);
jLabel3.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
jLabel3.setText("Select Patient");
jLabel4.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
jLabel4.setText("Select Test");
jScrollPane3.setBackground(new java.awt.Color(255, 255, 255));
jMenu1.setText("File");
jMenuItem1.setText("Exit");
jMenu1.add(jMenuItem1);
jMenuBar1.add(jMenu1);
jMenu2.setText("Edit");
jMenuBar1.add(jMenu2);
setJMenuBar(jMenuBar1);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
layout.setHorizontalGroup(
layout.createParallelGroup(Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addGroup(layout.createParallelGroup(Alignment.LEADING, false)
- .addComponent(jLabel3)
.addComponent(jLabel4)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, 244, Short.MAX_VALUE)
- .addComponent(jScrollPane3))
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 970, Short.MAX_VALUE))
- .addContainerGap())
+ .addComponent(jLabel3)
+ .addComponent(jScrollPane3, GroupLayout.DEFAULT_SIZE, 234, Short.MAX_VALUE)
+ .addComponent(jPanel2, 0, 0, Short.MAX_VALUE))
+ .addPreferredGap(ComponentPlacement.RELATED)
+ .addComponent(tabbedPane, GroupLayout.PREFERRED_SIZE, 751, Short.MAX_VALUE)
+ .addGap(19))
);
layout.setVerticalGroup(
- layout.createParallelGroup(Alignment.LEADING)
+ layout.createParallelGroup(Alignment.TRAILING)
.addGroup(layout.createSequentialGroup()
+ .addContainerGap()
.addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel4))
- .addPreferredGap(ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(Alignment.LEADING)
+ .addComponent(tabbedPane, Alignment.LEADING, GroupLayout.PREFERRED_SIZE, 687, Short.MAX_VALUE)
.addGroup(layout.createSequentialGroup()
- .addComponent(jScrollPane3, GroupLayout.PREFERRED_SIZE, 388, GroupLayout.PREFERRED_SIZE)
+ .addComponent(jLabel4)
+ .addPreferredGap(ComponentPlacement.RELATED)
+ .addComponent(jScrollPane3, GroupLayout.PREFERRED_SIZE, 356, GroupLayout.PREFERRED_SIZE)
.addPreferredGap(ComponentPlacement.RELATED)
.addComponent(jLabel3)
.addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 785, Short.MAX_VALUE))
+ .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, 283, Short.MAX_VALUE)))
.addContainerGap())
);
jScrollPane2.setAutoscrolls(true);
jScrollPane3.setAutoscrolls(true);
tabbedPane.addTab("Report", new ImageIcon("res/report_icon.gif"), jScrollPane2, null);
tabbedPane.setBackgroundAt(0, new Color(255, 255, 255));
panel = new JPanel();
+ panel.setPreferredSize(new Dimension(0, 0));
tabbedPane.addTab("Survey", new ImageIcon("res/survey_icon.png"), panel, null);
tabbedPane.setBackgroundAt(1, new Color(255, 255, 255));
tabbedPane.setEnabledAt(1, true);
-
- panel_1 = new JPanel();
- panel_1.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
- panel_1.setBackground(SystemColor.control);
-
- JLabel label = new JLabel("");
- label.setIcon(new ImageIcon("res/shcs_logo2_medium.gif"));
-
- lblDearDoctor = new JLabel("Dear Doctor,");
- lblDearDoctor.setFont(new Font("Tahoma", Font.BOLD, 14));
-
- JScrollPane scrollPane = new JScrollPane();
- scrollPane.setBorder(null);
- GroupLayout gl_panel_1 = new GroupLayout(panel_1);
- gl_panel_1.setHorizontalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(Alignment.LEADING, gl_panel_1.createSequentialGroup()
- .addGap(25)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addComponent(lblDearDoctor)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 661, Short.MAX_VALUE))
- .addContainerGap())
- );
- gl_panel_1.setVerticalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addContainerGap()
- .addComponent(lblDearDoctor)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 203, Short.MAX_VALUE))
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(36)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 96, GroupLayout.PREFERRED_SIZE)))
- .addContainerGap())
- );
-
- JTextPane txtpnTodayYouAre = new JTextPane();
- txtpnTodayYouAre.setBorder(null);
- txtpnTodayYouAre.setText("Today you are receiving a pharmacogenetics report based on the genome of your patient. Because of its highly sensitive nature, " +
- "the genetic information you are provided with is processed in a privacy-preserving way. In particular, to protect patients’ genomic privacy, " +
- "their genetic and clinical data is stored encrypted at the SHCS data center, and securely analyzed through a sophisticated algorithm designed and developed at EPFL [1, 2]. " +
- "The actual clinical and genetic information is never revealed. Only the authorized users, such as you, can get some processed information, for example, the final result of a " +
- "pharmacogenetics risk test.\nThis mechanism protects the data against insiders or hackers trying to illegally access patients’ medical information, while still allowing authorized " +
- "users to obtain the information they need." +
- "\n\nTo help us understanding the importance of genomic privacy in the medical domain, and the impact of privacy-enhancing technologies in daily clinical practice, please complete the following survey.");
- txtpnTodayYouAre.setFont(new Font("Tahoma", Font.PLAIN, 13));
- txtpnTodayYouAre.setEditable(false);
- txtpnTodayYouAre.setBackground(SystemColor.control);
- scrollPane.setViewportView(txtpnTodayYouAre);
- panel_1.setLayout(gl_panel_1);
- jScrollPane4 = new javax.swing.JScrollPane();
- jScrollPane4.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
getContentPane().setLayout(layout);
buttonGroupMap = new HashMap<Integer, ButtonGroup>();
ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
CommAdapter commHandlerAdapter = new CommAdapter(connection);
ReplySurvey replySurvey = commHandlerAdapter.callServiceSurvey();
map = replySurvey.getQuestions();
ids = map.keySet();
locations = replySurvey.getLocations();
+ buttonGroupMap = new HashMap<Integer, ButtonGroup>();
+
panel_2 = new JPanel();
- panel_2.setBackground(Color.WHITE);
+ panel_2.addMouseListener(new MouseAdapter() {
+ @Override
+ public void mouseClicked(MouseEvent arg0) {
+ splitPane.setDividerLocation(0.0);
+ }
+ });
panel_2.setBorder(null);
- jScrollPane4.setViewportView(panel_2);
+ panel_2.setBackground(Color.WHITE);
panel_2.setLayout(new BoxLayout(panel_2, BoxLayout.Y_AXIS));
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
-
+
+ JLabel expand_icon = new JLabel("");
+ expand_icon.setVerticalAlignment(SwingConstants.TOP);
+ expand_icon.setHorizontalAlignment(SwingConstants.LEFT);
+ expand_icon.setAlignmentY(Component.TOP_ALIGNMENT);
+ expand_icon.setAlignmentX(Component.LEFT_ALIGNMENT);
+ expand_icon.setIcon(new ImageIcon("C:\\Users\\raisaro\\workspace\\yussef\\project\\PPPClient\\res\\expand_icon.jpg"));
+ panel_2.add(expand_icon);
+
+ //dynamic question generation
int type = 0;
for(Integer id : ids){
ButtonGroup group = new ButtonGroup();
- JRadioButton r1 = new JRadioButton("1"); r1.setActionCommand("1"); r1.setBackground(Color.WHITE);
- JRadioButton r2 = new JRadioButton("2"); r2.setActionCommand("2"); r2.setBackground(Color.WHITE);
- JRadioButton r3 = new JRadioButton("3"); r3.setActionCommand("3"); r3.setBackground(Color.WHITE);
- JRadioButton r4 = new JRadioButton("4"); r4.setActionCommand("4"); r4.setBackground(Color.WHITE);
- JRadioButton r5 = new JRadioButton("5"); r5.setActionCommand("5"); r5.setBackground(Color.WHITE);
+ JRadioButton r1 = new JRadioButton("1"); r1.setActionCommand("1"); r1.setBackground(Color.WHITE);
+ JRadioButton r2 = new JRadioButton("2"); r2.setActionCommand("2"); r2.setBackground(Color.WHITE);
+ JRadioButton r3 = new JRadioButton("3"); r3.setActionCommand("3"); r3.setBackground(Color.WHITE);
+ JRadioButton r4 = new JRadioButton("4"); r4.setActionCommand("4"); r4.setBackground(Color.WHITE);
+ JRadioButton r5 = new JRadioButton("5"); r5.setActionCommand("5"); r5.setBackground(Color.WHITE);
group.add(r1);
group.add(r2);
group.add(r3);
group.add(r4);
group.add(r5);
JPanel radio_panel = new JPanel();
radio_panel.setLayout((new BoxLayout(radio_panel, BoxLayout.X_AXIS)));
radio_panel.setBackground(Color.WHITE);
radio_panel.setAlignmentX(Component.CENTER_ALIGNMENT);
radio_panel.add(r1);
radio_panel.add(r2);
radio_panel.add(r3);
radio_panel.add(r4);
radio_panel.add(r5);
radio_panel.doLayout();
radio_panel.setPreferredSize(radio_panel.getPreferredSize());
JTextArea question = new JTextArea(id + ") " + map.get(id).getQuestion());
question.setEditable(false);
question.setLineWrap(true);
question.setWrapStyleWord(true);
question.setFont(new Font("Tahoma", Font.PLAIN, 13));
JPanel row_panel = new JPanel();
row_panel.setLayout(new BoxLayout(row_panel, BoxLayout.X_AXIS));
row_panel.add(Box.createRigidArea(new Dimension(20,0)));
row_panel.add(question);
row_panel.add(Box.createRigidArea(new Dimension(20,0)));
row_panel.add(radio_panel);
row_panel.add(Box.createRigidArea(new Dimension(20,0)));
row_panel.setBackground(Color.WHITE);
int type_new = map.get(id).getType();
if(type_new != type){
type = type_new;
JLabel question_group = new JLabel("");
switch(type){
case 1:
question_group.setText("Clinical Utility");
break;
case 2:
question_group.setText("Privacy Concerns");
break;
case 3:
question_group.setText("Usability Assessment");
break;
}
question_group.setAlignmentX(Component.CENTER_ALIGNMENT);
question_group.setFont(new Font("Tahoma", Font.BOLD, 13));
+ panel_2.add(new JSeparator());
panel_2.add(Box.createRigidArea(new Dimension(0,5)));
panel_2.add(question_group);
panel_2.add(Box.createRigidArea(new Dimension(0,5)));
panel_2.add(new JSeparator());
panel_2.add(Box.createRigidArea(new Dimension(0,5)));
}
panel_2.add(Box.createRigidArea(new Dimension(0,5)));
panel_2.add(row_panel);
panel_2.add(Box.createRigidArea(new Dimension(0,5)));
// panel_2.add(radio_panel);
- panel_2.add(new JSeparator());
+// panel_2.add(new JSeparator());
panel_2.add(Box.createRigidArea(new Dimension(0,5)));
// panel_2.setPreferredSize(panel_2.getPreferredSize());
buttonGroupMap.put(id, group);
}
+
+
+
-
- this.setSize(new Dimension(1300, 865));
-// pack();
+ this.setSize(new Dimension(1118, 768));
+// this.pack();
}// </editor-fold>//GEN-END:initComponents
private void submitButtonActionPerformed(java.awt.event.ActionEvent evt){
try{
answers = new HashMap<String, String>();
StringBuilder sb = new StringBuilder();
Set<Integer> questions_id = buttonGroupMap.keySet();
for(Integer q: questions_id){
ButtonGroup bg = buttonGroupMap.get(q);
sb.append(q).append(",");
sb.append(bg.getSelection().getActionCommand()).append(";");
answers.put(q.toString(),bg.getSelection().getActionCommand());
}
String answer = sb.toString();
Integer id_loc = null;
for(Integer i: locations.keySet()){
if(locations.get(i).equals(comboBox.getSelectedItem().toString()))
id_loc = i;
}
String id_p;
if(jComboBox1.getSelectedItem().toString().equals("Select Patient"))
id_p = "0";
else
id_p = jComboBox1.getSelectedItem().toString();
ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
CommAdapter commHandlerAdapter = new CommAdapter(connection);
String reply = commHandlerAdapter.callServiceSurveyAnswer(answer, id_loc.toString(), id_p);
if(reply.equals("1")){
survey_submitted = true;
dialog.setVisible(false);
JOptionPane.showMessageDialog(
this,
"Congrats! Your aswers have been sent to the SHCS datacenter.",
"Information Message",
JOptionPane.INFORMATION_MESSAGE);
+ btnSubmitQuestionnaire.setEnabled(false);
}
else{
throw new IOException();
}
} catch (NullPointerException e){
LOGGER.log(Level.SEVERE, null, e);
dialog.setVisible(false);
JOptionPane.showMessageDialog(
this,
"Please respond to all the questions!",
"Error Message",
JOptionPane.ERROR_MESSAGE);
} catch (IOException e) {
LOGGER.log(Level.SEVERE, null, e);
dialog.setVisible(false);
JOptionPane.showMessageDialog(
this,
"The SHCS datacenter does not respond. Please save the survey and send it to jean.raisaro@epfl.ch.",
"Error Message",
JOptionPane.ERROR_MESSAGE);
}
}
private void savePDFButtonActionPerformed(java.awt.event.ActionEvent evt){
try {
answers = new HashMap<String, String>();
Set<Integer> questions_id = buttonGroupMap.keySet();
for(Integer q: questions_id){
ButtonGroup bg = buttonGroupMap.get(q);
answers.put(q.toString(),bg.getSelection().getActionCommand());
}
JFileChooser chooser = new JFileChooser();
// Note: source for ExampleFileFilter can be found in FileChooserDemo,
// under the demo/jfc directory in the JDK.
int returnVal = chooser.showSaveDialog(this);
System.out.println(returnVal);
if(returnVal == JFileChooser.APPROVE_OPTION) {
System.out.println("You chose to open this file: " +
chooser.getSelectedFile().getPath());
quest = new Questionnaire(chooser.getSelectedFile().getPath() + ".pdf");
quest.createPdf(map, ids);
quest.writeAnswers(answers);
survey_submitted = true;
}else{
quest = new Questionnaire("outputPDF/survey.pdf");
quest.createPdf(map, ids);
quest.writeAnswers(answers);
survey_submitted = true;
}
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (DocumentException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (NullPointerException e) {
LOGGER.log(Level.SEVERE, null, e);
dialog.setVisible(false);
JOptionPane.showMessageDialog(
this,
"Please respond to all the questions!",
"Error Message",
JOptionPane.ERROR_MESSAGE);
}
}
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
JPanel contentPanel = new JPanel();
- dialog.setBounds(100, 100, 410, 80);
+ dialog.setBounds(100, 100, 420, 100);
dialog.getContentPane().setLayout(new BorderLayout());
contentPanel.setLayout(new FlowLayout());
contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
dialog.getContentPane().add(contentPanel, BorderLayout.CENTER);
{
- JLabel label = new JLabel("Please wait...The overall computation can take few seconds");
+ JLabel label = new JLabel("Please wait...The overall computation can take some seconds!");
+ JLabel label2 = new JLabel("Cryptographic operations are being performed at the SHCS...");
label.setHorizontalAlignment(SwingConstants.CENTER);
- label.setFont(new Font("Tahoma", Font.PLAIN, 12));
+ label.setFont(new Font("Tahoma", Font.BOLD, 12));
+ label2.setHorizontalAlignment(SwingConstants.CENTER);
+ label2.setFont(new Font("Tahoma", Font.PLAIN, 12));
contentPanel.add(label);
+ contentPanel.add(label2);
}
{
JPanel buttonPane = new JPanel();
buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
dialog.getContentPane().add(buttonPane, BorderLayout.SOUTH);
}
dialog.setLocationRelativeTo(this);
dialog.setVisible(true);
GUIWorker gw = new GUIWorker(this, props);
Thread t = new Thread(gw);
t.start();
}
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JButton jButton1;
private javax.swing.JComboBox<String> jComboBox1;
- private javax.swing.JLabel jLabel1;
- private javax.swing.JLabel jLabel2;
private javax.swing.JLabel jLabel3;
private javax.swing.JLabel jLabel4;
private javax.swing.JMenu jMenu1;
private javax.swing.JMenu jMenu2;
private javax.swing.JMenuBar jMenuBar1;
private javax.swing.JMenuItem jMenuItem1;
- private javax.swing.JPanel jPanel1;
private javax.swing.JPanel jPanel2;
private javax.swing.JScrollPane jScrollPane3;
private javax.swing.JTabbedPane tabbedPane;
private javax.swing.JScrollPane jScrollPane2;
- private javax.swing.JScrollPane jScrollPane4;
private JPanel panel;
- private JPanel panel_1;
- private JPanel panel_2;
- private JLabel lblDearDoctor;
private JLabel lblNewLabel_1;
private JLabel lblNewLabel_2;
private JLabel lblNewLabel_3;
private JComboBox<String> comboBox;
private Component rigidArea;
+ private JSplitPane splitPane;
+ private JPanel panel_1;
+ private JLabel label_1;
+ private JLabel label_2;
+ private JLabel label_3;
+ private JLabel label_4;
+ private JScrollPane scrollPane;
+ private JTextPane introduction;
+ private JScrollPane jScrollPane4;
+ private JPanel panel_2;
// End of variables declaration//GEN-END:variables
class GUIWorker implements Runnable{
private JFrame mainFrame;
private ClientProperties props;
private MedUnit mu;
public GUIWorker(GUI gui, ClientProperties props) {
mainFrame = gui;
this.props = props;
this.mu = new MedUnit(props, 0);
}
@Override
public void run() {
try{
int patientId = Integer.parseInt((String) jComboBox1.getSelectedItem());
// convert selected tests to test identifiers
ArrayList<TestName> selectedTests = new ArrayList<TestName>();
for (String currentName : getSelectedTests()) {
TestName currentTest = testsByName.get(currentName);
if (currentTest == null) {
throw new IllegalStateException("Trying to run unknown test: " + currentTest);
}
selectedTests.add(currentTest);
}
// run tests
Diagnostic diagnostic = mu.runTests(patientId, selectedTests);
// warn for tests with missing material
warnFailedTests(diagnostic, selectedTests);
// create report
mu.createReport(patientId, selectedTests, diagnostic);
dialog.setVisible(false);
// specify file you wish to open (JPedal handles getting the byte data)
String filepathReport = props.getPathPDF() + patientId + ".pdf";
// open generated PDF
// object must be either String in full filepath, or
// File object which can be relative
Object[] input = new Object[]{ new File(filepathReport) };
viewer.executeCommand(Commands.OPENFILE, input);
// display CAD result as bar plot
if (diagnostic.hasCAD()) {
System.out.println("CAD = " + diagnostic.getResultCAD());
BarPlotFrame frame = new BarPlotFrame(diagnostic.getResultCAD(), patientId);
frame.setVisible(true);
frame.setAlwaysOnTop(true);
}
} catch (SQLException e) {
LOGGER.log(Level.SEVERE, null, e);
displayError("Not able to connect to service. Please try again.");
} catch (IOException e) {
LOGGER.log(Level.SEVERE, null, e);
displayError("Not able to connect to service. Please try again.");
} catch (NullPointerException e){
LOGGER.log(Level.SEVERE, null, e);
- displayError("Please select a patient.");
+ displayError("Please select a patient and one or multiple tests.");
+ } catch (NumberFormatException e){
+ LOGGER.log(Level.SEVERE, null, e);
+ displayError("Please select a patient and one or multiple tests.");
}
}
private void warnFailedTests(Diagnostic diagnostic, ArrayList<TestName> selectedTests) {
ArrayList<Integer> failedTests = diagnostic.getInvalidTests();
if (!failedTests.isEmpty()) {
String msg = "Could not complete tests: ";
boolean first = true;
for (TestName testName : selectedTests) {
if (failedTests.contains(testName.getId())) {
if (first) {
first = false;
} else {
msg += ", ";
}
msg += testName.getName();
}
}
displayError(msg);
}
}
private void displayError(String msg) {
dialog.setVisible(false);
JOptionPane.showMessageDialog(
mainFrame,
msg,
"Error Message",
JOptionPane.ERROR_MESSAGE);
}
private ArrayList<String> getSelectedTests() {
ArrayList<String> tests = new ArrayList<String>();
for (TreePath treePath : jTree.getSelectionPaths()) {
tests.addAll(getChildrenTests(jTree.getModel(), treePath.getLastPathComponent()));
}
return tests;
}
private ArrayList<String> getChildrenTests(TreeModel model, Object node) {
ArrayList<String> tests = new ArrayList<String>();
if (model.isLeaf(node)) { // leaf
DefaultMutableTreeNode leaf = (DefaultMutableTreeNode) node;
tests.add(leaf.toString());
}
else { // iterate over children
for (int i = 0; i < model.getChildCount(node); i++) {
tests.addAll(getChildrenTests(model, model.getChild(node, i)));
}
}
return tests;
}
}
}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/7d/c00d1349a7a7001417ceadf0100b5ef7 b/.metadata/.plugins/org.eclipse.core.resources/.history/7d/c00d1349a7a7001417ceadf0100b5ef7
deleted file mode 100644
index 1cfb9ab..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/7d/c00d1349a7a7001417ceadf0100b5ef7
+++ /dev/null
@@ -1,300 +0,0 @@
-package io;
-
-import java.awt.BorderLayout;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.util.Map;
-import java.util.Set;
-
-import com.itextpdf.text.BaseColor;
-import com.itextpdf.text.Document;
-import com.itextpdf.text.DocumentException;
-import com.itextpdf.text.Element;
-import com.itextpdf.text.ExceptionConverter;
-import com.itextpdf.text.Font;
-import com.itextpdf.text.Font.FontFamily;
-import com.itextpdf.text.FontFactory;
-import com.itextpdf.text.Image;
-import com.itextpdf.text.PageSize;
-import com.itextpdf.text.Paragraph;
-import com.itextpdf.text.Phrase;
-import com.itextpdf.text.Rectangle;
-import com.itextpdf.text.pdf.AcroFields;
-import com.itextpdf.text.pdf.BaseFont;
-import com.itextpdf.text.pdf.ColumnText;
-import com.itextpdf.text.pdf.GrayColor;
-import com.itextpdf.text.pdf.PdfAction;
-import com.itextpdf.text.pdf.PdfBorderDictionary;
-import com.itextpdf.text.pdf.PdfContentByte;
-import com.itextpdf.text.pdf.PdfFormField;
-import com.itextpdf.text.pdf.PdfPCell;
-import com.itextpdf.text.pdf.PdfPCellEvent;
-import com.itextpdf.text.pdf.PdfPTable;
-import com.itextpdf.text.pdf.PdfReader;
-import com.itextpdf.text.pdf.PdfStamper;
-import com.itextpdf.text.pdf.PdfWriter;
-import com.itextpdf.text.pdf.PushbuttonField;
-import com.itextpdf.text.pdf.RadioCheckField;
-import com.itextpdf.text.pdf.TextField;
-
-import framework.Question;
-
-public class Questionnaire implements PdfPCellEvent{
-
- /** The path output file. */
- String pathOutputFile;
-
- /** The document. */
- Document document;
-
- int tf;
-
- public Questionnaire(String path){
- pathOutputFile = path;
- document = new Document(PageSize.A4, 25, 25, 50, 50);
- }
- public Questionnaire(int tf){
- this.tf = tf;
- }
-
- /** The resulting PDF. */
- public static final String RESULT1 = "outputPDF/buttons.pdf";
- /** The resulting PDF. */
- public static final String RESULT2 = "outputPDF/buttons_filled.pdf";
- /** Path to a JavaScript resource. */
- public static final String RESOURCE = "res/buttons.js";
- /** Path to an image used as button icon. */
- public static final String IMAGE = "res/info.png";
- /** Possible values of a radio field / checkboxes */
- public static final String[] LANGUAGES = { "English", "German", "French", "Spanish", "Dutch" };
-
- /**
- * Creates a PDF document.
- * @param filename the path to the new PDF document
- * @throws DocumentException
- * @throws IOException
- */
- public void createPdf(Map<Integer, Question> map, Set<Integer> ids) throws IOException, DocumentException {
-
- @SuppressWarnings("unused")
- PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(pathOutputFile));
-
-
- document.open();
- Image logo = Image.getInstance("res/shcs_logo2.gif");
-
- logo.scalePercent(30f);
- float[] columnWidths1 = {0.2f, 0.8f};
- PdfPTable table_title = new PdfPTable(columnWidths1);
- PdfPCell c01 = new PdfPCell(logo, false);
- PdfPCell c02 = new PdfPCell(new Paragraph("Survery | Project #693",
- FontFactory.getFont(FontFactory.HELVETICA, 20, Font.BOLD, BaseColor.BLACK)));
- c01.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setHorizontalAlignment(Element.ALIGN_CENTER);
- c01.setBorder(Rectangle.NO_BORDER);
- c02.setBorder(Rectangle.NO_BORDER);
-
- table_title.addCell(c01);
- table_title.addCell(c02);
- table_title.setWidthPercentage(100);
- table_title.setSpacingBefore(0);
- table_title.setSpacingAfter(25);
- document.add(table_title);
-
-
- //----------------------------------------------------------------------------------
-
-
- PdfPTable table1 = new PdfPTable(1);
- table1.setWidthPercentage(100);
- PdfPCell c11 = new PdfPCell(new Phrase("Today you are receiving a pharmacogenetic report based on the genetic " +
- "information of your patient. Because the human genome contains extremely private and sensitive information" +
- " of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier," +
- " it must be managed with care. ",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.NORMAL, BaseColor.BLACK)));
- c11.setLeading(1.5f, 1.5f);
- c11.setPaddingBottom(8);
-
-
- table1.addCell(c11);
- table1.setSpacingAfter(10);
- document.add(table1);
-
-
- //----------------------------------------------------------------------------------
-
-// // step 4
-// // add the JavaScript
-// writer.addJavaScript(Utilities.readFileToString(RESOURCE));
-
- for(Integer id: ids){
- PdfPCell c2;
-
- PdfPTable table = new PdfPTable(1);
- table.setSpacingAfter(10);
- table.setWidthPercentage(100);
-
- PdfPCell c1 = new PdfPCell(new Phrase(id + ") " + map.get(id).getQuestion(),FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c1.setPaddingTop(5);
- c1.setPaddingBottom(5);
- c1.setHorizontalAlignment(Element.ALIGN_CENTER);
- c1.setBorder(Rectangle.NO_BORDER);
- table.addCell(c1);
-
- c2 = new PdfPCell(new Phrase(" 1" +
- " 2" +
- " 3" +
- " 4" +
- " 5",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c2.setHorizontalAlignment(Element.ALIGN_LEFT);
- c2.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c2.setCellEvent(new Questionnaire(id));
- c2.setBorder(Rectangle.TOP);
- c2.setPaddingTop(2);
- c2.setPaddingBottom(5);
- c2.setBackgroundColor(new BaseColor(242, 242, 242));
-
- table.addCell(c2);
-
-
-
- document.add(table);
- }
-
-
- //----------------------------------------------------------------------------------
-
- // step 5
- document.close();
-
- }
-
- @Override
- public void cellLayout(PdfPCell cell, Rectangle position,
- PdfContentByte[] canvases) {
- PdfWriter writer = canvases[0].getPdfWriter();
- PdfFormField radiogroup = PdfFormField.createRadioButton(writer, true);
- radiogroup.setFieldName(String.valueOf(tf));
- System.out.println(tf);
-
- float llx = position.getLeft();
- float lly = position.getBottom();
-
- float cell_h = cell.getHeight();
- float cell_w = cell.getWidth();
-
- Rectangle rect;
-
- for(int i=1 ; i<=5; i++){
-
- rect = new Rectangle(llx + (3+i)*cell_w/12, lly+cell_h/2-6, llx + (3+i)*cell_w/12+12 ,lly+cell_h/2+6);
-
- RadioCheckField radio = new RadioCheckField(writer, rect, null, String.valueOf(i));
- radio.setBorderColor(GrayColor.GRAYBLACK);
- radio.setCheckType(RadioCheckField.TYPE_SQUARE);
-
-
- try {
- PdfFormField field = radio.getRadioField();
- radiogroup.addKid(field);
-
- writer.addAnnotation(radiogroup);
- }
-
- catch(IOException ioe) {
- throw new ExceptionConverter(ioe);
- }
- catch(DocumentException de) {
- throw new ExceptionConverter(de);
- }
- }
-
-
-
- }
-
-
- public String getAnswers() throws IOException, DocumentException{
- PdfReader reader = new PdfReader(pathOutputFile);
- reader.removeUsageRights();
- PdfStamper stamper = new PdfStamper(reader, new FileOutputStream("outputPDF/buttons_filled2.pdf"));
-
-
-
- PdfAction.createSubmitForm(
- "outputPDF/request", null,
- PdfAction.SUBMIT_HTML_FORMAT | PdfAction.SUBMIT_COORDINATES));
- // add the button
-
-
-
- AcroFields form = reader.getAcroFields();
-
- StringBuilder sb = new StringBuilder();
-
-
- Set<String> fields = form.getFields().keySet();
- for(String key: fields){
- System.out.println("key = " + key);
- if(form.getFieldType(key)==AcroFields.FIELD_TYPE_RADIOBUTTON){
- sb.append(key);
- sb.append(",");
- sb.append(form.getField(key));
- sb.append(";");
- }
- }
-// stamper.close();
- reader.close();
-
-
- return sb.toString();
-
- }
-
-
-// /**
-// * Manipulates a PDF file src with the file dest as result
-// * @param src the original PDF
-// * @param dest the resulting PDF
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public void manipulatePdf(String src, String dest) throws IOException, DocumentException {
-// PdfReader reader = new PdfReader(src);
-// PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(dest));
-// AcroFields form = stamper.getAcroFields();
-// String[] radiostates = form.getAppearanceStates("language");
-// form.setField("language", radiostates[4]);
-// for (int i = 0; i < LANGUAGES.length; i++) {
-// String[] checkboxstates = form.getAppearanceStates("English");
-// form.setField(LANGUAGES[i], checkboxstates[i % 2 == 0 ? 1 : 0]);
-// }
-// stamper.close();
-// reader.close();
-//
-// PdfReader r = new PdfReader(dest);
-// AcroFields f = r.getAcroFields();
-// Set<String> fields = form.getFields().keySet();
-// for(String key: fields){
-// if(f.getFieldType(key)==AcroFields.FIELD_TYPE_RADIOBUTTON){
-// System.out.println(key);
-// System.out.println(f.getField(key));
-//
-// }
-// }
-// r.close();
-//
-// }
-//
-// /**
-// * Main method
-// * @param args no arguments needed
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public static void main(String[] args) throws IOException, DocumentException {
-// Questionnaire buttons = new Questionnaire();
-// buttons.createPdf(RESULT1);
-// buttons.manipulatePdf(RESULT1, RESULT2);
-// }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/7e/607cd2a44bac001410e2e30aa85db9d1 b/.metadata/.plugins/org.eclipse.core.resources/.history/7e/607cd2a44bac001410e2e30aa85db9d1
deleted file mode 100644
index f994d9b..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/7e/607cd2a44bac001410e2e30aa85db9d1
+++ /dev/null
@@ -1,886 +0,0 @@
-package ui;
-
-import io.ClientConnection;
-import io.CommAdapter;
-import io.Questionnaire;
-
-import java.awt.BorderLayout;
-import java.awt.Color;
-import java.awt.Component;
-import java.awt.Dimension;
-import java.awt.FlowLayout;
-import java.awt.Font;
-import java.awt.SystemColor;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.awt.event.WindowAdapter;
-import java.io.File;
-import java.io.IOException;
-import java.sql.SQLException;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.LinkedList;
-import java.util.Map;
-import java.util.Set;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
-import javax.swing.Box;
-import javax.swing.BoxLayout;
-import javax.swing.ButtonGroup;
-import javax.swing.DefaultComboBoxModel;
-import javax.swing.GroupLayout;
-import javax.swing.GroupLayout.Alignment;
-import javax.swing.ImageIcon;
-import javax.swing.JButton;
-import javax.swing.JComboBox;
-import javax.swing.JDialog;
-import javax.swing.JFileChooser;
-import javax.swing.JFrame;
-import javax.swing.JLabel;
-import javax.swing.JOptionPane;
-import javax.swing.JPanel;
-import javax.swing.JRadioButton;
-import javax.swing.JScrollPane;
-import javax.swing.JSeparator;
-import javax.swing.JTabbedPane;
-import javax.swing.JTextArea;
-import javax.swing.JTextPane;
-import javax.swing.JTree;
-import javax.swing.LayoutStyle.ComponentPlacement;
-import javax.swing.SwingConstants;
-import javax.swing.UIManager;
-import javax.swing.border.BevelBorder;
-import javax.swing.border.EmptyBorder;
-import javax.swing.border.EtchedBorder;
-import javax.swing.tree.DefaultMutableTreeNode;
-import javax.swing.tree.TreeModel;
-import javax.swing.tree.TreePath;
-
-import org.jpedal.examples.viewer.Commands;
-import org.jpedal.examples.viewer.Viewer;
-
-import utils.ClientProperties;
-
-import com.itextpdf.text.DocumentException;
-
-import database.DBconnectorClient;
-import framework.Diagnostic;
-import framework.MedUnit;
-import framework.Question;
-import framework.reply.ReplySurvey;
-import framework.test.TestName;
-
-/**
- *
- * @author youssef, raisaro
- */
-public class GUI extends javax.swing.JFrame {
-
- private static final Logger LOGGER = Logger.getLogger(GUI.class.getName());
-
- private static final long serialVersionUID = -4582280515597700650L;
-
- // configuration
- private ClientProperties props;
-
- private JTree jTree;
- private DBconnectorClient connectorClientDB;
- private LinkedList<Integer> patients;
-
- /** List of all relevant tests */
- private HashMap<String, TestName> testsByName;
- private Viewer viewer;
- private JDialog dialog;
- private JFrame frame;
- private boolean survey_submitted;
- private int close_trials;
- private Map<Integer, ButtonGroup> buttonGroupMap;
- private Questionnaire quest;
- private Map<Integer, Question> map;
- private Set<Integer> ids;
- private Map<String,String> answers;
- private Map<Integer, String> locations;
-
-
- /**
- * Creates new form GUI
- */
- public GUI(ClientProperties props){
-
- frame = this;
- this.props = props;
- this.connectorClientDB = new DBconnectorClient(props.getDbMsAccess());
- survey_submitted = false;
- close_trials = 0;
-
-
- try {
- initComponents();
-
- viewer = new Viewer(jScrollPane2, null);
- viewer.setupViewer();
-
- // create questionnare
-
-
- System.out.println("#of questions: " + ids.size());
-
-// viewer_q = new Viewer(jScrollPane4, null);
-// viewer_q.setupViewer();
-//
-// // specify file you wish to open (JPedal handles getting the byte data)
-// String filepathReport = "outputPDF/buttons_filled.pdf";
-//
-// // open generated PDF
-// // object must be either String in full filepath, or
-// // File object which can be relative
-// Object[] input = new Object[]{ new File(filepathReport) };
-// viewer_q.executeCommand(Commands.OPENFILE, input);
-
- JButton btnSubmitQuestionnaire = new JButton("Submit Questionnaire");
- btnSubmitQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- btnSubmitQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- submitButtonActionPerformed(arg0);
- }
- });
- JButton btnResetQuestionnaire = new JButton("Save as PDF");
- btnResetQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- savePDFButtonActionPerformed(arg0);
- }
- });
- btnResetQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- JPanel panel_button = new JPanel();
- panel_button.setLayout(new BoxLayout(panel_button, BoxLayout.X_AXIS));
-
- lblNewLabel_3 = new JLabel("");
- lblNewLabel_3.setIcon(new ImageIcon("res/location_icon.png"));
- panel_button.add(lblNewLabel_3);
-
-
-
- comboBox = new JComboBox<String>();
- comboBox.setFont(new Font("Tahoma", Font.BOLD, 12));
- comboBox.setModel(new DefaultComboBoxModel<String>(new String[] {"Select Location"}));
- for(Integer id_loc : locations.keySet()){
- comboBox.addItem(locations.get(id_loc));
- }
-
-
- panel_button.add(comboBox);
-
- rigidArea = Box.createRigidArea(new Dimension(10, 0));
- panel_button.add(rigidArea);
-
- lblNewLabel_1 = new JLabel("");
- lblNewLabel_1.setIcon(new ImageIcon("res/submit.png"));
- panel_button.add(lblNewLabel_1);
- panel_button.add(btnSubmitQuestionnaire);
-
- panel_button.add(Box.createRigidArea(new Dimension(10,0)));
-
- lblNewLabel_2 = new JLabel("");
- lblNewLabel_2.setIcon(new ImageIcon("res/pdf.png"));
- panel_button.add(lblNewLabel_2);
- panel_button.add(btnResetQuestionnaire);
- panel_button.setPreferredSize(new Dimension(211, 35));
- panel_button.validate();
-
- JPanel panel_3 = new JPanel();
- GroupLayout gl_panel = new GroupLayout(panel);
- gl_panel.setHorizontalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(41)
- .addGroup(gl_panel.createParallelGroup(Alignment.TRAILING)
- .addComponent(jScrollPane4, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE)
- .addComponent(panel_1, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE))
- .addGap(32))
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(63)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addGap(103)
- .addComponent(panel_button, GroupLayout.DEFAULT_SIZE, 488, Short.MAX_VALUE)
- .addGap(241))
- );
- gl_panel.setVerticalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(22)
- .addComponent(panel_1, GroupLayout.DEFAULT_SIZE, 192, Short.MAX_VALUE)
- .addGap(18)
- .addComponent(jScrollPane4, GroupLayout.DEFAULT_SIZE, 437, Short.MAX_VALUE)
- .addGap(26)
- .addGroup(gl_panel.createParallelGroup(Alignment.LEADING)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(panel_button, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE)))
- );
- panel_3.setLayout(new BoxLayout(panel_3, BoxLayout.X_AXIS));
-
-
- panel.setLayout(gl_panel);
-
-
-
-
-
-
- /////////////////////////////////////////////////////////
- // display the tests available
-
- // get the tests
- HashMap<String, ArrayList<TestName>> testsRelevantByGroup = connectorClientDB.getRelevantTestsByGroup();
- ArrayList<String> groups = new ArrayList<String>(testsRelevantByGroup.keySet());
-
- // flatten hashmap into linkedlist
-// tests = new LinkedList<>();
- testsByName = new HashMap<String, TestName>();
- for (String group : groups) {
-// tests.addAll(testsRelevantByGroup.get(group));
- for (TestName test : testsRelevantByGroup.get(group)) {
- testsByName.put(test.getName(), test);
- }
- }
-
- // define tree structure of the tests
- DefaultMutableTreeNode root = new DefaultMutableTreeNode("All");
-
- for (String group : groups) {
- DefaultMutableTreeNode child = new DefaultMutableTreeNode(group);
- root.add(child);
-
- for (TestName test : testsRelevantByGroup.get(group)) {
- DefaultMutableTreeNode grandChild = new DefaultMutableTreeNode(test.getName());
- child.add(grandChild);
- }
- }
-
- // define swing object
- jTree = new JTree(root);
-
- for(int i=0;i<jTree.getRowCount();i++){
- jTree.expandRow(i);
- }
-
- jScrollPane3.setViewportView(jTree);
-// jTree.addTreeSelectionListener(new TreeSelectionListener() {
-//
-// @Override
-// public void valueChanged(TreeSelectionEvent e) {
-// tp = jTree.getSelectionPaths();
-// }
-// });
- jScrollPane3.setViewportView(jTree);
-
- /////////////////////////////////////////////////////////
- // display the patients registered
-
- patients = connectorClientDB.getPatients();
- for (Integer patientId : patients) {
- jComboBox1.addItem(patientId.toString());
- }
-
- } catch (SQLException ex) {
- Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex);
- ex.printStackTrace();
-// } catch (IOException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
-// } catch (DocumentException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
- }
-
- }
-
- /**
- * 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() {
-
- jPanel1 = new javax.swing.JPanel();
- jLabel2 = new javax.swing.JLabel();
- jLabel1 = new javax.swing.JLabel();
- jPanel2 = new javax.swing.JPanel();
- jComboBox1 = new javax.swing.JComboBox<String>();
- jButton1 = new javax.swing.JButton();
- jButton1.setFont(new Font("Tahoma", Font.BOLD, 12));
- jLabel3 = new javax.swing.JLabel();
- jLabel4 = new javax.swing.JLabel();
- jScrollPane3 = new javax.swing.JScrollPane();
- jScrollPane2 = new javax.swing.JScrollPane();
- jMenuBar1 = new javax.swing.JMenuBar();
- jMenu1 = new javax.swing.JMenu();
- jMenuItem1 = new javax.swing.JMenuItem();
- jMenu2 = new javax.swing.JMenu();
- dialog = new JDialog();
- tabbedPane = new JTabbedPane(JTabbedPane.TOP);
-
- setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
- addWindowListener(new WindowAdapter() {
- @Override
- public void windowClosing(java.awt.event.WindowEvent windowEvent) {
- if (!survey_submitted && close_trials <= 2){
- JOptionPane.showMessageDialog(frame, "Before closing the application, please fill in and submit the questionnaire.");
- close_trials++;
- tabbedPane.setSelectedIndex(1);
- }else{
- System.exit(0);
- }
- }
- });
- setTitle("HIV Pharmacogenomics\n");
-
- jLabel2.setIcon(new javax.swing.ImageIcon("res/shcs_logo2_small.gif")); // NOI18N
-
- jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
- jLabel1.setText("HIV Pharmacogenomics | Project #693");
-
- javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
- jPanel1.setLayout(jPanel1Layout);
- jPanel1Layout.setHorizontalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap(71, Short.MAX_VALUE)
- .addComponent(jLabel1)
- .addGap(18, 18, 18)
- .addComponent(jLabel2))
- );
- jPanel1Layout.setVerticalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jLabel1)
- .addGap(11, 11, 11))
- .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)
- );
-
- jPanel2.setBackground(new java.awt.Color(255, 255, 255));
- jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
-
- jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<String>(new String[]{"Select Patient"}));
-
- jButton1.setText("Run Test");
- jButton1.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton1ActionPerformed(evt);
- }
- });
-
- JLabel lblNewLabel = new JLabel("");
- lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
- lblNewLabel.setIcon(new javax.swing.ImageIcon("res/gears.png"));
-
-
-
- javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
- jPanel2Layout.setHorizontalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addComponent(jComboBox1, 0, 248, Short.MAX_VALUE)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addGap(75)
- .addGroup(jPanel2Layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jButton1)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 75, GroupLayout.PREFERRED_SIZE))
- .addContainerGap(98, Short.MAX_VALUE))
- );
- jPanel2Layout.setVerticalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addComponent(jComboBox1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED, 223, Short.MAX_VALUE)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jButton1)
- .addGap(19))
- );
- jPanel2.setLayout(jPanel2Layout);
-
- jLabel3.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel3.setText("Select Patient");
-
- jLabel4.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel4.setText("Select Test");
-
- jScrollPane3.setBackground(new java.awt.Color(255, 255, 255));
-
- jMenu1.setText("File");
-
- jMenuItem1.setText("Exit");
- jMenu1.add(jMenuItem1);
-
- jMenuBar1.add(jMenu1);
-
- jMenu2.setText("Edit");
- jMenuBar1.add(jMenu2);
-
- setJMenuBar(jMenuBar1);
-
-
-
- javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
- layout.setHorizontalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(layout.createParallelGroup(Alignment.LEADING, false)
- .addComponent(jLabel3)
- .addComponent(jLabel4)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, 244, Short.MAX_VALUE)
- .addComponent(jScrollPane3))
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 970, Short.MAX_VALUE))
- .addContainerGap())
- );
- layout.setVerticalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel4))
- .addPreferredGap(ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addComponent(jScrollPane3, GroupLayout.PREFERRED_SIZE, 388, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jLabel3)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 785, Short.MAX_VALUE))
- .addContainerGap())
- );
-
-
- jScrollPane2.setAutoscrolls(true);
- jScrollPane3.setAutoscrolls(true);
- tabbedPane.addTab("Report", new ImageIcon("res/report_icon.gif"), jScrollPane2, null);
- tabbedPane.setBackgroundAt(0, new Color(255, 255, 255));
-
- panel = new JPanel();
- tabbedPane.addTab("Survey", new ImageIcon("res/survey_icon.png"), panel, null);
- tabbedPane.setBackgroundAt(1, new Color(255, 255, 255));
- tabbedPane.setEnabledAt(1, true);
-
- panel_1 = new JPanel();
- panel_1.setBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null));
- panel_1.setBackground(UIManager.getColor("Button.background"));
-
- JLabel label = new JLabel("");
- label.setIcon(new ImageIcon("res/shcs_logo2_medium.gif"));
-
- lblDearDoctor = new JLabel("Dear Doctor,");
- lblDearDoctor.setFont(new Font("Tahoma", Font.BOLD, 14));
-
- JScrollPane scrollPane = new JScrollPane();
- scrollPane.setBorder(null);
- GroupLayout gl_panel_1 = new GroupLayout(panel_1);
- gl_panel_1.setHorizontalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(25)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 666, Short.MAX_VALUE)
- .addComponent(lblDearDoctor))
- .addContainerGap())
- );
- gl_panel_1.setVerticalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(22)
- .addComponent(lblDearDoctor)
- .addGap(18)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 120, Short.MAX_VALUE)
- .addContainerGap())
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(36)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 96, GroupLayout.PREFERRED_SIZE)
- .addContainerGap(56, Short.MAX_VALUE))
- );
-
- JTextPane txtpnTodayYouAre = new JTextPane();
- txtpnTodayYouAre.setBorder(null);
- txtpnTodayYouAre.setText("Today you are receiving a pharmacogenetic report based on the genetic information of your patient. Because the human genome contains extremely private and sensitive information of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier, it must be managed with care.\r\nToday you are receiving a pharmacogenetic report based on the genetic information of your patient. Because the human genome contains extremely private and sensitive information of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier, it must be managed with care.\r\nToday you are receiving a pharmacogenetic report based on the genetic information of your patient. Because the human genome contains extremely private and sensitive information of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier, it must be managed with care.");
- txtpnTodayYouAre.setFont(new Font("Tahoma", Font.PLAIN, 13));
- txtpnTodayYouAre.setEditable(false);
- txtpnTodayYouAre.setBackground(SystemColor.menu);
- scrollPane.setViewportView(txtpnTodayYouAre);
- panel_1.setLayout(gl_panel_1);
- jScrollPane4 = new javax.swing.JScrollPane();
- getContentPane().setLayout(layout);
-
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
- ReplySurvey replySurvey = commHandlerAdapter.callServiceSurvey();
-
- map = replySurvey.getQuestions();
- ids = map.keySet();
- locations = replySurvey.getLocations();
-
- panel_2 = new JPanel();
- panel_2.setBackground(Color.WHITE);
- panel_2.setBorder(new BevelBorder(BevelBorder.LOWERED, null, null, null, null));
- jScrollPane4.setViewportView(panel_2);
- panel_2.setLayout(new BoxLayout(panel_2, BoxLayout.Y_AXIS));
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
-
-
- for(Integer id : ids){
- ButtonGroup group = new ButtonGroup();
- JRadioButton r1 = new JRadioButton("1"); r1.setActionCommand("1"); r1.setBackground(Color.WHITE);
- JRadioButton r2 = new JRadioButton("2"); r2.setActionCommand("2"); r2.setBackground(Color.WHITE);
- JRadioButton r3 = new JRadioButton("3"); r3.setActionCommand("3"); r3.setBackground(Color.WHITE);
- JRadioButton r4 = new JRadioButton("4"); r4.setActionCommand("4"); r4.setBackground(Color.WHITE);
- JRadioButton r5 = new JRadioButton("5"); r5.setActionCommand("5"); r5.setBackground(Color.WHITE);
- group.add(r1);
- group.add(r2);
- group.add(r3);
- group.add(r4);
- group.add(r5);
- JPanel radio_panel = new JPanel();
- radio_panel.setLayout((new BoxLayout(radio_panel, BoxLayout.X_AXIS)));
- radio_panel.setBackground(Color.WHITE);
- radio_panel.setAlignmentX(Component.CENTER_ALIGNMENT);
- radio_panel.add(r1);
- radio_panel.add(r2);
- radio_panel.add(r3);
- radio_panel.add(r4);
- radio_panel.add(r5);
- radio_panel.doLayout();
- radio_panel.setPreferredSize(radio_panel.getPreferredSize());
- JTextArea question = new JTextArea(id + ") " + map.get(id).getQuestion());
- question.setLineWrap(true);
- question.setWrapStyleWord(true);
- question.setAlignmentX(Component.CENTER_ALIGNMENT);
- question.setFont(new Font("Tahoma", Font.PLAIN, 13));
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- panel_2.add(question);
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- panel_2.add(radio_panel);
- panel_2.add(new JSeparator());
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- buttonGroupMap.put(id, group);
-
- }
-
-
-
- this.setSize(new Dimension(1200, 865));
-// pack();
- }// </editor-fold>//GEN-END:initComponents
-
-
- private void submitButtonActionPerformed(java.awt.event.ActionEvent evt){
-
- try{
- answers = new HashMap<String, String>();
- StringBuilder sb = new StringBuilder();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- sb.append(q).append(",");
- sb.append(bg.getSelection().getActionCommand()).append(";");
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- String answer = sb.toString();
- Integer id_loc = null;
- for(Integer i: locations.keySet()){
- if(locations.get(i).equals(comboBox.getSelectedItem().toString()))
- id_loc = i;
- }
-
- String id_p;
- if(jComboBox1.getSelectedItem().toString().equals("Select Patient"))
- id_p = "0";
- else
- id_p = jComboBox1.getSelectedItem().toString();
-
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
-
- String reply = commHandlerAdapter.callServiceSurveyAnswer(answer, id_loc.toString(), id_p);
-
- if(reply.equals("1")){
- survey_submitted = true;
-
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Congrats! Your aswers have been sent to the SHCS datacenter.",
- "Information Message",
- JOptionPane.INFORMATION_MESSAGE);
- }
- else{
- throw new IOException();
- }
-
-
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "The SHCS datacenter does not respond. Please save the survey and send it to jean.raisaro@epfl.ch.",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
- private void savePDFButtonActionPerformed(java.awt.event.ActionEvent evt){
- try {
-
- answers = new HashMap<String, String>();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- JFileChooser chooser = new JFileChooser();
- // Note: source for ExampleFileFilter can be found in FileChooserDemo,
- // under the demo/jfc directory in the JDK.
-
- int returnVal = chooser.showSaveDialog(this);
- System.out.println(returnVal);
- if(returnVal == JFileChooser.APPROVE_OPTION) {
- System.out.println("You chose to open this file: " +
- chooser.getSelectedFile().getPath());
- quest = new Questionnaire(chooser.getSelectedFile().getPath() + ".pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }else{
- quest = new Questionnaire("outputPDF/survey.pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }
-
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (DocumentException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (NullPointerException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
-
- private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
-
- JPanel contentPanel = new JPanel();
-
- dialog.setBounds(100, 100, 410, 80);
- dialog.getContentPane().setLayout(new BorderLayout());
- contentPanel.setLayout(new FlowLayout());
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- dialog.getContentPane().add(contentPanel, BorderLayout.CENTER);
- {
- JLabel label = new JLabel("Please wait...The overall computation can take few seconds");
- label.setHorizontalAlignment(SwingConstants.CENTER);
- label.setFont(new Font("Tahoma", Font.PLAIN, 12));
- contentPanel.add(label);
- }
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
- dialog.getContentPane().add(buttonPane, BorderLayout.SOUTH);
- }
- dialog.setLocationRelativeTo(this);
- dialog.setVisible(true);
-
- GUIWorker gw = new GUIWorker(this, props);
- Thread t = new Thread(gw);
- t.start();
-
- }
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JButton jButton1;
- private javax.swing.JComboBox<String> jComboBox1;
- private javax.swing.JLabel jLabel1;
- private javax.swing.JLabel jLabel2;
- private javax.swing.JLabel jLabel3;
- private javax.swing.JLabel jLabel4;
- private javax.swing.JMenu jMenu1;
- private javax.swing.JMenu jMenu2;
- private javax.swing.JMenuBar jMenuBar1;
- private javax.swing.JMenuItem jMenuItem1;
- private javax.swing.JPanel jPanel1;
- private javax.swing.JPanel jPanel2;
- private javax.swing.JScrollPane jScrollPane3;
- private javax.swing.JTabbedPane tabbedPane;
- private javax.swing.JScrollPane jScrollPane2;
- private javax.swing.JScrollPane jScrollPane4;
- private JPanel panel;
- private JPanel panel_1;
- private JPanel panel_2;
- private JLabel lblDearDoctor;
- private JLabel lblNewLabel_1;
- private JLabel lblNewLabel_2;
- private JLabel lblNewLabel_3;
- private JComboBox<String> comboBox;
- private Component rigidArea;
-
- // End of variables declaration//GEN-END:variables
-
-
- class GUIWorker implements Runnable{
-
- private JFrame mainFrame;
- private ClientProperties props;
- private MedUnit mu;
-
- public GUIWorker(GUI gui, ClientProperties props) {
- mainFrame = gui;
-
- this.props = props;
- this.mu = new MedUnit(props, 0);
- }
-
- @Override
- public void run() {
-
- try{
- int patientId = Integer.parseInt((String) jComboBox1.getSelectedItem());
-
- // convert selected tests to test identifiers
- ArrayList<TestName> selectedTests = new ArrayList<TestName>();
- for (String currentName : getSelectedTests()) {
- TestName currentTest = testsByName.get(currentName);
-
- if (currentTest == null) {
- throw new IllegalStateException("Trying to run unknown test: " + currentTest);
- }
-
- selectedTests.add(currentTest);
- }
-
- // run tests
- Diagnostic diagnostic = mu.runTests(patientId, selectedTests);
-
- // warn for tests with missing material
- warnFailedTests(diagnostic, selectedTests);
-
- // create report
- mu.createReport(patientId, selectedTests, diagnostic);
-
- dialog.setVisible(false);
-
- // specify file you wish to open (JPedal handles getting the byte data)
- String filepathReport = props.getPathPDF() + patientId + ".pdf";
-
- // open generated PDF
- // object must be either String in full filepath, or
- // File object which can be relative
- Object[] input = new Object[]{ new File(filepathReport) };
- viewer.executeCommand(Commands.OPENFILE, input);
-
- // display CAD result as bar plot
- if (diagnostic.hasCAD()) {
- System.out.println("CAD = " + diagnostic.getResultCAD());
- BarPlotFrame frame = new BarPlotFrame(diagnostic.getResultCAD(), patientId);
- frame.setVisible(true);
- frame.setAlwaysOnTop(true);
- }
-
-
- } catch (SQLException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Please select a patient.");
- }
-
- }
-
- private void warnFailedTests(Diagnostic diagnostic, ArrayList<TestName> selectedTests) {
- ArrayList<Integer> failedTests = diagnostic.getInvalidTests();
-
- if (!failedTests.isEmpty()) {
- String msg = "Could not complete tests: ";
- boolean first = true;
- for (TestName testName : selectedTests) {
- if (failedTests.contains(testName.getId())) {
- if (first) {
- first = false;
- } else {
- msg += ", ";
- }
- msg += testName.getName();
- }
- }
- displayError(msg);
- }
-
- }
-
- private void displayError(String msg) {
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- mainFrame,
- msg,
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
-
- private ArrayList<String> getSelectedTests() {
- ArrayList<String> tests = new ArrayList<String>();
-
- for (TreePath treePath : jTree.getSelectionPaths()) {
- tests.addAll(getChildrenTests(jTree.getModel(), treePath.getLastPathComponent()));
- }
-
- return tests;
- }
-
- private ArrayList<String> getChildrenTests(TreeModel model, Object node) {
- ArrayList<String> tests = new ArrayList<String>();
-
- if (model.isLeaf(node)) { // leaf
- DefaultMutableTreeNode leaf = (DefaultMutableTreeNode) node;
- tests.add(leaf.toString());
- }
- else { // iterate over children
- for (int i = 0; i < model.getChildCount(node); i++) {
- tests.addAll(getChildrenTests(model, model.getChild(node, i)));
- }
- }
-
- return tests;
- }
-
- }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/8/202431af79a8001419a38fd8608ce0e6 b/.metadata/.plugins/org.eclipse.core.resources/.history/8/202431af79a8001419a38fd8608ce0e6
deleted file mode 100644
index 385c399..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/8/202431af79a8001419a38fd8608ce0e6
+++ /dev/null
@@ -1,138 +0,0 @@
-package io.serializer.xml;
-
-import io.serializer.ParserNamespace;
-
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.Map;
-import java.util.Set;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
-import org.jdom2.Document;
-import org.jdom2.Element;
-import org.jdom2.JDOMException;
-
-import utils.StringUtils;
-import framework.Question;
-import framework.reply.ReplySurvey;
-
-public class XMLParserSurvey extends XMLParser{
-
- private static final Logger LOGGER = Logger.getLogger(XMLParserSurvey.class.getName());
-
- public String replyToString(ReplySurvey reply) throws IOException {
- Element elemRoot = new Element(ParserNamespace.CNAME_AWR_SURVEY);
- Document doc = new Document(elemRoot);
-
- // add questions
- Element elemQuestionList = new Element(ParserNamespace.CNAME_QUESTION_LIST);
- elemQuestionList.setText(concatQuestionList(reply.getQuestions()));
- elemRoot.addContent(elemQuestionList);
-
- // add locations
- Element elemLocationList = new Element(ParserNamespace.CNAME_LOCATION_LIST);
- elemLocationList.setText(concatLocationList(reply.getLocations()));
- elemRoot.addContent(elemLocationList);
-
-
- return documentToString(doc);
- }
-
-
- public ReplySurvey stringToReply(String replyString) {
- ReplySurvey reply = null;
-
- try {
- Document doc = stringToDocument(replyString);
- Element elemRoot = doc.getRootElement();
-
- Element elemQuestionList = elemRoot.getChild(ParserNamespace.CNAME_QUESTION_LIST);
- Element elemLocationList = elemRoot.getChild(ParserNamespace.CNAME_LOCATION_LIST);
-
-
- Map<Integer, Question> questions = parseConcatQuestionList(elemQuestionList.getText());
- ArrayList<String> locations = parseConcatLocationList(elemLocationList.getText());
-
-
- reply = new ReplySurvey(questions, locations);
- } catch (JDOMException e) {
- LOGGER.log(Level.SEVERE, null, e);
- }
-
- return reply;
- }
-
- private String concatLocationList(ArrayList<String> list) {
- if (list == null || list.isEmpty()) {
- return "";
- }
-
- return StringUtils.join(SEP_EXT, list);
- }
-
- private String concatQuestionList(Map<Integer, Question> map){
- if(map == null || map.isEmpty()){
- return "";
- }
- StringBuilder sb = new StringBuilder();
- Set<Integer> ids = map.keySet();
-
- boolean first = true;
- for (Integer id : ids) {
- if (first) {
- first = false;
- } else {
- sb.append(SEP_EXT);
- }
-
- sb.append(id).append(SEP_INT_QUESTIONS).append(map.get(id).getQuestion())
- .append(SEP_INT_QUESTIONS).append(map.get(id).getType());
-
- }
-
- return sb.toString();
-
- }
-
- private ArrayList<String> parseConcatLocationList(String val) {
- if (val.equals("")) {
- return new ArrayList<String>();
- }
- ArrayList<String> list = new ArrayList<String>();
-
- String[] strings = val.split(SEP_EXT, -1);
-
- for (int i = 0; i < strings.length; i++) {
- list.add(strings[i]);
- }
-
- return list;
- }
-
- private Map<Integer, Question> parseConcatQuestionList(String val){
- if (val.equals("")) {
- return new HashMap<Integer, Question>();
- }
-
- Map<Integer, Question> map = new HashMap<Integer, Question>();
-
- String[] strings = val.split(SEP_EXT,-1);
- System.out.println(strings[2]);
- for(int i = 0; i<strings.length; i++){
- if (strings[i].equals("")) map.put(null, null);
- else{
- String[] values = strings[i].split(SEP_INT_QUESTIONS);
- int id = Integer.parseInt(values[0]);
- String question = values[1];
- int type = Integer.parseInt(values[2]);
-
- map.put(id, new Question(type, question));
- }
- }
- return map;
-
- }
-
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/8/70a262b150ac001410e2e30aa85db9d1 b/.metadata/.plugins/org.eclipse.core.resources/.history/8/70a262b150ac001410e2e30aa85db9d1
deleted file mode 100644
index 8ba2d43..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/8/70a262b150ac001410e2e30aa85db9d1
+++ /dev/null
@@ -1,905 +0,0 @@
-package ui;
-
-import io.ClientConnection;
-import io.CommAdapter;
-import io.Questionnaire;
-
-import java.awt.BorderLayout;
-import java.awt.Color;
-import java.awt.Component;
-import java.awt.Dimension;
-import java.awt.FlowLayout;
-import java.awt.Font;
-import java.awt.SystemColor;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.awt.event.WindowAdapter;
-import java.io.File;
-import java.io.IOException;
-import java.sql.SQLException;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.LinkedList;
-import java.util.Map;
-import java.util.Set;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
-import javax.swing.Box;
-import javax.swing.BoxLayout;
-import javax.swing.ButtonGroup;
-import javax.swing.DefaultComboBoxModel;
-import javax.swing.GroupLayout;
-import javax.swing.GroupLayout.Alignment;
-import javax.swing.ImageIcon;
-import javax.swing.JButton;
-import javax.swing.JComboBox;
-import javax.swing.JDialog;
-import javax.swing.JFileChooser;
-import javax.swing.JFrame;
-import javax.swing.JLabel;
-import javax.swing.JOptionPane;
-import javax.swing.JPanel;
-import javax.swing.JRadioButton;
-import javax.swing.JScrollPane;
-import javax.swing.JSeparator;
-import javax.swing.JTabbedPane;
-import javax.swing.JTextArea;
-import javax.swing.JTextPane;
-import javax.swing.JTree;
-import javax.swing.LayoutStyle.ComponentPlacement;
-import javax.swing.SwingConstants;
-import javax.swing.UIManager;
-import javax.swing.border.BevelBorder;
-import javax.swing.border.EmptyBorder;
-import javax.swing.border.EtchedBorder;
-import javax.swing.tree.DefaultMutableTreeNode;
-import javax.swing.tree.TreeModel;
-import javax.swing.tree.TreePath;
-
-import org.jpedal.examples.viewer.Commands;
-import org.jpedal.examples.viewer.Viewer;
-
-import utils.ClientProperties;
-
-import com.itextpdf.text.DocumentException;
-
-import database.DBconnectorClient;
-import framework.Diagnostic;
-import framework.MedUnit;
-import framework.Question;
-import framework.reply.ReplySurvey;
-import framework.test.TestName;
-import javax.swing.border.SoftBevelBorder;
-
-/**
- *
- * @author youssef, raisaro
- */
-public class GUI extends javax.swing.JFrame {
-
- private static final Logger LOGGER = Logger.getLogger(GUI.class.getName());
-
- private static final long serialVersionUID = -4582280515597700650L;
-
- // configuration
- private ClientProperties props;
-
- private JTree jTree;
- private DBconnectorClient connectorClientDB;
- private LinkedList<Integer> patients;
-
- /** List of all relevant tests */
- private HashMap<String, TestName> testsByName;
- private Viewer viewer;
- private JDialog dialog;
- private JFrame frame;
- private boolean survey_submitted;
- private int close_trials;
- private Map<Integer, ButtonGroup> buttonGroupMap;
- private Questionnaire quest;
- private Map<Integer, Question> map;
- private Set<Integer> ids;
- private Map<String,String> answers;
- private Map<Integer, String> locations;
-
-
- /**
- * Creates new form GUI
- */
- public GUI(ClientProperties props){
-
- frame = this;
- this.props = props;
- this.connectorClientDB = new DBconnectorClient(props.getDbMsAccess());
- survey_submitted = false;
- close_trials = 0;
-
-
- try {
- initComponents();
-
- viewer = new Viewer(jScrollPane2, null);
- viewer.setupViewer();
-
- // create questionnare
-
-
- System.out.println("#of questions: " + ids.size());
-
-// viewer_q = new Viewer(jScrollPane4, null);
-// viewer_q.setupViewer();
-//
-// // specify file you wish to open (JPedal handles getting the byte data)
-// String filepathReport = "outputPDF/buttons_filled.pdf";
-//
-// // open generated PDF
-// // object must be either String in full filepath, or
-// // File object which can be relative
-// Object[] input = new Object[]{ new File(filepathReport) };
-// viewer_q.executeCommand(Commands.OPENFILE, input);
-
- JButton btnSubmitQuestionnaire = new JButton("Submit Questionnaire");
- btnSubmitQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- btnSubmitQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- submitButtonActionPerformed(arg0);
- }
- });
- JButton btnResetQuestionnaire = new JButton("Save as PDF");
- btnResetQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- savePDFButtonActionPerformed(arg0);
- }
- });
- btnResetQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- JPanel panel_button = new JPanel();
- panel_button.setLayout(new BoxLayout(panel_button, BoxLayout.X_AXIS));
-
- lblNewLabel_3 = new JLabel("");
- lblNewLabel_3.setIcon(new ImageIcon("res/location_icon.png"));
- panel_button.add(lblNewLabel_3);
-
-
-
- comboBox = new JComboBox<String>();
- comboBox.setFont(new Font("Tahoma", Font.BOLD, 12));
- comboBox.setModel(new DefaultComboBoxModel<String>(new String[] {"Select Location"}));
- for(Integer id_loc : locations.keySet()){
- comboBox.addItem(locations.get(id_loc));
- }
-
-
- panel_button.add(comboBox);
-
- rigidArea = Box.createRigidArea(new Dimension(10, 0));
- panel_button.add(rigidArea);
-
- lblNewLabel_1 = new JLabel("");
- lblNewLabel_1.setIcon(new ImageIcon("res/submit.png"));
- panel_button.add(lblNewLabel_1);
- panel_button.add(btnSubmitQuestionnaire);
-
- panel_button.add(Box.createRigidArea(new Dimension(10,0)));
-
- lblNewLabel_2 = new JLabel("");
- lblNewLabel_2.setIcon(new ImageIcon("res/pdf.png"));
- panel_button.add(lblNewLabel_2);
- panel_button.add(btnResetQuestionnaire);
- panel_button.setPreferredSize(new Dimension(211, 35));
- panel_button.validate();
-
- JPanel panel_3 = new JPanel();
- GroupLayout gl_panel = new GroupLayout(panel);
- gl_panel.setHorizontalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(63)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addGap(103)
- .addComponent(panel_button, GroupLayout.DEFAULT_SIZE, 498, Short.MAX_VALUE)
- .addGap(241))
- .addGroup(Alignment.TRAILING, gl_panel.createSequentialGroup()
- .addGap(41)
- .addGroup(gl_panel.createParallelGroup(Alignment.TRAILING)
- .addComponent(panel_1, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE)
- .addComponent(jScrollPane4, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE))
- .addGap(32))
- );
- gl_panel.setVerticalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(22)
- .addComponent(panel_1, GroupLayout.PREFERRED_SIZE, 245, GroupLayout.PREFERRED_SIZE)
- .addGap(18)
- .addComponent(jScrollPane4, GroupLayout.DEFAULT_SIZE, 384, Short.MAX_VALUE)
- .addGap(26)
- .addGroup(gl_panel.createParallelGroup(Alignment.LEADING)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(panel_button, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE)))
- );
- panel_3.setLayout(new BoxLayout(panel_3, BoxLayout.X_AXIS));
-
-
- panel.setLayout(gl_panel);
-
-
-
-
-
-
- /////////////////////////////////////////////////////////
- // display the tests available
-
- // get the tests
- HashMap<String, ArrayList<TestName>> testsRelevantByGroup = connectorClientDB.getRelevantTestsByGroup();
- ArrayList<String> groups = new ArrayList<String>(testsRelevantByGroup.keySet());
-
- // flatten hashmap into linkedlist
-// tests = new LinkedList<>();
- testsByName = new HashMap<String, TestName>();
- for (String group : groups) {
-// tests.addAll(testsRelevantByGroup.get(group));
- for (TestName test : testsRelevantByGroup.get(group)) {
- testsByName.put(test.getName(), test);
- }
- }
-
- // define tree structure of the tests
- DefaultMutableTreeNode root = new DefaultMutableTreeNode("All");
-
- for (String group : groups) {
- DefaultMutableTreeNode child = new DefaultMutableTreeNode(group);
- root.add(child);
-
- for (TestName test : testsRelevantByGroup.get(group)) {
- DefaultMutableTreeNode grandChild = new DefaultMutableTreeNode(test.getName());
- child.add(grandChild);
- }
- }
-
- // define swing object
- jTree = new JTree(root);
-
- for(int i=0;i<jTree.getRowCount();i++){
- jTree.expandRow(i);
- }
-
- jScrollPane3.setViewportView(jTree);
-// jTree.addTreeSelectionListener(new TreeSelectionListener() {
-//
-// @Override
-// public void valueChanged(TreeSelectionEvent e) {
-// tp = jTree.getSelectionPaths();
-// }
-// });
- jScrollPane3.setViewportView(jTree);
-
- /////////////////////////////////////////////////////////
- // display the patients registered
-
- patients = connectorClientDB.getPatients();
- for (Integer patientId : patients) {
- jComboBox1.addItem(patientId.toString());
- }
-
- } catch (SQLException ex) {
- Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex);
- ex.printStackTrace();
-// } catch (IOException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
-// } catch (DocumentException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
- }
-
- }
-
- /**
- * 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() {
-
- jPanel1 = new javax.swing.JPanel();
- jLabel2 = new javax.swing.JLabel();
- jLabel1 = new javax.swing.JLabel();
- jPanel2 = new javax.swing.JPanel();
- jComboBox1 = new javax.swing.JComboBox<String>();
- jButton1 = new javax.swing.JButton();
- jButton1.setFont(new Font("Tahoma", Font.BOLD, 12));
- jLabel3 = new javax.swing.JLabel();
- jLabel4 = new javax.swing.JLabel();
- jScrollPane3 = new javax.swing.JScrollPane();
- jScrollPane2 = new javax.swing.JScrollPane();
- jMenuBar1 = new javax.swing.JMenuBar();
- jMenu1 = new javax.swing.JMenu();
- jMenuItem1 = new javax.swing.JMenuItem();
- jMenu2 = new javax.swing.JMenu();
- dialog = new JDialog();
- tabbedPane = new JTabbedPane(JTabbedPane.TOP);
-
- setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
- addWindowListener(new WindowAdapter() {
- @Override
- public void windowClosing(java.awt.event.WindowEvent windowEvent) {
- if (!survey_submitted && close_trials <= 2){
- JOptionPane.showMessageDialog(frame, "Before closing the application, please fill in and submit the questionnaire.");
- close_trials++;
- tabbedPane.setSelectedIndex(1);
- }else{
- System.exit(0);
- }
- }
- });
- setTitle("HIV Pharmacogenomics\n");
-
- jLabel2.setIcon(new javax.swing.ImageIcon("res/shcs_logo2_small.gif")); // NOI18N
-
- jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
- jLabel1.setText("HIV Pharmacogenomics | Project #693");
-
- javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
- jPanel1.setLayout(jPanel1Layout);
- jPanel1Layout.setHorizontalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap(71, Short.MAX_VALUE)
- .addComponent(jLabel1)
- .addGap(18, 18, 18)
- .addComponent(jLabel2))
- );
- jPanel1Layout.setVerticalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jLabel1)
- .addGap(11, 11, 11))
- .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)
- );
-
- jPanel2.setBackground(new java.awt.Color(255, 255, 255));
- jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
-
- jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<String>(new String[]{"Select Patient"}));
-
- jButton1.setText("Run Test");
- jButton1.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton1ActionPerformed(evt);
- }
- });
-
- JLabel lblNewLabel = new JLabel("");
- lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
- lblNewLabel.setIcon(new javax.swing.ImageIcon("res/gears.png"));
-
-
-
- javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
- jPanel2Layout.setHorizontalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addComponent(jComboBox1, 0, 248, Short.MAX_VALUE)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addGap(75)
- .addGroup(jPanel2Layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jButton1)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 75, GroupLayout.PREFERRED_SIZE))
- .addContainerGap(98, Short.MAX_VALUE))
- );
- jPanel2Layout.setVerticalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addComponent(jComboBox1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED, 223, Short.MAX_VALUE)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jButton1)
- .addGap(19))
- );
- jPanel2.setLayout(jPanel2Layout);
-
- jLabel3.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel3.setText("Select Patient");
-
- jLabel4.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel4.setText("Select Test");
-
- jScrollPane3.setBackground(new java.awt.Color(255, 255, 255));
-
- jMenu1.setText("File");
-
- jMenuItem1.setText("Exit");
- jMenu1.add(jMenuItem1);
-
- jMenuBar1.add(jMenu1);
-
- jMenu2.setText("Edit");
- jMenuBar1.add(jMenu2);
-
- setJMenuBar(jMenuBar1);
-
-
-
- javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
- layout.setHorizontalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(layout.createParallelGroup(Alignment.LEADING, false)
- .addComponent(jLabel3)
- .addComponent(jLabel4)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, 244, Short.MAX_VALUE)
- .addComponent(jScrollPane3))
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 970, Short.MAX_VALUE))
- .addContainerGap())
- );
- layout.setVerticalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel4))
- .addPreferredGap(ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addComponent(jScrollPane3, GroupLayout.PREFERRED_SIZE, 388, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jLabel3)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 785, Short.MAX_VALUE))
- .addContainerGap())
- );
-
-
- jScrollPane2.setAutoscrolls(true);
- jScrollPane3.setAutoscrolls(true);
- tabbedPane.addTab("Report", new ImageIcon("res/report_icon.gif"), jScrollPane2, null);
- tabbedPane.setBackgroundAt(0, new Color(255, 255, 255));
-
- panel = new JPanel();
- tabbedPane.addTab("Survey", new ImageIcon("res/survey_icon.png"), panel, null);
- tabbedPane.setBackgroundAt(1, new Color(255, 255, 255));
- tabbedPane.setEnabledAt(1, true);
-
- panel_1 = new JPanel();
- panel_1.setBorder(new SoftBevelBorder(BevelBorder.LOWERED, null, null, null, null));
- panel_1.setBackground(Color.WHITE);
-
- JLabel label = new JLabel("");
- label.setIcon(new ImageIcon("res/shcs_logo2_medium.gif"));
-
- lblDearDoctor = new JLabel("Dear Doctor,");
- lblDearDoctor.setFont(new Font("Tahoma", Font.BOLD, 14));
-
- JScrollPane scrollPane = new JScrollPane();
- scrollPane.setBorder(null);
- GroupLayout gl_panel_1 = new GroupLayout(panel_1);
- gl_panel_1.setHorizontalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(Alignment.LEADING, gl_panel_1.createSequentialGroup()
- .addGap(25)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addComponent(lblDearDoctor)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 661, Short.MAX_VALUE))
- .addContainerGap())
- );
- gl_panel_1.setVerticalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addContainerGap()
- .addComponent(lblDearDoctor)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 203, Short.MAX_VALUE))
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(36)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 96, GroupLayout.PREFERRED_SIZE)))
- .addContainerGap())
- );
-
- JTextPane txtpnTodayYouAre = new JTextPane();
- txtpnTodayYouAre.setBorder(null);
- txtpnTodayYouAre.setText("Today you are receiving a pharmacogenetics report based on the genome of your patient. Because of its highly sensitive nature, " +
- "the genetic information you are provided with is processed in a privacy-preserving way. In particular, to protect patients’ genomic privacy, " +
- "their genetic and clinical data is stored encrypted at the SHCS data center, and securely analyzed through a sophisticated algorithm designed and developed at EPFL [1, 2]. " +
- "The actual clinical and genetic information is never revealed. Only the authorized users, such as you, can get some processed information, for example, the final result of a " +
- "pharmacogenetics risk test.\nThis mechanism protects the data against insiders or hackers trying to illegally access patients’ medical information, while still allowing authorized " +
- "users to obtain the information they need." +
- "\n\nTo help us understanding the importance of genomic privacy in the medical domain, and the impact of privacy-enhancing technologies in daily clinical practice, please complete the following survey.");
- txtpnTodayYouAre.setFont(new Font("Tahoma", Font.PLAIN, 13));
- txtpnTodayYouAre.setEditable(false);
- txtpnTodayYouAre.setBackground(Color.WHITE);
- scrollPane.setViewportView(txtpnTodayYouAre);
- panel_1.setLayout(gl_panel_1);
- jScrollPane4 = new javax.swing.JScrollPane();
- getContentPane().setLayout(layout);
-
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
- ReplySurvey replySurvey = commHandlerAdapter.callServiceSurvey();
-
- map = replySurvey.getQuestions();
- ids = map.keySet();
- locations = replySurvey.getLocations();
-
- panel_2 = new JPanel();
- panel_2.setBackground(Color.WHITE);
- panel_2.setBorder(new BevelBorder(BevelBorder.LOWERED, null, null, null, null));
- jScrollPane4.setViewportView(panel_2);
- panel_2.setLayout(new BoxLayout(panel_2, BoxLayout.Y_AXIS));
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
-
-
- for(Integer id : ids){
- ButtonGroup group = new ButtonGroup();
- JRadioButton r1 = new JRadioButton("1"); r1.setActionCommand("1"); r1.setBackground(Color.WHITE);
- JRadioButton r2 = new JRadioButton("2"); r2.setActionCommand("2"); r2.setBackground(Color.WHITE);
- JRadioButton r3 = new JRadioButton("3"); r3.setActionCommand("3"); r3.setBackground(Color.WHITE);
- JRadioButton r4 = new JRadioButton("4"); r4.setActionCommand("4"); r4.setBackground(Color.WHITE);
- JRadioButton r5 = new JRadioButton("5"); r5.setActionCommand("5"); r5.setBackground(Color.WHITE);
- group.add(r1);
- group.add(r2);
- group.add(r3);
- group.add(r4);
- group.add(r5);
- JPanel radio_panel = new JPanel();
- radio_panel.setLayout((new BoxLayout(radio_panel, BoxLayout.X_AXIS)));
- radio_panel.setBackground(Color.WHITE);
- radio_panel.setAlignmentX(Component.CENTER_ALIGNMENT);
- radio_panel.add(r1);
- radio_panel.add(r2);
- radio_panel.add(r3);
- radio_panel.add(r4);
- radio_panel.add(r5);
- radio_panel.doLayout();
- radio_panel.setPreferredSize(radio_panel.getPreferredSize());
- JTextArea question = new JTextArea(id + ") " + map.get(id).getQuestion());
- question.setLineWrap(true);
- question.setWrapStyleWord(true);
- question.setAlignmentX(Component.CENTER_ALIGNMENT);
- question.setFont(new Font("Tahoma", Font.PLAIN, 13));
-
- JPanel row_panel = new JPanel();
- row_panel.setLayout(new BoxLayout(row_panel, BoxLayout.X_AXIS));
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.add(question);
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.add(radio_panel);
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.setBackground(Color.WHITE);
-
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- panel_2.add(row_panel);
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
-// panel_2.add(radio_panel);
- panel_2.add(new JSeparator());
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
-// panel_2.setPreferredSize(panel_2.getPreferredSize());
- buttonGroupMap.put(id, group);
-
- }
-
-
-
- this.setSize(new Dimension(1200, 865));
-// pack();
- }// </editor-fold>//GEN-END:initComponents
-
-
- private void submitButtonActionPerformed(java.awt.event.ActionEvent evt){
-
- try{
- answers = new HashMap<String, String>();
- StringBuilder sb = new StringBuilder();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- sb.append(q).append(",");
- sb.append(bg.getSelection().getActionCommand()).append(";");
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- String answer = sb.toString();
- Integer id_loc = null;
- for(Integer i: locations.keySet()){
- if(locations.get(i).equals(comboBox.getSelectedItem().toString()))
- id_loc = i;
- }
-
- String id_p;
- if(jComboBox1.getSelectedItem().toString().equals("Select Patient"))
- id_p = "0";
- else
- id_p = jComboBox1.getSelectedItem().toString();
-
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
-
- String reply = commHandlerAdapter.callServiceSurveyAnswer(answer, id_loc.toString(), id_p);
-
- if(reply.equals("1")){
- survey_submitted = true;
-
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Congrats! Your aswers have been sent to the SHCS datacenter.",
- "Information Message",
- JOptionPane.INFORMATION_MESSAGE);
- }
- else{
- throw new IOException();
- }
-
-
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "The SHCS datacenter does not respond. Please save the survey and send it to jean.raisaro@epfl.ch.",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
- private void savePDFButtonActionPerformed(java.awt.event.ActionEvent evt){
- try {
-
- answers = new HashMap<String, String>();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- JFileChooser chooser = new JFileChooser();
- // Note: source for ExampleFileFilter can be found in FileChooserDemo,
- // under the demo/jfc directory in the JDK.
-
- int returnVal = chooser.showSaveDialog(this);
- System.out.println(returnVal);
- if(returnVal == JFileChooser.APPROVE_OPTION) {
- System.out.println("You chose to open this file: " +
- chooser.getSelectedFile().getPath());
- quest = new Questionnaire(chooser.getSelectedFile().getPath() + ".pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }else{
- quest = new Questionnaire("outputPDF/survey.pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }
-
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (DocumentException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (NullPointerException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
-
- private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
-
- JPanel contentPanel = new JPanel();
-
- dialog.setBounds(100, 100, 410, 80);
- dialog.getContentPane().setLayout(new BorderLayout());
- contentPanel.setLayout(new FlowLayout());
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- dialog.getContentPane().add(contentPanel, BorderLayout.CENTER);
- {
- JLabel label = new JLabel("Please wait...The overall computation can take few seconds");
- label.setHorizontalAlignment(SwingConstants.CENTER);
- label.setFont(new Font("Tahoma", Font.PLAIN, 12));
- contentPanel.add(label);
- }
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
- dialog.getContentPane().add(buttonPane, BorderLayout.SOUTH);
- }
- dialog.setLocationRelativeTo(this);
- dialog.setVisible(true);
-
- GUIWorker gw = new GUIWorker(this, props);
- Thread t = new Thread(gw);
- t.start();
-
- }
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JButton jButton1;
- private javax.swing.JComboBox<String> jComboBox1;
- private javax.swing.JLabel jLabel1;
- private javax.swing.JLabel jLabel2;
- private javax.swing.JLabel jLabel3;
- private javax.swing.JLabel jLabel4;
- private javax.swing.JMenu jMenu1;
- private javax.swing.JMenu jMenu2;
- private javax.swing.JMenuBar jMenuBar1;
- private javax.swing.JMenuItem jMenuItem1;
- private javax.swing.JPanel jPanel1;
- private javax.swing.JPanel jPanel2;
- private javax.swing.JScrollPane jScrollPane3;
- private javax.swing.JTabbedPane tabbedPane;
- private javax.swing.JScrollPane jScrollPane2;
- private javax.swing.JScrollPane jScrollPane4;
- private JPanel panel;
- private JPanel panel_1;
- private JPanel panel_2;
- private JLabel lblDearDoctor;
- private JLabel lblNewLabel_1;
- private JLabel lblNewLabel_2;
- private JLabel lblNewLabel_3;
- private JComboBox<String> comboBox;
- private Component rigidArea;
-
- // End of variables declaration//GEN-END:variables
-
-
- class GUIWorker implements Runnable{
-
- private JFrame mainFrame;
- private ClientProperties props;
- private MedUnit mu;
-
- public GUIWorker(GUI gui, ClientProperties props) {
- mainFrame = gui;
-
- this.props = props;
- this.mu = new MedUnit(props, 0);
- }
-
- @Override
- public void run() {
-
- try{
- int patientId = Integer.parseInt((String) jComboBox1.getSelectedItem());
-
- // convert selected tests to test identifiers
- ArrayList<TestName> selectedTests = new ArrayList<TestName>();
- for (String currentName : getSelectedTests()) {
- TestName currentTest = testsByName.get(currentName);
-
- if (currentTest == null) {
- throw new IllegalStateException("Trying to run unknown test: " + currentTest);
- }
-
- selectedTests.add(currentTest);
- }
-
- // run tests
- Diagnostic diagnostic = mu.runTests(patientId, selectedTests);
-
- // warn for tests with missing material
- warnFailedTests(diagnostic, selectedTests);
-
- // create report
- mu.createReport(patientId, selectedTests, diagnostic);
-
- dialog.setVisible(false);
-
- // specify file you wish to open (JPedal handles getting the byte data)
- String filepathReport = props.getPathPDF() + patientId + ".pdf";
-
- // open generated PDF
- // object must be either String in full filepath, or
- // File object which can be relative
- Object[] input = new Object[]{ new File(filepathReport) };
- viewer.executeCommand(Commands.OPENFILE, input);
-
- // display CAD result as bar plot
- if (diagnostic.hasCAD()) {
- System.out.println("CAD = " + diagnostic.getResultCAD());
- BarPlotFrame frame = new BarPlotFrame(diagnostic.getResultCAD(), patientId);
- frame.setVisible(true);
- frame.setAlwaysOnTop(true);
- }
-
-
- } catch (SQLException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Please select a patient.");
- }
-
- }
-
- private void warnFailedTests(Diagnostic diagnostic, ArrayList<TestName> selectedTests) {
- ArrayList<Integer> failedTests = diagnostic.getInvalidTests();
-
- if (!failedTests.isEmpty()) {
- String msg = "Could not complete tests: ";
- boolean first = true;
- for (TestName testName : selectedTests) {
- if (failedTests.contains(testName.getId())) {
- if (first) {
- first = false;
- } else {
- msg += ", ";
- }
- msg += testName.getName();
- }
- }
- displayError(msg);
- }
-
- }
-
- private void displayError(String msg) {
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- mainFrame,
- msg,
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
-
- private ArrayList<String> getSelectedTests() {
- ArrayList<String> tests = new ArrayList<String>();
-
- for (TreePath treePath : jTree.getSelectionPaths()) {
- tests.addAll(getChildrenTests(jTree.getModel(), treePath.getLastPathComponent()));
- }
-
- return tests;
- }
-
- private ArrayList<String> getChildrenTests(TreeModel model, Object node) {
- ArrayList<String> tests = new ArrayList<String>();
-
- if (model.isLeaf(node)) { // leaf
- DefaultMutableTreeNode leaf = (DefaultMutableTreeNode) node;
- tests.add(leaf.toString());
- }
- else { // iterate over children
- for (int i = 0; i < model.getChildCount(node); i++) {
- tests.addAll(getChildrenTests(model, model.getChild(node, i)));
- }
- }
-
- return tests;
- }
-
- }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/82/b0c5dfe8a1a7001417ceadf0100b5ef7 b/.metadata/.plugins/org.eclipse.core.resources/.history/82/b0c5dfe8a1a7001417ceadf0100b5ef7
deleted file mode 100644
index 62e2e5c..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/82/b0c5dfe8a1a7001417ceadf0100b5ef7
+++ /dev/null
@@ -1,288 +0,0 @@
-package io;
-
-import java.awt.BorderLayout;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.util.Map;
-import java.util.Set;
-
-import com.itextpdf.text.BaseColor;
-import com.itextpdf.text.Document;
-import com.itextpdf.text.DocumentException;
-import com.itextpdf.text.Element;
-import com.itextpdf.text.ExceptionConverter;
-import com.itextpdf.text.Font;
-import com.itextpdf.text.Font.FontFamily;
-import com.itextpdf.text.FontFactory;
-import com.itextpdf.text.Image;
-import com.itextpdf.text.PageSize;
-import com.itextpdf.text.Paragraph;
-import com.itextpdf.text.Phrase;
-import com.itextpdf.text.Rectangle;
-import com.itextpdf.text.pdf.AcroFields;
-import com.itextpdf.text.pdf.BaseFont;
-import com.itextpdf.text.pdf.ColumnText;
-import com.itextpdf.text.pdf.GrayColor;
-import com.itextpdf.text.pdf.PdfBorderDictionary;
-import com.itextpdf.text.pdf.PdfContentByte;
-import com.itextpdf.text.pdf.PdfFormField;
-import com.itextpdf.text.pdf.PdfPCell;
-import com.itextpdf.text.pdf.PdfPCellEvent;
-import com.itextpdf.text.pdf.PdfPTable;
-import com.itextpdf.text.pdf.PdfReader;
-import com.itextpdf.text.pdf.PdfStamper;
-import com.itextpdf.text.pdf.PdfWriter;
-import com.itextpdf.text.pdf.RadioCheckField;
-import com.itextpdf.text.pdf.TextField;
-
-import framework.Question;
-
-public class Questionnaire implements PdfPCellEvent{
-
- /** The path output file. */
- String pathOutputFile;
-
- /** The document. */
- Document document;
-
- int tf;
-
- public Questionnaire(String path){
- pathOutputFile = path;
- document = new Document(PageSize.A4, 25, 25, 50, 50);
- }
- public Questionnaire(int tf){
- this.tf = tf;
- }
-
- /** The resulting PDF. */
- public static final String RESULT1 = "outputPDF/buttons.pdf";
- /** The resulting PDF. */
- public static final String RESULT2 = "outputPDF/buttons_filled.pdf";
- /** Path to a JavaScript resource. */
- public static final String RESOURCE = "res/buttons.js";
- /** Path to an image used as button icon. */
- public static final String IMAGE = "res/info.png";
- /** Possible values of a radio field / checkboxes */
- public static final String[] LANGUAGES = { "English", "German", "French", "Spanish", "Dutch" };
-
- /**
- * Creates a PDF document.
- * @param filename the path to the new PDF document
- * @throws DocumentException
- * @throws IOException
- */
- public void createPdf(Map<Integer, Question> map, Set<Integer> ids) throws IOException, DocumentException {
-
- @SuppressWarnings("unused")
- PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(pathOutputFile));
-
-
- document.open();
- Image logo = Image.getInstance("res/shcs_logo2.gif");
-
- logo.scalePercent(30f);
- float[] columnWidths1 = {0.2f, 0.8f};
- PdfPTable table_title = new PdfPTable(columnWidths1);
- PdfPCell c01 = new PdfPCell(logo, false);
- PdfPCell c02 = new PdfPCell(new Paragraph("Survery | Project #693",
- FontFactory.getFont(FontFactory.HELVETICA, 20, Font.BOLD, BaseColor.BLACK)));
- c01.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setHorizontalAlignment(Element.ALIGN_CENTER);
- c01.setBorder(Rectangle.NO_BORDER);
- c02.setBorder(Rectangle.NO_BORDER);
-
- table_title.addCell(c01);
- table_title.addCell(c02);
- table_title.setWidthPercentage(100);
- table_title.setSpacingBefore(0);
- table_title.setSpacingAfter(25);
- document.add(table_title);
-
-
- //----------------------------------------------------------------------------------
-
-
- PdfPTable table1 = new PdfPTable(1);
- table1.setWidthPercentage(100);
- PdfPCell c11 = new PdfPCell(new Phrase("Today you are receiving a pharmacogenetic report based on the genetic " +
- "information of your patient. Because the human genome contains extremely private and sensitive information" +
- " of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier," +
- " it must be managed with care. ",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.NORMAL, BaseColor.BLACK)));
- c11.setLeading(1.5f, 1.5f);
- c11.setPaddingBottom(8);
-
-
- table1.addCell(c11);
- table1.setSpacingAfter(10);
- document.add(table1);
-
-
- //----------------------------------------------------------------------------------
-
-// // step 4
-// // add the JavaScript
-// writer.addJavaScript(Utilities.readFileToString(RESOURCE));
-
- for(Integer id: ids){
- PdfPCell c2;
-
- PdfPTable table = new PdfPTable(1);
- table.setSpacingAfter(10);
- table.setWidthPercentage(100);
-
- PdfPCell c1 = new PdfPCell(new Phrase(id + ") " + map.get(id).getQuestion(),FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c1.setPaddingTop(5);
- c1.setPaddingBottom(5);
- c1.setHorizontalAlignment(Element.ALIGN_CENTER);
- c1.setBorder(Rectangle.NO_BORDER);
- table.addCell(c1);
-
- c2 = new PdfPCell(new Phrase(" 1" +
- " 2" +
- " 3" +
- " 4" +
- " 5",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c2.setHorizontalAlignment(Element.ALIGN_LEFT);
- c2.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c2.setCellEvent(new Questionnaire(id));
- c2.setBorder(Rectangle.TOP);
- c2.setPaddingTop(2);
- c2.setPaddingBottom(5);
- c2.setBackgroundColor(new BaseColor(242, 242, 242));
-
- table.addCell(c2);
-
-
-
- document.add(table);
- }
-
-
- //----------------------------------------------------------------------------------
-
- // step 5
- document.close();
-
- }
-
- @Override
- public void cellLayout(PdfPCell cell, Rectangle position,
- PdfContentByte[] canvases) {
- PdfWriter writer = canvases[0].getPdfWriter();
- PdfFormField radiogroup = PdfFormField.createRadioButton(writer, true);
- radiogroup.setFieldName(String.valueOf(tf));
- System.out.println(tf);
-
- float llx = position.getLeft();
- float lly = position.getBottom();
-
- float cell_h = cell.getHeight();
- float cell_w = cell.getWidth();
-
- Rectangle rect;
-
- for(int i=1 ; i<=5; i++){
-
- rect = new Rectangle(llx + (3+i)*cell_w/12, lly+cell_h/2-6, llx + (3+i)*cell_w/12+12 ,lly+cell_h/2+6);
-
- RadioCheckField radio = new RadioCheckField(writer, rect, String.valueOf(i), String.valueOf(i));
- radio.setBorderColor(GrayColor.GRAYBLACK);
- radio.setCheckType(RadioCheckField.TYPE_SQUARE);
-
-
- try {
- PdfFormField field = radio.getRadioField();
- radiogroup.addKid(field);
-
- writer.addAnnotation(radiogroup);
- }
-
- catch(IOException ioe) {
- throw new ExceptionConverter(ioe);
- }
- catch(DocumentException de) {
- throw new ExceptionConverter(de);
- }
- }
-
-
-
- }
-
-
- public String getAnswers() throws IOException, DocumentException{
- PdfReader reader = new PdfReader(pathOutputFile);
-
-// PdfStamper stamper = new PdfStamper(reader, new FileOutputStream("outputPDF/buttons_filled2.pdf"));
- AcroFields form = reader.getAcroFields();
-
- StringBuilder sb = new StringBuilder();
-
-
- Set<String> fields = form.getFields().keySet();
- for(String key: fields){
- System.out.println("key = " + key);
- if(form.getFieldType(key)==AcroFields.FIELD_TYPE_RADIOBUTTON){
- sb.append(key);
- sb.append(",");
- sb.append(form.getFieldRichValue(key));
- sb.append(";");
- }
- }
-// stamper.close();
- reader.close();
-
-
- return sb.toString();
-
- }
-
-
-// /**
-// * Manipulates a PDF file src with the file dest as result
-// * @param src the original PDF
-// * @param dest the resulting PDF
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public void manipulatePdf(String src, String dest) throws IOException, DocumentException {
-// PdfReader reader = new PdfReader(src);
-// PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(dest));
-// AcroFields form = stamper.getAcroFields();
-// String[] radiostates = form.getAppearanceStates("language");
-// form.setField("language", radiostates[4]);
-// for (int i = 0; i < LANGUAGES.length; i++) {
-// String[] checkboxstates = form.getAppearanceStates("English");
-// form.setField(LANGUAGES[i], checkboxstates[i % 2 == 0 ? 1 : 0]);
-// }
-// stamper.close();
-// reader.close();
-//
-// PdfReader r = new PdfReader(dest);
-// AcroFields f = r.getAcroFields();
-// Set<String> fields = form.getFields().keySet();
-// for(String key: fields){
-// if(f.getFieldType(key)==AcroFields.FIELD_TYPE_RADIOBUTTON){
-// System.out.println(key);
-// System.out.println(f.getField(key));
-//
-// }
-// }
-// r.close();
-//
-// }
-//
-// /**
-// * Main method
-// * @param args no arguments needed
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public static void main(String[] args) throws IOException, DocumentException {
-// Questionnaire buttons = new Questionnaire();
-// buttons.createPdf(RESULT1);
-// buttons.manipulatePdf(RESULT1, RESULT2);
-// }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/84/40a6059c4eac001410e2e30aa85db9d1 b/.metadata/.plugins/org.eclipse.core.resources/.history/84/40a6059c4eac001410e2e30aa85db9d1
deleted file mode 100644
index bc3d52d..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/84/40a6059c4eac001410e2e30aa85db9d1
+++ /dev/null
@@ -1,893 +0,0 @@
-package ui;
-
-import io.ClientConnection;
-import io.CommAdapter;
-import io.Questionnaire;
-
-import java.awt.BorderLayout;
-import java.awt.Color;
-import java.awt.Component;
-import java.awt.Dimension;
-import java.awt.FlowLayout;
-import java.awt.Font;
-import java.awt.SystemColor;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.awt.event.WindowAdapter;
-import java.io.File;
-import java.io.IOException;
-import java.sql.SQLException;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.LinkedList;
-import java.util.Map;
-import java.util.Set;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
-import javax.swing.Box;
-import javax.swing.BoxLayout;
-import javax.swing.ButtonGroup;
-import javax.swing.DefaultComboBoxModel;
-import javax.swing.GroupLayout;
-import javax.swing.GroupLayout.Alignment;
-import javax.swing.ImageIcon;
-import javax.swing.JButton;
-import javax.swing.JComboBox;
-import javax.swing.JDialog;
-import javax.swing.JFileChooser;
-import javax.swing.JFrame;
-import javax.swing.JLabel;
-import javax.swing.JOptionPane;
-import javax.swing.JPanel;
-import javax.swing.JRadioButton;
-import javax.swing.JScrollPane;
-import javax.swing.JSeparator;
-import javax.swing.JTabbedPane;
-import javax.swing.JTextArea;
-import javax.swing.JTextPane;
-import javax.swing.JTree;
-import javax.swing.LayoutStyle.ComponentPlacement;
-import javax.swing.SwingConstants;
-import javax.swing.UIManager;
-import javax.swing.border.BevelBorder;
-import javax.swing.border.EmptyBorder;
-import javax.swing.border.EtchedBorder;
-import javax.swing.tree.DefaultMutableTreeNode;
-import javax.swing.tree.TreeModel;
-import javax.swing.tree.TreePath;
-
-import org.jpedal.examples.viewer.Commands;
-import org.jpedal.examples.viewer.Viewer;
-
-import utils.ClientProperties;
-
-import com.itextpdf.text.DocumentException;
-
-import database.DBconnectorClient;
-import framework.Diagnostic;
-import framework.MedUnit;
-import framework.Question;
-import framework.reply.ReplySurvey;
-import framework.test.TestName;
-
-/**
- *
- * @author youssef, raisaro
- */
-public class GUI extends javax.swing.JFrame {
-
- private static final Logger LOGGER = Logger.getLogger(GUI.class.getName());
-
- private static final long serialVersionUID = -4582280515597700650L;
-
- // configuration
- private ClientProperties props;
-
- private JTree jTree;
- private DBconnectorClient connectorClientDB;
- private LinkedList<Integer> patients;
-
- /** List of all relevant tests */
- private HashMap<String, TestName> testsByName;
- private Viewer viewer;
- private JDialog dialog;
- private JFrame frame;
- private boolean survey_submitted;
- private int close_trials;
- private Map<Integer, ButtonGroup> buttonGroupMap;
- private Questionnaire quest;
- private Map<Integer, Question> map;
- private Set<Integer> ids;
- private Map<String,String> answers;
- private Map<Integer, String> locations;
-
-
- /**
- * Creates new form GUI
- */
- public GUI(ClientProperties props){
-
- frame = this;
- this.props = props;
- this.connectorClientDB = new DBconnectorClient(props.getDbMsAccess());
- survey_submitted = false;
- close_trials = 0;
-
-
- try {
- initComponents();
-
- viewer = new Viewer(jScrollPane2, null);
- viewer.setupViewer();
-
- // create questionnare
-
-
- System.out.println("#of questions: " + ids.size());
-
-// viewer_q = new Viewer(jScrollPane4, null);
-// viewer_q.setupViewer();
-//
-// // specify file you wish to open (JPedal handles getting the byte data)
-// String filepathReport = "outputPDF/buttons_filled.pdf";
-//
-// // open generated PDF
-// // object must be either String in full filepath, or
-// // File object which can be relative
-// Object[] input = new Object[]{ new File(filepathReport) };
-// viewer_q.executeCommand(Commands.OPENFILE, input);
-
- JButton btnSubmitQuestionnaire = new JButton("Submit Questionnaire");
- btnSubmitQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- btnSubmitQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- submitButtonActionPerformed(arg0);
- }
- });
- JButton btnResetQuestionnaire = new JButton("Save as PDF");
- btnResetQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- savePDFButtonActionPerformed(arg0);
- }
- });
- btnResetQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- JPanel panel_button = new JPanel();
- panel_button.setLayout(new BoxLayout(panel_button, BoxLayout.X_AXIS));
-
- lblNewLabel_3 = new JLabel("");
- lblNewLabel_3.setIcon(new ImageIcon("res/location_icon.png"));
- panel_button.add(lblNewLabel_3);
-
-
-
- comboBox = new JComboBox<String>();
- comboBox.setFont(new Font("Tahoma", Font.BOLD, 12));
- comboBox.setModel(new DefaultComboBoxModel<String>(new String[] {"Select Location"}));
- for(Integer id_loc : locations.keySet()){
- comboBox.addItem(locations.get(id_loc));
- }
-
-
- panel_button.add(comboBox);
-
- rigidArea = Box.createRigidArea(new Dimension(10, 0));
- panel_button.add(rigidArea);
-
- lblNewLabel_1 = new JLabel("");
- lblNewLabel_1.setIcon(new ImageIcon("res/submit.png"));
- panel_button.add(lblNewLabel_1);
- panel_button.add(btnSubmitQuestionnaire);
-
- panel_button.add(Box.createRigidArea(new Dimension(10,0)));
-
- lblNewLabel_2 = new JLabel("");
- lblNewLabel_2.setIcon(new ImageIcon("res/pdf.png"));
- panel_button.add(lblNewLabel_2);
- panel_button.add(btnResetQuestionnaire);
- panel_button.setPreferredSize(new Dimension(211, 35));
- panel_button.validate();
-
- JPanel panel_3 = new JPanel();
- GroupLayout gl_panel = new GroupLayout(panel);
- gl_panel.setHorizontalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(41)
- .addGroup(gl_panel.createParallelGroup(Alignment.TRAILING)
- .addComponent(jScrollPane4, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE)
- .addComponent(panel_1, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE))
- .addGap(32))
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(63)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addGap(103)
- .addComponent(panel_button, GroupLayout.DEFAULT_SIZE, 488, Short.MAX_VALUE)
- .addGap(241))
- );
- gl_panel.setVerticalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(22)
- .addComponent(panel_1, GroupLayout.DEFAULT_SIZE, 192, Short.MAX_VALUE)
- .addGap(18)
- .addComponent(jScrollPane4, GroupLayout.DEFAULT_SIZE, 437, Short.MAX_VALUE)
- .addGap(26)
- .addGroup(gl_panel.createParallelGroup(Alignment.LEADING)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(panel_button, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE)))
- );
- panel_3.setLayout(new BoxLayout(panel_3, BoxLayout.X_AXIS));
-
-
- panel.setLayout(gl_panel);
-
-
-
-
-
-
- /////////////////////////////////////////////////////////
- // display the tests available
-
- // get the tests
- HashMap<String, ArrayList<TestName>> testsRelevantByGroup = connectorClientDB.getRelevantTestsByGroup();
- ArrayList<String> groups = new ArrayList<String>(testsRelevantByGroup.keySet());
-
- // flatten hashmap into linkedlist
-// tests = new LinkedList<>();
- testsByName = new HashMap<String, TestName>();
- for (String group : groups) {
-// tests.addAll(testsRelevantByGroup.get(group));
- for (TestName test : testsRelevantByGroup.get(group)) {
- testsByName.put(test.getName(), test);
- }
- }
-
- // define tree structure of the tests
- DefaultMutableTreeNode root = new DefaultMutableTreeNode("All");
-
- for (String group : groups) {
- DefaultMutableTreeNode child = new DefaultMutableTreeNode(group);
- root.add(child);
-
- for (TestName test : testsRelevantByGroup.get(group)) {
- DefaultMutableTreeNode grandChild = new DefaultMutableTreeNode(test.getName());
- child.add(grandChild);
- }
- }
-
- // define swing object
- jTree = new JTree(root);
-
- for(int i=0;i<jTree.getRowCount();i++){
- jTree.expandRow(i);
- }
-
- jScrollPane3.setViewportView(jTree);
-// jTree.addTreeSelectionListener(new TreeSelectionListener() {
-//
-// @Override
-// public void valueChanged(TreeSelectionEvent e) {
-// tp = jTree.getSelectionPaths();
-// }
-// });
- jScrollPane3.setViewportView(jTree);
-
- /////////////////////////////////////////////////////////
- // display the patients registered
-
- patients = connectorClientDB.getPatients();
- for (Integer patientId : patients) {
- jComboBox1.addItem(patientId.toString());
- }
-
- } catch (SQLException ex) {
- Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex);
- ex.printStackTrace();
-// } catch (IOException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
-// } catch (DocumentException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
- }
-
- }
-
- /**
- * 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() {
-
- jPanel1 = new javax.swing.JPanel();
- jLabel2 = new javax.swing.JLabel();
- jLabel1 = new javax.swing.JLabel();
- jPanel2 = new javax.swing.JPanel();
- jComboBox1 = new javax.swing.JComboBox<String>();
- jButton1 = new javax.swing.JButton();
- jButton1.setFont(new Font("Tahoma", Font.BOLD, 12));
- jLabel3 = new javax.swing.JLabel();
- jLabel4 = new javax.swing.JLabel();
- jScrollPane3 = new javax.swing.JScrollPane();
- jScrollPane2 = new javax.swing.JScrollPane();
- jMenuBar1 = new javax.swing.JMenuBar();
- jMenu1 = new javax.swing.JMenu();
- jMenuItem1 = new javax.swing.JMenuItem();
- jMenu2 = new javax.swing.JMenu();
- dialog = new JDialog();
- tabbedPane = new JTabbedPane(JTabbedPane.TOP);
-
- setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
- addWindowListener(new WindowAdapter() {
- @Override
- public void windowClosing(java.awt.event.WindowEvent windowEvent) {
- if (!survey_submitted && close_trials <= 2){
- JOptionPane.showMessageDialog(frame, "Before closing the application, please fill in and submit the questionnaire.");
- close_trials++;
- tabbedPane.setSelectedIndex(1);
- }else{
- System.exit(0);
- }
- }
- });
- setTitle("HIV Pharmacogenomics\n");
-
- jLabel2.setIcon(new javax.swing.ImageIcon("res/shcs_logo2_small.gif")); // NOI18N
-
- jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
- jLabel1.setText("HIV Pharmacogenomics | Project #693");
-
- javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
- jPanel1.setLayout(jPanel1Layout);
- jPanel1Layout.setHorizontalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap(71, Short.MAX_VALUE)
- .addComponent(jLabel1)
- .addGap(18, 18, 18)
- .addComponent(jLabel2))
- );
- jPanel1Layout.setVerticalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jLabel1)
- .addGap(11, 11, 11))
- .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)
- );
-
- jPanel2.setBackground(new java.awt.Color(255, 255, 255));
- jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
-
- jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<String>(new String[]{"Select Patient"}));
-
- jButton1.setText("Run Test");
- jButton1.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton1ActionPerformed(evt);
- }
- });
-
- JLabel lblNewLabel = new JLabel("");
- lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
- lblNewLabel.setIcon(new javax.swing.ImageIcon("res/gears.png"));
-
-
-
- javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
- jPanel2Layout.setHorizontalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addComponent(jComboBox1, 0, 248, Short.MAX_VALUE)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addGap(75)
- .addGroup(jPanel2Layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jButton1)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 75, GroupLayout.PREFERRED_SIZE))
- .addContainerGap(98, Short.MAX_VALUE))
- );
- jPanel2Layout.setVerticalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addComponent(jComboBox1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED, 223, Short.MAX_VALUE)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jButton1)
- .addGap(19))
- );
- jPanel2.setLayout(jPanel2Layout);
-
- jLabel3.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel3.setText("Select Patient");
-
- jLabel4.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel4.setText("Select Test");
-
- jScrollPane3.setBackground(new java.awt.Color(255, 255, 255));
-
- jMenu1.setText("File");
-
- jMenuItem1.setText("Exit");
- jMenu1.add(jMenuItem1);
-
- jMenuBar1.add(jMenu1);
-
- jMenu2.setText("Edit");
- jMenuBar1.add(jMenu2);
-
- setJMenuBar(jMenuBar1);
-
-
-
- javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
- layout.setHorizontalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(layout.createParallelGroup(Alignment.LEADING, false)
- .addComponent(jLabel3)
- .addComponent(jLabel4)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, 244, Short.MAX_VALUE)
- .addComponent(jScrollPane3))
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 970, Short.MAX_VALUE))
- .addContainerGap())
- );
- layout.setVerticalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel4))
- .addPreferredGap(ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addComponent(jScrollPane3, GroupLayout.PREFERRED_SIZE, 388, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jLabel3)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 785, Short.MAX_VALUE))
- .addContainerGap())
- );
-
-
- jScrollPane2.setAutoscrolls(true);
- jScrollPane3.setAutoscrolls(true);
- tabbedPane.addTab("Report", new ImageIcon("res/report_icon.gif"), jScrollPane2, null);
- tabbedPane.setBackgroundAt(0, new Color(255, 255, 255));
-
- panel = new JPanel();
- tabbedPane.addTab("Survey", new ImageIcon("res/survey_icon.png"), panel, null);
- tabbedPane.setBackgroundAt(1, new Color(255, 255, 255));
- tabbedPane.setEnabledAt(1, true);
-
- panel_1 = new JPanel();
- panel_1.setBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null));
- panel_1.setBackground(UIManager.getColor("Button.background"));
-
- JLabel label = new JLabel("");
- label.setIcon(new ImageIcon("res/shcs_logo2_medium.gif"));
-
- lblDearDoctor = new JLabel("Dear Doctor,");
- lblDearDoctor.setFont(new Font("Tahoma", Font.BOLD, 14));
-
- JScrollPane scrollPane = new JScrollPane();
- scrollPane.setBorder(null);
- GroupLayout gl_panel_1 = new GroupLayout(panel_1);
- gl_panel_1.setHorizontalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(25)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 666, Short.MAX_VALUE)
- .addComponent(lblDearDoctor))
- .addContainerGap())
- );
- gl_panel_1.setVerticalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(22)
- .addComponent(lblDearDoctor)
- .addGap(18)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 120, Short.MAX_VALUE)
- .addContainerGap())
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(36)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 96, GroupLayout.PREFERRED_SIZE)
- .addContainerGap(56, Short.MAX_VALUE))
- );
-
- JTextPane txtpnTodayYouAre = new JTextPane();
- txtpnTodayYouAre.setBorder(null);
- txtpnTodayYouAre.setText("Today you are receiving a pharmacogenetic report based on the genetic information of your patient. Because the human genome contains extremely private and sensitive information of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier, it must be managed with care.\r\nToday you are receiving a pharmacogenetic report based on the genetic information of your patient. Because the human genome contains extremely private and sensitive information of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier, it must be managed with care.\r\nToday you are receiving a pharmacogenetic report based on the genetic information of your patient. Because the human genome contains extremely private and sensitive information of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier, it must be managed with care.");
- txtpnTodayYouAre.setFont(new Font("Tahoma", Font.PLAIN, 13));
- txtpnTodayYouAre.setEditable(false);
- txtpnTodayYouAre.setBackground(SystemColor.menu);
- scrollPane.setViewportView(txtpnTodayYouAre);
- panel_1.setLayout(gl_panel_1);
- jScrollPane4 = new javax.swing.JScrollPane();
- getContentPane().setLayout(layout);
-
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
- ReplySurvey replySurvey = commHandlerAdapter.callServiceSurvey();
-
- map = replySurvey.getQuestions();
- ids = map.keySet();
- locations = replySurvey.getLocations();
-
- panel_2 = new JPanel();
- panel_2.setBackground(Color.WHITE);
- panel_2.setBorder(new BevelBorder(BevelBorder.LOWERED, null, null, null, null));
- jScrollPane4.setViewportView(panel_2);
- panel_2.setLayout(new BoxLayout(panel_2, BoxLayout.Y_AXIS));
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
-
-
- for(Integer id : ids){
- ButtonGroup group = new ButtonGroup();
- JRadioButton r1 = new JRadioButton("1"); r1.setActionCommand("1"); r1.setBackground(Color.WHITE);
- JRadioButton r2 = new JRadioButton("2"); r2.setActionCommand("2"); r2.setBackground(Color.WHITE);
- JRadioButton r3 = new JRadioButton("3"); r3.setActionCommand("3"); r3.setBackground(Color.WHITE);
- JRadioButton r4 = new JRadioButton("4"); r4.setActionCommand("4"); r4.setBackground(Color.WHITE);
- JRadioButton r5 = new JRadioButton("5"); r5.setActionCommand("5"); r5.setBackground(Color.WHITE);
- group.add(r1);
- group.add(r2);
- group.add(r3);
- group.add(r4);
- group.add(r5);
- JPanel radio_panel = new JPanel();
- radio_panel.setLayout((new BoxLayout(radio_panel, BoxLayout.X_AXIS)));
- radio_panel.setBackground(Color.WHITE);
- radio_panel.setAlignmentX(Component.CENTER_ALIGNMENT);
- radio_panel.add(r1);
- radio_panel.add(r2);
- radio_panel.add(r3);
- radio_panel.add(r4);
- radio_panel.add(r5);
- radio_panel.doLayout();
- radio_panel.setPreferredSize(radio_panel.getPreferredSize());
- JTextArea question = new JTextArea(id + ") " + map.get(id).getQuestion());
- question.setLineWrap(true);
- question.setWrapStyleWord(true);
- question.setAlignmentX(Component.CENTER_ALIGNMENT);
- question.setFont(new Font("Tahoma", Font.PLAIN, 13));
-// JPanel row_panel = new JPanel();
-// row_panel.setLayout(new BoxLayout(row_panel, BoxLayout.X_AXIS));
-// row_panel.add(question);
-// row_panel.add(Box.createRigidArea(new Dimension(10,0)));
-// row_panel.add(radio_panel);
-
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- panel_2.add(question);
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- panel_2.add(radio_panel);
- panel_2.add(new JSeparator());
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
-// panel_2.setPreferredSize(panel_2.getPreferredSize());
- buttonGroupMap.put(id, group);
-
- }
-
-
-
- this.setSize(new Dimension(1200, 865));
-// pack();
- }// </editor-fold>//GEN-END:initComponents
-
-
- private void submitButtonActionPerformed(java.awt.event.ActionEvent evt){
-
- try{
- answers = new HashMap<String, String>();
- StringBuilder sb = new StringBuilder();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- sb.append(q).append(",");
- sb.append(bg.getSelection().getActionCommand()).append(";");
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- String answer = sb.toString();
- Integer id_loc = null;
- for(Integer i: locations.keySet()){
- if(locations.get(i).equals(comboBox.getSelectedItem().toString()))
- id_loc = i;
- }
-
- String id_p;
- if(jComboBox1.getSelectedItem().toString().equals("Select Patient"))
- id_p = "0";
- else
- id_p = jComboBox1.getSelectedItem().toString();
-
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
-
- String reply = commHandlerAdapter.callServiceSurveyAnswer(answer, id_loc.toString(), id_p);
-
- if(reply.equals("1")){
- survey_submitted = true;
-
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Congrats! Your aswers have been sent to the SHCS datacenter.",
- "Information Message",
- JOptionPane.INFORMATION_MESSAGE);
- }
- else{
- throw new IOException();
- }
-
-
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "The SHCS datacenter does not respond. Please save the survey and send it to jean.raisaro@epfl.ch.",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
- private void savePDFButtonActionPerformed(java.awt.event.ActionEvent evt){
- try {
-
- answers = new HashMap<String, String>();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- JFileChooser chooser = new JFileChooser();
- // Note: source for ExampleFileFilter can be found in FileChooserDemo,
- // under the demo/jfc directory in the JDK.
-
- int returnVal = chooser.showSaveDialog(this);
- System.out.println(returnVal);
- if(returnVal == JFileChooser.APPROVE_OPTION) {
- System.out.println("You chose to open this file: " +
- chooser.getSelectedFile().getPath());
- quest = new Questionnaire(chooser.getSelectedFile().getPath() + ".pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }else{
- quest = new Questionnaire("outputPDF/survey.pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }
-
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (DocumentException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (NullPointerException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
-
- private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
-
- JPanel contentPanel = new JPanel();
-
- dialog.setBounds(100, 100, 410, 80);
- dialog.getContentPane().setLayout(new BorderLayout());
- contentPanel.setLayout(new FlowLayout());
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- dialog.getContentPane().add(contentPanel, BorderLayout.CENTER);
- {
- JLabel label = new JLabel("Please wait...The overall computation can take few seconds");
- label.setHorizontalAlignment(SwingConstants.CENTER);
- label.setFont(new Font("Tahoma", Font.PLAIN, 12));
- contentPanel.add(label);
- }
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
- dialog.getContentPane().add(buttonPane, BorderLayout.SOUTH);
- }
- dialog.setLocationRelativeTo(this);
- dialog.setVisible(true);
-
- GUIWorker gw = new GUIWorker(this, props);
- Thread t = new Thread(gw);
- t.start();
-
- }
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JButton jButton1;
- private javax.swing.JComboBox<String> jComboBox1;
- private javax.swing.JLabel jLabel1;
- private javax.swing.JLabel jLabel2;
- private javax.swing.JLabel jLabel3;
- private javax.swing.JLabel jLabel4;
- private javax.swing.JMenu jMenu1;
- private javax.swing.JMenu jMenu2;
- private javax.swing.JMenuBar jMenuBar1;
- private javax.swing.JMenuItem jMenuItem1;
- private javax.swing.JPanel jPanel1;
- private javax.swing.JPanel jPanel2;
- private javax.swing.JScrollPane jScrollPane3;
- private javax.swing.JTabbedPane tabbedPane;
- private javax.swing.JScrollPane jScrollPane2;
- private javax.swing.JScrollPane jScrollPane4;
- private JPanel panel;
- private JPanel panel_1;
- private JPanel panel_2;
- private JLabel lblDearDoctor;
- private JLabel lblNewLabel_1;
- private JLabel lblNewLabel_2;
- private JLabel lblNewLabel_3;
- private JComboBox<String> comboBox;
- private Component rigidArea;
-
- // End of variables declaration//GEN-END:variables
-
-
- class GUIWorker implements Runnable{
-
- private JFrame mainFrame;
- private ClientProperties props;
- private MedUnit mu;
-
- public GUIWorker(GUI gui, ClientProperties props) {
- mainFrame = gui;
-
- this.props = props;
- this.mu = new MedUnit(props, 0);
- }
-
- @Override
- public void run() {
-
- try{
- int patientId = Integer.parseInt((String) jComboBox1.getSelectedItem());
-
- // convert selected tests to test identifiers
- ArrayList<TestName> selectedTests = new ArrayList<TestName>();
- for (String currentName : getSelectedTests()) {
- TestName currentTest = testsByName.get(currentName);
-
- if (currentTest == null) {
- throw new IllegalStateException("Trying to run unknown test: " + currentTest);
- }
-
- selectedTests.add(currentTest);
- }
-
- // run tests
- Diagnostic diagnostic = mu.runTests(patientId, selectedTests);
-
- // warn for tests with missing material
- warnFailedTests(diagnostic, selectedTests);
-
- // create report
- mu.createReport(patientId, selectedTests, diagnostic);
-
- dialog.setVisible(false);
-
- // specify file you wish to open (JPedal handles getting the byte data)
- String filepathReport = props.getPathPDF() + patientId + ".pdf";
-
- // open generated PDF
- // object must be either String in full filepath, or
- // File object which can be relative
- Object[] input = new Object[]{ new File(filepathReport) };
- viewer.executeCommand(Commands.OPENFILE, input);
-
- // display CAD result as bar plot
- if (diagnostic.hasCAD()) {
- System.out.println("CAD = " + diagnostic.getResultCAD());
- BarPlotFrame frame = new BarPlotFrame(diagnostic.getResultCAD(), patientId);
- frame.setVisible(true);
- frame.setAlwaysOnTop(true);
- }
-
-
- } catch (SQLException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Please select a patient.");
- }
-
- }
-
- private void warnFailedTests(Diagnostic diagnostic, ArrayList<TestName> selectedTests) {
- ArrayList<Integer> failedTests = diagnostic.getInvalidTests();
-
- if (!failedTests.isEmpty()) {
- String msg = "Could not complete tests: ";
- boolean first = true;
- for (TestName testName : selectedTests) {
- if (failedTests.contains(testName.getId())) {
- if (first) {
- first = false;
- } else {
- msg += ", ";
- }
- msg += testName.getName();
- }
- }
- displayError(msg);
- }
-
- }
-
- private void displayError(String msg) {
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- mainFrame,
- msg,
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
-
- private ArrayList<String> getSelectedTests() {
- ArrayList<String> tests = new ArrayList<String>();
-
- for (TreePath treePath : jTree.getSelectionPaths()) {
- tests.addAll(getChildrenTests(jTree.getModel(), treePath.getLastPathComponent()));
- }
-
- return tests;
- }
-
- private ArrayList<String> getChildrenTests(TreeModel model, Object node) {
- ArrayList<String> tests = new ArrayList<String>();
-
- if (model.isLeaf(node)) { // leaf
- DefaultMutableTreeNode leaf = (DefaultMutableTreeNode) node;
- tests.add(leaf.toString());
- }
- else { // iterate over children
- for (int i = 0; i < model.getChildCount(node); i++) {
- tests.addAll(getChildrenTests(model, model.getChild(node, i)));
- }
- }
-
- return tests;
- }
-
- }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/84/7075263e4bac001410e2e30aa85db9d1 b/.metadata/.plugins/org.eclipse.core.resources/.history/84/7075263e4bac001410e2e30aa85db9d1
deleted file mode 100644
index d42d104..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/84/7075263e4bac001410e2e30aa85db9d1
+++ /dev/null
@@ -1,886 +0,0 @@
-package ui;
-
-import io.ClientConnection;
-import io.CommAdapter;
-import io.Questionnaire;
-
-import java.awt.BorderLayout;
-import java.awt.Color;
-import java.awt.Component;
-import java.awt.Dimension;
-import java.awt.FlowLayout;
-import java.awt.Font;
-import java.awt.SystemColor;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.awt.event.WindowAdapter;
-import java.io.File;
-import java.io.IOException;
-import java.sql.SQLException;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.LinkedList;
-import java.util.Map;
-import java.util.Set;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
-import javax.swing.Box;
-import javax.swing.BoxLayout;
-import javax.swing.ButtonGroup;
-import javax.swing.DefaultComboBoxModel;
-import javax.swing.GroupLayout;
-import javax.swing.GroupLayout.Alignment;
-import javax.swing.ImageIcon;
-import javax.swing.JButton;
-import javax.swing.JComboBox;
-import javax.swing.JDialog;
-import javax.swing.JFileChooser;
-import javax.swing.JFrame;
-import javax.swing.JLabel;
-import javax.swing.JOptionPane;
-import javax.swing.JPanel;
-import javax.swing.JRadioButton;
-import javax.swing.JScrollPane;
-import javax.swing.JSeparator;
-import javax.swing.JTabbedPane;
-import javax.swing.JTextArea;
-import javax.swing.JTextPane;
-import javax.swing.JTree;
-import javax.swing.LayoutStyle.ComponentPlacement;
-import javax.swing.SwingConstants;
-import javax.swing.UIManager;
-import javax.swing.border.BevelBorder;
-import javax.swing.border.EmptyBorder;
-import javax.swing.border.EtchedBorder;
-import javax.swing.tree.DefaultMutableTreeNode;
-import javax.swing.tree.TreeModel;
-import javax.swing.tree.TreePath;
-
-import org.jpedal.examples.viewer.Commands;
-import org.jpedal.examples.viewer.Viewer;
-
-import utils.ClientProperties;
-
-import com.itextpdf.text.DocumentException;
-
-import database.DBconnectorClient;
-import framework.Diagnostic;
-import framework.MedUnit;
-import framework.Question;
-import framework.reply.ReplySurvey;
-import framework.test.TestName;
-
-/**
- *
- * @author youssef, raisaro
- */
-public class GUI extends javax.swing.JFrame {
-
- private static final Logger LOGGER = Logger.getLogger(GUI.class.getName());
-
- private static final long serialVersionUID = -4582280515597700650L;
-
- // configuration
- private ClientProperties props;
-
- private JTree jTree;
- private DBconnectorClient connectorClientDB;
- private LinkedList<Integer> patients;
-
- /** List of all relevant tests */
- private HashMap<String, TestName> testsByName;
- private Viewer viewer;
- private JDialog dialog;
- private JFrame frame;
- private boolean survey_submitted;
- private int close_trials;
- private Map<Integer, ButtonGroup> buttonGroupMap;
- private Questionnaire quest;
- private Map<Integer, Question> map;
- private Set<Integer> ids;
- private Map<String,String> answers;
- private Map<Integer, String> locations;
-
-
- /**
- * Creates new form GUI
- */
- public GUI(ClientProperties props){
-
- frame = this;
- this.props = props;
- this.connectorClientDB = new DBconnectorClient(props.getDbMsAccess());
- survey_submitted = false;
- close_trials = 0;
-
-
- try {
- initComponents();
-
- viewer = new Viewer(jScrollPane2, null);
- viewer.setupViewer();
-
- // create questionnare
-
-
- System.out.println("#of questions: " + ids.size());
-
-// viewer_q = new Viewer(jScrollPane4, null);
-// viewer_q.setupViewer();
-//
-// // specify file you wish to open (JPedal handles getting the byte data)
-// String filepathReport = "outputPDF/buttons_filled.pdf";
-//
-// // open generated PDF
-// // object must be either String in full filepath, or
-// // File object which can be relative
-// Object[] input = new Object[]{ new File(filepathReport) };
-// viewer_q.executeCommand(Commands.OPENFILE, input);
-
- JButton btnSubmitQuestionnaire = new JButton("Submit Questionnaire");
- btnSubmitQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- btnSubmitQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- submitButtonActionPerformed(arg0);
- }
- });
- JButton btnResetQuestionnaire = new JButton("Save as PDF");
- btnResetQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- savePDFButtonActionPerformed(arg0);
- }
- });
- btnResetQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- JPanel panel_button = new JPanel();
- panel_button.setLayout(new BoxLayout(panel_button, BoxLayout.X_AXIS));
-
- lblNewLabel_3 = new JLabel("");
- lblNewLabel_3.setIcon(new ImageIcon("res/location_icon.png"));
- panel_button.add(lblNewLabel_3);
-
-
-
- comboBox = new JComboBox<String>();
- comboBox.setFont(new Font("Tahoma", Font.BOLD, 12));
- comboBox.setModel(new DefaultComboBoxModel<String>(new String[] {"Select Location"}));
- for(Integer id_loc : locations.keySet()){
- comboBox.addItem(locations.get(id_loc));
- }
-
-
- panel_button.add(comboBox);
-
- rigidArea = Box.createRigidArea(new Dimension(10, 0));
- panel_button.add(rigidArea);
-
- lblNewLabel_1 = new JLabel("");
- lblNewLabel_1.setIcon(new ImageIcon("res/submit.png"));
- panel_button.add(lblNewLabel_1);
- panel_button.add(btnSubmitQuestionnaire);
-
- panel_button.add(Box.createRigidArea(new Dimension(10,0)));
-
- lblNewLabel_2 = new JLabel("");
- lblNewLabel_2.setIcon(new ImageIcon("res/pdf.png"));
- panel_button.add(lblNewLabel_2);
- panel_button.add(btnResetQuestionnaire);
- panel_button.setPreferredSize(new Dimension(211, 35));
- panel_button.validate();
-
- JPanel panel_3 = new JPanel();
- GroupLayout gl_panel = new GroupLayout(panel);
- gl_panel.setHorizontalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(41)
- .addGroup(gl_panel.createParallelGroup(Alignment.TRAILING)
- .addComponent(jScrollPane4, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE)
- .addComponent(panel_1, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE))
- .addGap(32))
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(63)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addGap(103)
- .addComponent(panel_button, GroupLayout.DEFAULT_SIZE, 488, Short.MAX_VALUE)
- .addGap(241))
- );
- gl_panel.setVerticalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(22)
- .addComponent(panel_1, GroupLayout.DEFAULT_SIZE, 192, Short.MAX_VALUE)
- .addGap(18)
- .addComponent(jScrollPane4, GroupLayout.DEFAULT_SIZE, 437, Short.MAX_VALUE)
- .addGap(26)
- .addGroup(gl_panel.createParallelGroup(Alignment.LEADING)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(panel_button, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE)))
- );
- panel_3.setLayout(new BoxLayout(panel_3, BoxLayout.X_AXIS));
-
-
- panel.setLayout(gl_panel);
-
-
-
-
-
-
- /////////////////////////////////////////////////////////
- // display the tests available
-
- // get the tests
- HashMap<String, ArrayList<TestName>> testsRelevantByGroup = connectorClientDB.getRelevantTestsByGroup();
- ArrayList<String> groups = new ArrayList<String>(testsRelevantByGroup.keySet());
-
- // flatten hashmap into linkedlist
-// tests = new LinkedList<>();
- testsByName = new HashMap<String, TestName>();
- for (String group : groups) {
-// tests.addAll(testsRelevantByGroup.get(group));
- for (TestName test : testsRelevantByGroup.get(group)) {
- testsByName.put(test.getName(), test);
- }
- }
-
- // define tree structure of the tests
- DefaultMutableTreeNode root = new DefaultMutableTreeNode("All");
-
- for (String group : groups) {
- DefaultMutableTreeNode child = new DefaultMutableTreeNode(group);
- root.add(child);
-
- for (TestName test : testsRelevantByGroup.get(group)) {
- DefaultMutableTreeNode grandChild = new DefaultMutableTreeNode(test.getName());
- child.add(grandChild);
- }
- }
-
- // define swing object
- jTree = new JTree(root);
-
- for(int i=0;i<jTree.getRowCount();i++){
- jTree.expandRow(i);
- }
-
- jScrollPane3.setViewportView(jTree);
-// jTree.addTreeSelectionListener(new TreeSelectionListener() {
-//
-// @Override
-// public void valueChanged(TreeSelectionEvent e) {
-// tp = jTree.getSelectionPaths();
-// }
-// });
- jScrollPane3.setViewportView(jTree);
-
- /////////////////////////////////////////////////////////
- // display the patients registered
-
- patients = connectorClientDB.getPatients();
- for (Integer patientId : patients) {
- jComboBox1.addItem(patientId.toString());
- }
-
- } catch (SQLException ex) {
- Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex);
- ex.printStackTrace();
-// } catch (IOException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
-// } catch (DocumentException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
- }
-
- }
-
- /**
- * 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() {
-
- jPanel1 = new javax.swing.JPanel();
- jLabel2 = new javax.swing.JLabel();
- jLabel1 = new javax.swing.JLabel();
- jPanel2 = new javax.swing.JPanel();
- jComboBox1 = new javax.swing.JComboBox<String>();
- jButton1 = new javax.swing.JButton();
- jButton1.setFont(new Font("Tahoma", Font.BOLD, 12));
- jLabel3 = new javax.swing.JLabel();
- jLabel4 = new javax.swing.JLabel();
- jScrollPane3 = new javax.swing.JScrollPane();
- jScrollPane2 = new javax.swing.JScrollPane();
- jMenuBar1 = new javax.swing.JMenuBar();
- jMenu1 = new javax.swing.JMenu();
- jMenuItem1 = new javax.swing.JMenuItem();
- jMenu2 = new javax.swing.JMenu();
- dialog = new JDialog();
- tabbedPane = new JTabbedPane(JTabbedPane.TOP);
-
- setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
- addWindowListener(new WindowAdapter() {
- @Override
- public void windowClosing(java.awt.event.WindowEvent windowEvent) {
- if (!survey_submitted && close_trials <= 2){
- JOptionPane.showMessageDialog(frame, "Before closing the application, please fill in and submit the questionnaire.");
- close_trials++;
- tabbedPane.setSelectedIndex(1);
- }else{
- System.exit(0);
- }
- }
- });
- setTitle("HIV Pharmacogenomics\n");
-
- jLabel2.setIcon(new javax.swing.ImageIcon("res/shcs_logo2_small.gif")); // NOI18N
-
- jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
- jLabel1.setText("HIV Pharmacogenomics | Project #693");
-
- javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
- jPanel1.setLayout(jPanel1Layout);
- jPanel1Layout.setHorizontalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap(71, Short.MAX_VALUE)
- .addComponent(jLabel1)
- .addGap(18, 18, 18)
- .addComponent(jLabel2))
- );
- jPanel1Layout.setVerticalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jLabel1)
- .addGap(11, 11, 11))
- .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)
- );
-
- jPanel2.setBackground(new java.awt.Color(255, 255, 255));
- jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
-
- jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<String>(new String[]{"Select Patient"}));
-
- jButton1.setText("Run Test");
- jButton1.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton1ActionPerformed(evt);
- }
- });
-
- JLabel lblNewLabel = new JLabel("");
- lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
- lblNewLabel.setIcon(new javax.swing.ImageIcon("res/gears.png"));
-
-
-
- javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
- jPanel2Layout.setHorizontalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addComponent(jComboBox1, 0, 248, Short.MAX_VALUE)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addGap(75)
- .addGroup(jPanel2Layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jButton1)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 75, GroupLayout.PREFERRED_SIZE))
- .addContainerGap(98, Short.MAX_VALUE))
- );
- jPanel2Layout.setVerticalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addComponent(jComboBox1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED, 223, Short.MAX_VALUE)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jButton1)
- .addGap(19))
- );
- jPanel2.setLayout(jPanel2Layout);
-
- jLabel3.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel3.setText("Select Patient");
-
- jLabel4.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel4.setText("Select Test");
-
- jScrollPane3.setBackground(new java.awt.Color(255, 255, 255));
-
- jMenu1.setText("File");
-
- jMenuItem1.setText("Exit");
- jMenu1.add(jMenuItem1);
-
- jMenuBar1.add(jMenu1);
-
- jMenu2.setText("Edit");
- jMenuBar1.add(jMenu2);
-
- setJMenuBar(jMenuBar1);
-
-
-
- javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
- layout.setHorizontalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(layout.createParallelGroup(Alignment.LEADING, false)
- .addComponent(jLabel3)
- .addComponent(jLabel4)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, 244, Short.MAX_VALUE)
- .addComponent(jScrollPane3))
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 970, Short.MAX_VALUE))
- .addContainerGap())
- );
- layout.setVerticalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel4))
- .addPreferredGap(ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addComponent(jScrollPane3, GroupLayout.PREFERRED_SIZE, 388, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jLabel3)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 785, Short.MAX_VALUE))
- .addContainerGap())
- );
-
-
- jScrollPane2.setAutoscrolls(true);
- jScrollPane3.setAutoscrolls(true);
- tabbedPane.addTab("Report", new ImageIcon("res/report_icon.gif"), jScrollPane2, null);
- tabbedPane.setBackgroundAt(0, new Color(255, 255, 255));
-
- panel = new JPanel();
- tabbedPane.addTab("Survey", new ImageIcon("res/survey_icon.png"), panel, null);
- tabbedPane.setBackgroundAt(1, new Color(255, 255, 255));
- tabbedPane.setEnabledAt(1, true);
-
- panel_1 = new JPanel();
- panel_1.setBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null));
- panel_1.setBackground(UIManager.getColor("Button.background"));
-
- JLabel label = new JLabel("");
- label.setIcon(new ImageIcon("res/shcs_logo2_medium.gif"));
-
- lblDearDoctor = new JLabel("Dear Doctor,");
- lblDearDoctor.setFont(new Font("Tahoma", Font.BOLD, 14));
-
- JScrollPane scrollPane = new JScrollPane();
- scrollPane.setBorder(null);
- GroupLayout gl_panel_1 = new GroupLayout(panel_1);
- gl_panel_1.setHorizontalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(25)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 666, Short.MAX_VALUE)
- .addComponent(lblDearDoctor))
- .addContainerGap())
- );
- gl_panel_1.setVerticalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(22)
- .addComponent(lblDearDoctor)
- .addGap(18)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 120, Short.MAX_VALUE)
- .addContainerGap())
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(36)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 96, GroupLayout.PREFERRED_SIZE)
- .addContainerGap(56, Short.MAX_VALUE))
- );
-
- JTextPane txtpnTodayYouAre = new JTextPane();
- txtpnTodayYouAre.setBorder(null);
- txtpnTodayYouAre.setText("Today you are receiving a pharmacogenetic report based on the genetic information of your patient. Because the human genome contains extremely private and sensitive information of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier, it must be managed with care.\r\nToday you are receiving a pharmacogenetic report based on the genetic information of your patient. Because the human genome contains extremely private and sensitive information of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier, it must be managed with care.\r\nToday you are receiving a pharmacogenetic report based on the genetic information of your patient. Because the human genome contains extremely private and sensitive information of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier, it must be managed with care.");
- txtpnTodayYouAre.setFont(new Font("Tahoma", Font.PLAIN, 13));
- txtpnTodayYouAre.setEditable(false);
- txtpnTodayYouAre.setBackground(SystemColor.menu);
- scrollPane.setViewportView(txtpnTodayYouAre);
- panel_1.setLayout(gl_panel_1);
- jScrollPane4 = new javax.swing.JScrollPane();
- getContentPane().setLayout(layout);
-
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
- ReplySurvey replySurvey = commHandlerAdapter.callServiceSurvey();
-
- map = replySurvey.getQuestions();
- ids = map.keySet();
- locations = replySurvey.getLocations();
-
- panel_2 = new JPanel();
- panel_2.setBackground(Color.WHITE);
- panel_2.setBorder(new BevelBorder(BevelBorder.LOWERED, null, null, null, null));
- jScrollPane4.setViewportView(panel_2);
- panel_2.setLayout(new BoxLayout(panel_2, BoxLayout.Y_AXIS));
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
-
-
- for(Integer id : ids){
- ButtonGroup group = new ButtonGroup();
- JRadioButton r1 = new JRadioButton("1"); r1.setActionCommand("1"); r1.setBackground(Color.WHITE);
- JRadioButton r2 = new JRadioButton("2"); r2.setActionCommand("2"); r2.setBackground(Color.WHITE);
- JRadioButton r3 = new JRadioButton("3"); r3.setActionCommand("3"); r3.setBackground(Color.WHITE);
- JRadioButton r4 = new JRadioButton("4"); r4.setActionCommand("4"); r4.setBackground(Color.WHITE);
- JRadioButton r5 = new JRadioButton("5"); r5.setActionCommand("5"); r5.setBackground(Color.WHITE);
- group.add(r1);
- group.add(r2);
- group.add(r3);
- group.add(r4);
- group.add(r5);
- JPanel radio_panel = new JPanel();
- radio_panel.setLayout((new BoxLayout(radio_panel, BoxLayout.X_AXIS)));
- radio_panel.setBackground(Color.WHITE);
-// radio_panel.setAlignmentX(Component.CENTER_ALIGNMENT);
- radio_panel.add(r1);
- radio_panel.add(r2);
- radio_panel.add(r3);
- radio_panel.add(r4);
- radio_panel.add(r5);
- radio_panel.doLayout();
- radio_panel.setPreferredSize(radio_panel.getPreferredSize());
- JTextArea question = new JTextArea(id + ") " + map.get(id).getQuestion());
- question.setLineWrap(true);
- question.setWrapStyleWord(true);
- question.setAlignmentX(Component.CENTER_ALIGNMENT);
- question.setFont(new Font("Tahoma", Font.PLAIN, 13));
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- panel_2.add(question);
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- panel_2.add(radio_panel);
- panel_2.add(new JSeparator());
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- buttonGroupMap.put(id, group);
-
- }
-
-
-
- this.setSize(new Dimension(1200, 865));
-// pack();
- }// </editor-fold>//GEN-END:initComponents
-
-
- private void submitButtonActionPerformed(java.awt.event.ActionEvent evt){
-
- try{
- answers = new HashMap<String, String>();
- StringBuilder sb = new StringBuilder();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- sb.append(q).append(",");
- sb.append(bg.getSelection().getActionCommand()).append(";");
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- String answer = sb.toString();
- Integer id_loc = null;
- for(Integer i: locations.keySet()){
- if(locations.get(i).equals(comboBox.getSelectedItem().toString()))
- id_loc = i;
- }
-
- String id_p;
- if(jComboBox1.getSelectedItem().toString().equals("Select Patient"))
- id_p = "0";
- else
- id_p = jComboBox1.getSelectedItem().toString();
-
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
-
- String reply = commHandlerAdapter.callServiceSurveyAnswer(answer, id_loc.toString(), id_p);
-
- if(reply.equals("1")){
- survey_submitted = true;
-
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Congrats! Your aswers have been sent to the SHCS datacenter.",
- "Information Message",
- JOptionPane.INFORMATION_MESSAGE);
- }
- else{
- throw new IOException();
- }
-
-
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "The SHCS datacenter does not respond. Please save the survey and send it to jean.raisaro@epfl.ch.",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
- private void savePDFButtonActionPerformed(java.awt.event.ActionEvent evt){
- try {
-
- answers = new HashMap<String, String>();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- JFileChooser chooser = new JFileChooser();
- // Note: source for ExampleFileFilter can be found in FileChooserDemo,
- // under the demo/jfc directory in the JDK.
-
- int returnVal = chooser.showSaveDialog(this);
- System.out.println(returnVal);
- if(returnVal == JFileChooser.APPROVE_OPTION) {
- System.out.println("You chose to open this file: " +
- chooser.getSelectedFile().getPath());
- quest = new Questionnaire(chooser.getSelectedFile().getPath() + ".pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }else{
- quest = new Questionnaire("outputPDF/survey.pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }
-
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (DocumentException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (NullPointerException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
-
- private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
-
- JPanel contentPanel = new JPanel();
-
- dialog.setBounds(100, 100, 410, 80);
- dialog.getContentPane().setLayout(new BorderLayout());
- contentPanel.setLayout(new FlowLayout());
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- dialog.getContentPane().add(contentPanel, BorderLayout.CENTER);
- {
- JLabel label = new JLabel("Please wait...The overall computation can take few seconds");
- label.setHorizontalAlignment(SwingConstants.CENTER);
- label.setFont(new Font("Tahoma", Font.PLAIN, 12));
- contentPanel.add(label);
- }
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
- dialog.getContentPane().add(buttonPane, BorderLayout.SOUTH);
- }
- dialog.setLocationRelativeTo(this);
- dialog.setVisible(true);
-
- GUIWorker gw = new GUIWorker(this, props);
- Thread t = new Thread(gw);
- t.start();
-
- }
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JButton jButton1;
- private javax.swing.JComboBox<String> jComboBox1;
- private javax.swing.JLabel jLabel1;
- private javax.swing.JLabel jLabel2;
- private javax.swing.JLabel jLabel3;
- private javax.swing.JLabel jLabel4;
- private javax.swing.JMenu jMenu1;
- private javax.swing.JMenu jMenu2;
- private javax.swing.JMenuBar jMenuBar1;
- private javax.swing.JMenuItem jMenuItem1;
- private javax.swing.JPanel jPanel1;
- private javax.swing.JPanel jPanel2;
- private javax.swing.JScrollPane jScrollPane3;
- private javax.swing.JTabbedPane tabbedPane;
- private javax.swing.JScrollPane jScrollPane2;
- private javax.swing.JScrollPane jScrollPane4;
- private JPanel panel;
- private JPanel panel_1;
- private JPanel panel_2;
- private JLabel lblDearDoctor;
- private JLabel lblNewLabel_1;
- private JLabel lblNewLabel_2;
- private JLabel lblNewLabel_3;
- private JComboBox<String> comboBox;
- private Component rigidArea;
-
- // End of variables declaration//GEN-END:variables
-
-
- class GUIWorker implements Runnable{
-
- private JFrame mainFrame;
- private ClientProperties props;
- private MedUnit mu;
-
- public GUIWorker(GUI gui, ClientProperties props) {
- mainFrame = gui;
-
- this.props = props;
- this.mu = new MedUnit(props, 0);
- }
-
- @Override
- public void run() {
-
- try{
- int patientId = Integer.parseInt((String) jComboBox1.getSelectedItem());
-
- // convert selected tests to test identifiers
- ArrayList<TestName> selectedTests = new ArrayList<TestName>();
- for (String currentName : getSelectedTests()) {
- TestName currentTest = testsByName.get(currentName);
-
- if (currentTest == null) {
- throw new IllegalStateException("Trying to run unknown test: " + currentTest);
- }
-
- selectedTests.add(currentTest);
- }
-
- // run tests
- Diagnostic diagnostic = mu.runTests(patientId, selectedTests);
-
- // warn for tests with missing material
- warnFailedTests(diagnostic, selectedTests);
-
- // create report
- mu.createReport(patientId, selectedTests, diagnostic);
-
- dialog.setVisible(false);
-
- // specify file you wish to open (JPedal handles getting the byte data)
- String filepathReport = props.getPathPDF() + patientId + ".pdf";
-
- // open generated PDF
- // object must be either String in full filepath, or
- // File object which can be relative
- Object[] input = new Object[]{ new File(filepathReport) };
- viewer.executeCommand(Commands.OPENFILE, input);
-
- // display CAD result as bar plot
- if (diagnostic.hasCAD()) {
- System.out.println("CAD = " + diagnostic.getResultCAD());
- BarPlotFrame frame = new BarPlotFrame(diagnostic.getResultCAD(), patientId);
- frame.setVisible(true);
- frame.setAlwaysOnTop(true);
- }
-
-
- } catch (SQLException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Please select a patient.");
- }
-
- }
-
- private void warnFailedTests(Diagnostic diagnostic, ArrayList<TestName> selectedTests) {
- ArrayList<Integer> failedTests = diagnostic.getInvalidTests();
-
- if (!failedTests.isEmpty()) {
- String msg = "Could not complete tests: ";
- boolean first = true;
- for (TestName testName : selectedTests) {
- if (failedTests.contains(testName.getId())) {
- if (first) {
- first = false;
- } else {
- msg += ", ";
- }
- msg += testName.getName();
- }
- }
- displayError(msg);
- }
-
- }
-
- private void displayError(String msg) {
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- mainFrame,
- msg,
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
-
- private ArrayList<String> getSelectedTests() {
- ArrayList<String> tests = new ArrayList<String>();
-
- for (TreePath treePath : jTree.getSelectionPaths()) {
- tests.addAll(getChildrenTests(jTree.getModel(), treePath.getLastPathComponent()));
- }
-
- return tests;
- }
-
- private ArrayList<String> getChildrenTests(TreeModel model, Object node) {
- ArrayList<String> tests = new ArrayList<String>();
-
- if (model.isLeaf(node)) { // leaf
- DefaultMutableTreeNode leaf = (DefaultMutableTreeNode) node;
- tests.add(leaf.toString());
- }
- else { // iterate over children
- for (int i = 0; i < model.getChildCount(node); i++) {
- tests.addAll(getChildrenTests(model, model.getChild(node, i)));
- }
- }
-
- return tests;
- }
-
- }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/e2/70e70c886cac00141cc3aa66275e9c24 b/.metadata/.plugins/org.eclipse.core.resources/.history/86/c09db52f55b80014199a8682e9990d0e
similarity index 74%
copy from .metadata/.plugins/org.eclipse.core.resources/.history/e2/70e70c886cac00141cc3aa66275e9c24
copy to .metadata/.plugins/org.eclipse.core.resources/.history/86/c09db52f55b80014199a8682e9990d0e
index 8b30fef..cfb9401 100644
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/e2/70e70c886cac00141cc3aa66275e9c24
+++ b/.metadata/.plugins/org.eclipse.core.resources/.history/86/c09db52f55b80014199a8682e9990d0e
@@ -1,927 +1,942 @@
package ui;
import io.ClientConnection;
import io.CommAdapter;
import io.Questionnaire;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Font;
import java.awt.SystemColor;
+import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowAdapter;
import java.io.File;
import java.io.IOException;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.Map;
import java.util.Set;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.Box;
import javax.swing.BoxLayout;
import javax.swing.ButtonGroup;
import javax.swing.DefaultComboBoxModel;
import javax.swing.GroupLayout;
import javax.swing.GroupLayout.Alignment;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JDialog;
import javax.swing.JFileChooser;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JRadioButton;
import javax.swing.JScrollPane;
import javax.swing.JSeparator;
import javax.swing.JTabbedPane;
import javax.swing.JTextArea;
import javax.swing.JTextPane;
import javax.swing.JTree;
import javax.swing.LayoutStyle.ComponentPlacement;
import javax.swing.SwingConstants;
import javax.swing.border.EmptyBorder;
import javax.swing.border.LineBorder;
import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.tree.TreeModel;
import javax.swing.tree.TreePath;
import org.jpedal.examples.viewer.Commands;
import org.jpedal.examples.viewer.Viewer;
import utils.ClientProperties;
import com.itextpdf.text.DocumentException;
import database.DBconnectorClient;
import framework.Diagnostic;
import framework.MedUnit;
import framework.Question;
import framework.reply.ReplySurvey;
import framework.test.TestName;
+import javax.swing.JSplitPane;
+import java.awt.event.MouseAdapter;
+import java.awt.event.MouseEvent;
/**
*
- * @author youssef, raisaro
+ * @author raisaro
*/
public class GUI extends javax.swing.JFrame {
private static final Logger LOGGER = Logger.getLogger(GUI.class.getName());
private static final long serialVersionUID = -4582280515597700650L;
// configuration
private ClientProperties props;
private JTree jTree;
private DBconnectorClient connectorClientDB;
private LinkedList<Integer> patients;
/** List of all relevant tests */
private HashMap<String, TestName> testsByName;
private Viewer viewer;
private JDialog dialog;
private JFrame frame;
private boolean survey_submitted;
private int close_trials;
private Map<Integer, ButtonGroup> buttonGroupMap;
private Questionnaire quest;
private Map<Integer, Question> map;
private Set<Integer> ids;
private Map<String,String> answers;
private Map<Integer, String> locations;
+ private JButton btnSubmitQuestionnaire;
/**
* Creates new form GUI
*/
public GUI(ClientProperties props){
+ setLocationByPlatform(true);
+ setIconImage(Toolkit.getDefaultToolkit().getImage("res/shcs_logo2_icon.png"));
frame = this;
this.props = props;
this.connectorClientDB = new DBconnectorClient(props.getDbMsAccess());
survey_submitted = false;
close_trials = 0;
try {
initComponents();
viewer = new Viewer(jScrollPane2, null);
viewer.setupViewer();
- // create questionnare
-
+ // create questionnare
+
System.out.println("#of questions: " + ids.size());
-// viewer_q = new Viewer(jScrollPane4, null);
-// viewer_q.setupViewer();
-//
-// // specify file you wish to open (JPedal handles getting the byte data)
-// String filepathReport = "outputPDF/buttons_filled.pdf";
-//
-// // open generated PDF
-// // object must be either String in full filepath, or
-// // File object which can be relative
-// Object[] input = new Object[]{ new File(filepathReport) };
-// viewer_q.executeCommand(Commands.OPENFILE, input);
-
- JButton btnSubmitQuestionnaire = new JButton("Submit Questionnaire");
+
+ btnSubmitQuestionnaire = new JButton("Submit Questionnaire");
btnSubmitQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
btnSubmitQuestionnaire.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
submitButtonActionPerformed(arg0);
}
});
JButton btnResetQuestionnaire = new JButton("Save as PDF");
btnResetQuestionnaire.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
savePDFButtonActionPerformed(arg0);
}
});
btnResetQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
JPanel panel_button = new JPanel();
panel_button.setLayout(new BoxLayout(panel_button, BoxLayout.X_AXIS));
lblNewLabel_3 = new JLabel("");
lblNewLabel_3.setIcon(new ImageIcon("res/location_icon.png"));
panel_button.add(lblNewLabel_3);
comboBox = new JComboBox<String>();
comboBox.setFont(new Font("Tahoma", Font.BOLD, 12));
comboBox.setModel(new DefaultComboBoxModel<String>(new String[] {"Select Location"}));
for(Integer id_loc : locations.keySet()){
comboBox.addItem(locations.get(id_loc));
}
panel_button.add(comboBox);
rigidArea = Box.createRigidArea(new Dimension(10, 0));
panel_button.add(rigidArea);
lblNewLabel_1 = new JLabel("");
lblNewLabel_1.setIcon(new ImageIcon("res/submit.png"));
panel_button.add(lblNewLabel_1);
panel_button.add(btnSubmitQuestionnaire);
panel_button.add(Box.createRigidArea(new Dimension(10,0)));
lblNewLabel_2 = new JLabel("");
lblNewLabel_2.setIcon(new ImageIcon("res/pdf.png"));
panel_button.add(lblNewLabel_2);
panel_button.add(btnResetQuestionnaire);
panel_button.setPreferredSize(new Dimension(211, 35));
panel_button.validate();
- JPanel panel_3 = new JPanel();
+ splitPane = new JSplitPane();
+ splitPane.setOneTouchExpandable(true);
+ splitPane.setResizeWeight(0.52);
+ splitPane.setOrientation(JSplitPane.VERTICAL_SPLIT);
+
GroupLayout gl_panel = new GroupLayout(panel);
gl_panel.setHorizontalGroup(
- gl_panel.createParallelGroup(Alignment.TRAILING)
+ gl_panel.createParallelGroup(Alignment.LEADING)
.addGroup(gl_panel.createSequentialGroup()
- .addGap(63)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addGap(103)
- .addComponent(panel_button, GroupLayout.DEFAULT_SIZE, 498, Short.MAX_VALUE)
- .addGap(241))
+ .addGap(165)
+ .addComponent(panel_button, GroupLayout.DEFAULT_SIZE, 421, Short.MAX_VALUE)
+ .addGap(242))
.addGroup(gl_panel.createSequentialGroup()
- .addGap(41)
- .addGroup(gl_panel.createParallelGroup(Alignment.TRAILING)
- .addComponent(jScrollPane4, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE)
- .addComponent(panel_1, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE))
- .addGap(32))
+ .addContainerGap()
+ .addComponent(splitPane, GroupLayout.DEFAULT_SIZE, 738, Short.MAX_VALUE)
+ .addGap(80))
);
gl_panel.setVerticalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
+ gl_panel.createParallelGroup(Alignment.TRAILING)
.addGroup(gl_panel.createSequentialGroup()
- .addGap(22)
- .addComponent(panel_1, GroupLayout.PREFERRED_SIZE, 235, GroupLayout.PREFERRED_SIZE)
- .addGap(37)
- .addComponent(jScrollPane4, GroupLayout.DEFAULT_SIZE, 379, Short.MAX_VALUE)
- .addGap(26)
- .addGroup(gl_panel.createParallelGroup(Alignment.LEADING)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(panel_button, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE)))
+ .addContainerGap()
+ .addComponent(splitPane, GroupLayout.DEFAULT_SIZE, 603, Short.MAX_VALUE)
+ .addPreferredGap(ComponentPlacement.RELATED)
+ .addComponent(panel_button, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE)
+ .addGap(11))
+ );
+
+ panel_1 = new JPanel();
+ panel_1.setMinimumSize(new Dimension(10, 0));
+ panel_1.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
+ panel_1.setBackground(SystemColor.menu);
+ splitPane.setLeftComponent(panel_1);
+
+ label_1 = new JLabel("");
+ label_1.setIcon(new ImageIcon("res/shcs_logo2_medium.gif"));
+
+ label_2 = new JLabel("");
+ label_2.setIcon(new ImageIcon("res/EPFL_logo.png"));
+
+ label_3 = new JLabel("");
+ label_3.setIcon(new ImageIcon("res/chuv_logo.png"));
+
+ label_4 = new JLabel("Dear Doctor,");
+ label_4.setFont(new Font("Tahoma", Font.BOLD, 14));
+
+ scrollPane = new JScrollPane();
+ scrollPane.setBorder(null);
+ GroupLayout gl_panel_1 = new GroupLayout(panel_1);
+ gl_panel_1.setHorizontalGroup(
+ gl_panel_1.createParallelGroup(Alignment.LEADING)
+ .addGroup(gl_panel_1.createSequentialGroup()
+ .addGap(25)
+ .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
+ .addComponent(label_3)
+ .addComponent(label_2)
+ .addComponent(label_1, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE))
+ .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
+ .addGroup(gl_panel_1.createSequentialGroup()
+ .addGap(20)
+ .addComponent(label_4)
+ .addGap(109))
+ .addGroup(gl_panel_1.createSequentialGroup()
+ .addGap(10)
+ .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 557, Short.MAX_VALUE)
+ .addContainerGap())))
);
- panel_3.setLayout(new BoxLayout(panel_3, BoxLayout.X_AXIS));
+ gl_panel_1.setVerticalGroup(
+ gl_panel_1.createParallelGroup(Alignment.LEADING)
+ .addGroup(gl_panel_1.createSequentialGroup()
+ .addContainerGap()
+ .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
+ .addGroup(gl_panel_1.createSequentialGroup()
+ .addComponent(label_4)
+ .addPreferredGap(ComponentPlacement.UNRELATED)
+ .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 416, Short.MAX_VALUE))
+ .addGroup(gl_panel_1.createSequentialGroup()
+ .addGap(9)
+ .addComponent(label_1, GroupLayout.PREFERRED_SIZE, 96, GroupLayout.PREFERRED_SIZE)
+ .addGap(18)
+ .addComponent(label_2)
+ .addGap(28)
+ .addComponent(label_3)))
+ .addContainerGap(114, GroupLayout.PREFERRED_SIZE))
+ );
+
+ introduction = new JTextPane();
+ introduction.setBackground(SystemColor.control);
+ introduction.setContentType("text/html");
+ introduction.setText("You are receiving a pharmacogenetics report based on the genome of your patient. Because of its highly sensitive nature, the genetic information you are provided with is processed in a privacy-preserving way. In particular, to protect patients\u2019 genomic privacy, their genetic and clinical data are stored encrypted at the SHCS data center, and securely analyzed through a sophisticated algorithm designed and developed at EPFL [1, 2]. The actual clinical and genetic information is never revealed. Only the authorized users, such as you, can get some processed information, for example, the interpreted final result of a pharmacogenetics risk test.\r\nThis mechanism protects the data against insiders or hackers trying to illegally access patients\u2019 medical information, while still allowing authorized users to obtain the information they need.\r\n<br><br>\r\n<b>To help us better understanding the importance of genomic privacy in the medical domain, and the impact of privacy-enhancing technologies in daily clinical practice, please complete the following survey. Answers are on a scale from 1 (Strongly Disagree) to 5 (Strongly Agree).</b>\r\n<font size=\"2\">\r\n<br><br>\r\nNote: this work is part of Project #693, funded by the Swiss HIV Cohort. PIs: Prof. A. Telenti, formerly at CHUV, and Prof. J.-P. Hubaux, at EPFL.\r\n<br><br>\r\n[1] J. L. Raisaro, E. Ayday, P. J. McLaren, J.-P. Hubaux, and A. Telenti. Privacy-Preserving HIV Pharmacogenetics: A Real Use Case of Genomic Data Protection. GenoPri 2014<br>\r\n[2] E. Ayday, J. L. Raisaro, J. Rougemont, and J.-P. Hubaux. Protecting and Evaluating Genomic Privacy in Medical Tests and Personalized Medicine. WPES 2013\r\n</font>");
+ scrollPane.setViewportView(introduction);
+ panel_1.setLayout(gl_panel_1);
+
+ jScrollPane4 = new JScrollPane();
+ jScrollPane4.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
+ splitPane.setRightComponent(jScrollPane4);
+
+
+ jScrollPane4.setViewportView(panel_2);
+ javax.swing.SwingUtilities.invokeLater(new Runnable() {
+ public void run() {
+ jScrollPane4.getVerticalScrollBar().setValue(0);
+ }
+ });
+ introduction.setCaretPosition(0);
panel.setLayout(gl_panel);
/////////////////////////////////////////////////////////
// display the tests available
// get the tests
HashMap<String, ArrayList<TestName>> testsRelevantByGroup = connectorClientDB.getRelevantTestsByGroup();
ArrayList<String> groups = new ArrayList<String>(testsRelevantByGroup.keySet());
// flatten hashmap into linkedlist
// tests = new LinkedList<>();
testsByName = new HashMap<String, TestName>();
for (String group : groups) {
// tests.addAll(testsRelevantByGroup.get(group));
for (TestName test : testsRelevantByGroup.get(group)) {
testsByName.put(test.getName(), test);
}
}
// define tree structure of the tests
DefaultMutableTreeNode root = new DefaultMutableTreeNode("All");
for (String group : groups) {
DefaultMutableTreeNode child = new DefaultMutableTreeNode(group);
root.add(child);
for (TestName test : testsRelevantByGroup.get(group)) {
DefaultMutableTreeNode grandChild = new DefaultMutableTreeNode(test.getName());
child.add(grandChild);
}
}
// define swing object
jTree = new JTree(root);
+ jTree.setFont(new Font("Tahoma", Font.PLAIN, 11));
for(int i=0;i<jTree.getRowCount();i++){
jTree.expandRow(i);
}
jScrollPane3.setViewportView(jTree);
// jTree.addTreeSelectionListener(new TreeSelectionListener() {
//
// @Override
// public void valueChanged(TreeSelectionEvent e) {
// tp = jTree.getSelectionPaths();
// }
// });
jScrollPane3.setViewportView(jTree);
/////////////////////////////////////////////////////////
// display the patients registered
patients = connectorClientDB.getPatients();
for (Integer patientId : patients) {
jComboBox1.addItem(patientId.toString());
}
} catch (SQLException ex) {
Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex);
ex.printStackTrace();
// } catch (IOException e) {
// // TODO Auto-generated catch block
// e.printStackTrace();
// } catch (DocumentException e) {
// // TODO Auto-generated catch block
// e.printStackTrace();
}
}
/**
* 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() {
-
- jPanel1 = new javax.swing.JPanel();
- jLabel2 = new javax.swing.JLabel();
- jLabel1 = new javax.swing.JLabel();
jPanel2 = new javax.swing.JPanel();
jComboBox1 = new javax.swing.JComboBox<String>();
+ jComboBox1.setFont(new Font("Tahoma", Font.BOLD, 12));
jButton1 = new javax.swing.JButton();
jButton1.setFont(new Font("Tahoma", Font.BOLD, 12));
jLabel3 = new javax.swing.JLabel();
jLabel4 = new javax.swing.JLabel();
jScrollPane3 = new javax.swing.JScrollPane();
jScrollPane2 = new javax.swing.JScrollPane();
+ jScrollPane2.setMinimumSize(new Dimension(5, 5));
jMenuBar1 = new javax.swing.JMenuBar();
jMenu1 = new javax.swing.JMenu();
jMenuItem1 = new javax.swing.JMenuItem();
jMenu2 = new javax.swing.JMenu();
dialog = new JDialog();
tabbedPane = new JTabbedPane(JTabbedPane.TOP);
+ tabbedPane.setFont(new Font("Tahoma", Font.BOLD, 12));
setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
addWindowListener(new WindowAdapter() {
@Override
public void windowClosing(java.awt.event.WindowEvent windowEvent) {
if (!survey_submitted && close_trials <= 2){
JOptionPane.showMessageDialog(frame, "Before closing the application, please fill in and submit the questionnaire.");
close_trials++;
tabbedPane.setSelectedIndex(1);
}else{
System.exit(0);
}
}
});
- setTitle("HIV Pharmacogenomics\n");
-
- jLabel2.setIcon(new javax.swing.ImageIcon("res/shcs_logo2_small.gif")); // NOI18N
-
- jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
- jLabel1.setText("HIV Pharmacogenomics | Project #693");
-
- javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
- jPanel1.setLayout(jPanel1Layout);
- jPanel1Layout.setHorizontalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap(71, Short.MAX_VALUE)
- .addComponent(jLabel1)
- .addGap(18, 18, 18)
- .addComponent(jLabel2))
- );
- jPanel1Layout.setVerticalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jLabel1)
- .addGap(11, 11, 11))
- .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)
- );
+ setTitle("Privacy-Preserving HIV Pharmacogenomics\r\n");
jPanel2.setBackground(new java.awt.Color(255, 255, 255));
jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<String>(new String[]{"Select Patient"}));
jButton1.setText("Run Test");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});
JLabel lblNewLabel = new JLabel("");
lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
lblNewLabel.setIcon(new javax.swing.ImageIcon("res/gears.png"));
javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
jPanel2Layout.setHorizontalGroup(
jPanel2Layout.createParallelGroup(Alignment.LEADING)
.addComponent(jComboBox1, 0, 248, Short.MAX_VALUE)
.addGroup(jPanel2Layout.createSequentialGroup()
.addGap(75)
.addGroup(jPanel2Layout.createParallelGroup(Alignment.TRAILING)
.addComponent(jButton1)
.addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 75, GroupLayout.PREFERRED_SIZE))
.addContainerGap(98, Short.MAX_VALUE))
);
jPanel2Layout.setVerticalGroup(
jPanel2Layout.createParallelGroup(Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addComponent(jComboBox1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
.addPreferredGap(ComponentPlacement.RELATED, 223, Short.MAX_VALUE)
.addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE)
.addPreferredGap(ComponentPlacement.RELATED)
.addComponent(jButton1)
.addGap(19))
);
jPanel2.setLayout(jPanel2Layout);
jLabel3.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
jLabel3.setText("Select Patient");
jLabel4.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
jLabel4.setText("Select Test");
jScrollPane3.setBackground(new java.awt.Color(255, 255, 255));
jMenu1.setText("File");
jMenuItem1.setText("Exit");
jMenu1.add(jMenuItem1);
jMenuBar1.add(jMenu1);
jMenu2.setText("Edit");
jMenuBar1.add(jMenu2);
setJMenuBar(jMenuBar1);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
layout.setHorizontalGroup(
layout.createParallelGroup(Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addGroup(layout.createParallelGroup(Alignment.LEADING, false)
- .addComponent(jLabel3)
.addComponent(jLabel4)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, 244, Short.MAX_VALUE)
- .addComponent(jScrollPane3))
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 970, Short.MAX_VALUE))
- .addContainerGap())
+ .addComponent(jLabel3)
+ .addComponent(jScrollPane3, GroupLayout.DEFAULT_SIZE, 234, Short.MAX_VALUE)
+ .addComponent(jPanel2, 0, 0, Short.MAX_VALUE))
+ .addPreferredGap(ComponentPlacement.RELATED)
+ .addComponent(tabbedPane, GroupLayout.PREFERRED_SIZE, 751, Short.MAX_VALUE)
+ .addGap(19))
);
layout.setVerticalGroup(
- layout.createParallelGroup(Alignment.LEADING)
+ layout.createParallelGroup(Alignment.TRAILING)
.addGroup(layout.createSequentialGroup()
+ .addContainerGap()
.addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel4))
- .addPreferredGap(ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(Alignment.LEADING)
+ .addComponent(tabbedPane, Alignment.LEADING, GroupLayout.PREFERRED_SIZE, 687, Short.MAX_VALUE)
.addGroup(layout.createSequentialGroup()
- .addComponent(jScrollPane3, GroupLayout.PREFERRED_SIZE, 388, GroupLayout.PREFERRED_SIZE)
+ .addComponent(jLabel4)
+ .addPreferredGap(ComponentPlacement.RELATED)
+ .addComponent(jScrollPane3, GroupLayout.PREFERRED_SIZE, 356, GroupLayout.PREFERRED_SIZE)
.addPreferredGap(ComponentPlacement.RELATED)
.addComponent(jLabel3)
.addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 785, Short.MAX_VALUE))
+ .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, 283, Short.MAX_VALUE)))
.addContainerGap())
);
jScrollPane2.setAutoscrolls(true);
jScrollPane3.setAutoscrolls(true);
tabbedPane.addTab("Report", new ImageIcon("res/report_icon.gif"), jScrollPane2, null);
tabbedPane.setBackgroundAt(0, new Color(255, 255, 255));
panel = new JPanel();
+ panel.setPreferredSize(new Dimension(0, 0));
tabbedPane.addTab("Survey", new ImageIcon("res/survey_icon.png"), panel, null);
tabbedPane.setBackgroundAt(1, new Color(255, 255, 255));
tabbedPane.setEnabledAt(1, true);
-
- panel_1 = new JPanel();
- panel_1.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
- panel_1.setBackground(SystemColor.control);
-
- JLabel label = new JLabel("");
- label.setIcon(new ImageIcon("res/shcs_logo2_medium.gif"));
-
- lblDearDoctor = new JLabel("Dear Doctor,");
- lblDearDoctor.setFont(new Font("Tahoma", Font.BOLD, 14));
-
- JScrollPane scrollPane = new JScrollPane();
- scrollPane.setBorder(null);
- GroupLayout gl_panel_1 = new GroupLayout(panel_1);
- gl_panel_1.setHorizontalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(Alignment.LEADING, gl_panel_1.createSequentialGroup()
- .addGap(25)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addComponent(lblDearDoctor)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 661, Short.MAX_VALUE))
- .addContainerGap())
- );
- gl_panel_1.setVerticalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addContainerGap()
- .addComponent(lblDearDoctor)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 203, Short.MAX_VALUE))
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(36)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 96, GroupLayout.PREFERRED_SIZE)))
- .addContainerGap())
- );
-
- JTextPane txtpnTodayYouAre = new JTextPane();
- txtpnTodayYouAre.setBorder(null);
- txtpnTodayYouAre.setText("Today you are receiving a pharmacogenetics report based on the genome of your patient. Because of its highly sensitive nature, " +
- "the genetic information you are provided with is processed in a privacy-preserving way. In particular, to protect patients’ genomic privacy, " +
- "their genetic and clinical data is stored encrypted at the SHCS data center, and securely analyzed through a sophisticated algorithm designed and developed at EPFL [1, 2]. " +
- "The actual clinical and genetic information is never revealed. Only the authorized users, such as you, can get some processed information, for example, the final result of a " +
- "pharmacogenetics risk test.\nThis mechanism protects the data against insiders or hackers trying to illegally access patients’ medical information, while still allowing authorized " +
- "users to obtain the information they need." +
- "\n\nTo help us understanding the importance of genomic privacy in the medical domain, and the impact of privacy-enhancing technologies in daily clinical practice, please complete the following survey.");
- txtpnTodayYouAre.setFont(new Font("Tahoma", Font.PLAIN, 13));
- txtpnTodayYouAre.setEditable(false);
- txtpnTodayYouAre.setBackground(SystemColor.control);
- scrollPane.setViewportView(txtpnTodayYouAre);
- panel_1.setLayout(gl_panel_1);
- jScrollPane4 = new javax.swing.JScrollPane();
- jScrollPane4.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
getContentPane().setLayout(layout);
buttonGroupMap = new HashMap<Integer, ButtonGroup>();
ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
CommAdapter commHandlerAdapter = new CommAdapter(connection);
ReplySurvey replySurvey = commHandlerAdapter.callServiceSurvey();
map = replySurvey.getQuestions();
ids = map.keySet();
locations = replySurvey.getLocations();
+ buttonGroupMap = new HashMap<Integer, ButtonGroup>();
+
panel_2 = new JPanel();
- panel_2.setBackground(Color.WHITE);
+ panel_2.addMouseListener(new MouseAdapter() {
+ @Override
+ public void mouseClicked(MouseEvent arg0) {
+ splitPane.setDividerLocation(0.0);
+ }
+ });
panel_2.setBorder(null);
- jScrollPane4.setViewportView(panel_2);
+ panel_2.setBackground(Color.WHITE);
panel_2.setLayout(new BoxLayout(panel_2, BoxLayout.Y_AXIS));
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
-
+
+ JLabel expand_icon = new JLabel("");
+ expand_icon.setVerticalAlignment(SwingConstants.TOP);
+ expand_icon.setAlignmentY(Component.TOP_ALIGNMENT);
+ expand_icon.setIcon(new ImageIcon("C:\\Users\\raisaro\\workspace\\yussef\\project\\PPPClient\\res\\expand_icon.jpg"));
+ panel_2.add(expand_icon);
+
+ //dynamic question generation
int type = 0;
for(Integer id : ids){
ButtonGroup group = new ButtonGroup();
- JRadioButton r1 = new JRadioButton("1"); r1.setActionCommand("1"); r1.setBackground(Color.WHITE);
- JRadioButton r2 = new JRadioButton("2"); r2.setActionCommand("2"); r2.setBackground(Color.WHITE);
- JRadioButton r3 = new JRadioButton("3"); r3.setActionCommand("3"); r3.setBackground(Color.WHITE);
- JRadioButton r4 = new JRadioButton("4"); r4.setActionCommand("4"); r4.setBackground(Color.WHITE);
- JRadioButton r5 = new JRadioButton("5"); r5.setActionCommand("5"); r5.setBackground(Color.WHITE);
+ JRadioButton r1 = new JRadioButton("1"); r1.setActionCommand("1"); r1.setBackground(Color.WHITE);
+ JRadioButton r2 = new JRadioButton("2"); r2.setActionCommand("2"); r2.setBackground(Color.WHITE);
+ JRadioButton r3 = new JRadioButton("3"); r3.setActionCommand("3"); r3.setBackground(Color.WHITE);
+ JRadioButton r4 = new JRadioButton("4"); r4.setActionCommand("4"); r4.setBackground(Color.WHITE);
+ JRadioButton r5 = new JRadioButton("5"); r5.setActionCommand("5"); r5.setBackground(Color.WHITE);
group.add(r1);
group.add(r2);
group.add(r3);
group.add(r4);
group.add(r5);
JPanel radio_panel = new JPanel();
radio_panel.setLayout((new BoxLayout(radio_panel, BoxLayout.X_AXIS)));
radio_panel.setBackground(Color.WHITE);
radio_panel.setAlignmentX(Component.CENTER_ALIGNMENT);
radio_panel.add(r1);
radio_panel.add(r2);
radio_panel.add(r3);
radio_panel.add(r4);
radio_panel.add(r5);
radio_panel.doLayout();
radio_panel.setPreferredSize(radio_panel.getPreferredSize());
JTextArea question = new JTextArea(id + ") " + map.get(id).getQuestion());
question.setEditable(false);
question.setLineWrap(true);
question.setWrapStyleWord(true);
question.setFont(new Font("Tahoma", Font.PLAIN, 13));
JPanel row_panel = new JPanel();
row_panel.setLayout(new BoxLayout(row_panel, BoxLayout.X_AXIS));
row_panel.add(Box.createRigidArea(new Dimension(20,0)));
row_panel.add(question);
row_panel.add(Box.createRigidArea(new Dimension(20,0)));
row_panel.add(radio_panel);
row_panel.add(Box.createRigidArea(new Dimension(20,0)));
row_panel.setBackground(Color.WHITE);
int type_new = map.get(id).getType();
if(type_new != type){
type = type_new;
JLabel question_group = new JLabel("");
switch(type){
case 1:
question_group.setText("Clinical Utility");
break;
case 2:
question_group.setText("Privacy Concerns");
break;
case 3:
question_group.setText("Usability Assessment");
break;
}
question_group.setAlignmentX(Component.CENTER_ALIGNMENT);
question_group.setFont(new Font("Tahoma", Font.BOLD, 13));
+ panel_2.add(new JSeparator());
panel_2.add(Box.createRigidArea(new Dimension(0,5)));
panel_2.add(question_group);
panel_2.add(Box.createRigidArea(new Dimension(0,5)));
panel_2.add(new JSeparator());
panel_2.add(Box.createRigidArea(new Dimension(0,5)));
}
panel_2.add(Box.createRigidArea(new Dimension(0,5)));
panel_2.add(row_panel);
panel_2.add(Box.createRigidArea(new Dimension(0,5)));
// panel_2.add(radio_panel);
- panel_2.add(new JSeparator());
+// panel_2.add(new JSeparator());
panel_2.add(Box.createRigidArea(new Dimension(0,5)));
// panel_2.setPreferredSize(panel_2.getPreferredSize());
buttonGroupMap.put(id, group);
}
+
+
+
-
- this.setSize(new Dimension(1300, 865));
-// pack();
+ this.setSize(new Dimension(1118, 768));
+// this.pack();
}// </editor-fold>//GEN-END:initComponents
private void submitButtonActionPerformed(java.awt.event.ActionEvent evt){
try{
answers = new HashMap<String, String>();
StringBuilder sb = new StringBuilder();
Set<Integer> questions_id = buttonGroupMap.keySet();
for(Integer q: questions_id){
ButtonGroup bg = buttonGroupMap.get(q);
sb.append(q).append(",");
sb.append(bg.getSelection().getActionCommand()).append(";");
answers.put(q.toString(),bg.getSelection().getActionCommand());
}
String answer = sb.toString();
Integer id_loc = null;
for(Integer i: locations.keySet()){
if(locations.get(i).equals(comboBox.getSelectedItem().toString()))
id_loc = i;
}
String id_p;
if(jComboBox1.getSelectedItem().toString().equals("Select Patient"))
id_p = "0";
else
id_p = jComboBox1.getSelectedItem().toString();
ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
CommAdapter commHandlerAdapter = new CommAdapter(connection);
String reply = commHandlerAdapter.callServiceSurveyAnswer(answer, id_loc.toString(), id_p);
if(reply.equals("1")){
survey_submitted = true;
dialog.setVisible(false);
JOptionPane.showMessageDialog(
this,
"Congrats! Your aswers have been sent to the SHCS datacenter.",
"Information Message",
JOptionPane.INFORMATION_MESSAGE);
+ btnSubmitQuestionnaire.setEnabled(false);
}
else{
throw new IOException();
}
} catch (NullPointerException e){
LOGGER.log(Level.SEVERE, null, e);
dialog.setVisible(false);
JOptionPane.showMessageDialog(
this,
"Please respond to all the questions!",
"Error Message",
JOptionPane.ERROR_MESSAGE);
} catch (IOException e) {
LOGGER.log(Level.SEVERE, null, e);
dialog.setVisible(false);
JOptionPane.showMessageDialog(
this,
"The SHCS datacenter does not respond. Please save the survey and send it to jean.raisaro@epfl.ch.",
"Error Message",
JOptionPane.ERROR_MESSAGE);
}
}
private void savePDFButtonActionPerformed(java.awt.event.ActionEvent evt){
try {
answers = new HashMap<String, String>();
Set<Integer> questions_id = buttonGroupMap.keySet();
for(Integer q: questions_id){
ButtonGroup bg = buttonGroupMap.get(q);
answers.put(q.toString(),bg.getSelection().getActionCommand());
}
JFileChooser chooser = new JFileChooser();
// Note: source for ExampleFileFilter can be found in FileChooserDemo,
// under the demo/jfc directory in the JDK.
int returnVal = chooser.showSaveDialog(this);
System.out.println(returnVal);
if(returnVal == JFileChooser.APPROVE_OPTION) {
System.out.println("You chose to open this file: " +
chooser.getSelectedFile().getPath());
quest = new Questionnaire(chooser.getSelectedFile().getPath() + ".pdf");
quest.createPdf(map, ids);
quest.writeAnswers(answers);
survey_submitted = true;
}else{
quest = new Questionnaire("outputPDF/survey.pdf");
quest.createPdf(map, ids);
quest.writeAnswers(answers);
survey_submitted = true;
}
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (DocumentException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (NullPointerException e) {
LOGGER.log(Level.SEVERE, null, e);
dialog.setVisible(false);
JOptionPane.showMessageDialog(
this,
"Please respond to all the questions!",
"Error Message",
JOptionPane.ERROR_MESSAGE);
}
}
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
JPanel contentPanel = new JPanel();
- dialog.setBounds(100, 100, 410, 80);
+ dialog.setBounds(100, 100, 420, 100);
dialog.getContentPane().setLayout(new BorderLayout());
contentPanel.setLayout(new FlowLayout());
contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
dialog.getContentPane().add(contentPanel, BorderLayout.CENTER);
{
- JLabel label = new JLabel("Please wait...The overall computation can take few seconds");
+ JLabel label = new JLabel("Please wait...The overall computation can take some seconds!");
+ JLabel label2 = new JLabel("Cryptographic operations are being performed at the SHCS...");
label.setHorizontalAlignment(SwingConstants.CENTER);
- label.setFont(new Font("Tahoma", Font.PLAIN, 12));
+ label.setFont(new Font("Tahoma", Font.BOLD, 12));
+ label2.setHorizontalAlignment(SwingConstants.CENTER);
+ label2.setFont(new Font("Tahoma", Font.PLAIN, 12));
contentPanel.add(label);
+ contentPanel.add(label2);
}
{
JPanel buttonPane = new JPanel();
buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
dialog.getContentPane().add(buttonPane, BorderLayout.SOUTH);
}
dialog.setLocationRelativeTo(this);
dialog.setVisible(true);
GUIWorker gw = new GUIWorker(this, props);
Thread t = new Thread(gw);
t.start();
}
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JButton jButton1;
private javax.swing.JComboBox<String> jComboBox1;
- private javax.swing.JLabel jLabel1;
- private javax.swing.JLabel jLabel2;
private javax.swing.JLabel jLabel3;
private javax.swing.JLabel jLabel4;
private javax.swing.JMenu jMenu1;
private javax.swing.JMenu jMenu2;
private javax.swing.JMenuBar jMenuBar1;
private javax.swing.JMenuItem jMenuItem1;
- private javax.swing.JPanel jPanel1;
private javax.swing.JPanel jPanel2;
private javax.swing.JScrollPane jScrollPane3;
private javax.swing.JTabbedPane tabbedPane;
private javax.swing.JScrollPane jScrollPane2;
- private javax.swing.JScrollPane jScrollPane4;
private JPanel panel;
- private JPanel panel_1;
- private JPanel panel_2;
- private JLabel lblDearDoctor;
private JLabel lblNewLabel_1;
private JLabel lblNewLabel_2;
private JLabel lblNewLabel_3;
private JComboBox<String> comboBox;
private Component rigidArea;
+ private JSplitPane splitPane;
+ private JPanel panel_1;
+ private JLabel label_1;
+ private JLabel label_2;
+ private JLabel label_3;
+ private JLabel label_4;
+ private JScrollPane scrollPane;
+ private JTextPane introduction;
+ private JScrollPane jScrollPane4;
+ private JPanel panel_2;
// End of variables declaration//GEN-END:variables
class GUIWorker implements Runnable{
private JFrame mainFrame;
private ClientProperties props;
private MedUnit mu;
public GUIWorker(GUI gui, ClientProperties props) {
mainFrame = gui;
this.props = props;
this.mu = new MedUnit(props, 0);
}
@Override
public void run() {
try{
int patientId = Integer.parseInt((String) jComboBox1.getSelectedItem());
// convert selected tests to test identifiers
ArrayList<TestName> selectedTests = new ArrayList<TestName>();
for (String currentName : getSelectedTests()) {
TestName currentTest = testsByName.get(currentName);
if (currentTest == null) {
throw new IllegalStateException("Trying to run unknown test: " + currentTest);
}
selectedTests.add(currentTest);
}
// run tests
Diagnostic diagnostic = mu.runTests(patientId, selectedTests);
// warn for tests with missing material
warnFailedTests(diagnostic, selectedTests);
// create report
mu.createReport(patientId, selectedTests, diagnostic);
dialog.setVisible(false);
// specify file you wish to open (JPedal handles getting the byte data)
String filepathReport = props.getPathPDF() + patientId + ".pdf";
// open generated PDF
// object must be either String in full filepath, or
// File object which can be relative
Object[] input = new Object[]{ new File(filepathReport) };
viewer.executeCommand(Commands.OPENFILE, input);
// display CAD result as bar plot
if (diagnostic.hasCAD()) {
System.out.println("CAD = " + diagnostic.getResultCAD());
BarPlotFrame frame = new BarPlotFrame(diagnostic.getResultCAD(), patientId);
frame.setVisible(true);
frame.setAlwaysOnTop(true);
}
} catch (SQLException e) {
LOGGER.log(Level.SEVERE, null, e);
displayError("Not able to connect to service. Please try again.");
} catch (IOException e) {
LOGGER.log(Level.SEVERE, null, e);
displayError("Not able to connect to service. Please try again.");
} catch (NullPointerException e){
LOGGER.log(Level.SEVERE, null, e);
- displayError("Please select a patient.");
+ displayError("Please select a patient and one or multiple tests.");
+ } catch (NumberFormatException e){
+ LOGGER.log(Level.SEVERE, null, e);
+ displayError("Please select a patient and one or multiple tests.");
}
}
private void warnFailedTests(Diagnostic diagnostic, ArrayList<TestName> selectedTests) {
ArrayList<Integer> failedTests = diagnostic.getInvalidTests();
if (!failedTests.isEmpty()) {
String msg = "Could not complete tests: ";
boolean first = true;
for (TestName testName : selectedTests) {
if (failedTests.contains(testName.getId())) {
if (first) {
first = false;
} else {
msg += ", ";
}
msg += testName.getName();
}
}
displayError(msg);
}
}
private void displayError(String msg) {
dialog.setVisible(false);
JOptionPane.showMessageDialog(
mainFrame,
msg,
"Error Message",
JOptionPane.ERROR_MESSAGE);
}
private ArrayList<String> getSelectedTests() {
ArrayList<String> tests = new ArrayList<String>();
for (TreePath treePath : jTree.getSelectionPaths()) {
tests.addAll(getChildrenTests(jTree.getModel(), treePath.getLastPathComponent()));
}
return tests;
}
private ArrayList<String> getChildrenTests(TreeModel model, Object node) {
ArrayList<String> tests = new ArrayList<String>();
if (model.isLeaf(node)) { // leaf
DefaultMutableTreeNode leaf = (DefaultMutableTreeNode) node;
tests.add(leaf.toString());
}
else { // iterate over children
for (int i = 0; i < model.getChildCount(node); i++) {
tests.addAll(getChildrenTests(model, model.getChild(node, i)));
}
}
return tests;
}
}
}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/8a/c058646b9da7001417ceadf0100b5ef7 b/.metadata/.plugins/org.eclipse.core.resources/.history/8a/c058646b9da7001417ceadf0100b5ef7
deleted file mode 100644
index 77d4618..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/8a/c058646b9da7001417ceadf0100b5ef7
+++ /dev/null
@@ -1,286 +0,0 @@
-package io;
-
-import java.awt.BorderLayout;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.util.Map;
-import java.util.Set;
-
-import com.itextpdf.text.BaseColor;
-import com.itextpdf.text.Document;
-import com.itextpdf.text.DocumentException;
-import com.itextpdf.text.Element;
-import com.itextpdf.text.ExceptionConverter;
-import com.itextpdf.text.Font;
-import com.itextpdf.text.Font.FontFamily;
-import com.itextpdf.text.FontFactory;
-import com.itextpdf.text.Image;
-import com.itextpdf.text.PageSize;
-import com.itextpdf.text.Paragraph;
-import com.itextpdf.text.Phrase;
-import com.itextpdf.text.Rectangle;
-import com.itextpdf.text.pdf.AcroFields;
-import com.itextpdf.text.pdf.BaseFont;
-import com.itextpdf.text.pdf.ColumnText;
-import com.itextpdf.text.pdf.GrayColor;
-import com.itextpdf.text.pdf.PdfBorderDictionary;
-import com.itextpdf.text.pdf.PdfContentByte;
-import com.itextpdf.text.pdf.PdfFormField;
-import com.itextpdf.text.pdf.PdfPCell;
-import com.itextpdf.text.pdf.PdfPCellEvent;
-import com.itextpdf.text.pdf.PdfPTable;
-import com.itextpdf.text.pdf.PdfReader;
-import com.itextpdf.text.pdf.PdfStamper;
-import com.itextpdf.text.pdf.PdfWriter;
-import com.itextpdf.text.pdf.RadioCheckField;
-import com.itextpdf.text.pdf.TextField;
-
-import framework.Question;
-
-public class Questionnaire implements PdfPCellEvent{
-
- /** The path output file. */
- String pathOutputFile;
-
- /** The document. */
- Document document;
-
- int tf;
-
- public Questionnaire(String path){
- pathOutputFile = path;
- document = new Document(PageSize.A4, 25, 25, 50, 50);
- }
- public Questionnaire(int tf){
- this.tf = tf;
- }
-
- /** The resulting PDF. */
- public static final String RESULT1 = "outputPDF/buttons.pdf";
- /** The resulting PDF. */
- public static final String RESULT2 = "outputPDF/buttons_filled.pdf";
- /** Path to a JavaScript resource. */
- public static final String RESOURCE = "res/buttons.js";
- /** Path to an image used as button icon. */
- public static final String IMAGE = "res/info.png";
- /** Possible values of a radio field / checkboxes */
- public static final String[] LANGUAGES = { "English", "German", "French", "Spanish", "Dutch" };
-
- /**
- * Creates a PDF document.
- * @param filename the path to the new PDF document
- * @throws DocumentException
- * @throws IOException
- */
- public void createPdf(Map<Integer, Question> map, Set<Integer> ids) throws IOException, DocumentException {
-
- @SuppressWarnings("unused")
- PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(pathOutputFile));
-
-
- document.open();
- Image logo = Image.getInstance("res/shcs_logo2.gif");
-
- logo.scalePercent(30f);
- float[] columnWidths1 = {0.2f, 0.8f};
- PdfPTable table_title = new PdfPTable(columnWidths1);
- PdfPCell c01 = new PdfPCell(logo, false);
- PdfPCell c02 = new PdfPCell(new Paragraph("Survery | Project #693",
- FontFactory.getFont(FontFactory.HELVETICA, 20, Font.BOLD, BaseColor.BLACK)));
- c01.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setHorizontalAlignment(Element.ALIGN_CENTER);
- c01.setBorder(Rectangle.NO_BORDER);
- c02.setBorder(Rectangle.NO_BORDER);
-
- table_title.addCell(c01);
- table_title.addCell(c02);
- table_title.setWidthPercentage(100);
- table_title.setSpacingBefore(0);
- table_title.setSpacingAfter(25);
- document.add(table_title);
-
-
- //----------------------------------------------------------------------------------
-
-
- PdfPTable table1 = new PdfPTable(1);
- table1.setWidthPercentage(100);
- PdfPCell c11 = new PdfPCell(new Phrase("Today you are receiving a pharmacogenetic report based on the genetic " +
- "information of your patient. Because the human genome contains extremely private and sensitive information" +
- " of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier," +
- " it must be managed with care. ",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.NORMAL, BaseColor.BLACK)));
- c11.setLeading(1.5f, 1.5f);
- c11.setPaddingBottom(8);
-
-
- table1.addCell(c11);
- table1.setSpacingAfter(10);
- document.add(table1);
-
-
- //----------------------------------------------------------------------------------
-
-// // step 4
-// // add the JavaScript
-// writer.addJavaScript(Utilities.readFileToString(RESOURCE));
-
- for(Integer id: ids){
- PdfPCell c2;
-
- PdfPTable table = new PdfPTable(1);
- table.setSpacingAfter(10);
- table.setWidthPercentage(100);
-
- PdfPCell c1 = new PdfPCell(new Phrase(id + ") " + map.get(id).getQuestion(),FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c1.setPaddingTop(5);
- c1.setPaddingBottom(5);
- c1.setHorizontalAlignment(Element.ALIGN_CENTER);
- c1.setBorder(Rectangle.NO_BORDER);
- table.addCell(c1);
-
- c2 = new PdfPCell(new Phrase(" 1" +
- " 2" +
- " 3" +
- " 4" +
- " 5",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c2.setHorizontalAlignment(Element.ALIGN_LEFT);
- c2.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c2.setCellEvent(new Questionnaire(id));
- c2.setBorder(Rectangle.TOP);
- c2.setPaddingTop(2);
- c2.setPaddingBottom(5);
- c2.setBackgroundColor(new BaseColor(242, 242, 242));
-
- table.addCell(c2);
-
-
-
- document.add(table);
- }
-
-
- //----------------------------------------------------------------------------------
-
- // step 5
- document.close();
-
- }
-
- @Override
- public void cellLayout(PdfPCell cell, Rectangle position,
- PdfContentByte[] canvases) {
- PdfWriter writer = canvases[0].getPdfWriter();
- PdfFormField radiogroup = PdfFormField.createRadioButton(writer, true);
- radiogroup.setFieldName(String.valueOf(tf));
- System.out.println(tf);
-
- float llx = position.getLeft();
- float lly = position.getBottom();
-
- float cell_h = cell.getHeight();
- float cell_w = cell.getWidth();
-
- Rectangle rect;
-
- for(int i=1 ; i<=5; i++){
-
- rect = new Rectangle(llx + (3+i)*cell_w/12, lly+cell_h/2-6, llx + (3+i)*cell_w/12+12 ,lly+cell_h/2+6);
-
- RadioCheckField radio = new RadioCheckField(writer, rect, null, String.valueOf(i));
- radio.setBorderColor(GrayColor.GRAYBLACK);
- radio.setCheckType(RadioCheckField.TYPE_SQUARE);
-
-
- try {
- PdfFormField field = radio.getRadioField();
- radiogroup.addKid(field);
-
- writer.addAnnotation(radiogroup);
- }
-
- catch(IOException ioe) {
- throw new ExceptionConverter(ioe);
- }
- catch(DocumentException de) {
- throw new ExceptionConverter(de);
- }
- }
-
-
-
- }
-
-
- public String getAnswers() throws IOException, DocumentException{
- PdfReader reader = new PdfReader(pathOutputFile);
-
-// PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(pathOutputFile));
- AcroFields form = reader.getAcroFields();
-
- StringBuilder sb = new StringBuilder();
-
-
- Set<String> fields = form.getFields().keySet();
- for(String key: fields){
- System.out.println("key = " + key);
- if(form.getFieldType(key)==AcroFields.FIELD_TYPE_RADIOBUTTON){
- sb.append(key);
- sb.append(",");
- sb.append(form.getAppearanceStates(key)[0]);
- sb.append(";");
- }
- }
- reader.close();
-
- return sb.toString();
-
- }
-
-
-// /**
-// * Manipulates a PDF file src with the file dest as result
-// * @param src the original PDF
-// * @param dest the resulting PDF
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public void manipulatePdf(String src, String dest) throws IOException, DocumentException {
-// PdfReader reader = new PdfReader(src);
-// PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(dest));
-// AcroFields form = stamper.getAcroFields();
-// String[] radiostates = form.getAppearanceStates("language");
-// form.setField("language", radiostates[4]);
-// for (int i = 0; i < LANGUAGES.length; i++) {
-// String[] checkboxstates = form.getAppearanceStates("English");
-// form.setField(LANGUAGES[i], checkboxstates[i % 2 == 0 ? 1 : 0]);
-// }
-// stamper.close();
-// reader.close();
-//
-// PdfReader r = new PdfReader(dest);
-// AcroFields f = r.getAcroFields();
-// Set<String> fields = form.getFields().keySet();
-// for(String key: fields){
-// if(f.getFieldType(key)==AcroFields.FIELD_TYPE_RADIOBUTTON){
-// System.out.println(key);
-// System.out.println(f.getField(key));
-//
-// }
-// }
-// r.close();
-//
-// }
-//
-// /**
-// * Main method
-// * @param args no arguments needed
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public static void main(String[] args) throws IOException, DocumentException {
-// Questionnaire buttons = new Questionnaire();
-// buttons.createPdf(RESULT1);
-// buttons.manipulatePdf(RESULT1, RESULT2);
-// }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/8b/40db555569a8001419a38fd8608ce0e6 b/.metadata/.plugins/org.eclipse.core.resources/.history/8b/40db555569a8001419a38fd8608ce0e6
deleted file mode 100644
index 007d084..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/8b/40db555569a8001419a38fd8608ce0e6
+++ /dev/null
@@ -1,287 +0,0 @@
-package io;
-
-import java.awt.BorderLayout;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.util.Map;
-import java.util.Set;
-
-import com.itextpdf.text.BaseColor;
-import com.itextpdf.text.Document;
-import com.itextpdf.text.DocumentException;
-import com.itextpdf.text.Element;
-import com.itextpdf.text.ExceptionConverter;
-import com.itextpdf.text.Font;
-import com.itextpdf.text.Font.FontFamily;
-import com.itextpdf.text.FontFactory;
-import com.itextpdf.text.Image;
-import com.itextpdf.text.PageSize;
-import com.itextpdf.text.Paragraph;
-import com.itextpdf.text.Phrase;
-import com.itextpdf.text.Rectangle;
-import com.itextpdf.text.pdf.AcroFields;
-import com.itextpdf.text.pdf.BaseFont;
-import com.itextpdf.text.pdf.ColumnText;
-import com.itextpdf.text.pdf.GrayColor;
-import com.itextpdf.text.pdf.PdfAction;
-import com.itextpdf.text.pdf.PdfBorderDictionary;
-import com.itextpdf.text.pdf.PdfContentByte;
-import com.itextpdf.text.pdf.PdfFormField;
-import com.itextpdf.text.pdf.PdfPCell;
-import com.itextpdf.text.pdf.PdfPCellEvent;
-import com.itextpdf.text.pdf.PdfPTable;
-import com.itextpdf.text.pdf.PdfReader;
-import com.itextpdf.text.pdf.PdfStamper;
-import com.itextpdf.text.pdf.PdfWriter;
-import com.itextpdf.text.pdf.PushbuttonField;
-import com.itextpdf.text.pdf.RadioCheckField;
-import com.itextpdf.text.pdf.TextField;
-
-import framework.Question;
-
-public class Questionnaire implements PdfPCellEvent{
-
- /** The path output file. */
- String pathOutputFile;
-
- /** The document. */
- Document document;
-
-
-
- int tf;
-
- public Questionnaire(String path){
- pathOutputFile = path;
- document = new Document(PageSize.A4, 25, 25, 50, 50);
- }
- public Questionnaire(int tf){
- this.tf = tf;
-
- }
-
- /** The resulting PDF. */
- public static final String RESULT1 = "outputPDF/buttons.pdf";
- /** The resulting PDF. */
- public static final String RESULT2 = "outputPDF/buttons_filled.pdf";
- /** Path to a JavaScript resource. */
- public static final String RESOURCE = "res/buttons.js";
- /** Path to an image used as button icon. */
- public static final String IMAGE = "res/info.png";
- /** Possible values of a radio field / checkboxes */
- public static final String[] LANGUAGES = { "English", "German", "French", "Spanish", "Dutch" };
-
- /**
- * Creates a PDF document.
- * @param filename the path to the new PDF document
- * @throws DocumentException
- * @throws IOException
- */
- public void createPdf(Map<Integer, Question> map, Set<Integer> ids) throws IOException, DocumentException {
-
- @SuppressWarnings("unused")
- PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream("outputPDF/temp.pdf"));
-
-
- document.open();
- Image logo = Image.getInstance("res/shcs_logo2.gif");
-
- logo.scalePercent(30f);
- float[] columnWidths1 = {0.2f, 0.8f};
- PdfPTable table_title = new PdfPTable(columnWidths1);
- PdfPCell c01 = new PdfPCell(logo, false);
- PdfPCell c02 = new PdfPCell(new Paragraph("Survery | Project #693",
- FontFactory.getFont(FontFactory.HELVETICA, 20, Font.BOLD, BaseColor.BLACK)));
- c01.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setHorizontalAlignment(Element.ALIGN_CENTER);
- c01.setBorder(Rectangle.NO_BORDER);
- c02.setBorder(Rectangle.NO_BORDER);
-
- table_title.addCell(c01);
- table_title.addCell(c02);
- table_title.setWidthPercentage(100);
- table_title.setSpacingBefore(0);
- table_title.setSpacingAfter(25);
- document.add(table_title);
-
-
- //----------------------------------------------------------------------------------
-
-
- PdfPTable table1 = new PdfPTable(1);
- table1.setWidthPercentage(100);
- PdfPCell c11 = new PdfPCell(new Phrase("Today you are receiving a pharmacogenetic report based on the genetic " +
- "information of your patient. Because the human genome contains extremely private and sensitive information" +
- " of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier," +
- " it must be managed with care. ",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.NORMAL, BaseColor.BLACK)));
- c11.setLeading(1.5f, 1.5f);
- c11.setPaddingBottom(8);
-
-
- table1.addCell(c11);
- table1.setSpacingAfter(10);
- document.add(table1);
-
-
- //----------------------------------------------------------------------------------
-
-// // step 4
-// // add the JavaScript
-// writer.addJavaScript(Utilities.readFileToString(RESOURCE));
-
- for(Integer id: ids){
- PdfPCell c2;
-
- PdfPTable table = new PdfPTable(1);
- table.setSpacingAfter(10);
- table.setWidthPercentage(100);
-
- PdfPCell c1 = new PdfPCell(new Phrase(id + ") " + map.get(id).getQuestion(),FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c1.setPaddingTop(5);
- c1.setPaddingBottom(5);
- c1.setHorizontalAlignment(Element.ALIGN_CENTER);
- c1.setBorder(Rectangle.NO_BORDER);
- table.addCell(c1);
-
- c2 = new PdfPCell(new Phrase(" 1" +
- " 2" +
- " 3" +
- " 4" +
- " 5",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c2.setHorizontalAlignment(Element.ALIGN_LEFT);
- c2.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c2.setCellEvent(new Questionnaire(id));
- c2.setBorder(Rectangle.TOP);
- c2.setPaddingTop(2);
- c2.setPaddingBottom(5);
- c2.setBackgroundColor(new BaseColor(242, 242, 242));
-
- table.addCell(c2);
-
-
-
- document.add(table);
- }
-
-
- //----------------------------------------------------------------------------------
-
- // step 5
- document.close();
-
-
-
- }
-
- @Override
- public void cellLayout(PdfPCell cell, Rectangle position,
- PdfContentByte[] canvases) {
- PdfWriter writer = canvases[0].getPdfWriter();
- PdfFormField radiogroup = PdfFormField.createRadioButton(writer, true);
- radiogroup.setFieldName(String.valueOf(tf));
- System.out.println(tf);
-
- float llx = position.getLeft();
- float lly = position.getBottom();
-
- float cell_h = cell.getHeight();
- float cell_w = cell.getWidth();
-
- Rectangle rect;
-
- for(int i=1 ; i<=5; i++){
-
- rect = new Rectangle(llx + (3+i)*cell_w/12, lly+cell_h/2-6, llx + (3+i)*cell_w/12+12 ,lly+cell_h/2+6);
-
- RadioCheckField radio = new RadioCheckField(writer, rect, String.valueOf(i), String.valueOf(i));
- radio.setBorderColor(GrayColor.GRAYBLACK);
- radio.setCheckType(RadioCheckField.TYPE_SQUARE);
-
-
- try {
- PdfFormField field = radio.getRadioField();
- radiogroup.addKid(field);
-
- writer.addAnnotation(radiogroup);
- }
-
- catch(IOException ioe) {
- throw new ExceptionConverter(ioe);
- }
- catch(DocumentException de) {
- throw new ExceptionConverter(de);
- }
- }
-
-
-
- }
-
-
- public void writeAnswers(Map<String, String> answers) throws IOException, DocumentException{
-
- PdfReader reader = new PdfReader("outputPDF/temp.pdf");
- PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(pathOutputFile));
-
- AcroFields form = stamper.getAcroFields();
-
- Set<String> fields = form.getFields().keySet();
- for(String key: fields){
-
- if(answers.containsKey(key)){
- form.setField(key, answers.get(key));
- }
- }
- stamper.close();
- reader.close();
-
- }
-
-
-// /**
-// * Manipulates a PDF file src with the file dest as result
-// * @param src the original PDF
-// * @param dest the resulting PDF
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public void manipulatePdf(String src, String dest) throws IOException, DocumentException {
-// PdfReader reader = new PdfReader(src);
-// PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(dest));
-// AcroFields form = stamper.getAcroFields();
-// String[] radiostates = form.getAppearanceStates("language");
-// form.setField("language", radiostates[4]);
-// for (int i = 0; i < LANGUAGES.length; i++) {
-// String[] checkboxstates = form.getAppearanceStates("English");
-// form.setField(LANGUAGES[i], checkboxstates[i % 2 == 0 ? 1 : 0]);
-// }
-// stamper.close();
-// reader.close();
-//
-// PdfReader r = new PdfReader(dest);
-// AcroFields f = r.getAcroFields();
-// Set<String> fields = form.getFields().keySet();
-// for(String key: fields){
-// if(f.getFieldType(key)==AcroFields.FIELD_TYPE_RADIOBUTTON){
-// System.out.println(key);
-// System.out.println(f.getField(key));
-//
-// }
-// }
-// r.close();
-//
-// }
-//
-// /**
-// * Main method
-// * @param args no arguments needed
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public static void main(String[] args) throws IOException, DocumentException {
-// Questionnaire buttons = new Questionnaire();
-// buttons.createPdf(RESULT1);
-// buttons.manipulatePdf(RESULT1, RESULT2);
-// }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/8c/60815ce1b6a7001417ceadf0100b5ef7 b/.metadata/.plugins/org.eclipse.core.resources/.history/8c/60815ce1b6a7001417ceadf0100b5ef7
deleted file mode 100644
index 3e8883e..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/8c/60815ce1b6a7001417ceadf0100b5ef7
+++ /dev/null
@@ -1,292 +0,0 @@
-package io;
-
-import java.awt.BorderLayout;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.util.Map;
-import java.util.Set;
-
-import com.itextpdf.text.BaseColor;
-import com.itextpdf.text.Document;
-import com.itextpdf.text.DocumentException;
-import com.itextpdf.text.Element;
-import com.itextpdf.text.ExceptionConverter;
-import com.itextpdf.text.Font;
-import com.itextpdf.text.Font.FontFamily;
-import com.itextpdf.text.FontFactory;
-import com.itextpdf.text.Image;
-import com.itextpdf.text.PageSize;
-import com.itextpdf.text.Paragraph;
-import com.itextpdf.text.Phrase;
-import com.itextpdf.text.Rectangle;
-import com.itextpdf.text.pdf.AcroFields;
-import com.itextpdf.text.pdf.BaseFont;
-import com.itextpdf.text.pdf.ColumnText;
-import com.itextpdf.text.pdf.GrayColor;
-import com.itextpdf.text.pdf.PdfAction;
-import com.itextpdf.text.pdf.PdfBorderDictionary;
-import com.itextpdf.text.pdf.PdfContentByte;
-import com.itextpdf.text.pdf.PdfFormField;
-import com.itextpdf.text.pdf.PdfPCell;
-import com.itextpdf.text.pdf.PdfPCellEvent;
-import com.itextpdf.text.pdf.PdfPTable;
-import com.itextpdf.text.pdf.PdfReader;
-import com.itextpdf.text.pdf.PdfStamper;
-import com.itextpdf.text.pdf.PdfWriter;
-import com.itextpdf.text.pdf.PushbuttonField;
-import com.itextpdf.text.pdf.RadioCheckField;
-import com.itextpdf.text.pdf.TextField;
-
-import framework.Question;
-
-public class Questionnaire implements PdfPCellEvent{
-
- /** The path output file. */
- String pathOutputFile;
-
- /** The document. */
- Document document;
-
- int tf;
-
- public Questionnaire(String path){
- pathOutputFile = path;
- document = new Document(PageSize.A4, 25, 25, 50, 50);
- }
- public Questionnaire(int tf){
- this.tf = tf;
- }
-
- /** The resulting PDF. */
- public static final String RESULT1 = "outputPDF/buttons.pdf";
- /** The resulting PDF. */
- public static final String RESULT2 = "outputPDF/buttons_filled.pdf";
- /** Path to a JavaScript resource. */
- public static final String RESOURCE = "res/buttons.js";
- /** Path to an image used as button icon. */
- public static final String IMAGE = "res/info.png";
- /** Possible values of a radio field / checkboxes */
- public static final String[] LANGUAGES = { "English", "German", "French", "Spanish", "Dutch" };
-
- /**
- * Creates a PDF document.
- * @param filename the path to the new PDF document
- * @throws DocumentException
- * @throws IOException
- */
- public void createPdf(Map<Integer, Question> map, Set<Integer> ids) throws IOException, DocumentException {
-
- @SuppressWarnings("unused")
- PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(pathOutputFile));
-
-
- document.open();
- Image logo = Image.getInstance("res/shcs_logo2.gif");
-
- logo.scalePercent(30f);
- float[] columnWidths1 = {0.2f, 0.8f};
- PdfPTable table_title = new PdfPTable(columnWidths1);
- PdfPCell c01 = new PdfPCell(logo, false);
- PdfPCell c02 = new PdfPCell(new Paragraph("Survery | Project #693",
- FontFactory.getFont(FontFactory.HELVETICA, 20, Font.BOLD, BaseColor.BLACK)));
- c01.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setHorizontalAlignment(Element.ALIGN_CENTER);
- c01.setBorder(Rectangle.NO_BORDER);
- c02.setBorder(Rectangle.NO_BORDER);
-
- table_title.addCell(c01);
- table_title.addCell(c02);
- table_title.setWidthPercentage(100);
- table_title.setSpacingBefore(0);
- table_title.setSpacingAfter(25);
- document.add(table_title);
-
-
- //----------------------------------------------------------------------------------
-
-
- PdfPTable table1 = new PdfPTable(1);
- table1.setWidthPercentage(100);
- PdfPCell c11 = new PdfPCell(new Phrase("Today you are receiving a pharmacogenetic report based on the genetic " +
- "information of your patient. Because the human genome contains extremely private and sensitive information" +
- " of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier," +
- " it must be managed with care. ",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.NORMAL, BaseColor.BLACK)));
- c11.setLeading(1.5f, 1.5f);
- c11.setPaddingBottom(8);
-
-
- table1.addCell(c11);
- table1.setSpacingAfter(10);
- document.add(table1);
-
-
- //----------------------------------------------------------------------------------
-
-// // step 4
-// // add the JavaScript
-// writer.addJavaScript(Utilities.readFileToString(RESOURCE));
-
- for(Integer id: ids){
- PdfPCell c2;
-
- PdfPTable table = new PdfPTable(1);
- table.setSpacingAfter(10);
- table.setWidthPercentage(100);
-
- PdfPCell c1 = new PdfPCell(new Phrase(id + ") " + map.get(id).getQuestion(),FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c1.setPaddingTop(5);
- c1.setPaddingBottom(5);
- c1.setHorizontalAlignment(Element.ALIGN_CENTER);
- c1.setBorder(Rectangle.NO_BORDER);
- table.addCell(c1);
-
- c2 = new PdfPCell(new Phrase(" 1" +
- " 2" +
- " 3" +
- " 4" +
- " 5",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c2.setHorizontalAlignment(Element.ALIGN_LEFT);
- c2.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c2.setCellEvent(new Questionnaire(id));
- c2.setBorder(Rectangle.TOP);
- c2.setPaddingTop(2);
- c2.setPaddingBottom(5);
- c2.setBackgroundColor(new BaseColor(242, 242, 242));
-
- table.addCell(c2);
-
-
-
- document.add(table);
- }
-
-
- //----------------------------------------------------------------------------------
-
- // step 5
- document.close();
-
- }
-
- @Override
- public void cellLayout(PdfPCell cell, Rectangle position,
- PdfContentByte[] canvases) {
- PdfWriter writer = canvases[0].getPdfWriter();
- PdfFormField radiogroup = PdfFormField.createRadioButton(writer, true);
- radiogroup.setFieldName(String.valueOf(tf));
- System.out.println(tf);
-
- float llx = position.getLeft();
- float lly = position.getBottom();
-
- float cell_h = cell.getHeight();
- float cell_w = cell.getWidth();
-
- Rectangle rect;
-
- for(int i=1 ; i<=5; i++){
-
- rect = new Rectangle(llx + (3+i)*cell_w/12, lly+cell_h/2-6, llx + (3+i)*cell_w/12+12 ,lly+cell_h/2+6);
-
- RadioCheckField radio = new RadioCheckField(writer, rect, null, String.valueOf(i));
- radio.setBorderColor(GrayColor.GRAYBLACK);
- radio.setCheckType(RadioCheckField.TYPE_SQUARE);
-
-
- try {
- PdfFormField field = radio.getRadioField();
- radiogroup.addKid(field);
-
- writer.addAnnotation(radiogroup);
- }
-
- catch(IOException ioe) {
- throw new ExceptionConverter(ioe);
- }
- catch(DocumentException de) {
- throw new ExceptionConverter(de);
- }
- }
-
-
-
- }
-
-
- public String getAnswers() throws IOException, DocumentException{
- PdfReader reader = new PdfReader(pathOutputFile);
- reader.removeUsageRights();
- PdfStamper stamper = new PdfStamper(reader, new FileOutputStream("outputPDF/buttons_filled2.pdf"));
-
-
- AcroFields form = stamper.getAcroFields();
-
- StringBuilder sb = new StringBuilder();
-
-
- Set<String> fields = form.getFields().keySet();
- for(String key: fields){
- System.out.println("key = " + key);
- if(form.getFieldType(key)==AcroFields.FIELD_TYPE_RADIOBUTTON){
- sb.append(key);
- sb.append(",");
- sb.append(form.getField(key));
- sb.append(";");
- }
- }
- stamper.close();
- reader.close();
-
-
- return sb.toString();
-
- }
-
-
-// /**
-// * Manipulates a PDF file src with the file dest as result
-// * @param src the original PDF
-// * @param dest the resulting PDF
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public void manipulatePdf(String src, String dest) throws IOException, DocumentException {
-// PdfReader reader = new PdfReader(src);
-// PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(dest));
-// AcroFields form = stamper.getAcroFields();
-// String[] radiostates = form.getAppearanceStates("language");
-// form.setField("language", radiostates[4]);
-// for (int i = 0; i < LANGUAGES.length; i++) {
-// String[] checkboxstates = form.getAppearanceStates("English");
-// form.setField(LANGUAGES[i], checkboxstates[i % 2 == 0 ? 1 : 0]);
-// }
-// stamper.close();
-// reader.close();
-//
-// PdfReader r = new PdfReader(dest);
-// AcroFields f = r.getAcroFields();
-// Set<String> fields = form.getFields().keySet();
-// for(String key: fields){
-// if(f.getFieldType(key)==AcroFields.FIELD_TYPE_RADIOBUTTON){
-// System.out.println(key);
-// System.out.println(f.getField(key));
-//
-// }
-// }
-// r.close();
-//
-// }
-//
-// /**
-// * Main method
-// * @param args no arguments needed
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public static void main(String[] args) throws IOException, DocumentException {
-// Questionnaire buttons = new Questionnaire();
-// buttons.createPdf(RESULT1);
-// buttons.manipulatePdf(RESULT1, RESULT2);
-// }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/8d/10ed9bf14bac001410e2e30aa85db9d1 b/.metadata/.plugins/org.eclipse.core.resources/.history/8d/10ed9bf14bac001410e2e30aa85db9d1
deleted file mode 100644
index edb57d7..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/8d/10ed9bf14bac001410e2e30aa85db9d1
+++ /dev/null
@@ -1,890 +0,0 @@
-package ui;
-
-import io.ClientConnection;
-import io.CommAdapter;
-import io.Questionnaire;
-
-import java.awt.BorderLayout;
-import java.awt.Color;
-import java.awt.Component;
-import java.awt.Dimension;
-import java.awt.FlowLayout;
-import java.awt.Font;
-import java.awt.SystemColor;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.awt.event.WindowAdapter;
-import java.io.File;
-import java.io.IOException;
-import java.sql.SQLException;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.LinkedList;
-import java.util.Map;
-import java.util.Set;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
-import javax.swing.Box;
-import javax.swing.BoxLayout;
-import javax.swing.ButtonGroup;
-import javax.swing.DefaultComboBoxModel;
-import javax.swing.GroupLayout;
-import javax.swing.GroupLayout.Alignment;
-import javax.swing.ImageIcon;
-import javax.swing.JButton;
-import javax.swing.JComboBox;
-import javax.swing.JDialog;
-import javax.swing.JFileChooser;
-import javax.swing.JFrame;
-import javax.swing.JLabel;
-import javax.swing.JOptionPane;
-import javax.swing.JPanel;
-import javax.swing.JRadioButton;
-import javax.swing.JScrollPane;
-import javax.swing.JSeparator;
-import javax.swing.JTabbedPane;
-import javax.swing.JTextArea;
-import javax.swing.JTextPane;
-import javax.swing.JTree;
-import javax.swing.LayoutStyle.ComponentPlacement;
-import javax.swing.SwingConstants;
-import javax.swing.UIManager;
-import javax.swing.border.BevelBorder;
-import javax.swing.border.EmptyBorder;
-import javax.swing.border.EtchedBorder;
-import javax.swing.tree.DefaultMutableTreeNode;
-import javax.swing.tree.TreeModel;
-import javax.swing.tree.TreePath;
-
-import org.jpedal.examples.viewer.Commands;
-import org.jpedal.examples.viewer.Viewer;
-
-import utils.ClientProperties;
-
-import com.itextpdf.text.DocumentException;
-
-import database.DBconnectorClient;
-import framework.Diagnostic;
-import framework.MedUnit;
-import framework.Question;
-import framework.reply.ReplySurvey;
-import framework.test.TestName;
-
-/**
- *
- * @author youssef, raisaro
- */
-public class GUI extends javax.swing.JFrame {
-
- private static final Logger LOGGER = Logger.getLogger(GUI.class.getName());
-
- private static final long serialVersionUID = -4582280515597700650L;
-
- // configuration
- private ClientProperties props;
-
- private JTree jTree;
- private DBconnectorClient connectorClientDB;
- private LinkedList<Integer> patients;
-
- /** List of all relevant tests */
- private HashMap<String, TestName> testsByName;
- private Viewer viewer;
- private JDialog dialog;
- private JFrame frame;
- private boolean survey_submitted;
- private int close_trials;
- private Map<Integer, ButtonGroup> buttonGroupMap;
- private Questionnaire quest;
- private Map<Integer, Question> map;
- private Set<Integer> ids;
- private Map<String,String> answers;
- private Map<Integer, String> locations;
-
-
- /**
- * Creates new form GUI
- */
- public GUI(ClientProperties props){
-
- frame = this;
- this.props = props;
- this.connectorClientDB = new DBconnectorClient(props.getDbMsAccess());
- survey_submitted = false;
- close_trials = 0;
-
-
- try {
- initComponents();
-
- viewer = new Viewer(jScrollPane2, null);
- viewer.setupViewer();
-
- // create questionnare
-
-
- System.out.println("#of questions: " + ids.size());
-
-// viewer_q = new Viewer(jScrollPane4, null);
-// viewer_q.setupViewer();
-//
-// // specify file you wish to open (JPedal handles getting the byte data)
-// String filepathReport = "outputPDF/buttons_filled.pdf";
-//
-// // open generated PDF
-// // object must be either String in full filepath, or
-// // File object which can be relative
-// Object[] input = new Object[]{ new File(filepathReport) };
-// viewer_q.executeCommand(Commands.OPENFILE, input);
-
- JButton btnSubmitQuestionnaire = new JButton("Submit Questionnaire");
- btnSubmitQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- btnSubmitQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- submitButtonActionPerformed(arg0);
- }
- });
- JButton btnResetQuestionnaire = new JButton("Save as PDF");
- btnResetQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- savePDFButtonActionPerformed(arg0);
- }
- });
- btnResetQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- JPanel panel_button = new JPanel();
- panel_button.setLayout(new BoxLayout(panel_button, BoxLayout.X_AXIS));
-
- lblNewLabel_3 = new JLabel("");
- lblNewLabel_3.setIcon(new ImageIcon("res/location_icon.png"));
- panel_button.add(lblNewLabel_3);
-
-
-
- comboBox = new JComboBox<String>();
- comboBox.setFont(new Font("Tahoma", Font.BOLD, 12));
- comboBox.setModel(new DefaultComboBoxModel<String>(new String[] {"Select Location"}));
- for(Integer id_loc : locations.keySet()){
- comboBox.addItem(locations.get(id_loc));
- }
-
-
- panel_button.add(comboBox);
-
- rigidArea = Box.createRigidArea(new Dimension(10, 0));
- panel_button.add(rigidArea);
-
- lblNewLabel_1 = new JLabel("");
- lblNewLabel_1.setIcon(new ImageIcon("res/submit.png"));
- panel_button.add(lblNewLabel_1);
- panel_button.add(btnSubmitQuestionnaire);
-
- panel_button.add(Box.createRigidArea(new Dimension(10,0)));
-
- lblNewLabel_2 = new JLabel("");
- lblNewLabel_2.setIcon(new ImageIcon("res/pdf.png"));
- panel_button.add(lblNewLabel_2);
- panel_button.add(btnResetQuestionnaire);
- panel_button.setPreferredSize(new Dimension(211, 35));
- panel_button.validate();
-
- JPanel panel_3 = new JPanel();
- GroupLayout gl_panel = new GroupLayout(panel);
- gl_panel.setHorizontalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(41)
- .addGroup(gl_panel.createParallelGroup(Alignment.TRAILING)
- .addComponent(jScrollPane4, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE)
- .addComponent(panel_1, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE))
- .addGap(32))
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(63)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addGap(103)
- .addComponent(panel_button, GroupLayout.DEFAULT_SIZE, 488, Short.MAX_VALUE)
- .addGap(241))
- );
- gl_panel.setVerticalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(22)
- .addComponent(panel_1, GroupLayout.DEFAULT_SIZE, 192, Short.MAX_VALUE)
- .addGap(18)
- .addComponent(jScrollPane4, GroupLayout.DEFAULT_SIZE, 437, Short.MAX_VALUE)
- .addGap(26)
- .addGroup(gl_panel.createParallelGroup(Alignment.LEADING)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(panel_button, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE)))
- );
- panel_3.setLayout(new BoxLayout(panel_3, BoxLayout.X_AXIS));
-
-
- panel.setLayout(gl_panel);
-
-
-
-
-
-
- /////////////////////////////////////////////////////////
- // display the tests available
-
- // get the tests
- HashMap<String, ArrayList<TestName>> testsRelevantByGroup = connectorClientDB.getRelevantTestsByGroup();
- ArrayList<String> groups = new ArrayList<String>(testsRelevantByGroup.keySet());
-
- // flatten hashmap into linkedlist
-// tests = new LinkedList<>();
- testsByName = new HashMap<String, TestName>();
- for (String group : groups) {
-// tests.addAll(testsRelevantByGroup.get(group));
- for (TestName test : testsRelevantByGroup.get(group)) {
- testsByName.put(test.getName(), test);
- }
- }
-
- // define tree structure of the tests
- DefaultMutableTreeNode root = new DefaultMutableTreeNode("All");
-
- for (String group : groups) {
- DefaultMutableTreeNode child = new DefaultMutableTreeNode(group);
- root.add(child);
-
- for (TestName test : testsRelevantByGroup.get(group)) {
- DefaultMutableTreeNode grandChild = new DefaultMutableTreeNode(test.getName());
- child.add(grandChild);
- }
- }
-
- // define swing object
- jTree = new JTree(root);
-
- for(int i=0;i<jTree.getRowCount();i++){
- jTree.expandRow(i);
- }
-
- jScrollPane3.setViewportView(jTree);
-// jTree.addTreeSelectionListener(new TreeSelectionListener() {
-//
-// @Override
-// public void valueChanged(TreeSelectionEvent e) {
-// tp = jTree.getSelectionPaths();
-// }
-// });
- jScrollPane3.setViewportView(jTree);
-
- /////////////////////////////////////////////////////////
- // display the patients registered
-
- patients = connectorClientDB.getPatients();
- for (Integer patientId : patients) {
- jComboBox1.addItem(patientId.toString());
- }
-
- } catch (SQLException ex) {
- Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex);
- ex.printStackTrace();
-// } catch (IOException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
-// } catch (DocumentException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
- }
-
- }
-
- /**
- * 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() {
-
- jPanel1 = new javax.swing.JPanel();
- jLabel2 = new javax.swing.JLabel();
- jLabel1 = new javax.swing.JLabel();
- jPanel2 = new javax.swing.JPanel();
- jComboBox1 = new javax.swing.JComboBox<String>();
- jButton1 = new javax.swing.JButton();
- jButton1.setFont(new Font("Tahoma", Font.BOLD, 12));
- jLabel3 = new javax.swing.JLabel();
- jLabel4 = new javax.swing.JLabel();
- jScrollPane3 = new javax.swing.JScrollPane();
- jScrollPane2 = new javax.swing.JScrollPane();
- jMenuBar1 = new javax.swing.JMenuBar();
- jMenu1 = new javax.swing.JMenu();
- jMenuItem1 = new javax.swing.JMenuItem();
- jMenu2 = new javax.swing.JMenu();
- dialog = new JDialog();
- tabbedPane = new JTabbedPane(JTabbedPane.TOP);
-
- setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
- addWindowListener(new WindowAdapter() {
- @Override
- public void windowClosing(java.awt.event.WindowEvent windowEvent) {
- if (!survey_submitted && close_trials <= 2){
- JOptionPane.showMessageDialog(frame, "Before closing the application, please fill in and submit the questionnaire.");
- close_trials++;
- tabbedPane.setSelectedIndex(1);
- }else{
- System.exit(0);
- }
- }
- });
- setTitle("HIV Pharmacogenomics\n");
-
- jLabel2.setIcon(new javax.swing.ImageIcon("res/shcs_logo2_small.gif")); // NOI18N
-
- jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
- jLabel1.setText("HIV Pharmacogenomics | Project #693");
-
- javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
- jPanel1.setLayout(jPanel1Layout);
- jPanel1Layout.setHorizontalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap(71, Short.MAX_VALUE)
- .addComponent(jLabel1)
- .addGap(18, 18, 18)
- .addComponent(jLabel2))
- );
- jPanel1Layout.setVerticalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jLabel1)
- .addGap(11, 11, 11))
- .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)
- );
-
- jPanel2.setBackground(new java.awt.Color(255, 255, 255));
- jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
-
- jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<String>(new String[]{"Select Patient"}));
-
- jButton1.setText("Run Test");
- jButton1.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton1ActionPerformed(evt);
- }
- });
-
- JLabel lblNewLabel = new JLabel("");
- lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
- lblNewLabel.setIcon(new javax.swing.ImageIcon("res/gears.png"));
-
-
-
- javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
- jPanel2Layout.setHorizontalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addComponent(jComboBox1, 0, 248, Short.MAX_VALUE)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addGap(75)
- .addGroup(jPanel2Layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jButton1)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 75, GroupLayout.PREFERRED_SIZE))
- .addContainerGap(98, Short.MAX_VALUE))
- );
- jPanel2Layout.setVerticalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addComponent(jComboBox1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED, 223, Short.MAX_VALUE)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jButton1)
- .addGap(19))
- );
- jPanel2.setLayout(jPanel2Layout);
-
- jLabel3.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel3.setText("Select Patient");
-
- jLabel4.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel4.setText("Select Test");
-
- jScrollPane3.setBackground(new java.awt.Color(255, 255, 255));
-
- jMenu1.setText("File");
-
- jMenuItem1.setText("Exit");
- jMenu1.add(jMenuItem1);
-
- jMenuBar1.add(jMenu1);
-
- jMenu2.setText("Edit");
- jMenuBar1.add(jMenu2);
-
- setJMenuBar(jMenuBar1);
-
-
-
- javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
- layout.setHorizontalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(layout.createParallelGroup(Alignment.LEADING, false)
- .addComponent(jLabel3)
- .addComponent(jLabel4)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, 244, Short.MAX_VALUE)
- .addComponent(jScrollPane3))
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 970, Short.MAX_VALUE))
- .addContainerGap())
- );
- layout.setVerticalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel4))
- .addPreferredGap(ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addComponent(jScrollPane3, GroupLayout.PREFERRED_SIZE, 388, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jLabel3)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 785, Short.MAX_VALUE))
- .addContainerGap())
- );
-
-
- jScrollPane2.setAutoscrolls(true);
- jScrollPane3.setAutoscrolls(true);
- tabbedPane.addTab("Report", new ImageIcon("res/report_icon.gif"), jScrollPane2, null);
- tabbedPane.setBackgroundAt(0, new Color(255, 255, 255));
-
- panel = new JPanel();
- tabbedPane.addTab("Survey", new ImageIcon("res/survey_icon.png"), panel, null);
- tabbedPane.setBackgroundAt(1, new Color(255, 255, 255));
- tabbedPane.setEnabledAt(1, true);
-
- panel_1 = new JPanel();
- panel_1.setBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null));
- panel_1.setBackground(UIManager.getColor("Button.background"));
-
- JLabel label = new JLabel("");
- label.setIcon(new ImageIcon("res/shcs_logo2_medium.gif"));
-
- lblDearDoctor = new JLabel("Dear Doctor,");
- lblDearDoctor.setFont(new Font("Tahoma", Font.BOLD, 14));
-
- JScrollPane scrollPane = new JScrollPane();
- scrollPane.setBorder(null);
- GroupLayout gl_panel_1 = new GroupLayout(panel_1);
- gl_panel_1.setHorizontalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(25)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 666, Short.MAX_VALUE)
- .addComponent(lblDearDoctor))
- .addContainerGap())
- );
- gl_panel_1.setVerticalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(22)
- .addComponent(lblDearDoctor)
- .addGap(18)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 120, Short.MAX_VALUE)
- .addContainerGap())
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(36)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 96, GroupLayout.PREFERRED_SIZE)
- .addContainerGap(56, Short.MAX_VALUE))
- );
-
- JTextPane txtpnTodayYouAre = new JTextPane();
- txtpnTodayYouAre.setBorder(null);
- txtpnTodayYouAre.setText("Today you are receiving a pharmacogenetic report based on the genetic information of your patient. Because the human genome contains extremely private and sensitive information of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier, it must be managed with care.\r\nToday you are receiving a pharmacogenetic report based on the genetic information of your patient. Because the human genome contains extremely private and sensitive information of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier, it must be managed with care.\r\nToday you are receiving a pharmacogenetic report based on the genetic information of your patient. Because the human genome contains extremely private and sensitive information of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier, it must be managed with care.");
- txtpnTodayYouAre.setFont(new Font("Tahoma", Font.PLAIN, 13));
- txtpnTodayYouAre.setEditable(false);
- txtpnTodayYouAre.setBackground(SystemColor.menu);
- scrollPane.setViewportView(txtpnTodayYouAre);
- panel_1.setLayout(gl_panel_1);
- jScrollPane4 = new javax.swing.JScrollPane();
- getContentPane().setLayout(layout);
-
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
- ReplySurvey replySurvey = commHandlerAdapter.callServiceSurvey();
-
- map = replySurvey.getQuestions();
- ids = map.keySet();
- locations = replySurvey.getLocations();
-
- panel_2 = new JPanel();
- panel_2.setBackground(Color.WHITE);
- panel_2.setBorder(new BevelBorder(BevelBorder.LOWERED, null, null, null, null));
- jScrollPane4.setViewportView(panel_2);
- panel_2.setLayout(new BoxLayout(panel_2, BoxLayout.Y_AXIS));
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
-
-
- for(Integer id : ids){
- ButtonGroup group = new ButtonGroup();
- JRadioButton r1 = new JRadioButton("1"); r1.setActionCommand("1"); r1.setBackground(Color.WHITE);
- JRadioButton r2 = new JRadioButton("2"); r2.setActionCommand("2"); r2.setBackground(Color.WHITE);
- JRadioButton r3 = new JRadioButton("3"); r3.setActionCommand("3"); r3.setBackground(Color.WHITE);
- JRadioButton r4 = new JRadioButton("4"); r4.setActionCommand("4"); r4.setBackground(Color.WHITE);
- JRadioButton r5 = new JRadioButton("5"); r5.setActionCommand("5"); r5.setBackground(Color.WHITE);
- group.add(r1);
- group.add(r2);
- group.add(r3);
- group.add(r4);
- group.add(r5);
- JPanel radio_panel = new JPanel();
- radio_panel.setLayout((new BoxLayout(radio_panel, BoxLayout.X_AXIS)));
- radio_panel.setBackground(Color.WHITE);
- radio_panel.setAlignmentX(Component.CENTER_ALIGNMENT);
- radio_panel.add(r1);
- radio_panel.add(r2);
- radio_panel.add(r3);
- radio_panel.add(r4);
- radio_panel.add(r5);
- radio_panel.doLayout();
- radio_panel.setPreferredSize(radio_panel.getPreferredSize());
- JTextArea question = new JTextArea(id + ") " + map.get(id).getQuestion());
- question.setLineWrap(true);
- question.setWrapStyleWord(true);
- question.setAlignmentX(Component.CENTER_ALIGNMENT);
- question.setFont(new Font("Tahoma", Font.PLAIN, 13));
- JPanel row_panel = new JPanel();
- row_panel.setLayout(new BoxLayout(row_panel, BoxLayout.X_AXIS));
- row_panel.add(radio_panel);
- row_panel.add(question);
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- panel_2.add(row_panel);
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- panel_2.add(radio_panel);
- panel_2.add(new JSeparator());
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- buttonGroupMap.put(id, group);
-
- }
-
-
-
- this.setSize(new Dimension(1200, 865));
-// pack();
- }// </editor-fold>//GEN-END:initComponents
-
-
- private void submitButtonActionPerformed(java.awt.event.ActionEvent evt){
-
- try{
- answers = new HashMap<String, String>();
- StringBuilder sb = new StringBuilder();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- sb.append(q).append(",");
- sb.append(bg.getSelection().getActionCommand()).append(";");
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- String answer = sb.toString();
- Integer id_loc = null;
- for(Integer i: locations.keySet()){
- if(locations.get(i).equals(comboBox.getSelectedItem().toString()))
- id_loc = i;
- }
-
- String id_p;
- if(jComboBox1.getSelectedItem().toString().equals("Select Patient"))
- id_p = "0";
- else
- id_p = jComboBox1.getSelectedItem().toString();
-
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
-
- String reply = commHandlerAdapter.callServiceSurveyAnswer(answer, id_loc.toString(), id_p);
-
- if(reply.equals("1")){
- survey_submitted = true;
-
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Congrats! Your aswers have been sent to the SHCS datacenter.",
- "Information Message",
- JOptionPane.INFORMATION_MESSAGE);
- }
- else{
- throw new IOException();
- }
-
-
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "The SHCS datacenter does not respond. Please save the survey and send it to jean.raisaro@epfl.ch.",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
- private void savePDFButtonActionPerformed(java.awt.event.ActionEvent evt){
- try {
-
- answers = new HashMap<String, String>();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- JFileChooser chooser = new JFileChooser();
- // Note: source for ExampleFileFilter can be found in FileChooserDemo,
- // under the demo/jfc directory in the JDK.
-
- int returnVal = chooser.showSaveDialog(this);
- System.out.println(returnVal);
- if(returnVal == JFileChooser.APPROVE_OPTION) {
- System.out.println("You chose to open this file: " +
- chooser.getSelectedFile().getPath());
- quest = new Questionnaire(chooser.getSelectedFile().getPath() + ".pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }else{
- quest = new Questionnaire("outputPDF/survey.pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }
-
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (DocumentException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (NullPointerException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
-
- private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
-
- JPanel contentPanel = new JPanel();
-
- dialog.setBounds(100, 100, 410, 80);
- dialog.getContentPane().setLayout(new BorderLayout());
- contentPanel.setLayout(new FlowLayout());
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- dialog.getContentPane().add(contentPanel, BorderLayout.CENTER);
- {
- JLabel label = new JLabel("Please wait...The overall computation can take few seconds");
- label.setHorizontalAlignment(SwingConstants.CENTER);
- label.setFont(new Font("Tahoma", Font.PLAIN, 12));
- contentPanel.add(label);
- }
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
- dialog.getContentPane().add(buttonPane, BorderLayout.SOUTH);
- }
- dialog.setLocationRelativeTo(this);
- dialog.setVisible(true);
-
- GUIWorker gw = new GUIWorker(this, props);
- Thread t = new Thread(gw);
- t.start();
-
- }
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JButton jButton1;
- private javax.swing.JComboBox<String> jComboBox1;
- private javax.swing.JLabel jLabel1;
- private javax.swing.JLabel jLabel2;
- private javax.swing.JLabel jLabel3;
- private javax.swing.JLabel jLabel4;
- private javax.swing.JMenu jMenu1;
- private javax.swing.JMenu jMenu2;
- private javax.swing.JMenuBar jMenuBar1;
- private javax.swing.JMenuItem jMenuItem1;
- private javax.swing.JPanel jPanel1;
- private javax.swing.JPanel jPanel2;
- private javax.swing.JScrollPane jScrollPane3;
- private javax.swing.JTabbedPane tabbedPane;
- private javax.swing.JScrollPane jScrollPane2;
- private javax.swing.JScrollPane jScrollPane4;
- private JPanel panel;
- private JPanel panel_1;
- private JPanel panel_2;
- private JLabel lblDearDoctor;
- private JLabel lblNewLabel_1;
- private JLabel lblNewLabel_2;
- private JLabel lblNewLabel_3;
- private JComboBox<String> comboBox;
- private Component rigidArea;
-
- // End of variables declaration//GEN-END:variables
-
-
- class GUIWorker implements Runnable{
-
- private JFrame mainFrame;
- private ClientProperties props;
- private MedUnit mu;
-
- public GUIWorker(GUI gui, ClientProperties props) {
- mainFrame = gui;
-
- this.props = props;
- this.mu = new MedUnit(props, 0);
- }
-
- @Override
- public void run() {
-
- try{
- int patientId = Integer.parseInt((String) jComboBox1.getSelectedItem());
-
- // convert selected tests to test identifiers
- ArrayList<TestName> selectedTests = new ArrayList<TestName>();
- for (String currentName : getSelectedTests()) {
- TestName currentTest = testsByName.get(currentName);
-
- if (currentTest == null) {
- throw new IllegalStateException("Trying to run unknown test: " + currentTest);
- }
-
- selectedTests.add(currentTest);
- }
-
- // run tests
- Diagnostic diagnostic = mu.runTests(patientId, selectedTests);
-
- // warn for tests with missing material
- warnFailedTests(diagnostic, selectedTests);
-
- // create report
- mu.createReport(patientId, selectedTests, diagnostic);
-
- dialog.setVisible(false);
-
- // specify file you wish to open (JPedal handles getting the byte data)
- String filepathReport = props.getPathPDF() + patientId + ".pdf";
-
- // open generated PDF
- // object must be either String in full filepath, or
- // File object which can be relative
- Object[] input = new Object[]{ new File(filepathReport) };
- viewer.executeCommand(Commands.OPENFILE, input);
-
- // display CAD result as bar plot
- if (diagnostic.hasCAD()) {
- System.out.println("CAD = " + diagnostic.getResultCAD());
- BarPlotFrame frame = new BarPlotFrame(diagnostic.getResultCAD(), patientId);
- frame.setVisible(true);
- frame.setAlwaysOnTop(true);
- }
-
-
- } catch (SQLException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Please select a patient.");
- }
-
- }
-
- private void warnFailedTests(Diagnostic diagnostic, ArrayList<TestName> selectedTests) {
- ArrayList<Integer> failedTests = diagnostic.getInvalidTests();
-
- if (!failedTests.isEmpty()) {
- String msg = "Could not complete tests: ";
- boolean first = true;
- for (TestName testName : selectedTests) {
- if (failedTests.contains(testName.getId())) {
- if (first) {
- first = false;
- } else {
- msg += ", ";
- }
- msg += testName.getName();
- }
- }
- displayError(msg);
- }
-
- }
-
- private void displayError(String msg) {
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- mainFrame,
- msg,
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
-
- private ArrayList<String> getSelectedTests() {
- ArrayList<String> tests = new ArrayList<String>();
-
- for (TreePath treePath : jTree.getSelectionPaths()) {
- tests.addAll(getChildrenTests(jTree.getModel(), treePath.getLastPathComponent()));
- }
-
- return tests;
- }
-
- private ArrayList<String> getChildrenTests(TreeModel model, Object node) {
- ArrayList<String> tests = new ArrayList<String>();
-
- if (model.isLeaf(node)) { // leaf
- DefaultMutableTreeNode leaf = (DefaultMutableTreeNode) node;
- tests.add(leaf.toString());
- }
- else { // iterate over children
- for (int i = 0; i < model.getChildCount(node); i++) {
- tests.addAll(getChildrenTests(model, model.getChild(node, i)));
- }
- }
-
- return tests;
- }
-
- }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/8f/3067980452ac001410e2e30aa85db9d1 b/.metadata/.plugins/org.eclipse.core.resources/.history/8f/3067980452ac001410e2e30aa85db9d1
deleted file mode 100644
index bc1ce55..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/8f/3067980452ac001410e2e30aa85db9d1
+++ /dev/null
@@ -1,915 +0,0 @@
-package ui;
-
-import io.ClientConnection;
-import io.CommAdapter;
-import io.Questionnaire;
-
-import java.awt.BorderLayout;
-import java.awt.Color;
-import java.awt.Component;
-import java.awt.Dimension;
-import java.awt.FlowLayout;
-import java.awt.Font;
-import java.awt.SystemColor;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.awt.event.WindowAdapter;
-import java.io.File;
-import java.io.IOException;
-import java.sql.SQLException;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.LinkedList;
-import java.util.Map;
-import java.util.Set;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
-import javax.swing.Box;
-import javax.swing.BoxLayout;
-import javax.swing.ButtonGroup;
-import javax.swing.DefaultComboBoxModel;
-import javax.swing.GroupLayout;
-import javax.swing.GroupLayout.Alignment;
-import javax.swing.ImageIcon;
-import javax.swing.JButton;
-import javax.swing.JComboBox;
-import javax.swing.JDialog;
-import javax.swing.JFileChooser;
-import javax.swing.JFrame;
-import javax.swing.JLabel;
-import javax.swing.JOptionPane;
-import javax.swing.JPanel;
-import javax.swing.JRadioButton;
-import javax.swing.JScrollPane;
-import javax.swing.JSeparator;
-import javax.swing.JTabbedPane;
-import javax.swing.JTextArea;
-import javax.swing.JTextPane;
-import javax.swing.JTree;
-import javax.swing.LayoutStyle.ComponentPlacement;
-import javax.swing.SwingConstants;
-import javax.swing.UIManager;
-import javax.swing.border.BevelBorder;
-import javax.swing.border.EmptyBorder;
-import javax.swing.border.EtchedBorder;
-import javax.swing.tree.DefaultMutableTreeNode;
-import javax.swing.tree.TreeModel;
-import javax.swing.tree.TreePath;
-
-import org.jpedal.examples.viewer.Commands;
-import org.jpedal.examples.viewer.Viewer;
-
-import utils.ClientProperties;
-
-import com.itextpdf.text.DocumentException;
-
-import database.DBconnectorClient;
-import framework.Diagnostic;
-import framework.MedUnit;
-import framework.Question;
-import framework.reply.ReplySurvey;
-import framework.test.TestName;
-import javax.swing.border.SoftBevelBorder;
-
-/**
- *
- * @author youssef, raisaro
- */
-public class GUI extends javax.swing.JFrame {
-
- private static final Logger LOGGER = Logger.getLogger(GUI.class.getName());
-
- private static final long serialVersionUID = -4582280515597700650L;
-
- // configuration
- private ClientProperties props;
-
- private JTree jTree;
- private DBconnectorClient connectorClientDB;
- private LinkedList<Integer> patients;
-
- /** List of all relevant tests */
- private HashMap<String, TestName> testsByName;
- private Viewer viewer;
- private JDialog dialog;
- private JFrame frame;
- private boolean survey_submitted;
- private int close_trials;
- private Map<Integer, ButtonGroup> buttonGroupMap;
- private Questionnaire quest;
- private Map<Integer, Question> map;
- private Set<Integer> ids;
- private Map<String,String> answers;
- private Map<Integer, String> locations;
-
-
- /**
- * Creates new form GUI
- */
- public GUI(ClientProperties props){
-
- frame = this;
- this.props = props;
- this.connectorClientDB = new DBconnectorClient(props.getDbMsAccess());
- survey_submitted = false;
- close_trials = 0;
-
-
- try {
- initComponents();
-
- viewer = new Viewer(jScrollPane2, null);
- viewer.setupViewer();
-
- // create questionnare
-
-
- System.out.println("#of questions: " + ids.size());
-
-// viewer_q = new Viewer(jScrollPane4, null);
-// viewer_q.setupViewer();
-//
-// // specify file you wish to open (JPedal handles getting the byte data)
-// String filepathReport = "outputPDF/buttons_filled.pdf";
-//
-// // open generated PDF
-// // object must be either String in full filepath, or
-// // File object which can be relative
-// Object[] input = new Object[]{ new File(filepathReport) };
-// viewer_q.executeCommand(Commands.OPENFILE, input);
-
- JButton btnSubmitQuestionnaire = new JButton("Submit Questionnaire");
- btnSubmitQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- btnSubmitQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- submitButtonActionPerformed(arg0);
- }
- });
- JButton btnResetQuestionnaire = new JButton("Save as PDF");
- btnResetQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- savePDFButtonActionPerformed(arg0);
- }
- });
- btnResetQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- JPanel panel_button = new JPanel();
- panel_button.setLayout(new BoxLayout(panel_button, BoxLayout.X_AXIS));
-
- lblNewLabel_3 = new JLabel("");
- lblNewLabel_3.setIcon(new ImageIcon("res/location_icon.png"));
- panel_button.add(lblNewLabel_3);
-
-
-
- comboBox = new JComboBox<String>();
- comboBox.setFont(new Font("Tahoma", Font.BOLD, 12));
- comboBox.setModel(new DefaultComboBoxModel<String>(new String[] {"Select Location"}));
- for(Integer id_loc : locations.keySet()){
- comboBox.addItem(locations.get(id_loc));
- }
-
-
- panel_button.add(comboBox);
-
- rigidArea = Box.createRigidArea(new Dimension(10, 0));
- panel_button.add(rigidArea);
-
- lblNewLabel_1 = new JLabel("");
- lblNewLabel_1.setIcon(new ImageIcon("res/submit.png"));
- panel_button.add(lblNewLabel_1);
- panel_button.add(btnSubmitQuestionnaire);
-
- panel_button.add(Box.createRigidArea(new Dimension(10,0)));
-
- lblNewLabel_2 = new JLabel("");
- lblNewLabel_2.setIcon(new ImageIcon("res/pdf.png"));
- panel_button.add(lblNewLabel_2);
- panel_button.add(btnResetQuestionnaire);
- panel_button.setPreferredSize(new Dimension(211, 35));
- panel_button.validate();
-
- JPanel panel_3 = new JPanel();
-
- JLabel lblArrow = new JLabel("");
- lblArrow.setAlignmentX(Component.CENTER_ALIGNMENT);
- lblArrow.setIcon(new ImageIcon("C:\\Users\\raisaro\\workspace\\yussef\\project\\PPPClient\\res\\arrow_icon.png"));
- GroupLayout gl_panel = new GroupLayout(panel);
- gl_panel.setHorizontalGroup(
- gl_panel.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(63)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addGap(103)
- .addComponent(panel_button, GroupLayout.DEFAULT_SIZE, 498, Short.MAX_VALUE)
- .addGap(241))
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(41)
- .addGroup(gl_panel.createParallelGroup(Alignment.TRAILING)
- .addComponent(jScrollPane4, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE)
- .addComponent(panel_1, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE))
- .addGap(32))
- .addGroup(gl_panel.createSequentialGroup()
- .addContainerGap(456, Short.MAX_VALUE)
- .addComponent(lblArrow)
- .addGap(417))
- );
- gl_panel.setVerticalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(22)
- .addComponent(panel_1, GroupLayout.PREFERRED_SIZE, 235, GroupLayout.PREFERRED_SIZE)
- .addGap(11)
- .addComponent(lblArrow, GroupLayout.PREFERRED_SIZE, 20, Short.MAX_VALUE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jScrollPane4, GroupLayout.DEFAULT_SIZE, 379, Short.MAX_VALUE)
- .addGap(26)
- .addGroup(gl_panel.createParallelGroup(Alignment.LEADING)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(panel_button, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE)))
- );
- panel_3.setLayout(new BoxLayout(panel_3, BoxLayout.X_AXIS));
-
-
- panel.setLayout(gl_panel);
-
-
-
-
-
-
- /////////////////////////////////////////////////////////
- // display the tests available
-
- // get the tests
- HashMap<String, ArrayList<TestName>> testsRelevantByGroup = connectorClientDB.getRelevantTestsByGroup();
- ArrayList<String> groups = new ArrayList<String>(testsRelevantByGroup.keySet());
-
- // flatten hashmap into linkedlist
-// tests = new LinkedList<>();
- testsByName = new HashMap<String, TestName>();
- for (String group : groups) {
-// tests.addAll(testsRelevantByGroup.get(group));
- for (TestName test : testsRelevantByGroup.get(group)) {
- testsByName.put(test.getName(), test);
- }
- }
-
- // define tree structure of the tests
- DefaultMutableTreeNode root = new DefaultMutableTreeNode("All");
-
- for (String group : groups) {
- DefaultMutableTreeNode child = new DefaultMutableTreeNode(group);
- root.add(child);
-
- for (TestName test : testsRelevantByGroup.get(group)) {
- DefaultMutableTreeNode grandChild = new DefaultMutableTreeNode(test.getName());
- child.add(grandChild);
- }
- }
-
- // define swing object
- jTree = new JTree(root);
-
- for(int i=0;i<jTree.getRowCount();i++){
- jTree.expandRow(i);
- }
-
- jScrollPane3.setViewportView(jTree);
-// jTree.addTreeSelectionListener(new TreeSelectionListener() {
-//
-// @Override
-// public void valueChanged(TreeSelectionEvent e) {
-// tp = jTree.getSelectionPaths();
-// }
-// });
- jScrollPane3.setViewportView(jTree);
-
- /////////////////////////////////////////////////////////
- // display the patients registered
-
- patients = connectorClientDB.getPatients();
- for (Integer patientId : patients) {
- jComboBox1.addItem(patientId.toString());
- }
-
- } catch (SQLException ex) {
- Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex);
- ex.printStackTrace();
-// } catch (IOException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
-// } catch (DocumentException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
- }
-
- }
-
- /**
- * 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() {
-
- jPanel1 = new javax.swing.JPanel();
- jLabel2 = new javax.swing.JLabel();
- jLabel1 = new javax.swing.JLabel();
- jPanel2 = new javax.swing.JPanel();
- jComboBox1 = new javax.swing.JComboBox<String>();
- jButton1 = new javax.swing.JButton();
- jButton1.setFont(new Font("Tahoma", Font.BOLD, 12));
- jLabel3 = new javax.swing.JLabel();
- jLabel4 = new javax.swing.JLabel();
- jScrollPane3 = new javax.swing.JScrollPane();
- jScrollPane2 = new javax.swing.JScrollPane();
- jMenuBar1 = new javax.swing.JMenuBar();
- jMenu1 = new javax.swing.JMenu();
- jMenuItem1 = new javax.swing.JMenuItem();
- jMenu2 = new javax.swing.JMenu();
- dialog = new JDialog();
- tabbedPane = new JTabbedPane(JTabbedPane.TOP);
-
- setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
- addWindowListener(new WindowAdapter() {
- @Override
- public void windowClosing(java.awt.event.WindowEvent windowEvent) {
- if (!survey_submitted && close_trials <= 2){
- JOptionPane.showMessageDialog(frame, "Before closing the application, please fill in and submit the questionnaire.");
- close_trials++;
- tabbedPane.setSelectedIndex(1);
- }else{
- System.exit(0);
- }
- }
- });
- setTitle("HIV Pharmacogenomics\n");
-
- jLabel2.setIcon(new javax.swing.ImageIcon("res/shcs_logo2_small.gif")); // NOI18N
-
- jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
- jLabel1.setText("HIV Pharmacogenomics | Project #693");
-
- javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
- jPanel1.setLayout(jPanel1Layout);
- jPanel1Layout.setHorizontalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap(71, Short.MAX_VALUE)
- .addComponent(jLabel1)
- .addGap(18, 18, 18)
- .addComponent(jLabel2))
- );
- jPanel1Layout.setVerticalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jLabel1)
- .addGap(11, 11, 11))
- .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)
- );
-
- jPanel2.setBackground(new java.awt.Color(255, 255, 255));
- jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
-
- jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<String>(new String[]{"Select Patient"}));
-
- jButton1.setText("Run Test");
- jButton1.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton1ActionPerformed(evt);
- }
- });
-
- JLabel lblNewLabel = new JLabel("");
- lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
- lblNewLabel.setIcon(new javax.swing.ImageIcon("res/gears.png"));
-
-
-
- javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
- jPanel2Layout.setHorizontalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addComponent(jComboBox1, 0, 248, Short.MAX_VALUE)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addGap(75)
- .addGroup(jPanel2Layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jButton1)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 75, GroupLayout.PREFERRED_SIZE))
- .addContainerGap(98, Short.MAX_VALUE))
- );
- jPanel2Layout.setVerticalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addComponent(jComboBox1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED, 223, Short.MAX_VALUE)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jButton1)
- .addGap(19))
- );
- jPanel2.setLayout(jPanel2Layout);
-
- jLabel3.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel3.setText("Select Patient");
-
- jLabel4.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel4.setText("Select Test");
-
- jScrollPane3.setBackground(new java.awt.Color(255, 255, 255));
-
- jMenu1.setText("File");
-
- jMenuItem1.setText("Exit");
- jMenu1.add(jMenuItem1);
-
- jMenuBar1.add(jMenu1);
-
- jMenu2.setText("Edit");
- jMenuBar1.add(jMenu2);
-
- setJMenuBar(jMenuBar1);
-
-
-
- javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
- layout.setHorizontalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(layout.createParallelGroup(Alignment.LEADING, false)
- .addComponent(jLabel3)
- .addComponent(jLabel4)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, 244, Short.MAX_VALUE)
- .addComponent(jScrollPane3))
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 970, Short.MAX_VALUE))
- .addContainerGap())
- );
- layout.setVerticalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel4))
- .addPreferredGap(ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addComponent(jScrollPane3, GroupLayout.PREFERRED_SIZE, 388, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jLabel3)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 785, Short.MAX_VALUE))
- .addContainerGap())
- );
-
-
- jScrollPane2.setAutoscrolls(true);
- jScrollPane3.setAutoscrolls(true);
- tabbedPane.addTab("Report", new ImageIcon("res/report_icon.gif"), jScrollPane2, null);
- tabbedPane.setBackgroundAt(0, new Color(255, 255, 255));
-
- panel = new JPanel();
- tabbedPane.addTab("Survey", new ImageIcon("res/survey_icon.png"), panel, null);
- tabbedPane.setBackgroundAt(1, new Color(255, 255, 255));
- tabbedPane.setEnabledAt(1, true);
-
- panel_1 = new JPanel();
- panel_1.setBorder(new SoftBevelBorder(BevelBorder.LOWERED, null, null, null, null));
- panel_1.setBackground(Color.WHITE);
-
- JLabel label = new JLabel("");
- label.setIcon(new ImageIcon("res/shcs_logo2_medium.gif"));
-
- lblDearDoctor = new JLabel("Dear Doctor,");
- lblDearDoctor.setFont(new Font("Tahoma", Font.BOLD, 14));
-
- JScrollPane scrollPane = new JScrollPane();
- scrollPane.setBorder(null);
- GroupLayout gl_panel_1 = new GroupLayout(panel_1);
- gl_panel_1.setHorizontalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(Alignment.LEADING, gl_panel_1.createSequentialGroup()
- .addGap(25)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addComponent(lblDearDoctor)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 661, Short.MAX_VALUE))
- .addContainerGap())
- );
- gl_panel_1.setVerticalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addContainerGap()
- .addComponent(lblDearDoctor)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 203, Short.MAX_VALUE))
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(36)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 96, GroupLayout.PREFERRED_SIZE)))
- .addContainerGap())
- );
-
- JTextPane txtpnTodayYouAre = new JTextPane();
- txtpnTodayYouAre.setBorder(null);
- txtpnTodayYouAre.setText("Today you are receiving a pharmacogenetics report based on the genome of your patient. Because of its highly sensitive nature, " +
- "the genetic information you are provided with is processed in a privacy-preserving way. In particular, to protect patients’ genomic privacy, " +
- "their genetic and clinical data is stored encrypted at the SHCS data center, and securely analyzed through a sophisticated algorithm designed and developed at EPFL [1, 2]. " +
- "The actual clinical and genetic information is never revealed. Only the authorized users, such as you, can get some processed information, for example, the final result of a " +
- "pharmacogenetics risk test.\nThis mechanism protects the data against insiders or hackers trying to illegally access patients’ medical information, while still allowing authorized " +
- "users to obtain the information they need." +
- "\n\nTo help us understanding the importance of genomic privacy in the medical domain, and the impact of privacy-enhancing technologies in daily clinical practice, please complete the following survey.");
- txtpnTodayYouAre.setFont(new Font("Tahoma", Font.PLAIN, 13));
- txtpnTodayYouAre.setEditable(false);
- txtpnTodayYouAre.setBackground(Color.WHITE);
- scrollPane.setViewportView(txtpnTodayYouAre);
- panel_1.setLayout(gl_panel_1);
- jScrollPane4 = new javax.swing.JScrollPane();
- getContentPane().setLayout(layout);
-
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
- ReplySurvey replySurvey = commHandlerAdapter.callServiceSurvey();
-
- map = replySurvey.getQuestions();
- ids = map.keySet();
- locations = replySurvey.getLocations();
-
- panel_2 = new JPanel();
- panel_2.setBackground(Color.WHITE);
- panel_2.setBorder(new BevelBorder(BevelBorder.LOWERED, null, null, null, null));
- jScrollPane4.setViewportView(panel_2);
- panel_2.setLayout(new BoxLayout(panel_2, BoxLayout.Y_AXIS));
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
-
-
- for(Integer id : ids){
- ButtonGroup group = new ButtonGroup();
- JRadioButton r1 = new JRadioButton("1"); r1.setActionCommand("1"); r1.setBackground(Color.WHITE);
- JRadioButton r2 = new JRadioButton("2"); r2.setActionCommand("2"); r2.setBackground(Color.WHITE);
- JRadioButton r3 = new JRadioButton("3"); r3.setActionCommand("3"); r3.setBackground(Color.WHITE);
- JRadioButton r4 = new JRadioButton("4"); r4.setActionCommand("4"); r4.setBackground(Color.WHITE);
- JRadioButton r5 = new JRadioButton("5"); r5.setActionCommand("5"); r5.setBackground(Color.WHITE);
- group.add(r1);
- group.add(r2);
- group.add(r3);
- group.add(r4);
- group.add(r5);
- JPanel radio_panel = new JPanel();
- radio_panel.setLayout((new BoxLayout(radio_panel, BoxLayout.X_AXIS)));
- radio_panel.setBackground(Color.WHITE);
- radio_panel.setAlignmentX(Component.CENTER_ALIGNMENT);
- radio_panel.add(r1);
- radio_panel.add(r2);
- radio_panel.add(r3);
- radio_panel.add(r4);
- radio_panel.add(r5);
- radio_panel.doLayout();
- radio_panel.setPreferredSize(radio_panel.getPreferredSize());
- JTextArea question = new JTextArea(id + ") " + map.get(id).getQuestion());
- question.setLineWrap(true);
- question.setWrapStyleWord(true);
- question.setAlignmentX(Component.CENTER_ALIGNMENT);
- question.setFont(new Font("Tahoma", Font.PLAIN, 13));
-
- JPanel row_panel = new JPanel();
- row_panel.setLayout(new BoxLayout(row_panel, BoxLayout.X_AXIS));
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.add(question);
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.add(radio_panel);
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.setBackground(Color.WHITE);
-
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- panel_2.add(row_panel);
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
-// panel_2.add(radio_panel);
- panel_2.add(new JSeparator());
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
-// panel_2.setPreferredSize(panel_2.getPreferredSize());
- buttonGroupMap.put(id, group);
-
- }
-
-
-
- this.setSize(new Dimension(1200, 865));
-// pack();
- }// </editor-fold>//GEN-END:initComponents
-
-
- private void submitButtonActionPerformed(java.awt.event.ActionEvent evt){
-
- try{
- answers = new HashMap<String, String>();
- StringBuilder sb = new StringBuilder();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- sb.append(q).append(",");
- sb.append(bg.getSelection().getActionCommand()).append(";");
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- String answer = sb.toString();
- Integer id_loc = null;
- for(Integer i: locations.keySet()){
- if(locations.get(i).equals(comboBox.getSelectedItem().toString()))
- id_loc = i;
- }
-
- String id_p;
- if(jComboBox1.getSelectedItem().toString().equals("Select Patient"))
- id_p = "0";
- else
- id_p = jComboBox1.getSelectedItem().toString();
-
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
-
- String reply = commHandlerAdapter.callServiceSurveyAnswer(answer, id_loc.toString(), id_p);
-
- if(reply.equals("1")){
- survey_submitted = true;
-
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Congrats! Your aswers have been sent to the SHCS datacenter.",
- "Information Message",
- JOptionPane.INFORMATION_MESSAGE);
- }
- else{
- throw new IOException();
- }
-
-
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "The SHCS datacenter does not respond. Please save the survey and send it to jean.raisaro@epfl.ch.",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
- private void savePDFButtonActionPerformed(java.awt.event.ActionEvent evt){
- try {
-
- answers = new HashMap<String, String>();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- JFileChooser chooser = new JFileChooser();
- // Note: source for ExampleFileFilter can be found in FileChooserDemo,
- // under the demo/jfc directory in the JDK.
-
- int returnVal = chooser.showSaveDialog(this);
- System.out.println(returnVal);
- if(returnVal == JFileChooser.APPROVE_OPTION) {
- System.out.println("You chose to open this file: " +
- chooser.getSelectedFile().getPath());
- quest = new Questionnaire(chooser.getSelectedFile().getPath() + ".pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }else{
- quest = new Questionnaire("outputPDF/survey.pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }
-
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (DocumentException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (NullPointerException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
-
- private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
-
- JPanel contentPanel = new JPanel();
-
- dialog.setBounds(100, 100, 410, 80);
- dialog.getContentPane().setLayout(new BorderLayout());
- contentPanel.setLayout(new FlowLayout());
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- dialog.getContentPane().add(contentPanel, BorderLayout.CENTER);
- {
- JLabel label = new JLabel("Please wait...The overall computation can take few seconds");
- label.setHorizontalAlignment(SwingConstants.CENTER);
- label.setFont(new Font("Tahoma", Font.PLAIN, 12));
- contentPanel.add(label);
- }
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
- dialog.getContentPane().add(buttonPane, BorderLayout.SOUTH);
- }
- dialog.setLocationRelativeTo(this);
- dialog.setVisible(true);
-
- GUIWorker gw = new GUIWorker(this, props);
- Thread t = new Thread(gw);
- t.start();
-
- }
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JButton jButton1;
- private javax.swing.JComboBox<String> jComboBox1;
- private javax.swing.JLabel jLabel1;
- private javax.swing.JLabel jLabel2;
- private javax.swing.JLabel jLabel3;
- private javax.swing.JLabel jLabel4;
- private javax.swing.JMenu jMenu1;
- private javax.swing.JMenu jMenu2;
- private javax.swing.JMenuBar jMenuBar1;
- private javax.swing.JMenuItem jMenuItem1;
- private javax.swing.JPanel jPanel1;
- private javax.swing.JPanel jPanel2;
- private javax.swing.JScrollPane jScrollPane3;
- private javax.swing.JTabbedPane tabbedPane;
- private javax.swing.JScrollPane jScrollPane2;
- private javax.swing.JScrollPane jScrollPane4;
- private JPanel panel;
- private JPanel panel_1;
- private JPanel panel_2;
- private JLabel lblDearDoctor;
- private JLabel lblNewLabel_1;
- private JLabel lblNewLabel_2;
- private JLabel lblNewLabel_3;
- private JComboBox<String> comboBox;
- private Component rigidArea;
-
- // End of variables declaration//GEN-END:variables
-
-
- class GUIWorker implements Runnable{
-
- private JFrame mainFrame;
- private ClientProperties props;
- private MedUnit mu;
-
- public GUIWorker(GUI gui, ClientProperties props) {
- mainFrame = gui;
-
- this.props = props;
- this.mu = new MedUnit(props, 0);
- }
-
- @Override
- public void run() {
-
- try{
- int patientId = Integer.parseInt((String) jComboBox1.getSelectedItem());
-
- // convert selected tests to test identifiers
- ArrayList<TestName> selectedTests = new ArrayList<TestName>();
- for (String currentName : getSelectedTests()) {
- TestName currentTest = testsByName.get(currentName);
-
- if (currentTest == null) {
- throw new IllegalStateException("Trying to run unknown test: " + currentTest);
- }
-
- selectedTests.add(currentTest);
- }
-
- // run tests
- Diagnostic diagnostic = mu.runTests(patientId, selectedTests);
-
- // warn for tests with missing material
- warnFailedTests(diagnostic, selectedTests);
-
- // create report
- mu.createReport(patientId, selectedTests, diagnostic);
-
- dialog.setVisible(false);
-
- // specify file you wish to open (JPedal handles getting the byte data)
- String filepathReport = props.getPathPDF() + patientId + ".pdf";
-
- // open generated PDF
- // object must be either String in full filepath, or
- // File object which can be relative
- Object[] input = new Object[]{ new File(filepathReport) };
- viewer.executeCommand(Commands.OPENFILE, input);
-
- // display CAD result as bar plot
- if (diagnostic.hasCAD()) {
- System.out.println("CAD = " + diagnostic.getResultCAD());
- BarPlotFrame frame = new BarPlotFrame(diagnostic.getResultCAD(), patientId);
- frame.setVisible(true);
- frame.setAlwaysOnTop(true);
- }
-
-
- } catch (SQLException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Please select a patient.");
- }
-
- }
-
- private void warnFailedTests(Diagnostic diagnostic, ArrayList<TestName> selectedTests) {
- ArrayList<Integer> failedTests = diagnostic.getInvalidTests();
-
- if (!failedTests.isEmpty()) {
- String msg = "Could not complete tests: ";
- boolean first = true;
- for (TestName testName : selectedTests) {
- if (failedTests.contains(testName.getId())) {
- if (first) {
- first = false;
- } else {
- msg += ", ";
- }
- msg += testName.getName();
- }
- }
- displayError(msg);
- }
-
- }
-
- private void displayError(String msg) {
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- mainFrame,
- msg,
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
-
- private ArrayList<String> getSelectedTests() {
- ArrayList<String> tests = new ArrayList<String>();
-
- for (TreePath treePath : jTree.getSelectionPaths()) {
- tests.addAll(getChildrenTests(jTree.getModel(), treePath.getLastPathComponent()));
- }
-
- return tests;
- }
-
- private ArrayList<String> getChildrenTests(TreeModel model, Object node) {
- ArrayList<String> tests = new ArrayList<String>();
-
- if (model.isLeaf(node)) { // leaf
- DefaultMutableTreeNode leaf = (DefaultMutableTreeNode) node;
- tests.add(leaf.toString());
- }
- else { // iterate over children
- for (int i = 0; i < model.getChildCount(node); i++) {
- tests.addAll(getChildrenTests(model, model.getChild(node, i)));
- }
- }
-
- return tests;
- }
-
- }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/b4/90dfb6f86bac00141cc3aa66275e9c24 b/.metadata/.plugins/org.eclipse.core.resources/.history/8f/90e76d5454b80014199a8682e9990d0e
similarity index 75%
rename from .metadata/.plugins/org.eclipse.core.resources/.history/b4/90dfb6f86bac00141cc3aa66275e9c24
rename to .metadata/.plugins/org.eclipse.core.resources/.history/8f/90e76d5454b80014199a8682e9990d0e
index 8b30fef..b65b118 100644
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/b4/90dfb6f86bac00141cc3aa66275e9c24
+++ b/.metadata/.plugins/org.eclipse.core.resources/.history/8f/90e76d5454b80014199a8682e9990d0e
@@ -1,927 +1,938 @@
package ui;
import io.ClientConnection;
import io.CommAdapter;
import io.Questionnaire;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Font;
import java.awt.SystemColor;
+import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowAdapter;
import java.io.File;
import java.io.IOException;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.Map;
import java.util.Set;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.Box;
import javax.swing.BoxLayout;
import javax.swing.ButtonGroup;
import javax.swing.DefaultComboBoxModel;
import javax.swing.GroupLayout;
import javax.swing.GroupLayout.Alignment;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JDialog;
import javax.swing.JFileChooser;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JRadioButton;
import javax.swing.JScrollPane;
import javax.swing.JSeparator;
import javax.swing.JTabbedPane;
import javax.swing.JTextArea;
import javax.swing.JTextPane;
import javax.swing.JTree;
import javax.swing.LayoutStyle.ComponentPlacement;
import javax.swing.SwingConstants;
import javax.swing.border.EmptyBorder;
import javax.swing.border.LineBorder;
import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.tree.TreeModel;
import javax.swing.tree.TreePath;
import org.jpedal.examples.viewer.Commands;
import org.jpedal.examples.viewer.Viewer;
import utils.ClientProperties;
import com.itextpdf.text.DocumentException;
import database.DBconnectorClient;
import framework.Diagnostic;
import framework.MedUnit;
import framework.Question;
import framework.reply.ReplySurvey;
import framework.test.TestName;
+import javax.swing.JSplitPane;
+import java.awt.event.MouseAdapter;
+import java.awt.event.MouseEvent;
/**
*
- * @author youssef, raisaro
+ * @author raisaro
*/
public class GUI extends javax.swing.JFrame {
private static final Logger LOGGER = Logger.getLogger(GUI.class.getName());
private static final long serialVersionUID = -4582280515597700650L;
// configuration
private ClientProperties props;
private JTree jTree;
private DBconnectorClient connectorClientDB;
private LinkedList<Integer> patients;
/** List of all relevant tests */
private HashMap<String, TestName> testsByName;
private Viewer viewer;
private JDialog dialog;
private JFrame frame;
private boolean survey_submitted;
private int close_trials;
private Map<Integer, ButtonGroup> buttonGroupMap;
private Questionnaire quest;
private Map<Integer, Question> map;
private Set<Integer> ids;
private Map<String,String> answers;
private Map<Integer, String> locations;
+ private JButton btnSubmitQuestionnaire;
/**
* Creates new form GUI
*/
public GUI(ClientProperties props){
+ setLocationByPlatform(true);
+ setIconImage(Toolkit.getDefaultToolkit().getImage("res/shcs_logo2_icon.png"));
frame = this;
this.props = props;
this.connectorClientDB = new DBconnectorClient(props.getDbMsAccess());
survey_submitted = false;
close_trials = 0;
try {
initComponents();
viewer = new Viewer(jScrollPane2, null);
viewer.setupViewer();
- // create questionnare
-
+ // create questionnare
+
System.out.println("#of questions: " + ids.size());
-// viewer_q = new Viewer(jScrollPane4, null);
-// viewer_q.setupViewer();
-//
-// // specify file you wish to open (JPedal handles getting the byte data)
-// String filepathReport = "outputPDF/buttons_filled.pdf";
-//
-// // open generated PDF
-// // object must be either String in full filepath, or
-// // File object which can be relative
-// Object[] input = new Object[]{ new File(filepathReport) };
-// viewer_q.executeCommand(Commands.OPENFILE, input);
-
- JButton btnSubmitQuestionnaire = new JButton("Submit Questionnaire");
+
+ btnSubmitQuestionnaire = new JButton("Submit Questionnaire");
btnSubmitQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
btnSubmitQuestionnaire.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
submitButtonActionPerformed(arg0);
}
});
JButton btnResetQuestionnaire = new JButton("Save as PDF");
btnResetQuestionnaire.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
savePDFButtonActionPerformed(arg0);
}
});
btnResetQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
JPanel panel_button = new JPanel();
panel_button.setLayout(new BoxLayout(panel_button, BoxLayout.X_AXIS));
lblNewLabel_3 = new JLabel("");
lblNewLabel_3.setIcon(new ImageIcon("res/location_icon.png"));
panel_button.add(lblNewLabel_3);
comboBox = new JComboBox<String>();
comboBox.setFont(new Font("Tahoma", Font.BOLD, 12));
comboBox.setModel(new DefaultComboBoxModel<String>(new String[] {"Select Location"}));
for(Integer id_loc : locations.keySet()){
comboBox.addItem(locations.get(id_loc));
}
panel_button.add(comboBox);
rigidArea = Box.createRigidArea(new Dimension(10, 0));
panel_button.add(rigidArea);
lblNewLabel_1 = new JLabel("");
lblNewLabel_1.setIcon(new ImageIcon("res/submit.png"));
panel_button.add(lblNewLabel_1);
panel_button.add(btnSubmitQuestionnaire);
panel_button.add(Box.createRigidArea(new Dimension(10,0)));
lblNewLabel_2 = new JLabel("");
lblNewLabel_2.setIcon(new ImageIcon("res/pdf.png"));
panel_button.add(lblNewLabel_2);
panel_button.add(btnResetQuestionnaire);
panel_button.setPreferredSize(new Dimension(211, 35));
panel_button.validate();
- JPanel panel_3 = new JPanel();
+ splitPane = new JSplitPane();
+ splitPane.setOneTouchExpandable(true);
+ splitPane.setResizeWeight(0.52);
+ splitPane.setOrientation(JSplitPane.VERTICAL_SPLIT);
+
GroupLayout gl_panel = new GroupLayout(panel);
gl_panel.setHorizontalGroup(
- gl_panel.createParallelGroup(Alignment.TRAILING)
+ gl_panel.createParallelGroup(Alignment.LEADING)
.addGroup(gl_panel.createSequentialGroup()
- .addGap(63)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addGap(103)
- .addComponent(panel_button, GroupLayout.DEFAULT_SIZE, 498, Short.MAX_VALUE)
- .addGap(241))
+ .addGap(165)
+ .addComponent(panel_button, GroupLayout.DEFAULT_SIZE, 421, Short.MAX_VALUE)
+ .addGap(242))
.addGroup(gl_panel.createSequentialGroup()
- .addGap(41)
- .addGroup(gl_panel.createParallelGroup(Alignment.TRAILING)
- .addComponent(jScrollPane4, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE)
- .addComponent(panel_1, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE))
- .addGap(32))
+ .addContainerGap()
+ .addComponent(splitPane, GroupLayout.DEFAULT_SIZE, 738, Short.MAX_VALUE)
+ .addGap(80))
);
gl_panel.setVerticalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
+ gl_panel.createParallelGroup(Alignment.TRAILING)
.addGroup(gl_panel.createSequentialGroup()
- .addGap(22)
- .addComponent(panel_1, GroupLayout.PREFERRED_SIZE, 235, GroupLayout.PREFERRED_SIZE)
- .addGap(37)
- .addComponent(jScrollPane4, GroupLayout.DEFAULT_SIZE, 379, Short.MAX_VALUE)
- .addGap(26)
- .addGroup(gl_panel.createParallelGroup(Alignment.LEADING)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(panel_button, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE)))
+ .addContainerGap()
+ .addComponent(splitPane, GroupLayout.DEFAULT_SIZE, 603, Short.MAX_VALUE)
+ .addPreferredGap(ComponentPlacement.RELATED)
+ .addComponent(panel_button, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE)
+ .addGap(11))
+ );
+
+ panel_1 = new JPanel();
+ panel_1.setMinimumSize(new Dimension(10, 0));
+ panel_1.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
+ panel_1.setBackground(SystemColor.menu);
+ splitPane.setLeftComponent(panel_1);
+
+ label_1 = new JLabel("");
+ label_1.setIcon(new ImageIcon("res/shcs_logo2_medium.gif"));
+
+ label_2 = new JLabel("");
+ label_2.setIcon(new ImageIcon("res/EPFL_logo.png"));
+
+ label_3 = new JLabel("");
+ label_3.setIcon(new ImageIcon("res/chuv_logo.png"));
+
+ label_4 = new JLabel("Dear Doctor,");
+ label_4.setFont(new Font("Tahoma", Font.BOLD, 14));
+
+ scrollPane = new JScrollPane();
+ scrollPane.setBorder(null);
+ GroupLayout gl_panel_1 = new GroupLayout(panel_1);
+ gl_panel_1.setHorizontalGroup(
+ gl_panel_1.createParallelGroup(Alignment.LEADING)
+ .addGroup(gl_panel_1.createSequentialGroup()
+ .addGap(25)
+ .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
+ .addComponent(label_3)
+ .addComponent(label_2)
+ .addComponent(label_1, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE))
+ .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
+ .addGroup(gl_panel_1.createSequentialGroup()
+ .addGap(20)
+ .addComponent(label_4)
+ .addGap(109))
+ .addGroup(gl_panel_1.createSequentialGroup()
+ .addGap(10)
+ .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 557, Short.MAX_VALUE)
+ .addContainerGap())))
);
- panel_3.setLayout(new BoxLayout(panel_3, BoxLayout.X_AXIS));
+ gl_panel_1.setVerticalGroup(
+ gl_panel_1.createParallelGroup(Alignment.LEADING)
+ .addGroup(gl_panel_1.createSequentialGroup()
+ .addContainerGap()
+ .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
+ .addGroup(gl_panel_1.createSequentialGroup()
+ .addComponent(label_4)
+ .addPreferredGap(ComponentPlacement.UNRELATED)
+ .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 416, Short.MAX_VALUE))
+ .addGroup(gl_panel_1.createSequentialGroup()
+ .addGap(9)
+ .addComponent(label_1, GroupLayout.PREFERRED_SIZE, 96, GroupLayout.PREFERRED_SIZE)
+ .addGap(18)
+ .addComponent(label_2)
+ .addGap(28)
+ .addComponent(label_3)))
+ .addContainerGap(114, GroupLayout.PREFERRED_SIZE))
+ );
+
+ introduction = new JTextPane();
+ introduction.setBackground(SystemColor.control);
+ introduction.setContentType("text/html");
+ introduction.setText("You are receiving a pharmacogenetics report based on the genome of your patient. Because of its highly sensitive nature, the genetic information you are provided with is processed in a privacy-preserving way. In particular, to protect patients\u2019 genomic privacy, their genetic and clinical data are stored encrypted at the SHCS data center, and securely analyzed through a sophisticated algorithm designed and developed at EPFL [1, 2]. The actual clinical and genetic information is never revealed. Only the authorized users, such as you, can get some processed information, for example, the interpreted final result of a pharmacogenetics risk test.\r\nThis mechanism protects the data against insiders or hackers trying to illegally access patients\u2019 medical information, while still allowing authorized users to obtain the information they need.\r\n<br><br>\r\n<b>To help us better understanding the importance of genomic privacy in the medical domain, and the impact of privacy-enhancing technologies in daily clinical practice, please complete the following survey. Answers are on a scale from 1 (Strongly Disagree) to 5 (Strongly Agree).</b>\r\n<font size=\"2\">\r\n<br><br>\r\nNote: this work is part of Project #693, funded by the Swiss HIV Cohort. PIs: Prof. A. Telenti, formerly at CHUV, and Prof. J.-P. Hubaux, at EPFL.\r\n<br><br>\r\n[1] J. L. Raisaro, E. Ayday, P. J. McLaren, J.-P. Hubaux, and A. Telenti. Privacy-Preserving HIV Pharmacogenetics: A Real Use Case of Genomic Data Protection. GenoPri 2014<br>\r\n[2] E. Ayday, J. L. Raisaro, J. Rougemont, and J.-P. Hubaux. Protecting and Evaluating Genomic Privacy in Medical Tests and Personalized Medicine. WPES 2013\r\n</font>");
+ scrollPane.setViewportView(introduction);
+ panel_1.setLayout(gl_panel_1);
+
+ jScrollPane4 = new JScrollPane();
+ jScrollPane4.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
+ splitPane.setRightComponent(jScrollPane4);
+
+
+ jScrollPane4.setViewportView(panel_2);
+ javax.swing.SwingUtilities.invokeLater(new Runnable() {
+ public void run() {
+ jScrollPane4.getVerticalScrollBar().setValue(0);
+ }
+ });
+ introduction.setCaretPosition(0);
panel.setLayout(gl_panel);
/////////////////////////////////////////////////////////
// display the tests available
// get the tests
HashMap<String, ArrayList<TestName>> testsRelevantByGroup = connectorClientDB.getRelevantTestsByGroup();
ArrayList<String> groups = new ArrayList<String>(testsRelevantByGroup.keySet());
// flatten hashmap into linkedlist
// tests = new LinkedList<>();
testsByName = new HashMap<String, TestName>();
for (String group : groups) {
// tests.addAll(testsRelevantByGroup.get(group));
for (TestName test : testsRelevantByGroup.get(group)) {
testsByName.put(test.getName(), test);
}
}
// define tree structure of the tests
DefaultMutableTreeNode root = new DefaultMutableTreeNode("All");
for (String group : groups) {
DefaultMutableTreeNode child = new DefaultMutableTreeNode(group);
root.add(child);
for (TestName test : testsRelevantByGroup.get(group)) {
DefaultMutableTreeNode grandChild = new DefaultMutableTreeNode(test.getName());
child.add(grandChild);
}
}
// define swing object
jTree = new JTree(root);
+ jTree.setFont(new Font("Tahoma", Font.PLAIN, 11));
for(int i=0;i<jTree.getRowCount();i++){
jTree.expandRow(i);
}
jScrollPane3.setViewportView(jTree);
// jTree.addTreeSelectionListener(new TreeSelectionListener() {
//
// @Override
// public void valueChanged(TreeSelectionEvent e) {
// tp = jTree.getSelectionPaths();
// }
// });
jScrollPane3.setViewportView(jTree);
/////////////////////////////////////////////////////////
// display the patients registered
patients = connectorClientDB.getPatients();
for (Integer patientId : patients) {
jComboBox1.addItem(patientId.toString());
}
} catch (SQLException ex) {
Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex);
ex.printStackTrace();
// } catch (IOException e) {
// // TODO Auto-generated catch block
// e.printStackTrace();
// } catch (DocumentException e) {
// // TODO Auto-generated catch block
// e.printStackTrace();
}
}
/**
* 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() {
-
- jPanel1 = new javax.swing.JPanel();
- jLabel2 = new javax.swing.JLabel();
- jLabel1 = new javax.swing.JLabel();
jPanel2 = new javax.swing.JPanel();
jComboBox1 = new javax.swing.JComboBox<String>();
+ jComboBox1.setFont(new Font("Tahoma", Font.BOLD, 12));
jButton1 = new javax.swing.JButton();
jButton1.setFont(new Font("Tahoma", Font.BOLD, 12));
jLabel3 = new javax.swing.JLabel();
jLabel4 = new javax.swing.JLabel();
jScrollPane3 = new javax.swing.JScrollPane();
jScrollPane2 = new javax.swing.JScrollPane();
+ jScrollPane2.setMinimumSize(new Dimension(5, 5));
jMenuBar1 = new javax.swing.JMenuBar();
jMenu1 = new javax.swing.JMenu();
jMenuItem1 = new javax.swing.JMenuItem();
jMenu2 = new javax.swing.JMenu();
dialog = new JDialog();
tabbedPane = new JTabbedPane(JTabbedPane.TOP);
+ tabbedPane.setFont(new Font("Tahoma", Font.BOLD, 12));
setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
addWindowListener(new WindowAdapter() {
@Override
public void windowClosing(java.awt.event.WindowEvent windowEvent) {
if (!survey_submitted && close_trials <= 2){
JOptionPane.showMessageDialog(frame, "Before closing the application, please fill in and submit the questionnaire.");
close_trials++;
tabbedPane.setSelectedIndex(1);
}else{
System.exit(0);
}
}
});
- setTitle("HIV Pharmacogenomics\n");
-
- jLabel2.setIcon(new javax.swing.ImageIcon("res/shcs_logo2_small.gif")); // NOI18N
-
- jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
- jLabel1.setText("HIV Pharmacogenomics | Project #693");
-
- javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
- jPanel1.setLayout(jPanel1Layout);
- jPanel1Layout.setHorizontalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap(71, Short.MAX_VALUE)
- .addComponent(jLabel1)
- .addGap(18, 18, 18)
- .addComponent(jLabel2))
- );
- jPanel1Layout.setVerticalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jLabel1)
- .addGap(11, 11, 11))
- .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)
- );
+ setTitle("Privacy-Preserving HIV Pharmacogenomics\r\n");
jPanel2.setBackground(new java.awt.Color(255, 255, 255));
jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<String>(new String[]{"Select Patient"}));
jButton1.setText("Run Test");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});
JLabel lblNewLabel = new JLabel("");
lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
lblNewLabel.setIcon(new javax.swing.ImageIcon("res/gears.png"));
javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
jPanel2Layout.setHorizontalGroup(
jPanel2Layout.createParallelGroup(Alignment.LEADING)
.addComponent(jComboBox1, 0, 248, Short.MAX_VALUE)
.addGroup(jPanel2Layout.createSequentialGroup()
.addGap(75)
.addGroup(jPanel2Layout.createParallelGroup(Alignment.TRAILING)
.addComponent(jButton1)
.addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 75, GroupLayout.PREFERRED_SIZE))
.addContainerGap(98, Short.MAX_VALUE))
);
jPanel2Layout.setVerticalGroup(
jPanel2Layout.createParallelGroup(Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addComponent(jComboBox1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
.addPreferredGap(ComponentPlacement.RELATED, 223, Short.MAX_VALUE)
.addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE)
.addPreferredGap(ComponentPlacement.RELATED)
.addComponent(jButton1)
.addGap(19))
);
jPanel2.setLayout(jPanel2Layout);
jLabel3.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
jLabel3.setText("Select Patient");
jLabel4.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
jLabel4.setText("Select Test");
jScrollPane3.setBackground(new java.awt.Color(255, 255, 255));
jMenu1.setText("File");
jMenuItem1.setText("Exit");
jMenu1.add(jMenuItem1);
jMenuBar1.add(jMenu1);
jMenu2.setText("Edit");
jMenuBar1.add(jMenu2);
setJMenuBar(jMenuBar1);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
layout.setHorizontalGroup(
layout.createParallelGroup(Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addGroup(layout.createParallelGroup(Alignment.LEADING, false)
- .addComponent(jLabel3)
.addComponent(jLabel4)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, 244, Short.MAX_VALUE)
- .addComponent(jScrollPane3))
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 970, Short.MAX_VALUE))
- .addContainerGap())
+ .addComponent(jLabel3)
+ .addComponent(jScrollPane3, GroupLayout.DEFAULT_SIZE, 234, Short.MAX_VALUE)
+ .addComponent(jPanel2, 0, 0, Short.MAX_VALUE))
+ .addPreferredGap(ComponentPlacement.RELATED)
+ .addComponent(tabbedPane, GroupLayout.PREFERRED_SIZE, 751, Short.MAX_VALUE)
+ .addGap(19))
);
layout.setVerticalGroup(
- layout.createParallelGroup(Alignment.LEADING)
+ layout.createParallelGroup(Alignment.TRAILING)
.addGroup(layout.createSequentialGroup()
+ .addContainerGap()
.addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel4))
- .addPreferredGap(ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(Alignment.LEADING)
+ .addComponent(tabbedPane, Alignment.LEADING, GroupLayout.PREFERRED_SIZE, 687, Short.MAX_VALUE)
.addGroup(layout.createSequentialGroup()
- .addComponent(jScrollPane3, GroupLayout.PREFERRED_SIZE, 388, GroupLayout.PREFERRED_SIZE)
+ .addComponent(jLabel4)
+ .addPreferredGap(ComponentPlacement.RELATED)
+ .addComponent(jScrollPane3, GroupLayout.PREFERRED_SIZE, 356, GroupLayout.PREFERRED_SIZE)
.addPreferredGap(ComponentPlacement.RELATED)
.addComponent(jLabel3)
.addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 785, Short.MAX_VALUE))
+ .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, 283, Short.MAX_VALUE)))
.addContainerGap())
);
jScrollPane2.setAutoscrolls(true);
jScrollPane3.setAutoscrolls(true);
tabbedPane.addTab("Report", new ImageIcon("res/report_icon.gif"), jScrollPane2, null);
tabbedPane.setBackgroundAt(0, new Color(255, 255, 255));
panel = new JPanel();
+ panel.setPreferredSize(new Dimension(0, 0));
tabbedPane.addTab("Survey", new ImageIcon("res/survey_icon.png"), panel, null);
tabbedPane.setBackgroundAt(1, new Color(255, 255, 255));
tabbedPane.setEnabledAt(1, true);
-
- panel_1 = new JPanel();
- panel_1.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
- panel_1.setBackground(SystemColor.control);
-
- JLabel label = new JLabel("");
- label.setIcon(new ImageIcon("res/shcs_logo2_medium.gif"));
-
- lblDearDoctor = new JLabel("Dear Doctor,");
- lblDearDoctor.setFont(new Font("Tahoma", Font.BOLD, 14));
-
- JScrollPane scrollPane = new JScrollPane();
- scrollPane.setBorder(null);
- GroupLayout gl_panel_1 = new GroupLayout(panel_1);
- gl_panel_1.setHorizontalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(Alignment.LEADING, gl_panel_1.createSequentialGroup()
- .addGap(25)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addComponent(lblDearDoctor)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 661, Short.MAX_VALUE))
- .addContainerGap())
- );
- gl_panel_1.setVerticalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addContainerGap()
- .addComponent(lblDearDoctor)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 203, Short.MAX_VALUE))
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(36)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 96, GroupLayout.PREFERRED_SIZE)))
- .addContainerGap())
- );
-
- JTextPane txtpnTodayYouAre = new JTextPane();
- txtpnTodayYouAre.setBorder(null);
- txtpnTodayYouAre.setText("Today you are receiving a pharmacogenetics report based on the genome of your patient. Because of its highly sensitive nature, " +
- "the genetic information you are provided with is processed in a privacy-preserving way. In particular, to protect patients’ genomic privacy, " +
- "their genetic and clinical data is stored encrypted at the SHCS data center, and securely analyzed through a sophisticated algorithm designed and developed at EPFL [1, 2]. " +
- "The actual clinical and genetic information is never revealed. Only the authorized users, such as you, can get some processed information, for example, the final result of a " +
- "pharmacogenetics risk test.\nThis mechanism protects the data against insiders or hackers trying to illegally access patients’ medical information, while still allowing authorized " +
- "users to obtain the information they need." +
- "\n\nTo help us understanding the importance of genomic privacy in the medical domain, and the impact of privacy-enhancing technologies in daily clinical practice, please complete the following survey.");
- txtpnTodayYouAre.setFont(new Font("Tahoma", Font.PLAIN, 13));
- txtpnTodayYouAre.setEditable(false);
- txtpnTodayYouAre.setBackground(SystemColor.control);
- scrollPane.setViewportView(txtpnTodayYouAre);
- panel_1.setLayout(gl_panel_1);
- jScrollPane4 = new javax.swing.JScrollPane();
- jScrollPane4.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
getContentPane().setLayout(layout);
buttonGroupMap = new HashMap<Integer, ButtonGroup>();
ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
CommAdapter commHandlerAdapter = new CommAdapter(connection);
ReplySurvey replySurvey = commHandlerAdapter.callServiceSurvey();
map = replySurvey.getQuestions();
ids = map.keySet();
locations = replySurvey.getLocations();
+ buttonGroupMap = new HashMap<Integer, ButtonGroup>();
+
panel_2 = new JPanel();
- panel_2.setBackground(Color.WHITE);
+ panel_2.addMouseListener(new MouseAdapter() {
+ @Override
+ public void mouseClicked(MouseEvent arg0) {
+ splitPane.setDividerLocation(0.0);
+ }
+ });
panel_2.setBorder(null);
- jScrollPane4.setViewportView(panel_2);
+ panel_2.setBackground(Color.WHITE);
panel_2.setLayout(new BoxLayout(panel_2, BoxLayout.Y_AXIS));
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
-
+
+
+
+ //dynamic question generation
int type = 0;
for(Integer id : ids){
ButtonGroup group = new ButtonGroup();
- JRadioButton r1 = new JRadioButton("1"); r1.setActionCommand("1"); r1.setBackground(Color.WHITE);
- JRadioButton r2 = new JRadioButton("2"); r2.setActionCommand("2"); r2.setBackground(Color.WHITE);
- JRadioButton r3 = new JRadioButton("3"); r3.setActionCommand("3"); r3.setBackground(Color.WHITE);
- JRadioButton r4 = new JRadioButton("4"); r4.setActionCommand("4"); r4.setBackground(Color.WHITE);
- JRadioButton r5 = new JRadioButton("5"); r5.setActionCommand("5"); r5.setBackground(Color.WHITE);
+ JRadioButton r1 = new JRadioButton("1"); r1.setActionCommand("1"); r1.setBackground(Color.WHITE);
+ JRadioButton r2 = new JRadioButton("2"); r2.setActionCommand("2"); r2.setBackground(Color.WHITE);
+ JRadioButton r3 = new JRadioButton("3"); r3.setActionCommand("3"); r3.setBackground(Color.WHITE);
+ JRadioButton r4 = new JRadioButton("4"); r4.setActionCommand("4"); r4.setBackground(Color.WHITE);
+ JRadioButton r5 = new JRadioButton("5"); r5.setActionCommand("5"); r5.setBackground(Color.WHITE);
group.add(r1);
group.add(r2);
group.add(r3);
group.add(r4);
group.add(r5);
JPanel radio_panel = new JPanel();
radio_panel.setLayout((new BoxLayout(radio_panel, BoxLayout.X_AXIS)));
radio_panel.setBackground(Color.WHITE);
radio_panel.setAlignmentX(Component.CENTER_ALIGNMENT);
radio_panel.add(r1);
radio_panel.add(r2);
radio_panel.add(r3);
radio_panel.add(r4);
radio_panel.add(r5);
radio_panel.doLayout();
radio_panel.setPreferredSize(radio_panel.getPreferredSize());
JTextArea question = new JTextArea(id + ") " + map.get(id).getQuestion());
question.setEditable(false);
question.setLineWrap(true);
question.setWrapStyleWord(true);
question.setFont(new Font("Tahoma", Font.PLAIN, 13));
JPanel row_panel = new JPanel();
row_panel.setLayout(new BoxLayout(row_panel, BoxLayout.X_AXIS));
row_panel.add(Box.createRigidArea(new Dimension(20,0)));
row_panel.add(question);
row_panel.add(Box.createRigidArea(new Dimension(20,0)));
row_panel.add(radio_panel);
row_panel.add(Box.createRigidArea(new Dimension(20,0)));
row_panel.setBackground(Color.WHITE);
int type_new = map.get(id).getType();
if(type_new != type){
type = type_new;
JLabel question_group = new JLabel("");
switch(type){
case 1:
question_group.setText("Clinical Utility");
break;
case 2:
question_group.setText("Privacy Concerns");
break;
case 3:
question_group.setText("Usability Assessment");
break;
}
question_group.setAlignmentX(Component.CENTER_ALIGNMENT);
question_group.setFont(new Font("Tahoma", Font.BOLD, 13));
+ panel_2.add(new JSeparator());
panel_2.add(Box.createRigidArea(new Dimension(0,5)));
panel_2.add(question_group);
panel_2.add(Box.createRigidArea(new Dimension(0,5)));
panel_2.add(new JSeparator());
panel_2.add(Box.createRigidArea(new Dimension(0,5)));
}
panel_2.add(Box.createRigidArea(new Dimension(0,5)));
panel_2.add(row_panel);
panel_2.add(Box.createRigidArea(new Dimension(0,5)));
// panel_2.add(radio_panel);
- panel_2.add(new JSeparator());
+// panel_2.add(new JSeparator());
panel_2.add(Box.createRigidArea(new Dimension(0,5)));
// panel_2.setPreferredSize(panel_2.getPreferredSize());
buttonGroupMap.put(id, group);
}
+
+
+
-
- this.setSize(new Dimension(1300, 865));
-// pack();
+ this.setSize(new Dimension(1118, 768));
+// this.pack();
}// </editor-fold>//GEN-END:initComponents
private void submitButtonActionPerformed(java.awt.event.ActionEvent evt){
try{
answers = new HashMap<String, String>();
StringBuilder sb = new StringBuilder();
Set<Integer> questions_id = buttonGroupMap.keySet();
for(Integer q: questions_id){
ButtonGroup bg = buttonGroupMap.get(q);
sb.append(q).append(",");
sb.append(bg.getSelection().getActionCommand()).append(";");
answers.put(q.toString(),bg.getSelection().getActionCommand());
}
String answer = sb.toString();
Integer id_loc = null;
for(Integer i: locations.keySet()){
if(locations.get(i).equals(comboBox.getSelectedItem().toString()))
id_loc = i;
}
String id_p;
if(jComboBox1.getSelectedItem().toString().equals("Select Patient"))
id_p = "0";
else
id_p = jComboBox1.getSelectedItem().toString();
ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
CommAdapter commHandlerAdapter = new CommAdapter(connection);
String reply = commHandlerAdapter.callServiceSurveyAnswer(answer, id_loc.toString(), id_p);
if(reply.equals("1")){
survey_submitted = true;
dialog.setVisible(false);
JOptionPane.showMessageDialog(
this,
"Congrats! Your aswers have been sent to the SHCS datacenter.",
"Information Message",
JOptionPane.INFORMATION_MESSAGE);
+ btnSubmitQuestionnaire.setEnabled(false);
}
else{
throw new IOException();
}
} catch (NullPointerException e){
LOGGER.log(Level.SEVERE, null, e);
dialog.setVisible(false);
JOptionPane.showMessageDialog(
this,
"Please respond to all the questions!",
"Error Message",
JOptionPane.ERROR_MESSAGE);
} catch (IOException e) {
LOGGER.log(Level.SEVERE, null, e);
dialog.setVisible(false);
JOptionPane.showMessageDialog(
this,
"The SHCS datacenter does not respond. Please save the survey and send it to jean.raisaro@epfl.ch.",
"Error Message",
JOptionPane.ERROR_MESSAGE);
}
}
private void savePDFButtonActionPerformed(java.awt.event.ActionEvent evt){
try {
answers = new HashMap<String, String>();
Set<Integer> questions_id = buttonGroupMap.keySet();
for(Integer q: questions_id){
ButtonGroup bg = buttonGroupMap.get(q);
answers.put(q.toString(),bg.getSelection().getActionCommand());
}
JFileChooser chooser = new JFileChooser();
// Note: source for ExampleFileFilter can be found in FileChooserDemo,
// under the demo/jfc directory in the JDK.
int returnVal = chooser.showSaveDialog(this);
System.out.println(returnVal);
if(returnVal == JFileChooser.APPROVE_OPTION) {
System.out.println("You chose to open this file: " +
chooser.getSelectedFile().getPath());
quest = new Questionnaire(chooser.getSelectedFile().getPath() + ".pdf");
quest.createPdf(map, ids);
quest.writeAnswers(answers);
survey_submitted = true;
}else{
quest = new Questionnaire("outputPDF/survey.pdf");
quest.createPdf(map, ids);
quest.writeAnswers(answers);
survey_submitted = true;
}
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (DocumentException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (NullPointerException e) {
LOGGER.log(Level.SEVERE, null, e);
dialog.setVisible(false);
JOptionPane.showMessageDialog(
this,
"Please respond to all the questions!",
"Error Message",
JOptionPane.ERROR_MESSAGE);
}
}
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
JPanel contentPanel = new JPanel();
- dialog.setBounds(100, 100, 410, 80);
+ dialog.setBounds(100, 100, 420, 100);
dialog.getContentPane().setLayout(new BorderLayout());
contentPanel.setLayout(new FlowLayout());
contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
dialog.getContentPane().add(contentPanel, BorderLayout.CENTER);
{
- JLabel label = new JLabel("Please wait...The overall computation can take few seconds");
+ JLabel label = new JLabel("Please wait...The overall computation can take some seconds!");
+ JLabel label2 = new JLabel("Cryptographic operations are being performed at the SHCS...");
label.setHorizontalAlignment(SwingConstants.CENTER);
- label.setFont(new Font("Tahoma", Font.PLAIN, 12));
+ label.setFont(new Font("Tahoma", Font.BOLD, 12));
+ label2.setHorizontalAlignment(SwingConstants.CENTER);
+ label2.setFont(new Font("Tahoma", Font.PLAIN, 12));
contentPanel.add(label);
+ contentPanel.add(label2);
}
{
JPanel buttonPane = new JPanel();
buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
dialog.getContentPane().add(buttonPane, BorderLayout.SOUTH);
}
dialog.setLocationRelativeTo(this);
dialog.setVisible(true);
GUIWorker gw = new GUIWorker(this, props);
Thread t = new Thread(gw);
t.start();
}
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JButton jButton1;
private javax.swing.JComboBox<String> jComboBox1;
- private javax.swing.JLabel jLabel1;
- private javax.swing.JLabel jLabel2;
private javax.swing.JLabel jLabel3;
private javax.swing.JLabel jLabel4;
private javax.swing.JMenu jMenu1;
private javax.swing.JMenu jMenu2;
private javax.swing.JMenuBar jMenuBar1;
private javax.swing.JMenuItem jMenuItem1;
- private javax.swing.JPanel jPanel1;
private javax.swing.JPanel jPanel2;
private javax.swing.JScrollPane jScrollPane3;
private javax.swing.JTabbedPane tabbedPane;
private javax.swing.JScrollPane jScrollPane2;
- private javax.swing.JScrollPane jScrollPane4;
private JPanel panel;
- private JPanel panel_1;
- private JPanel panel_2;
- private JLabel lblDearDoctor;
private JLabel lblNewLabel_1;
private JLabel lblNewLabel_2;
private JLabel lblNewLabel_3;
private JComboBox<String> comboBox;
private Component rigidArea;
+ private JSplitPane splitPane;
+ private JPanel panel_1;
+ private JLabel label_1;
+ private JLabel label_2;
+ private JLabel label_3;
+ private JLabel label_4;
+ private JScrollPane scrollPane;
+ private JTextPane introduction;
+ private JScrollPane jScrollPane4;
+ private JPanel panel_2;
// End of variables declaration//GEN-END:variables
class GUIWorker implements Runnable{
private JFrame mainFrame;
private ClientProperties props;
private MedUnit mu;
public GUIWorker(GUI gui, ClientProperties props) {
mainFrame = gui;
this.props = props;
this.mu = new MedUnit(props, 0);
}
@Override
public void run() {
try{
int patientId = Integer.parseInt((String) jComboBox1.getSelectedItem());
// convert selected tests to test identifiers
ArrayList<TestName> selectedTests = new ArrayList<TestName>();
for (String currentName : getSelectedTests()) {
TestName currentTest = testsByName.get(currentName);
if (currentTest == null) {
throw new IllegalStateException("Trying to run unknown test: " + currentTest);
}
selectedTests.add(currentTest);
}
// run tests
Diagnostic diagnostic = mu.runTests(patientId, selectedTests);
// warn for tests with missing material
warnFailedTests(diagnostic, selectedTests);
// create report
mu.createReport(patientId, selectedTests, diagnostic);
dialog.setVisible(false);
// specify file you wish to open (JPedal handles getting the byte data)
String filepathReport = props.getPathPDF() + patientId + ".pdf";
// open generated PDF
// object must be either String in full filepath, or
// File object which can be relative
Object[] input = new Object[]{ new File(filepathReport) };
viewer.executeCommand(Commands.OPENFILE, input);
// display CAD result as bar plot
if (diagnostic.hasCAD()) {
System.out.println("CAD = " + diagnostic.getResultCAD());
BarPlotFrame frame = new BarPlotFrame(diagnostic.getResultCAD(), patientId);
frame.setVisible(true);
frame.setAlwaysOnTop(true);
}
} catch (SQLException e) {
LOGGER.log(Level.SEVERE, null, e);
displayError("Not able to connect to service. Please try again.");
} catch (IOException e) {
LOGGER.log(Level.SEVERE, null, e);
displayError("Not able to connect to service. Please try again.");
} catch (NullPointerException e){
LOGGER.log(Level.SEVERE, null, e);
- displayError("Please select a patient.");
+ displayError("Please select a patient and one or multiple tests.");
+ } catch (NumberFormatException e){
+ LOGGER.log(Level.SEVERE, null, e);
+ displayError("Please select a patient and one or multiple tests.");
}
}
private void warnFailedTests(Diagnostic diagnostic, ArrayList<TestName> selectedTests) {
ArrayList<Integer> failedTests = diagnostic.getInvalidTests();
if (!failedTests.isEmpty()) {
String msg = "Could not complete tests: ";
boolean first = true;
for (TestName testName : selectedTests) {
if (failedTests.contains(testName.getId())) {
if (first) {
first = false;
} else {
msg += ", ";
}
msg += testName.getName();
}
}
displayError(msg);
}
}
private void displayError(String msg) {
dialog.setVisible(false);
JOptionPane.showMessageDialog(
mainFrame,
msg,
"Error Message",
JOptionPane.ERROR_MESSAGE);
}
private ArrayList<String> getSelectedTests() {
ArrayList<String> tests = new ArrayList<String>();
for (TreePath treePath : jTree.getSelectionPaths()) {
tests.addAll(getChildrenTests(jTree.getModel(), treePath.getLastPathComponent()));
}
return tests;
}
private ArrayList<String> getChildrenTests(TreeModel model, Object node) {
ArrayList<String> tests = new ArrayList<String>();
if (model.isLeaf(node)) { // leaf
DefaultMutableTreeNode leaf = (DefaultMutableTreeNode) node;
tests.add(leaf.toString());
}
else { // iterate over children
for (int i = 0; i < model.getChildCount(node); i++) {
tests.addAll(getChildrenTests(model, model.getChild(node, i)));
}
}
return tests;
}
}
}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/9/0040242af3a60014162f978bbd19228b b/.metadata/.plugins/org.eclipse.core.resources/.history/9/0040242af3a60014162f978bbd19228b
deleted file mode 100644
index 644697d..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/9/0040242af3a60014162f978bbd19228b
+++ /dev/null
@@ -1,53 +0,0 @@
-package io;
-
-import java.io.IOException;
-
-import com.itextpdf.text.DocumentException;
-import com.itextpdf.text.Rectangle;
-import com.itextpdf.text.pdf.GrayColor;
-import com.itextpdf.text.pdf.PdfContentByte;
-import com.itextpdf.text.pdf.PdfFormField;
-import com.itextpdf.text.pdf.PdfPCell;
-import com.itextpdf.text.pdf.PdfPCellEvent;
-import com.itextpdf.text.pdf.PdfWriter;
-import com.itextpdf.text.pdf.RadioCheckField;
-
-public class RadioGroup implements PdfPCellEvent{
-
- protected int id;
-
- public RadioGroup(int ID){
- this.id = ID;
- }
-
- @Override
- public void cellLayout(PdfPCell cell, Rectangle position,
- PdfContentByte[] canvases) {
- PdfWriter writer = canvases[0].getPdfWriter();
- PdfFormField radiogroup = PdfFormField.createRadioButton(writer, true);
- radiogroup.setFieldName(String.valueOf(id));
-
- RadioCheckField radio;
- PdfFormField radiofield;
-
- for(int i=0; i<5; i++){
- radio = new RadioCheckField(writer, position, null, String.valueOf(i+1));
- radio.setBackgroundColor(new GrayColor(0.8f));
- try {
- radiofield = radio.getRadioField();
- radiogroup.addKid(radiofield);
-
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (DocumentException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
-
-
- }
- writer.addAnnotation(radiogroup);
-
-
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/9/609abc8c4cac001410e2e30aa85db9d1 b/.metadata/.plugins/org.eclipse.core.resources/.history/9/609abc8c4cac001410e2e30aa85db9d1
deleted file mode 100644
index 537d243..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/9/609abc8c4cac001410e2e30aa85db9d1
+++ /dev/null
@@ -1,892 +0,0 @@
-package ui;
-
-import io.ClientConnection;
-import io.CommAdapter;
-import io.Questionnaire;
-
-import java.awt.BorderLayout;
-import java.awt.Color;
-import java.awt.Component;
-import java.awt.Dimension;
-import java.awt.FlowLayout;
-import java.awt.Font;
-import java.awt.SystemColor;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.awt.event.WindowAdapter;
-import java.io.File;
-import java.io.IOException;
-import java.sql.SQLException;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.LinkedList;
-import java.util.Map;
-import java.util.Set;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
-import javax.swing.Box;
-import javax.swing.BoxLayout;
-import javax.swing.ButtonGroup;
-import javax.swing.DefaultComboBoxModel;
-import javax.swing.GroupLayout;
-import javax.swing.GroupLayout.Alignment;
-import javax.swing.ImageIcon;
-import javax.swing.JButton;
-import javax.swing.JComboBox;
-import javax.swing.JDialog;
-import javax.swing.JFileChooser;
-import javax.swing.JFrame;
-import javax.swing.JLabel;
-import javax.swing.JOptionPane;
-import javax.swing.JPanel;
-import javax.swing.JRadioButton;
-import javax.swing.JScrollPane;
-import javax.swing.JSeparator;
-import javax.swing.JTabbedPane;
-import javax.swing.JTextArea;
-import javax.swing.JTextPane;
-import javax.swing.JTree;
-import javax.swing.LayoutStyle.ComponentPlacement;
-import javax.swing.SwingConstants;
-import javax.swing.UIManager;
-import javax.swing.border.BevelBorder;
-import javax.swing.border.EmptyBorder;
-import javax.swing.border.EtchedBorder;
-import javax.swing.tree.DefaultMutableTreeNode;
-import javax.swing.tree.TreeModel;
-import javax.swing.tree.TreePath;
-
-import org.jpedal.examples.viewer.Commands;
-import org.jpedal.examples.viewer.Viewer;
-
-import utils.ClientProperties;
-
-import com.itextpdf.text.DocumentException;
-
-import database.DBconnectorClient;
-import framework.Diagnostic;
-import framework.MedUnit;
-import framework.Question;
-import framework.reply.ReplySurvey;
-import framework.test.TestName;
-
-/**
- *
- * @author youssef, raisaro
- */
-public class GUI extends javax.swing.JFrame {
-
- private static final Logger LOGGER = Logger.getLogger(GUI.class.getName());
-
- private static final long serialVersionUID = -4582280515597700650L;
-
- // configuration
- private ClientProperties props;
-
- private JTree jTree;
- private DBconnectorClient connectorClientDB;
- private LinkedList<Integer> patients;
-
- /** List of all relevant tests */
- private HashMap<String, TestName> testsByName;
- private Viewer viewer;
- private JDialog dialog;
- private JFrame frame;
- private boolean survey_submitted;
- private int close_trials;
- private Map<Integer, ButtonGroup> buttonGroupMap;
- private Questionnaire quest;
- private Map<Integer, Question> map;
- private Set<Integer> ids;
- private Map<String,String> answers;
- private Map<Integer, String> locations;
-
-
- /**
- * Creates new form GUI
- */
- public GUI(ClientProperties props){
-
- frame = this;
- this.props = props;
- this.connectorClientDB = new DBconnectorClient(props.getDbMsAccess());
- survey_submitted = false;
- close_trials = 0;
-
-
- try {
- initComponents();
-
- viewer = new Viewer(jScrollPane2, null);
- viewer.setupViewer();
-
- // create questionnare
-
-
- System.out.println("#of questions: " + ids.size());
-
-// viewer_q = new Viewer(jScrollPane4, null);
-// viewer_q.setupViewer();
-//
-// // specify file you wish to open (JPedal handles getting the byte data)
-// String filepathReport = "outputPDF/buttons_filled.pdf";
-//
-// // open generated PDF
-// // object must be either String in full filepath, or
-// // File object which can be relative
-// Object[] input = new Object[]{ new File(filepathReport) };
-// viewer_q.executeCommand(Commands.OPENFILE, input);
-
- JButton btnSubmitQuestionnaire = new JButton("Submit Questionnaire");
- btnSubmitQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- btnSubmitQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- submitButtonActionPerformed(arg0);
- }
- });
- JButton btnResetQuestionnaire = new JButton("Save as PDF");
- btnResetQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- savePDFButtonActionPerformed(arg0);
- }
- });
- btnResetQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- JPanel panel_button = new JPanel();
- panel_button.setLayout(new BoxLayout(panel_button, BoxLayout.X_AXIS));
-
- lblNewLabel_3 = new JLabel("");
- lblNewLabel_3.setIcon(new ImageIcon("res/location_icon.png"));
- panel_button.add(lblNewLabel_3);
-
-
-
- comboBox = new JComboBox<String>();
- comboBox.setFont(new Font("Tahoma", Font.BOLD, 12));
- comboBox.setModel(new DefaultComboBoxModel<String>(new String[] {"Select Location"}));
- for(Integer id_loc : locations.keySet()){
- comboBox.addItem(locations.get(id_loc));
- }
-
-
- panel_button.add(comboBox);
-
- rigidArea = Box.createRigidArea(new Dimension(10, 0));
- panel_button.add(rigidArea);
-
- lblNewLabel_1 = new JLabel("");
- lblNewLabel_1.setIcon(new ImageIcon("res/submit.png"));
- panel_button.add(lblNewLabel_1);
- panel_button.add(btnSubmitQuestionnaire);
-
- panel_button.add(Box.createRigidArea(new Dimension(10,0)));
-
- lblNewLabel_2 = new JLabel("");
- lblNewLabel_2.setIcon(new ImageIcon("res/pdf.png"));
- panel_button.add(lblNewLabel_2);
- panel_button.add(btnResetQuestionnaire);
- panel_button.setPreferredSize(new Dimension(211, 35));
- panel_button.validate();
-
- JPanel panel_3 = new JPanel();
- GroupLayout gl_panel = new GroupLayout(panel);
- gl_panel.setHorizontalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(41)
- .addGroup(gl_panel.createParallelGroup(Alignment.TRAILING)
- .addComponent(jScrollPane4, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE)
- .addComponent(panel_1, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE))
- .addGap(32))
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(63)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addGap(103)
- .addComponent(panel_button, GroupLayout.DEFAULT_SIZE, 488, Short.MAX_VALUE)
- .addGap(241))
- );
- gl_panel.setVerticalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(22)
- .addComponent(panel_1, GroupLayout.DEFAULT_SIZE, 192, Short.MAX_VALUE)
- .addGap(18)
- .addComponent(jScrollPane4, GroupLayout.DEFAULT_SIZE, 437, Short.MAX_VALUE)
- .addGap(26)
- .addGroup(gl_panel.createParallelGroup(Alignment.LEADING)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(panel_button, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE)))
- );
- panel_3.setLayout(new BoxLayout(panel_3, BoxLayout.X_AXIS));
-
-
- panel.setLayout(gl_panel);
-
-
-
-
-
-
- /////////////////////////////////////////////////////////
- // display the tests available
-
- // get the tests
- HashMap<String, ArrayList<TestName>> testsRelevantByGroup = connectorClientDB.getRelevantTestsByGroup();
- ArrayList<String> groups = new ArrayList<String>(testsRelevantByGroup.keySet());
-
- // flatten hashmap into linkedlist
-// tests = new LinkedList<>();
- testsByName = new HashMap<String, TestName>();
- for (String group : groups) {
-// tests.addAll(testsRelevantByGroup.get(group));
- for (TestName test : testsRelevantByGroup.get(group)) {
- testsByName.put(test.getName(), test);
- }
- }
-
- // define tree structure of the tests
- DefaultMutableTreeNode root = new DefaultMutableTreeNode("All");
-
- for (String group : groups) {
- DefaultMutableTreeNode child = new DefaultMutableTreeNode(group);
- root.add(child);
-
- for (TestName test : testsRelevantByGroup.get(group)) {
- DefaultMutableTreeNode grandChild = new DefaultMutableTreeNode(test.getName());
- child.add(grandChild);
- }
- }
-
- // define swing object
- jTree = new JTree(root);
-
- for(int i=0;i<jTree.getRowCount();i++){
- jTree.expandRow(i);
- }
-
- jScrollPane3.setViewportView(jTree);
-// jTree.addTreeSelectionListener(new TreeSelectionListener() {
-//
-// @Override
-// public void valueChanged(TreeSelectionEvent e) {
-// tp = jTree.getSelectionPaths();
-// }
-// });
- jScrollPane3.setViewportView(jTree);
-
- /////////////////////////////////////////////////////////
- // display the patients registered
-
- patients = connectorClientDB.getPatients();
- for (Integer patientId : patients) {
- jComboBox1.addItem(patientId.toString());
- }
-
- } catch (SQLException ex) {
- Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex);
- ex.printStackTrace();
-// } catch (IOException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
-// } catch (DocumentException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
- }
-
- }
-
- /**
- * 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() {
-
- jPanel1 = new javax.swing.JPanel();
- jLabel2 = new javax.swing.JLabel();
- jLabel1 = new javax.swing.JLabel();
- jPanel2 = new javax.swing.JPanel();
- jComboBox1 = new javax.swing.JComboBox<String>();
- jButton1 = new javax.swing.JButton();
- jButton1.setFont(new Font("Tahoma", Font.BOLD, 12));
- jLabel3 = new javax.swing.JLabel();
- jLabel4 = new javax.swing.JLabel();
- jScrollPane3 = new javax.swing.JScrollPane();
- jScrollPane2 = new javax.swing.JScrollPane();
- jMenuBar1 = new javax.swing.JMenuBar();
- jMenu1 = new javax.swing.JMenu();
- jMenuItem1 = new javax.swing.JMenuItem();
- jMenu2 = new javax.swing.JMenu();
- dialog = new JDialog();
- tabbedPane = new JTabbedPane(JTabbedPane.TOP);
-
- setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
- addWindowListener(new WindowAdapter() {
- @Override
- public void windowClosing(java.awt.event.WindowEvent windowEvent) {
- if (!survey_submitted && close_trials <= 2){
- JOptionPane.showMessageDialog(frame, "Before closing the application, please fill in and submit the questionnaire.");
- close_trials++;
- tabbedPane.setSelectedIndex(1);
- }else{
- System.exit(0);
- }
- }
- });
- setTitle("HIV Pharmacogenomics\n");
-
- jLabel2.setIcon(new javax.swing.ImageIcon("res/shcs_logo2_small.gif")); // NOI18N
-
- jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
- jLabel1.setText("HIV Pharmacogenomics | Project #693");
-
- javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
- jPanel1.setLayout(jPanel1Layout);
- jPanel1Layout.setHorizontalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap(71, Short.MAX_VALUE)
- .addComponent(jLabel1)
- .addGap(18, 18, 18)
- .addComponent(jLabel2))
- );
- jPanel1Layout.setVerticalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jLabel1)
- .addGap(11, 11, 11))
- .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)
- );
-
- jPanel2.setBackground(new java.awt.Color(255, 255, 255));
- jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
-
- jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<String>(new String[]{"Select Patient"}));
-
- jButton1.setText("Run Test");
- jButton1.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton1ActionPerformed(evt);
- }
- });
-
- JLabel lblNewLabel = new JLabel("");
- lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
- lblNewLabel.setIcon(new javax.swing.ImageIcon("res/gears.png"));
-
-
-
- javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
- jPanel2Layout.setHorizontalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addComponent(jComboBox1, 0, 248, Short.MAX_VALUE)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addGap(75)
- .addGroup(jPanel2Layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jButton1)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 75, GroupLayout.PREFERRED_SIZE))
- .addContainerGap(98, Short.MAX_VALUE))
- );
- jPanel2Layout.setVerticalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addComponent(jComboBox1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED, 223, Short.MAX_VALUE)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jButton1)
- .addGap(19))
- );
- jPanel2.setLayout(jPanel2Layout);
-
- jLabel3.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel3.setText("Select Patient");
-
- jLabel4.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel4.setText("Select Test");
-
- jScrollPane3.setBackground(new java.awt.Color(255, 255, 255));
-
- jMenu1.setText("File");
-
- jMenuItem1.setText("Exit");
- jMenu1.add(jMenuItem1);
-
- jMenuBar1.add(jMenu1);
-
- jMenu2.setText("Edit");
- jMenuBar1.add(jMenu2);
-
- setJMenuBar(jMenuBar1);
-
-
-
- javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
- layout.setHorizontalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(layout.createParallelGroup(Alignment.LEADING, false)
- .addComponent(jLabel3)
- .addComponent(jLabel4)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, 244, Short.MAX_VALUE)
- .addComponent(jScrollPane3))
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 970, Short.MAX_VALUE))
- .addContainerGap())
- );
- layout.setVerticalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel4))
- .addPreferredGap(ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addComponent(jScrollPane3, GroupLayout.PREFERRED_SIZE, 388, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jLabel3)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 785, Short.MAX_VALUE))
- .addContainerGap())
- );
-
-
- jScrollPane2.setAutoscrolls(true);
- jScrollPane3.setAutoscrolls(true);
- tabbedPane.addTab("Report", new ImageIcon("res/report_icon.gif"), jScrollPane2, null);
- tabbedPane.setBackgroundAt(0, new Color(255, 255, 255));
-
- panel = new JPanel();
- tabbedPane.addTab("Survey", new ImageIcon("res/survey_icon.png"), panel, null);
- tabbedPane.setBackgroundAt(1, new Color(255, 255, 255));
- tabbedPane.setEnabledAt(1, true);
-
- panel_1 = new JPanel();
- panel_1.setBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null));
- panel_1.setBackground(UIManager.getColor("Button.background"));
-
- JLabel label = new JLabel("");
- label.setIcon(new ImageIcon("res/shcs_logo2_medium.gif"));
-
- lblDearDoctor = new JLabel("Dear Doctor,");
- lblDearDoctor.setFont(new Font("Tahoma", Font.BOLD, 14));
-
- JScrollPane scrollPane = new JScrollPane();
- scrollPane.setBorder(null);
- GroupLayout gl_panel_1 = new GroupLayout(panel_1);
- gl_panel_1.setHorizontalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(25)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 666, Short.MAX_VALUE)
- .addComponent(lblDearDoctor))
- .addContainerGap())
- );
- gl_panel_1.setVerticalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(22)
- .addComponent(lblDearDoctor)
- .addGap(18)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 120, Short.MAX_VALUE)
- .addContainerGap())
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(36)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 96, GroupLayout.PREFERRED_SIZE)
- .addContainerGap(56, Short.MAX_VALUE))
- );
-
- JTextPane txtpnTodayYouAre = new JTextPane();
- txtpnTodayYouAre.setBorder(null);
- txtpnTodayYouAre.setText("Today you are receiving a pharmacogenetic report based on the genetic information of your patient. Because the human genome contains extremely private and sensitive information of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier, it must be managed with care.\r\nToday you are receiving a pharmacogenetic report based on the genetic information of your patient. Because the human genome contains extremely private and sensitive information of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier, it must be managed with care.\r\nToday you are receiving a pharmacogenetic report based on the genetic information of your patient. Because the human genome contains extremely private and sensitive information of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier, it must be managed with care.");
- txtpnTodayYouAre.setFont(new Font("Tahoma", Font.PLAIN, 13));
- txtpnTodayYouAre.setEditable(false);
- txtpnTodayYouAre.setBackground(SystemColor.menu);
- scrollPane.setViewportView(txtpnTodayYouAre);
- panel_1.setLayout(gl_panel_1);
- jScrollPane4 = new javax.swing.JScrollPane();
- getContentPane().setLayout(layout);
-
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
- ReplySurvey replySurvey = commHandlerAdapter.callServiceSurvey();
-
- map = replySurvey.getQuestions();
- ids = map.keySet();
- locations = replySurvey.getLocations();
-
- panel_2 = new JPanel();
- panel_2.setBackground(Color.WHITE);
- panel_2.setBorder(new BevelBorder(BevelBorder.LOWERED, null, null, null, null));
- jScrollPane4.setViewportView(panel_2);
- panel_2.setLayout(new BoxLayout(panel_2, BoxLayout.Y_AXIS));
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
-
-
- for(Integer id : ids){
- ButtonGroup group = new ButtonGroup();
- JRadioButton r1 = new JRadioButton("1"); r1.setActionCommand("1"); r1.setBackground(Color.WHITE);
- JRadioButton r2 = new JRadioButton("2"); r2.setActionCommand("2"); r2.setBackground(Color.WHITE);
- JRadioButton r3 = new JRadioButton("3"); r3.setActionCommand("3"); r3.setBackground(Color.WHITE);
- JRadioButton r4 = new JRadioButton("4"); r4.setActionCommand("4"); r4.setBackground(Color.WHITE);
- JRadioButton r5 = new JRadioButton("5"); r5.setActionCommand("5"); r5.setBackground(Color.WHITE);
- group.add(r1);
- group.add(r2);
- group.add(r3);
- group.add(r4);
- group.add(r5);
- JPanel radio_panel = new JPanel();
- radio_panel.setLayout((new BoxLayout(radio_panel, BoxLayout.X_AXIS)));
- radio_panel.setBackground(Color.WHITE);
- radio_panel.setAlignmentX(Component.CENTER_ALIGNMENT);
- radio_panel.add(r1);
- radio_panel.add(r2);
- radio_panel.add(r3);
- radio_panel.add(r4);
- radio_panel.add(r5);
- radio_panel.doLayout();
- radio_panel.setPreferredSize(radio_panel.getPreferredSize());
- JTextArea question = new JTextArea(id + ") " + map.get(id).getQuestion());
- question.setLineWrap(true);
- question.setWrapStyleWord(true);
- question.setAlignmentX(Component.CENTER_ALIGNMENT);
- question.setFont(new Font("Tahoma", Font.PLAIN, 13));
- JPanel row_panel = new JPanel();
- row_panel.setLayout(new BoxLayout(row_panel, BoxLayout.X_AXIS));
- row_panel.add(question);
- row_panel.add(Box.createRigidArea(new Dimension(10,0)));
- row_panel.add(radio_panel);
-
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- panel_2.add(row_panel);
-// panel_2.add(Box.createRigidArea(new Dimension(0,5)));
-// panel_2.add(radio_panel);
- panel_2.add(new JSeparator());
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- buttonGroupMap.put(id, group);
-
- }
-
-
-
- this.setSize(new Dimension(1200, 865));
-// pack();
- }// </editor-fold>//GEN-END:initComponents
-
-
- private void submitButtonActionPerformed(java.awt.event.ActionEvent evt){
-
- try{
- answers = new HashMap<String, String>();
- StringBuilder sb = new StringBuilder();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- sb.append(q).append(",");
- sb.append(bg.getSelection().getActionCommand()).append(";");
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- String answer = sb.toString();
- Integer id_loc = null;
- for(Integer i: locations.keySet()){
- if(locations.get(i).equals(comboBox.getSelectedItem().toString()))
- id_loc = i;
- }
-
- String id_p;
- if(jComboBox1.getSelectedItem().toString().equals("Select Patient"))
- id_p = "0";
- else
- id_p = jComboBox1.getSelectedItem().toString();
-
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
-
- String reply = commHandlerAdapter.callServiceSurveyAnswer(answer, id_loc.toString(), id_p);
-
- if(reply.equals("1")){
- survey_submitted = true;
-
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Congrats! Your aswers have been sent to the SHCS datacenter.",
- "Information Message",
- JOptionPane.INFORMATION_MESSAGE);
- }
- else{
- throw new IOException();
- }
-
-
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "The SHCS datacenter does not respond. Please save the survey and send it to jean.raisaro@epfl.ch.",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
- private void savePDFButtonActionPerformed(java.awt.event.ActionEvent evt){
- try {
-
- answers = new HashMap<String, String>();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- JFileChooser chooser = new JFileChooser();
- // Note: source for ExampleFileFilter can be found in FileChooserDemo,
- // under the demo/jfc directory in the JDK.
-
- int returnVal = chooser.showSaveDialog(this);
- System.out.println(returnVal);
- if(returnVal == JFileChooser.APPROVE_OPTION) {
- System.out.println("You chose to open this file: " +
- chooser.getSelectedFile().getPath());
- quest = new Questionnaire(chooser.getSelectedFile().getPath() + ".pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }else{
- quest = new Questionnaire("outputPDF/survey.pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }
-
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (DocumentException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (NullPointerException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
-
- private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
-
- JPanel contentPanel = new JPanel();
-
- dialog.setBounds(100, 100, 410, 80);
- dialog.getContentPane().setLayout(new BorderLayout());
- contentPanel.setLayout(new FlowLayout());
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- dialog.getContentPane().add(contentPanel, BorderLayout.CENTER);
- {
- JLabel label = new JLabel("Please wait...The overall computation can take few seconds");
- label.setHorizontalAlignment(SwingConstants.CENTER);
- label.setFont(new Font("Tahoma", Font.PLAIN, 12));
- contentPanel.add(label);
- }
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
- dialog.getContentPane().add(buttonPane, BorderLayout.SOUTH);
- }
- dialog.setLocationRelativeTo(this);
- dialog.setVisible(true);
-
- GUIWorker gw = new GUIWorker(this, props);
- Thread t = new Thread(gw);
- t.start();
-
- }
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JButton jButton1;
- private javax.swing.JComboBox<String> jComboBox1;
- private javax.swing.JLabel jLabel1;
- private javax.swing.JLabel jLabel2;
- private javax.swing.JLabel jLabel3;
- private javax.swing.JLabel jLabel4;
- private javax.swing.JMenu jMenu1;
- private javax.swing.JMenu jMenu2;
- private javax.swing.JMenuBar jMenuBar1;
- private javax.swing.JMenuItem jMenuItem1;
- private javax.swing.JPanel jPanel1;
- private javax.swing.JPanel jPanel2;
- private javax.swing.JScrollPane jScrollPane3;
- private javax.swing.JTabbedPane tabbedPane;
- private javax.swing.JScrollPane jScrollPane2;
- private javax.swing.JScrollPane jScrollPane4;
- private JPanel panel;
- private JPanel panel_1;
- private JPanel panel_2;
- private JLabel lblDearDoctor;
- private JLabel lblNewLabel_1;
- private JLabel lblNewLabel_2;
- private JLabel lblNewLabel_3;
- private JComboBox<String> comboBox;
- private Component rigidArea;
-
- // End of variables declaration//GEN-END:variables
-
-
- class GUIWorker implements Runnable{
-
- private JFrame mainFrame;
- private ClientProperties props;
- private MedUnit mu;
-
- public GUIWorker(GUI gui, ClientProperties props) {
- mainFrame = gui;
-
- this.props = props;
- this.mu = new MedUnit(props, 0);
- }
-
- @Override
- public void run() {
-
- try{
- int patientId = Integer.parseInt((String) jComboBox1.getSelectedItem());
-
- // convert selected tests to test identifiers
- ArrayList<TestName> selectedTests = new ArrayList<TestName>();
- for (String currentName : getSelectedTests()) {
- TestName currentTest = testsByName.get(currentName);
-
- if (currentTest == null) {
- throw new IllegalStateException("Trying to run unknown test: " + currentTest);
- }
-
- selectedTests.add(currentTest);
- }
-
- // run tests
- Diagnostic diagnostic = mu.runTests(patientId, selectedTests);
-
- // warn for tests with missing material
- warnFailedTests(diagnostic, selectedTests);
-
- // create report
- mu.createReport(patientId, selectedTests, diagnostic);
-
- dialog.setVisible(false);
-
- // specify file you wish to open (JPedal handles getting the byte data)
- String filepathReport = props.getPathPDF() + patientId + ".pdf";
-
- // open generated PDF
- // object must be either String in full filepath, or
- // File object which can be relative
- Object[] input = new Object[]{ new File(filepathReport) };
- viewer.executeCommand(Commands.OPENFILE, input);
-
- // display CAD result as bar plot
- if (diagnostic.hasCAD()) {
- System.out.println("CAD = " + diagnostic.getResultCAD());
- BarPlotFrame frame = new BarPlotFrame(diagnostic.getResultCAD(), patientId);
- frame.setVisible(true);
- frame.setAlwaysOnTop(true);
- }
-
-
- } catch (SQLException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Please select a patient.");
- }
-
- }
-
- private void warnFailedTests(Diagnostic diagnostic, ArrayList<TestName> selectedTests) {
- ArrayList<Integer> failedTests = diagnostic.getInvalidTests();
-
- if (!failedTests.isEmpty()) {
- String msg = "Could not complete tests: ";
- boolean first = true;
- for (TestName testName : selectedTests) {
- if (failedTests.contains(testName.getId())) {
- if (first) {
- first = false;
- } else {
- msg += ", ";
- }
- msg += testName.getName();
- }
- }
- displayError(msg);
- }
-
- }
-
- private void displayError(String msg) {
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- mainFrame,
- msg,
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
-
- private ArrayList<String> getSelectedTests() {
- ArrayList<String> tests = new ArrayList<String>();
-
- for (TreePath treePath : jTree.getSelectionPaths()) {
- tests.addAll(getChildrenTests(jTree.getModel(), treePath.getLastPathComponent()));
- }
-
- return tests;
- }
-
- private ArrayList<String> getChildrenTests(TreeModel model, Object node) {
- ArrayList<String> tests = new ArrayList<String>();
-
- if (model.isLeaf(node)) { // leaf
- DefaultMutableTreeNode leaf = (DefaultMutableTreeNode) node;
- tests.add(leaf.toString());
- }
- else { // iterate over children
- for (int i = 0; i < model.getChildCount(node); i++) {
- tests.addAll(getChildrenTests(model, model.getChild(node, i)));
- }
- }
-
- return tests;
- }
-
- }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/9/c0fc1a3b72a8001419a38fd8608ce0e6 b/.metadata/.plugins/org.eclipse.core.resources/.history/9/c0fc1a3b72a8001419a38fd8608ce0e6
deleted file mode 100644
index a1c932e..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/9/c0fc1a3b72a8001419a38fd8608ce0e6
+++ /dev/null
@@ -1,59 +0,0 @@
-package io;
-
-import io.serializer.url.URLParserDecrypt;
-import io.serializer.url.URLParserMaterial;
-import io.serializer.xml.XMLParserDecrypt;
-import io.serializer.xml.XMLParserMaterial;
-import io.serializer.xml.XMLParserSurvey;
-
-import java.util.logging.Logger;
-
-import framework.Type;
-import framework.reply.ReplyDecryption;
-import framework.reply.ReplyMaterial;
-import framework.reply.ReplySurvey;
-import framework.request.RequestDecryption;
-import framework.request.RequestMaterial;
-
-public class CommAdapter {
-
- @SuppressWarnings("unused")
- private static final Logger LOGGER = Logger.getLogger(CommAdapter.class.getName());
-
- public ClientConnection connectSPU = null;
-
- public CommAdapter(ClientConnection connectSPU) {
- this.connectSPU = connectSPU;
- }
-
- public ReplyDecryption callServiceDecrypt(RequestDecryption rqtDecrypt) {
- String requestString = URLParserDecrypt.requestToString(rqtDecrypt);
-// String replyString = "<awr_decrypt><patient>30351</patient><v_timestamp>1417188729390</v_timestamp><decrypt_val>,,,,,,,,,,,,,,,,2,AwHR3OO0/hkwgEHluLDFLtn4aaTBAwBEJjJpMegGa29ASgtyt1ha2OOyxvEvNgkIaY0xWXtTmqrqhSBKDG6J7Lps0g==,AwE/oifhonvUZDA4mqRK8K1WCkoepEuL9SidjdFXMNNZQXCMUvVN6pBUYVFgJeFX6mT2jruK8ic3y6yI14PfKl/Pvg==,AgBHs6HGF9AYNc5RlFTGv025WEaT91i/MPy+HXqhvHOrp0Ol9/aKyvv2BgAzeAdsdSEbVs2sahiyL/kbKjeUoI9tsA==,,,,,,,,,,,,,2,AgHIofEmf4aJMLBnKAY3/8WcLXUETF4y/68fzZR6hsS5btZTyI0E4ZTltDzV6hBzIT14cC4S/BMclo1aoLt5C9f+Cg==,AgDOXZAZAwO4KXslqU1wKctrVlH8CcGvpO8gGrPl3YjrY8SR3a6gStvZvjcUKXhvtDkRwSLAIkD3lFrKSXWestHSqQ==,AgG7Y5so9ZTRng2Xm3ziWx3+7zfaVLkIJ2v7g+qEUx5Vl2/udDOcg/was8W6qbKYeo/W0EGTlNXKTOdIatGVxyuoZA==,,,,,2,AgDAVy0/nE6X4iAengG9lCiYEBMtK6rAAiy7OwC7U/QSbokiEzH0RafH7rb+5L5R/ii9/3kZCcKmgOIoPzkmeloDfg==,AgHuvmLAeIFYm4ObEBO2v9xTK6tjYfdh+x4kwULBpDNlUiW4kNNaeoeziRA7nlRvcSfxPlR070N/3qzBMu3EKZ2csQ==,AgDk/CzCL4XUobuNaLsvrH5s0COMKYBqY/18YRR0d7mIsVVYrKVGF+IWnEluhbLt+BoRBdvL5UElgroyORJpiKz06w==,,,,,2,AgH0nW+2h+vcOZgPe3uR7jEHmEPi+g4izQ3OIU9An2vekwbG1liBFgTo33pEhyXhNWPhGCbSb73sJ7pt0JLL+hhWMw==,AgHG039OnpvmllkV6QBsmoMdqISrRuW2q5M3jfUp5TUbU6F/3S2FK1iSVKWgTsI291re6lz6KH5d8rWrnoCAozhIeg==,AwGjmnLUMd42F7a/tsSkeqcxoHMAXNKdvF4kOXoAxmc6ZSxaUhzkGkcgNOO8SFNiWqTKgtZCffJ7hfI0voAUX0TD1w==,,,,,2,AwHfYRjQFscHzOvVozackTaM3sybOjyd2aLc4B+WQ7KiWHoGKkzQScoDiy8hiA2cJpv8ngfitTqJRLlyegvuM+Ietw==,AwAP92OqrJFpFmdrMUUx6FeFhwVLYtAsfw3sem2RYu7ljPry+uJnvluuzTvVaFhs8BAAD8VBFs1vqrSHyQEq8Ocsmw==,AwDNXg/JA4QXA6wu30DUE7peOk1a10aHbd38iwjN1Q0DKy3BqS36+EQKg5hbwELxN2+/Yu4UA1IKWYJI0zNs6TJUtA==,,,,,2,AwBWFv3ivyQz4CGIilJ7CVtpQGOs1tnIW+0uxQyiWIO3HDjJtfxPyQ1AJWPsBQ9eYmaoKmPnN+euPCm7bP0LxBL/Tg==,AwHg7AZb5DV5OJrl0omtKx2OqckXcQEUT8pZ+Bmo9AyULgL5HOq2AVU04qhvbdy0W4OMYqxF3uBwqT6dNhFptsKEKQ==,AwG9dyMbI5EI8UCXuj5JkQRMimcT1u6zCBAfmRvANtT54yDtC8KS6VeOr7h/NP4qrf/mbl5tMaePbkkHrc6E39ntsA==,,,,,2,AwHkMyCOJm/RlYOybGhX3DchR/wSN2L3PuXKalMszgk3WOCiWSpYlP3SOPLWvJTRQaTxoN+oA5IkCTvlp02+Mduaxg==,AgHhR8HjavXjnsy+rHptc/JSI5pLFjM0RczUygxTX7vqV/yqwZ280Rq7YpXKp2GBfiZvFf0qIQoWe4vx5DBxwvHkdA==,AwEf2yisEpflVm8R2X08SCJM89apu7tUFzbpndsTIt5o9/xdoXKomMUk9REz+yrpkd+jFhlkJMQHHVMhgjiWYCEdpQ==,,,,,2,AwBaIc8ZWFm4O9QO0ofJeS9Q7tki7CAscBXRDnajEp7rmKNgrpRyyu1ezSpborwaloWR9kDKPLdYVV8SNk2V/1EudA==,AwGE8MPAnPKKXF15EyrAx1bRinwgoqYVO4Junz5IXQjGLyQpSr5NwO/hqu5E5egHte20jm380Wn2Qy6GgKNiRLy/gQ==,AwCAOjOQNdMN5uIB0POFzYS/fpxZ0Q5KfhlP5fijNmc/daO5frSrwhgcMH5lMKL4EGjBI1p6JMe3fuMqb5t1ImeTBg==,,,,,2,AgARSg2izcK6iZLFe4YkIS6yZgnt8cd9DFqpQ37gNmcccZwBI+mpsaijTUPo1GT+QUD8zC+6qr/GrzG9q+q7BPxpVw==,AwGM/jFdtoNViQXxgqeL27ZKobjsfyeuXrx8re3UfIe3c4XN16srSpcTfxEZNXDKo1Ff9fRvDVBOwdS6XU2nvo++ng==,AwAtK0eOqcVfzkdJIIkk7BORWwSDTAjtx4aEXwyZ0bla+2rIWDgXi3U5xlgnjeXJNtGsLokkvvX92BOBIw9SuCGhnw==,2,AgCWAAWTW+7jv2a2lc4pGFnumEgyH59wSDRXEYUASCVB249JBmeKFWRKNFTQlph5hTR5Rb+YHFP/qvzmwU11Hs2b0w==,AgANdxpkN+DS4De3aokNjt+e/Ou8GT+p8pUJA+6LHrDBXAddoCR8KpeXW7mESokq6BTEVQXxU3TdqavRkqaeFmpXkw==,AgDDDSEO3e8DCsm1n6dbj2PB9Z/tUzluDCt/utdSLrYFfdFY+Y5K7Vxo9F5/17CzaUbX172SGLt8TfCfuYBrtupgAg==,2,AgB1OG6bj+6kfRvLj8yjMQbl80FdZHZrRVRUfNVRwvjvvbRa5f9s9fNZ8J0a3s3hH+RyfZmGJ4Ufjh5mMiQkwiur6w==,AwBX4GFZNjUdtRdwtWgxyQz7h8Hk0ztaZeM8/e+8ll0o+RjYN+CNP8+lnXEw7wpuC4wcMX05mrjPvHOuy0hOFVNkhQ==,AgDf3el4vbMYIAFEH9WV151/uzl+gkfTQ79T8Iu4KxEVo6UJvCfqkjETlR6aXUJiqaCbSV5odMT50lURsmfgALf6AQ==,,,,,2,AgENmnviZkgQWXZ5QDgCCE2zq0IiXURTqK2UNPtEg3o64yjlrQQUd2rO/KgKolyCQcKYTVoMj7k2VeCSSVRr8KGC7w==,AwFv6ZJzhpV/Ms00QkrkNiCKVRFczn/yqnkiBFUHC1RQv3tqzzYSEUeXmDHmm0/kEBtnfgRWjHQm9zxS8Jzy7srDLQ==,AwB8aS5KA1dFLKCA1a/7Wsjhef+6kkNAB/GO9AOvRZbFW/dhl5fx04Alh+g78fwcVMX+eEIEJgSyH0jhv7kmiQh4ew==,,,,,2,AgG8fXrCra6UgP5G89TaE6PH5E0TANb/PJPbKwzdi78XEHRUmcTz6PIhYtclTmcdq5TH0IwQv+ra5ppf4qR4LtkGig==,AgEKzsmZrikmXzJywMpzkAdG9hAPlOiRY9oXKf4Sh50CL8btUItjfVJWg3ubNhotzJK+fnNlRrcMkWQEBD/aGKpf8A==,AwFi+2cGpuvVdR+pT1P9Ur8jAkzmjJK2XmUQbFpyMi5Jc9a5/fPnBWCxmTX8CH5wks0PicYC6rzZC3NEIt0EoM1Qfg==,,,,,2,AgHbTZgTAv8lLBsoX06Hkm9XPU+crlRqKl0xL8v18xeUUPY1YAvUYf2OAutmTtPRycXyzrDWSpn2h5xfk/dtq/BICg==,AwAjPydfoUhfSVFKWNI4Ox4a/psZGDIGzEEWh9HyVtAmjdNb5ctr/S6z+akiRfPlNCsVf6TdkzJ2Su6BO4sOX/SHKA==,AwBVmjn7AitCe4zQ/Fl0sYW2XqXkJxJBDviwl9jYhoq29v90n9escDsiA3Cy+1uW69MezdZBEszFdEWlX0EzbQZQ6A==,,,,,2,AwCG0RBHwHuame/1G7qtUjmwz0gkCP1tyZiEgm7aTKpsCjt7UsMirMmx/ZrNlvSzkGuVbRO97Szzr+9fo4baH1rEZA==,AwHyMK/q8FUUvoHTt7O7KJUxYz/ZHF6SntbmKfbygLVw4HWc/eFic4DXHKbEGWvrMO5b37GksqxfQHc2xlAuj8ZRIw==,AgB5x0BxqiMYxRvzlq0+/RkbOuNA7hYuMG+7D6wlMOxSskgqyfwA0MfW+AkXFqnqfqsoJRpDy15bABWhH6MIdJsPEA==,,,,,2,AwAS/nCH0pcrsllSy2duadUs1rMtL6vtz7VTUAVhn1/YYlZ068ysBi1Mdz9gJFewdyeGLnFhyg+W15rFB317nyeGHg==,AwBh6f5UVRMM5ekWqkrx6XiVOK/BL0TinjsSLna8BjkQPXU2DvGxiKPhA03/GtBdEpihEX4bVaHQhiOupTf7wh6bCQ==,AgGPDFH8Kv8hz2aUJ955nHu8NiAoTmDjqhlXuJ1T83h+O0sc2GieLhmXmpEjxjEAyxkqjb2nFxvDhi+YGs4MqI4S5A==,,,,,2,AwDqwFv6bqpM/6PTCJ/wgRALYVT+Rn54HIB2icP6ODNexaoqILBS9p1k1QENbQsBZ9LmJJwngRQXi07Q4P8br76Qfw==,AgG8yTiO8tFWZqQELBr+Zt1fKKA3bl08836nUEEpD55Sid0ZywCrWe+Va58xbMIWscISLPbBvXIdO48ZgoHsLgA7Jw==,AwCI1Ud0GJLnS86mSC58HNB91lH9kPpQbufGn+WJErGxAQubtSFBc3rnT0SNE3CbW+1MPjYBbdCgxpHjN/iQf96++w==,,,,;2,AgB9YhljgPngkwwYTBMUaMGR+rWMjvlK0tgrzkG8OT9NGNJfaaLP6AzfhWrT5oe9NRnabU25pQvDhAIGZCajDy8N2g==,AwE5Irce6LOSxfLgn4PZh1PeDPjAHb5wPTNfmQoWFY83dNQLYN44FupJaQRRUqBqyGNB0SL76GKzr8G9tKLAHOxRSQ==,BAG5iWHEhlWkvtyAlQy4bwKa1iNRzJq8WJTh2GE9oT4DeJRmO1pCHy9P+9YktDT+4RgV9s8AzOYih1LmHW14uP27HQGg1nTdHyab9/nFUe9BFxIi8xQTPG8et9++5I+gKIeWGCXBL31sBhpaMewvVhDjl2d3+7H2PUv9IY3lyIRFA6N16A==,2,AwAPIoQJqSbXFKXQAIG9J+/+/41NLX0rDINImk4eBgAnZ4V0R8YSqkHD3nd0IrEMyK7OpkCXkxTzOlwJlfEfti+vew==,AwAQ8KdMYsEOqM3eyGv/XbHnGf+TqCAG39Gz/juBcioOOJmLOFjl6oCITozJOyPusbTRXZ4eIwgQYkl12mt6saTpgQ==,BACkTO+3rRUF81w5yzZskFiIRyVxc6sdJfDFX6C+Jy5A+s/sfHskrFx2GYNklZaYztP0/B64a6v6HvFWVz8GuYj2wgHhiCL+QwLThFpaRxh8kUMSrt4VuXSIjtHwRXzhSdEbG2T6C/+CJZxIFh/ugEV9SS51l1HrLdnJDb2Kdu3QC3lRkQ==;2,AgC99VyiRLJ2kFf3oCkb+JPVV7B4tXVGI2NVT7fdKtB+gEjCcdkbS5YEXm/Sq6NAJEOKilMTFUDLYFDOe+7JHj/4pw==,AgAbT080sbKVHH9lim3tVCYS4cMz+rLownRKqtYZ7AfR8qy819R1GFywQ0kImgcdjEey5C4m0OPTwgtkO+C5uWtKfQ==,BADKYt9i0zTJeh3H8t6d8pZdncz3f28v1oWrssLZwAutkIcF3XKkPNmK3X75K3sImUSch//IIRIB1Yi5/MrZZeDrxQHhQZEg6AA8bDxgt0JdOEX2t4crzDu3gW5I8y+Ya0fZr1RmxvfMr2UxRhSsNsz949v/g+GPfsrEfDqIWTiNlJfwyg==,2,AgEPMjgCfgGRaZ/5I1hLqDoJ8nXYeTlnt9YeK4K8w+HnRAoAD09zkPcLMWajIjupe/CUFrHz00sAvs+vOPeKxGrLiQ==,AgDy7g2DcDwmIW7LtTTteHExD/cyP4BMWimEAM1RfAd/Y6P8XkmRGgglfdLJ7RGTR2YIMB1lxQ/LQUbmzyjTiiuWow==,BAHJ7oHVr/0wweyGlg4f9Dqmx8h0m35jMdrEFwVY8l/ENKpOTxG/oh9vAvo1uw39wUOn4CWGBmAFE2lsvWFW18gt+gHPFt5/9ihUFN9mtxFLT1Q3W4Uf8IdekHPMbNlxEp1wId7EH3XsAox3Eo8b3XnYpwfsAXoDwQa2wyiO5h104Ptvsg==;2,AwClCMGcHdd7rD8sYDC/GXyAtLmZ/JI4v+aOK4PXzjWJi/zvcsXT5dJUOm9bW6AAtzgOKPd0WwU3hSytJ+ATy146Uw==,AgADzN6ysOIC9GAuMF9suYNfkR027H/9OcpeVJb4HRHfZ/EOmQWSdJmJFw3F/NLUrreNnFCvuF1+1bbmHa3tvznjeA==,BADwaRJF9z3DW7HE3qhGu6Yd9d2WBfWy8opd7Mhkg7TpAQsn9oA3UcpCarn4DMSnVGG94Y3Pxsj5vlm5G7GMKiGoxAERnETH6pVgBxhtrnBU6l4vHl+X4rd8I/zheZiG0EFKJza41rmwKHTY4+42PJ8/3Y2rCanbY1RSAJEgiZR89k6nGg==,2,AgCK80PhKSC23aVKQ8uYm+79GWZiwpbV5lc8Fzcpwu8hdKGAMH4f62Y//cmrQmCIltm03PTVPMn6rMwkfoz+9M2LDQ==,AgH5aXThIKUjENFTGCGwcTRql7xIe8vR9h78KikTYkD8itQ+YBDrnx5OaNyWRjpIJHAZ2B61W2aVjZ5Rmo0d1B1Pcw==,BAAEZsEKw59QSRxN1QmWcx4X2LaK4+zBuawh+2CIRPljWyxK6XhIM6EEalr44Klce4OTK2QbxT5n3Kjnh5jNuwCOawAH/wiNrx09+HY8SZrRjCjv1+Lnicybrqg/IFDNoAGT5aguaGRIMmGOLe0QFJr0T0iW3RnYGlmSd/r6ex8+MpOgLw==</decrypt_val></awr_decrypt>";
- String replyString = connectSPU.sendReceive(Type.DECRYPT, requestString);
- System.out.println("REQUEST URL: " + requestString);
- System.out.println("REPLY: " + replyString);
- ReplyDecryption reply = (new XMLParserDecrypt()).stringToReply(replyString);
- return reply;
- }
-
- public ReplyMaterial callServiceMaterial(RequestMaterial rqtMaterial) {
- String requestString = URLParserMaterial.requestToString(rqtMaterial);
- String replyString = connectSPU.sendReceive(Type.MATERIAL, requestString);
-
- System.out.println("Material request:");
- System.out.println(replyString);
-
- ReplyMaterial reply = (new XMLParserMaterial()).stringToReply(replyString);
- return reply;
- }
-
- public ReplySurvey callServiceSurvey(){
-
-// String replyString = connectSPU.sendReceive(Type.SURVEY,"");
- //4::What's your name?::1;5::Where are you from?::2;6::How old are you?::3;7::What's your name?::1;8::Where are you from?::2;9::How old are you?::3;10::What's your name?::1;11::Where are you from?::2;12::How old are you?::3;13::What's your name?::1;14::Where are you from?::2;15::How old are you?::3
- String replyString ="<awr_survey><v_questions>1::What's your name?::1;2::Where are you from?::2;3::How old are you?::3</v_questions><v_locations>Lausanne;Basel;Zurich</v_locations></awr_survey>";
- ReplySurvey reply = (new XMLParserSurvey()).stringToReply(replyString);
- return reply;
- }
-
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/93/0017d232a1a7001417ceadf0100b5ef7 b/.metadata/.plugins/org.eclipse.core.resources/.history/93/0017d232a1a7001417ceadf0100b5ef7
deleted file mode 100644
index 3ba79b2..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/93/0017d232a1a7001417ceadf0100b5ef7
+++ /dev/null
@@ -1,288 +0,0 @@
-package io;
-
-import java.awt.BorderLayout;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.util.Map;
-import java.util.Set;
-
-import com.itextpdf.text.BaseColor;
-import com.itextpdf.text.Document;
-import com.itextpdf.text.DocumentException;
-import com.itextpdf.text.Element;
-import com.itextpdf.text.ExceptionConverter;
-import com.itextpdf.text.Font;
-import com.itextpdf.text.Font.FontFamily;
-import com.itextpdf.text.FontFactory;
-import com.itextpdf.text.Image;
-import com.itextpdf.text.PageSize;
-import com.itextpdf.text.Paragraph;
-import com.itextpdf.text.Phrase;
-import com.itextpdf.text.Rectangle;
-import com.itextpdf.text.pdf.AcroFields;
-import com.itextpdf.text.pdf.BaseFont;
-import com.itextpdf.text.pdf.ColumnText;
-import com.itextpdf.text.pdf.GrayColor;
-import com.itextpdf.text.pdf.PdfBorderDictionary;
-import com.itextpdf.text.pdf.PdfContentByte;
-import com.itextpdf.text.pdf.PdfFormField;
-import com.itextpdf.text.pdf.PdfPCell;
-import com.itextpdf.text.pdf.PdfPCellEvent;
-import com.itextpdf.text.pdf.PdfPTable;
-import com.itextpdf.text.pdf.PdfReader;
-import com.itextpdf.text.pdf.PdfStamper;
-import com.itextpdf.text.pdf.PdfWriter;
-import com.itextpdf.text.pdf.RadioCheckField;
-import com.itextpdf.text.pdf.TextField;
-
-import framework.Question;
-
-public class Questionnaire implements PdfPCellEvent{
-
- /** The path output file. */
- String pathOutputFile;
-
- /** The document. */
- Document document;
-
- int tf;
-
- public Questionnaire(String path){
- pathOutputFile = path;
- document = new Document(PageSize.A4, 25, 25, 50, 50);
- }
- public Questionnaire(int tf){
- this.tf = tf;
- }
-
- /** The resulting PDF. */
- public static final String RESULT1 = "outputPDF/buttons.pdf";
- /** The resulting PDF. */
- public static final String RESULT2 = "outputPDF/buttons_filled.pdf";
- /** Path to a JavaScript resource. */
- public static final String RESOURCE = "res/buttons.js";
- /** Path to an image used as button icon. */
- public static final String IMAGE = "res/info.png";
- /** Possible values of a radio field / checkboxes */
- public static final String[] LANGUAGES = { "English", "German", "French", "Spanish", "Dutch" };
-
- /**
- * Creates a PDF document.
- * @param filename the path to the new PDF document
- * @throws DocumentException
- * @throws IOException
- */
- public void createPdf(Map<Integer, Question> map, Set<Integer> ids) throws IOException, DocumentException {
-
- @SuppressWarnings("unused")
- PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(pathOutputFile));
-
-
- document.open();
- Image logo = Image.getInstance("res/shcs_logo2.gif");
-
- logo.scalePercent(30f);
- float[] columnWidths1 = {0.2f, 0.8f};
- PdfPTable table_title = new PdfPTable(columnWidths1);
- PdfPCell c01 = new PdfPCell(logo, false);
- PdfPCell c02 = new PdfPCell(new Paragraph("Survery | Project #693",
- FontFactory.getFont(FontFactory.HELVETICA, 20, Font.BOLD, BaseColor.BLACK)));
- c01.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setHorizontalAlignment(Element.ALIGN_CENTER);
- c01.setBorder(Rectangle.NO_BORDER);
- c02.setBorder(Rectangle.NO_BORDER);
-
- table_title.addCell(c01);
- table_title.addCell(c02);
- table_title.setWidthPercentage(100);
- table_title.setSpacingBefore(0);
- table_title.setSpacingAfter(25);
- document.add(table_title);
-
-
- //----------------------------------------------------------------------------------
-
-
- PdfPTable table1 = new PdfPTable(1);
- table1.setWidthPercentage(100);
- PdfPCell c11 = new PdfPCell(new Phrase("Today you are receiving a pharmacogenetic report based on the genetic " +
- "information of your patient. Because the human genome contains extremely private and sensitive information" +
- " of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier," +
- " it must be managed with care. ",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.NORMAL, BaseColor.BLACK)));
- c11.setLeading(1.5f, 1.5f);
- c11.setPaddingBottom(8);
-
-
- table1.addCell(c11);
- table1.setSpacingAfter(10);
- document.add(table1);
-
-
- //----------------------------------------------------------------------------------
-
-// // step 4
-// // add the JavaScript
-// writer.addJavaScript(Utilities.readFileToString(RESOURCE));
-
- for(Integer id: ids){
- PdfPCell c2;
-
- PdfPTable table = new PdfPTable(1);
- table.setSpacingAfter(10);
- table.setWidthPercentage(100);
-
- PdfPCell c1 = new PdfPCell(new Phrase(id + ") " + map.get(id).getQuestion(),FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c1.setPaddingTop(5);
- c1.setPaddingBottom(5);
- c1.setHorizontalAlignment(Element.ALIGN_CENTER);
- c1.setBorder(Rectangle.NO_BORDER);
- table.addCell(c1);
-
- c2 = new PdfPCell(new Phrase(" 1" +
- " 2" +
- " 3" +
- " 4" +
- " 5",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c2.setHorizontalAlignment(Element.ALIGN_LEFT);
- c2.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c2.setCellEvent(new Questionnaire(id));
- c2.setBorder(Rectangle.TOP);
- c2.setPaddingTop(2);
- c2.setPaddingBottom(5);
- c2.setBackgroundColor(new BaseColor(242, 242, 242));
-
- table.addCell(c2);
-
-
-
- document.add(table);
- }
-
-
- //----------------------------------------------------------------------------------
-
- // step 5
- document.close();
-
- }
-
- @Override
- public void cellLayout(PdfPCell cell, Rectangle position,
- PdfContentByte[] canvases) {
- PdfWriter writer = canvases[0].getPdfWriter();
- PdfFormField radiogroup = PdfFormField.createRadioButton(writer, true);
- radiogroup.setFieldName(String.valueOf(tf));
- System.out.println(tf);
-
- float llx = position.getLeft();
- float lly = position.getBottom();
-
- float cell_h = cell.getHeight();
- float cell_w = cell.getWidth();
-
- Rectangle rect;
-
- for(int i=1 ; i<=5; i++){
-
- rect = new Rectangle(llx + (3+i)*cell_w/12, lly+cell_h/2-6, llx + (3+i)*cell_w/12+12 ,lly+cell_h/2+6);
-
- RadioCheckField radio = new RadioCheckField(writer, rect, null, String.valueOf(i));
- radio.setBorderColor(GrayColor.GRAYBLACK);
- radio.setCheckType(RadioCheckField.TYPE_SQUARE);
-
-
- try {
- PdfFormField field = radio.getRadioField();
- radiogroup.addKid(field);
-
- writer.addAnnotation(radiogroup);
- }
-
- catch(IOException ioe) {
- throw new ExceptionConverter(ioe);
- }
- catch(DocumentException de) {
- throw new ExceptionConverter(de);
- }
- }
-
-
-
- }
-
-
- public String getAnswers() throws IOException, DocumentException{
- PdfReader reader = new PdfReader(pathOutputFile);
-
- PdfStamper stamper = new PdfStamper(reader, new FileOutputStream("outputPDF/buttons_filled2.pdf"));
- AcroFields form = stamper.getAcroFields();
-
- StringBuilder sb = new StringBuilder();
-
-
- Set<String> fields = form.getFields().keySet();
- for(String key: fields){
- System.out.println("key = " + key);
- if(form.getFieldType(key)==AcroFields.FIELD_TYPE_RADIOBUTTON){
- sb.append(key);
- sb.append(",");
- sb.append(form.getField(key));
- sb.append(";");
- }
- }
- stamper.close();
- reader.close();
-
-
- return sb.toString();
-
- }
-
-
-// /**
-// * Manipulates a PDF file src with the file dest as result
-// * @param src the original PDF
-// * @param dest the resulting PDF
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public void manipulatePdf(String src, String dest) throws IOException, DocumentException {
-// PdfReader reader = new PdfReader(src);
-// PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(dest));
-// AcroFields form = stamper.getAcroFields();
-// String[] radiostates = form.getAppearanceStates("language");
-// form.setField("language", radiostates[4]);
-// for (int i = 0; i < LANGUAGES.length; i++) {
-// String[] checkboxstates = form.getAppearanceStates("English");
-// form.setField(LANGUAGES[i], checkboxstates[i % 2 == 0 ? 1 : 0]);
-// }
-// stamper.close();
-// reader.close();
-//
-// PdfReader r = new PdfReader(dest);
-// AcroFields f = r.getAcroFields();
-// Set<String> fields = form.getFields().keySet();
-// for(String key: fields){
-// if(f.getFieldType(key)==AcroFields.FIELD_TYPE_RADIOBUTTON){
-// System.out.println(key);
-// System.out.println(f.getField(key));
-//
-// }
-// }
-// r.close();
-//
-// }
-//
-// /**
-// * Main method
-// * @param args no arguments needed
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public static void main(String[] args) throws IOException, DocumentException {
-// Questionnaire buttons = new Questionnaire();
-// buttons.createPdf(RESULT1);
-// buttons.manipulatePdf(RESULT1, RESULT2);
-// }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/97/a0fa16a354ac001410e2e30aa85db9d1 b/.metadata/.plugins/org.eclipse.core.resources/.history/97/a0fa16a354ac001410e2e30aa85db9d1
deleted file mode 100644
index 99c97ca..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/97/a0fa16a354ac001410e2e30aa85db9d1
+++ /dev/null
@@ -1,925 +0,0 @@
-package ui;
-
-import io.ClientConnection;
-import io.CommAdapter;
-import io.Questionnaire;
-
-import java.awt.BorderLayout;
-import java.awt.Color;
-import java.awt.Component;
-import java.awt.Dimension;
-import java.awt.FlowLayout;
-import java.awt.Font;
-import java.awt.SystemColor;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.awt.event.WindowAdapter;
-import java.io.File;
-import java.io.IOException;
-import java.sql.SQLException;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.LinkedList;
-import java.util.Map;
-import java.util.Set;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
-import javax.swing.Box;
-import javax.swing.BoxLayout;
-import javax.swing.ButtonGroup;
-import javax.swing.DefaultComboBoxModel;
-import javax.swing.GroupLayout;
-import javax.swing.GroupLayout.Alignment;
-import javax.swing.ImageIcon;
-import javax.swing.JButton;
-import javax.swing.JComboBox;
-import javax.swing.JDialog;
-import javax.swing.JFileChooser;
-import javax.swing.JFrame;
-import javax.swing.JLabel;
-import javax.swing.JOptionPane;
-import javax.swing.JPanel;
-import javax.swing.JRadioButton;
-import javax.swing.JScrollPane;
-import javax.swing.JSeparator;
-import javax.swing.JTabbedPane;
-import javax.swing.JTextArea;
-import javax.swing.JTextPane;
-import javax.swing.JTree;
-import javax.swing.LayoutStyle.ComponentPlacement;
-import javax.swing.SwingConstants;
-import javax.swing.border.EmptyBorder;
-import javax.swing.border.LineBorder;
-import javax.swing.tree.DefaultMutableTreeNode;
-import javax.swing.tree.TreeModel;
-import javax.swing.tree.TreePath;
-
-import org.jpedal.examples.viewer.Commands;
-import org.jpedal.examples.viewer.Viewer;
-
-import utils.ClientProperties;
-
-import com.itextpdf.text.DocumentException;
-
-import database.DBconnectorClient;
-import framework.Diagnostic;
-import framework.MedUnit;
-import framework.Question;
-import framework.reply.ReplySurvey;
-import framework.test.TestName;
-
-/**
- *
- * @author youssef, raisaro
- */
-public class GUI extends javax.swing.JFrame {
-
- private static final Logger LOGGER = Logger.getLogger(GUI.class.getName());
-
- private static final long serialVersionUID = -4582280515597700650L;
-
- // configuration
- private ClientProperties props;
-
- private JTree jTree;
- private DBconnectorClient connectorClientDB;
- private LinkedList<Integer> patients;
-
- /** List of all relevant tests */
- private HashMap<String, TestName> testsByName;
- private Viewer viewer;
- private JDialog dialog;
- private JFrame frame;
- private boolean survey_submitted;
- private int close_trials;
- private Map<Integer, ButtonGroup> buttonGroupMap;
- private Questionnaire quest;
- private Map<Integer, Question> map;
- private Set<Integer> ids;
- private Map<String,String> answers;
- private Map<Integer, String> locations;
-
-
- /**
- * Creates new form GUI
- */
- public GUI(ClientProperties props){
-
- frame = this;
- this.props = props;
- this.connectorClientDB = new DBconnectorClient(props.getDbMsAccess());
- survey_submitted = false;
- close_trials = 0;
-
-
- try {
- initComponents();
-
- viewer = new Viewer(jScrollPane2, null);
- viewer.setupViewer();
-
- // create questionnare
-
-
- System.out.println("#of questions: " + ids.size());
-
-// viewer_q = new Viewer(jScrollPane4, null);
-// viewer_q.setupViewer();
-//
-// // specify file you wish to open (JPedal handles getting the byte data)
-// String filepathReport = "outputPDF/buttons_filled.pdf";
-//
-// // open generated PDF
-// // object must be either String in full filepath, or
-// // File object which can be relative
-// Object[] input = new Object[]{ new File(filepathReport) };
-// viewer_q.executeCommand(Commands.OPENFILE, input);
-
- JButton btnSubmitQuestionnaire = new JButton("Submit Questionnaire");
- btnSubmitQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- btnSubmitQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- submitButtonActionPerformed(arg0);
- }
- });
- JButton btnResetQuestionnaire = new JButton("Save as PDF");
- btnResetQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- savePDFButtonActionPerformed(arg0);
- }
- });
- btnResetQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- JPanel panel_button = new JPanel();
- panel_button.setLayout(new BoxLayout(panel_button, BoxLayout.X_AXIS));
-
- lblNewLabel_3 = new JLabel("");
- lblNewLabel_3.setIcon(new ImageIcon("res/location_icon.png"));
- panel_button.add(lblNewLabel_3);
-
-
-
- comboBox = new JComboBox<String>();
- comboBox.setFont(new Font("Tahoma", Font.BOLD, 12));
- comboBox.setModel(new DefaultComboBoxModel<String>(new String[] {"Select Location"}));
- for(Integer id_loc : locations.keySet()){
- comboBox.addItem(locations.get(id_loc));
- }
-
-
- panel_button.add(comboBox);
-
- rigidArea = Box.createRigidArea(new Dimension(10, 0));
- panel_button.add(rigidArea);
-
- lblNewLabel_1 = new JLabel("");
- lblNewLabel_1.setIcon(new ImageIcon("res/submit.png"));
- panel_button.add(lblNewLabel_1);
- panel_button.add(btnSubmitQuestionnaire);
-
- panel_button.add(Box.createRigidArea(new Dimension(10,0)));
-
- lblNewLabel_2 = new JLabel("");
- lblNewLabel_2.setIcon(new ImageIcon("res/pdf.png"));
- panel_button.add(lblNewLabel_2);
- panel_button.add(btnResetQuestionnaire);
- panel_button.setPreferredSize(new Dimension(211, 35));
- panel_button.validate();
-
- JPanel panel_3 = new JPanel();
- GroupLayout gl_panel = new GroupLayout(panel);
- gl_panel.setHorizontalGroup(
- gl_panel.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(63)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addGap(103)
- .addComponent(panel_button, GroupLayout.DEFAULT_SIZE, 498, Short.MAX_VALUE)
- .addGap(241))
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(41)
- .addGroup(gl_panel.createParallelGroup(Alignment.TRAILING)
- .addComponent(jScrollPane4, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE)
- .addComponent(panel_1, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE))
- .addGap(32))
- );
- gl_panel.setVerticalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(22)
- .addComponent(panel_1, GroupLayout.PREFERRED_SIZE, 235, GroupLayout.PREFERRED_SIZE)
- .addGap(37)
- .addComponent(jScrollPane4, GroupLayout.DEFAULT_SIZE, 379, Short.MAX_VALUE)
- .addGap(26)
- .addGroup(gl_panel.createParallelGroup(Alignment.LEADING)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(panel_button, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE)))
- );
- panel_3.setLayout(new BoxLayout(panel_3, BoxLayout.X_AXIS));
-
-
- panel.setLayout(gl_panel);
-
-
-
-
-
-
- /////////////////////////////////////////////////////////
- // display the tests available
-
- // get the tests
- HashMap<String, ArrayList<TestName>> testsRelevantByGroup = connectorClientDB.getRelevantTestsByGroup();
- ArrayList<String> groups = new ArrayList<String>(testsRelevantByGroup.keySet());
-
- // flatten hashmap into linkedlist
-// tests = new LinkedList<>();
- testsByName = new HashMap<String, TestName>();
- for (String group : groups) {
-// tests.addAll(testsRelevantByGroup.get(group));
- for (TestName test : testsRelevantByGroup.get(group)) {
- testsByName.put(test.getName(), test);
- }
- }
-
- // define tree structure of the tests
- DefaultMutableTreeNode root = new DefaultMutableTreeNode("All");
-
- for (String group : groups) {
- DefaultMutableTreeNode child = new DefaultMutableTreeNode(group);
- root.add(child);
-
- for (TestName test : testsRelevantByGroup.get(group)) {
- DefaultMutableTreeNode grandChild = new DefaultMutableTreeNode(test.getName());
- child.add(grandChild);
- }
- }
-
- // define swing object
- jTree = new JTree(root);
-
- for(int i=0;i<jTree.getRowCount();i++){
- jTree.expandRow(i);
- }
-
- jScrollPane3.setViewportView(jTree);
-// jTree.addTreeSelectionListener(new TreeSelectionListener() {
-//
-// @Override
-// public void valueChanged(TreeSelectionEvent e) {
-// tp = jTree.getSelectionPaths();
-// }
-// });
- jScrollPane3.setViewportView(jTree);
-
- /////////////////////////////////////////////////////////
- // display the patients registered
-
- patients = connectorClientDB.getPatients();
- for (Integer patientId : patients) {
- jComboBox1.addItem(patientId.toString());
- }
-
- } catch (SQLException ex) {
- Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex);
- ex.printStackTrace();
-// } catch (IOException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
-// } catch (DocumentException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
- }
-
- }
-
- /**
- * 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() {
-
- jPanel1 = new javax.swing.JPanel();
- jLabel2 = new javax.swing.JLabel();
- jLabel1 = new javax.swing.JLabel();
- jPanel2 = new javax.swing.JPanel();
- jComboBox1 = new javax.swing.JComboBox<String>();
- jButton1 = new javax.swing.JButton();
- jButton1.setFont(new Font("Tahoma", Font.BOLD, 12));
- jLabel3 = new javax.swing.JLabel();
- jLabel4 = new javax.swing.JLabel();
- jScrollPane3 = new javax.swing.JScrollPane();
- jScrollPane2 = new javax.swing.JScrollPane();
- jMenuBar1 = new javax.swing.JMenuBar();
- jMenu1 = new javax.swing.JMenu();
- jMenuItem1 = new javax.swing.JMenuItem();
- jMenu2 = new javax.swing.JMenu();
- dialog = new JDialog();
- tabbedPane = new JTabbedPane(JTabbedPane.TOP);
-
- setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
- addWindowListener(new WindowAdapter() {
- @Override
- public void windowClosing(java.awt.event.WindowEvent windowEvent) {
- if (!survey_submitted && close_trials <= 2){
- JOptionPane.showMessageDialog(frame, "Before closing the application, please fill in and submit the questionnaire.");
- close_trials++;
- tabbedPane.setSelectedIndex(1);
- }else{
- System.exit(0);
- }
- }
- });
- setTitle("HIV Pharmacogenomics\n");
-
- jLabel2.setIcon(new javax.swing.ImageIcon("res/shcs_logo2_small.gif")); // NOI18N
-
- jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
- jLabel1.setText("HIV Pharmacogenomics | Project #693");
-
- javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
- jPanel1.setLayout(jPanel1Layout);
- jPanel1Layout.setHorizontalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap(71, Short.MAX_VALUE)
- .addComponent(jLabel1)
- .addGap(18, 18, 18)
- .addComponent(jLabel2))
- );
- jPanel1Layout.setVerticalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jLabel1)
- .addGap(11, 11, 11))
- .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)
- );
-
- jPanel2.setBackground(new java.awt.Color(255, 255, 255));
- jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
-
- jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<String>(new String[]{"Select Patient"}));
-
- jButton1.setText("Run Test");
- jButton1.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton1ActionPerformed(evt);
- }
- });
-
- JLabel lblNewLabel = new JLabel("");
- lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
- lblNewLabel.setIcon(new javax.swing.ImageIcon("res/gears.png"));
-
-
-
- javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
- jPanel2Layout.setHorizontalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addComponent(jComboBox1, 0, 248, Short.MAX_VALUE)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addGap(75)
- .addGroup(jPanel2Layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jButton1)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 75, GroupLayout.PREFERRED_SIZE))
- .addContainerGap(98, Short.MAX_VALUE))
- );
- jPanel2Layout.setVerticalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addComponent(jComboBox1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED, 223, Short.MAX_VALUE)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jButton1)
- .addGap(19))
- );
- jPanel2.setLayout(jPanel2Layout);
-
- jLabel3.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel3.setText("Select Patient");
-
- jLabel4.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel4.setText("Select Test");
-
- jScrollPane3.setBackground(new java.awt.Color(255, 255, 255));
-
- jMenu1.setText("File");
-
- jMenuItem1.setText("Exit");
- jMenu1.add(jMenuItem1);
-
- jMenuBar1.add(jMenu1);
-
- jMenu2.setText("Edit");
- jMenuBar1.add(jMenu2);
-
- setJMenuBar(jMenuBar1);
-
-
-
- javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
- layout.setHorizontalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(layout.createParallelGroup(Alignment.LEADING, false)
- .addComponent(jLabel3)
- .addComponent(jLabel4)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, 244, Short.MAX_VALUE)
- .addComponent(jScrollPane3))
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 970, Short.MAX_VALUE))
- .addContainerGap())
- );
- layout.setVerticalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel4))
- .addPreferredGap(ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addComponent(jScrollPane3, GroupLayout.PREFERRED_SIZE, 388, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jLabel3)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 785, Short.MAX_VALUE))
- .addContainerGap())
- );
-
-
- jScrollPane2.setAutoscrolls(true);
- jScrollPane3.setAutoscrolls(true);
- tabbedPane.addTab("Report", new ImageIcon("res/report_icon.gif"), jScrollPane2, null);
- tabbedPane.setBackgroundAt(0, new Color(255, 255, 255));
-
- panel = new JPanel();
- tabbedPane.addTab("Survey", new ImageIcon("res/survey_icon.png"), panel, null);
- tabbedPane.setBackgroundAt(1, new Color(255, 255, 255));
- tabbedPane.setEnabledAt(1, true);
-
- panel_1 = new JPanel();
- panel_1.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
- panel_1.setBackground(SystemColor.control);
-
- JLabel label = new JLabel("");
- label.setIcon(new ImageIcon("res/shcs_logo2_medium.gif"));
-
- lblDearDoctor = new JLabel("Dear Doctor,");
- lblDearDoctor.setFont(new Font("Tahoma", Font.BOLD, 14));
-
- JScrollPane scrollPane = new JScrollPane();
- scrollPane.setBorder(null);
- GroupLayout gl_panel_1 = new GroupLayout(panel_1);
- gl_panel_1.setHorizontalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(Alignment.LEADING, gl_panel_1.createSequentialGroup()
- .addGap(25)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addComponent(lblDearDoctor)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 661, Short.MAX_VALUE))
- .addContainerGap())
- );
- gl_panel_1.setVerticalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addContainerGap()
- .addComponent(lblDearDoctor)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 203, Short.MAX_VALUE))
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(36)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 96, GroupLayout.PREFERRED_SIZE)))
- .addContainerGap())
- );
-
- JTextPane txtpnTodayYouAre = new JTextPane();
- txtpnTodayYouAre.setBorder(null);
- txtpnTodayYouAre.setText("Today you are receiving a pharmacogenetics report based on the genome of your patient. Because of its highly sensitive nature, " +
- "the genetic information you are provided with is processed in a privacy-preserving way. In particular, to protect patients’ genomic privacy, " +
- "their genetic and clinical data is stored encrypted at the SHCS data center, and securely analyzed through a sophisticated algorithm designed and developed at EPFL [1, 2]. " +
- "The actual clinical and genetic information is never revealed. Only the authorized users, such as you, can get some processed information, for example, the final result of a " +
- "pharmacogenetics risk test.\nThis mechanism protects the data against insiders or hackers trying to illegally access patients’ medical information, while still allowing authorized " +
- "users to obtain the information they need." +
- "\n\nTo help us understanding the importance of genomic privacy in the medical domain, and the impact of privacy-enhancing technologies in daily clinical practice, please complete the following survey.");
- txtpnTodayYouAre.setFont(new Font("Tahoma", Font.PLAIN, 13));
- txtpnTodayYouAre.setEditable(false);
- txtpnTodayYouAre.setBackground(SystemColor.control);
- scrollPane.setViewportView(txtpnTodayYouAre);
- panel_1.setLayout(gl_panel_1);
- jScrollPane4 = new javax.swing.JScrollPane();
- jScrollPane4.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
- getContentPane().setLayout(layout);
-
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
- ReplySurvey replySurvey = commHandlerAdapter.callServiceSurvey();
-
- map = replySurvey.getQuestions();
- ids = map.keySet();
- locations = replySurvey.getLocations();
-
- panel_2 = new JPanel();
- panel_2.setBackground(Color.WHITE);
- panel_2.setBorder(null);
- jScrollPane4.setViewportView(panel_2);
- panel_2.setLayout(new BoxLayout(panel_2, BoxLayout.Y_AXIS));
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
-
- int type = 0;
- for(Integer id : ids){
- ButtonGroup group = new ButtonGroup();
- JRadioButton r1 = new JRadioButton("1"); r1.setActionCommand("1"); r1.setBackground(Color.WHITE);
- JRadioButton r2 = new JRadioButton("2"); r2.setActionCommand("2"); r2.setBackground(Color.WHITE);
- JRadioButton r3 = new JRadioButton("3"); r3.setActionCommand("3"); r3.setBackground(Color.WHITE);
- JRadioButton r4 = new JRadioButton("4"); r4.setActionCommand("4"); r4.setBackground(Color.WHITE);
- JRadioButton r5 = new JRadioButton("5"); r5.setActionCommand("5"); r5.setBackground(Color.WHITE);
- group.add(r1);
- group.add(r2);
- group.add(r3);
- group.add(r4);
- group.add(r5);
- JPanel radio_panel = new JPanel();
- radio_panel.setLayout((new BoxLayout(radio_panel, BoxLayout.X_AXIS)));
- radio_panel.setBackground(Color.WHITE);
- radio_panel.setAlignmentX(Component.CENTER_ALIGNMENT);
- radio_panel.add(r1);
- radio_panel.add(r2);
- radio_panel.add(r3);
- radio_panel.add(r4);
- radio_panel.add(r5);
- radio_panel.doLayout();
- radio_panel.setPreferredSize(radio_panel.getPreferredSize());
- JTextArea question = new JTextArea(id + ") " + map.get(id).getQuestion());
-
- question.setLineWrap(true);
- question.setWrapStyleWord(true);
-
-
- JPanel row_panel = new JPanel();
- row_panel.setLayout(new BoxLayout(row_panel, BoxLayout.X_AXIS));
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.add(question);
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.add(radio_panel);
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.setBackground(Color.WHITE);
-
- int type_new = map.get(id).getType();
-
- if(type_new != type){
- type = type_new;
- JLabel question_group = new JLabel();
- switch(type){
- case 1:
- question_group.setText("Clinical Utility");
- case 2:
- question_group.setText("Privacy Concerns");
- case 3:
- question_group.setText("Usability Assessment");
- }
- question.setAlignmentX(Component.CENTER_ALIGNMENT);
- question.setFont(new Font("Tahoma", Font.BOLD, 13));
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- panel_2.add(question_group);
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
-// panel_2.add(radio_panel);
- panel_2.add(new JSeparator());
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- }
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- panel_2.add(row_panel);
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
-// panel_2.add(radio_panel);
- panel_2.add(new JSeparator());
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
-// panel_2.setPreferredSize(panel_2.getPreferredSize());
- buttonGroupMap.put(id, group);
-
- }
-
-
-
- this.setSize(new Dimension(1300, 865));
-// pack();
- }// </editor-fold>//GEN-END:initComponents
-
-
- private void submitButtonActionPerformed(java.awt.event.ActionEvent evt){
-
- try{
- answers = new HashMap<String, String>();
- StringBuilder sb = new StringBuilder();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- sb.append(q).append(",");
- sb.append(bg.getSelection().getActionCommand()).append(";");
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- String answer = sb.toString();
- Integer id_loc = null;
- for(Integer i: locations.keySet()){
- if(locations.get(i).equals(comboBox.getSelectedItem().toString()))
- id_loc = i;
- }
-
- String id_p;
- if(jComboBox1.getSelectedItem().toString().equals("Select Patient"))
- id_p = "0";
- else
- id_p = jComboBox1.getSelectedItem().toString();
-
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
-
- String reply = commHandlerAdapter.callServiceSurveyAnswer(answer, id_loc.toString(), id_p);
-
- if(reply.equals("1")){
- survey_submitted = true;
-
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Congrats! Your aswers have been sent to the SHCS datacenter.",
- "Information Message",
- JOptionPane.INFORMATION_MESSAGE);
- }
- else{
- throw new IOException();
- }
-
-
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "The SHCS datacenter does not respond. Please save the survey and send it to jean.raisaro@epfl.ch.",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
- private void savePDFButtonActionPerformed(java.awt.event.ActionEvent evt){
- try {
-
- answers = new HashMap<String, String>();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- JFileChooser chooser = new JFileChooser();
- // Note: source for ExampleFileFilter can be found in FileChooserDemo,
- // under the demo/jfc directory in the JDK.
-
- int returnVal = chooser.showSaveDialog(this);
- System.out.println(returnVal);
- if(returnVal == JFileChooser.APPROVE_OPTION) {
- System.out.println("You chose to open this file: " +
- chooser.getSelectedFile().getPath());
- quest = new Questionnaire(chooser.getSelectedFile().getPath() + ".pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }else{
- quest = new Questionnaire("outputPDF/survey.pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }
-
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (DocumentException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (NullPointerException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
-
- private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
-
- JPanel contentPanel = new JPanel();
-
- dialog.setBounds(100, 100, 410, 80);
- dialog.getContentPane().setLayout(new BorderLayout());
- contentPanel.setLayout(new FlowLayout());
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- dialog.getContentPane().add(contentPanel, BorderLayout.CENTER);
- {
- JLabel label = new JLabel("Please wait...The overall computation can take few seconds");
- label.setHorizontalAlignment(SwingConstants.CENTER);
- label.setFont(new Font("Tahoma", Font.PLAIN, 12));
- contentPanel.add(label);
- }
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
- dialog.getContentPane().add(buttonPane, BorderLayout.SOUTH);
- }
- dialog.setLocationRelativeTo(this);
- dialog.setVisible(true);
-
- GUIWorker gw = new GUIWorker(this, props);
- Thread t = new Thread(gw);
- t.start();
-
- }
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JButton jButton1;
- private javax.swing.JComboBox<String> jComboBox1;
- private javax.swing.JLabel jLabel1;
- private javax.swing.JLabel jLabel2;
- private javax.swing.JLabel jLabel3;
- private javax.swing.JLabel jLabel4;
- private javax.swing.JMenu jMenu1;
- private javax.swing.JMenu jMenu2;
- private javax.swing.JMenuBar jMenuBar1;
- private javax.swing.JMenuItem jMenuItem1;
- private javax.swing.JPanel jPanel1;
- private javax.swing.JPanel jPanel2;
- private javax.swing.JScrollPane jScrollPane3;
- private javax.swing.JTabbedPane tabbedPane;
- private javax.swing.JScrollPane jScrollPane2;
- private javax.swing.JScrollPane jScrollPane4;
- private JPanel panel;
- private JPanel panel_1;
- private JPanel panel_2;
- private JLabel lblDearDoctor;
- private JLabel lblNewLabel_1;
- private JLabel lblNewLabel_2;
- private JLabel lblNewLabel_3;
- private JComboBox<String> comboBox;
- private Component rigidArea;
-
- // End of variables declaration//GEN-END:variables
-
-
- class GUIWorker implements Runnable{
-
- private JFrame mainFrame;
- private ClientProperties props;
- private MedUnit mu;
-
- public GUIWorker(GUI gui, ClientProperties props) {
- mainFrame = gui;
-
- this.props = props;
- this.mu = new MedUnit(props, 0);
- }
-
- @Override
- public void run() {
-
- try{
- int patientId = Integer.parseInt((String) jComboBox1.getSelectedItem());
-
- // convert selected tests to test identifiers
- ArrayList<TestName> selectedTests = new ArrayList<TestName>();
- for (String currentName : getSelectedTests()) {
- TestName currentTest = testsByName.get(currentName);
-
- if (currentTest == null) {
- throw new IllegalStateException("Trying to run unknown test: " + currentTest);
- }
-
- selectedTests.add(currentTest);
- }
-
- // run tests
- Diagnostic diagnostic = mu.runTests(patientId, selectedTests);
-
- // warn for tests with missing material
- warnFailedTests(diagnostic, selectedTests);
-
- // create report
- mu.createReport(patientId, selectedTests, diagnostic);
-
- dialog.setVisible(false);
-
- // specify file you wish to open (JPedal handles getting the byte data)
- String filepathReport = props.getPathPDF() + patientId + ".pdf";
-
- // open generated PDF
- // object must be either String in full filepath, or
- // File object which can be relative
- Object[] input = new Object[]{ new File(filepathReport) };
- viewer.executeCommand(Commands.OPENFILE, input);
-
- // display CAD result as bar plot
- if (diagnostic.hasCAD()) {
- System.out.println("CAD = " + diagnostic.getResultCAD());
- BarPlotFrame frame = new BarPlotFrame(diagnostic.getResultCAD(), patientId);
- frame.setVisible(true);
- frame.setAlwaysOnTop(true);
- }
-
-
- } catch (SQLException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Please select a patient.");
- }
-
- }
-
- private void warnFailedTests(Diagnostic diagnostic, ArrayList<TestName> selectedTests) {
- ArrayList<Integer> failedTests = diagnostic.getInvalidTests();
-
- if (!failedTests.isEmpty()) {
- String msg = "Could not complete tests: ";
- boolean first = true;
- for (TestName testName : selectedTests) {
- if (failedTests.contains(testName.getId())) {
- if (first) {
- first = false;
- } else {
- msg += ", ";
- }
- msg += testName.getName();
- }
- }
- displayError(msg);
- }
-
- }
-
- private void displayError(String msg) {
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- mainFrame,
- msg,
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
-
- private ArrayList<String> getSelectedTests() {
- ArrayList<String> tests = new ArrayList<String>();
-
- for (TreePath treePath : jTree.getSelectionPaths()) {
- tests.addAll(getChildrenTests(jTree.getModel(), treePath.getLastPathComponent()));
- }
-
- return tests;
- }
-
- private ArrayList<String> getChildrenTests(TreeModel model, Object node) {
- ArrayList<String> tests = new ArrayList<String>();
-
- if (model.isLeaf(node)) { // leaf
- DefaultMutableTreeNode leaf = (DefaultMutableTreeNode) node;
- tests.add(leaf.toString());
- }
- else { // iterate over children
- for (int i = 0; i < model.getChildCount(node); i++) {
- tests.addAll(getChildrenTests(model, model.getChild(node, i)));
- }
- }
-
- return tests;
- }
-
- }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/97/e071d6d56da8001419a38fd8608ce0e6 b/.metadata/.plugins/org.eclipse.core.resources/.history/97/e071d6d56da8001419a38fd8608ce0e6
deleted file mode 100644
index 0c906a2..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/97/e071d6d56da8001419a38fd8608ce0e6
+++ /dev/null
@@ -1,59 +0,0 @@
-package io;
-
-import io.serializer.url.URLParserDecrypt;
-import io.serializer.url.URLParserMaterial;
-import io.serializer.xml.XMLParserDecrypt;
-import io.serializer.xml.XMLParserMaterial;
-import io.serializer.xml.XMLParserSurvey;
-
-import java.util.logging.Logger;
-
-import framework.Type;
-import framework.reply.ReplyDecryption;
-import framework.reply.ReplyMaterial;
-import framework.reply.ReplySurvey;
-import framework.request.RequestDecryption;
-import framework.request.RequestMaterial;
-
-public class CommAdapter {
-
- @SuppressWarnings("unused")
- private static final Logger LOGGER = Logger.getLogger(CommAdapter.class.getName());
-
- public ClientConnection connectSPU = null;
-
- public CommAdapter(ClientConnection connectSPU) {
- this.connectSPU = connectSPU;
- }
-
- public ReplyDecryption callServiceDecrypt(RequestDecryption rqtDecrypt) {
- String requestString = URLParserDecrypt.requestToString(rqtDecrypt);
-// String replyString = "<awr_decrypt><patient>30351</patient><v_timestamp>1417188729390</v_timestamp><decrypt_val>,,,,,,,,,,,,,,,,2,AwHR3OO0/hkwgEHluLDFLtn4aaTBAwBEJjJpMegGa29ASgtyt1ha2OOyxvEvNgkIaY0xWXtTmqrqhSBKDG6J7Lps0g==,AwE/oifhonvUZDA4mqRK8K1WCkoepEuL9SidjdFXMNNZQXCMUvVN6pBUYVFgJeFX6mT2jruK8ic3y6yI14PfKl/Pvg==,AgBHs6HGF9AYNc5RlFTGv025WEaT91i/MPy+HXqhvHOrp0Ol9/aKyvv2BgAzeAdsdSEbVs2sahiyL/kbKjeUoI9tsA==,,,,,,,,,,,,,2,AgHIofEmf4aJMLBnKAY3/8WcLXUETF4y/68fzZR6hsS5btZTyI0E4ZTltDzV6hBzIT14cC4S/BMclo1aoLt5C9f+Cg==,AgDOXZAZAwO4KXslqU1wKctrVlH8CcGvpO8gGrPl3YjrY8SR3a6gStvZvjcUKXhvtDkRwSLAIkD3lFrKSXWestHSqQ==,AgG7Y5so9ZTRng2Xm3ziWx3+7zfaVLkIJ2v7g+qEUx5Vl2/udDOcg/was8W6qbKYeo/W0EGTlNXKTOdIatGVxyuoZA==,,,,,2,AgDAVy0/nE6X4iAengG9lCiYEBMtK6rAAiy7OwC7U/QSbokiEzH0RafH7rb+5L5R/ii9/3kZCcKmgOIoPzkmeloDfg==,AgHuvmLAeIFYm4ObEBO2v9xTK6tjYfdh+x4kwULBpDNlUiW4kNNaeoeziRA7nlRvcSfxPlR070N/3qzBMu3EKZ2csQ==,AgDk/CzCL4XUobuNaLsvrH5s0COMKYBqY/18YRR0d7mIsVVYrKVGF+IWnEluhbLt+BoRBdvL5UElgroyORJpiKz06w==,,,,,2,AgH0nW+2h+vcOZgPe3uR7jEHmEPi+g4izQ3OIU9An2vekwbG1liBFgTo33pEhyXhNWPhGCbSb73sJ7pt0JLL+hhWMw==,AgHG039OnpvmllkV6QBsmoMdqISrRuW2q5M3jfUp5TUbU6F/3S2FK1iSVKWgTsI291re6lz6KH5d8rWrnoCAozhIeg==,AwGjmnLUMd42F7a/tsSkeqcxoHMAXNKdvF4kOXoAxmc6ZSxaUhzkGkcgNOO8SFNiWqTKgtZCffJ7hfI0voAUX0TD1w==,,,,,2,AwHfYRjQFscHzOvVozackTaM3sybOjyd2aLc4B+WQ7KiWHoGKkzQScoDiy8hiA2cJpv8ngfitTqJRLlyegvuM+Ietw==,AwAP92OqrJFpFmdrMUUx6FeFhwVLYtAsfw3sem2RYu7ljPry+uJnvluuzTvVaFhs8BAAD8VBFs1vqrSHyQEq8Ocsmw==,AwDNXg/JA4QXA6wu30DUE7peOk1a10aHbd38iwjN1Q0DKy3BqS36+EQKg5hbwELxN2+/Yu4UA1IKWYJI0zNs6TJUtA==,,,,,2,AwBWFv3ivyQz4CGIilJ7CVtpQGOs1tnIW+0uxQyiWIO3HDjJtfxPyQ1AJWPsBQ9eYmaoKmPnN+euPCm7bP0LxBL/Tg==,AwHg7AZb5DV5OJrl0omtKx2OqckXcQEUT8pZ+Bmo9AyULgL5HOq2AVU04qhvbdy0W4OMYqxF3uBwqT6dNhFptsKEKQ==,AwG9dyMbI5EI8UCXuj5JkQRMimcT1u6zCBAfmRvANtT54yDtC8KS6VeOr7h/NP4qrf/mbl5tMaePbkkHrc6E39ntsA==,,,,,2,AwHkMyCOJm/RlYOybGhX3DchR/wSN2L3PuXKalMszgk3WOCiWSpYlP3SOPLWvJTRQaTxoN+oA5IkCTvlp02+Mduaxg==,AgHhR8HjavXjnsy+rHptc/JSI5pLFjM0RczUygxTX7vqV/yqwZ280Rq7YpXKp2GBfiZvFf0qIQoWe4vx5DBxwvHkdA==,AwEf2yisEpflVm8R2X08SCJM89apu7tUFzbpndsTIt5o9/xdoXKomMUk9REz+yrpkd+jFhlkJMQHHVMhgjiWYCEdpQ==,,,,,2,AwBaIc8ZWFm4O9QO0ofJeS9Q7tki7CAscBXRDnajEp7rmKNgrpRyyu1ezSpborwaloWR9kDKPLdYVV8SNk2V/1EudA==,AwGE8MPAnPKKXF15EyrAx1bRinwgoqYVO4Junz5IXQjGLyQpSr5NwO/hqu5E5egHte20jm380Wn2Qy6GgKNiRLy/gQ==,AwCAOjOQNdMN5uIB0POFzYS/fpxZ0Q5KfhlP5fijNmc/daO5frSrwhgcMH5lMKL4EGjBI1p6JMe3fuMqb5t1ImeTBg==,,,,,2,AgARSg2izcK6iZLFe4YkIS6yZgnt8cd9DFqpQ37gNmcccZwBI+mpsaijTUPo1GT+QUD8zC+6qr/GrzG9q+q7BPxpVw==,AwGM/jFdtoNViQXxgqeL27ZKobjsfyeuXrx8re3UfIe3c4XN16srSpcTfxEZNXDKo1Ff9fRvDVBOwdS6XU2nvo++ng==,AwAtK0eOqcVfzkdJIIkk7BORWwSDTAjtx4aEXwyZ0bla+2rIWDgXi3U5xlgnjeXJNtGsLokkvvX92BOBIw9SuCGhnw==,2,AgCWAAWTW+7jv2a2lc4pGFnumEgyH59wSDRXEYUASCVB249JBmeKFWRKNFTQlph5hTR5Rb+YHFP/qvzmwU11Hs2b0w==,AgANdxpkN+DS4De3aokNjt+e/Ou8GT+p8pUJA+6LHrDBXAddoCR8KpeXW7mESokq6BTEVQXxU3TdqavRkqaeFmpXkw==,AgDDDSEO3e8DCsm1n6dbj2PB9Z/tUzluDCt/utdSLrYFfdFY+Y5K7Vxo9F5/17CzaUbX172SGLt8TfCfuYBrtupgAg==,2,AgB1OG6bj+6kfRvLj8yjMQbl80FdZHZrRVRUfNVRwvjvvbRa5f9s9fNZ8J0a3s3hH+RyfZmGJ4Ufjh5mMiQkwiur6w==,AwBX4GFZNjUdtRdwtWgxyQz7h8Hk0ztaZeM8/e+8ll0o+RjYN+CNP8+lnXEw7wpuC4wcMX05mrjPvHOuy0hOFVNkhQ==,AgDf3el4vbMYIAFEH9WV151/uzl+gkfTQ79T8Iu4KxEVo6UJvCfqkjETlR6aXUJiqaCbSV5odMT50lURsmfgALf6AQ==,,,,,2,AgENmnviZkgQWXZ5QDgCCE2zq0IiXURTqK2UNPtEg3o64yjlrQQUd2rO/KgKolyCQcKYTVoMj7k2VeCSSVRr8KGC7w==,AwFv6ZJzhpV/Ms00QkrkNiCKVRFczn/yqnkiBFUHC1RQv3tqzzYSEUeXmDHmm0/kEBtnfgRWjHQm9zxS8Jzy7srDLQ==,AwB8aS5KA1dFLKCA1a/7Wsjhef+6kkNAB/GO9AOvRZbFW/dhl5fx04Alh+g78fwcVMX+eEIEJgSyH0jhv7kmiQh4ew==,,,,,2,AgG8fXrCra6UgP5G89TaE6PH5E0TANb/PJPbKwzdi78XEHRUmcTz6PIhYtclTmcdq5TH0IwQv+ra5ppf4qR4LtkGig==,AgEKzsmZrikmXzJywMpzkAdG9hAPlOiRY9oXKf4Sh50CL8btUItjfVJWg3ubNhotzJK+fnNlRrcMkWQEBD/aGKpf8A==,AwFi+2cGpuvVdR+pT1P9Ur8jAkzmjJK2XmUQbFpyMi5Jc9a5/fPnBWCxmTX8CH5wks0PicYC6rzZC3NEIt0EoM1Qfg==,,,,,2,AgHbTZgTAv8lLBsoX06Hkm9XPU+crlRqKl0xL8v18xeUUPY1YAvUYf2OAutmTtPRycXyzrDWSpn2h5xfk/dtq/BICg==,AwAjPydfoUhfSVFKWNI4Ox4a/psZGDIGzEEWh9HyVtAmjdNb5ctr/S6z+akiRfPlNCsVf6TdkzJ2Su6BO4sOX/SHKA==,AwBVmjn7AitCe4zQ/Fl0sYW2XqXkJxJBDviwl9jYhoq29v90n9escDsiA3Cy+1uW69MezdZBEszFdEWlX0EzbQZQ6A==,,,,,2,AwCG0RBHwHuame/1G7qtUjmwz0gkCP1tyZiEgm7aTKpsCjt7UsMirMmx/ZrNlvSzkGuVbRO97Szzr+9fo4baH1rEZA==,AwHyMK/q8FUUvoHTt7O7KJUxYz/ZHF6SntbmKfbygLVw4HWc/eFic4DXHKbEGWvrMO5b37GksqxfQHc2xlAuj8ZRIw==,AgB5x0BxqiMYxRvzlq0+/RkbOuNA7hYuMG+7D6wlMOxSskgqyfwA0MfW+AkXFqnqfqsoJRpDy15bABWhH6MIdJsPEA==,,,,,2,AwAS/nCH0pcrsllSy2duadUs1rMtL6vtz7VTUAVhn1/YYlZ068ysBi1Mdz9gJFewdyeGLnFhyg+W15rFB317nyeGHg==,AwBh6f5UVRMM5ekWqkrx6XiVOK/BL0TinjsSLna8BjkQPXU2DvGxiKPhA03/GtBdEpihEX4bVaHQhiOupTf7wh6bCQ==,AgGPDFH8Kv8hz2aUJ955nHu8NiAoTmDjqhlXuJ1T83h+O0sc2GieLhmXmpEjxjEAyxkqjb2nFxvDhi+YGs4MqI4S5A==,,,,,2,AwDqwFv6bqpM/6PTCJ/wgRALYVT+Rn54HIB2icP6ODNexaoqILBS9p1k1QENbQsBZ9LmJJwngRQXi07Q4P8br76Qfw==,AgG8yTiO8tFWZqQELBr+Zt1fKKA3bl08836nUEEpD55Sid0ZywCrWe+Va58xbMIWscISLPbBvXIdO48ZgoHsLgA7Jw==,AwCI1Ud0GJLnS86mSC58HNB91lH9kPpQbufGn+WJErGxAQubtSFBc3rnT0SNE3CbW+1MPjYBbdCgxpHjN/iQf96++w==,,,,;2,AgB9YhljgPngkwwYTBMUaMGR+rWMjvlK0tgrzkG8OT9NGNJfaaLP6AzfhWrT5oe9NRnabU25pQvDhAIGZCajDy8N2g==,AwE5Irce6LOSxfLgn4PZh1PeDPjAHb5wPTNfmQoWFY83dNQLYN44FupJaQRRUqBqyGNB0SL76GKzr8G9tKLAHOxRSQ==,BAG5iWHEhlWkvtyAlQy4bwKa1iNRzJq8WJTh2GE9oT4DeJRmO1pCHy9P+9YktDT+4RgV9s8AzOYih1LmHW14uP27HQGg1nTdHyab9/nFUe9BFxIi8xQTPG8et9++5I+gKIeWGCXBL31sBhpaMewvVhDjl2d3+7H2PUv9IY3lyIRFA6N16A==,2,AwAPIoQJqSbXFKXQAIG9J+/+/41NLX0rDINImk4eBgAnZ4V0R8YSqkHD3nd0IrEMyK7OpkCXkxTzOlwJlfEfti+vew==,AwAQ8KdMYsEOqM3eyGv/XbHnGf+TqCAG39Gz/juBcioOOJmLOFjl6oCITozJOyPusbTRXZ4eIwgQYkl12mt6saTpgQ==,BACkTO+3rRUF81w5yzZskFiIRyVxc6sdJfDFX6C+Jy5A+s/sfHskrFx2GYNklZaYztP0/B64a6v6HvFWVz8GuYj2wgHhiCL+QwLThFpaRxh8kUMSrt4VuXSIjtHwRXzhSdEbG2T6C/+CJZxIFh/ugEV9SS51l1HrLdnJDb2Kdu3QC3lRkQ==;2,AgC99VyiRLJ2kFf3oCkb+JPVV7B4tXVGI2NVT7fdKtB+gEjCcdkbS5YEXm/Sq6NAJEOKilMTFUDLYFDOe+7JHj/4pw==,AgAbT080sbKVHH9lim3tVCYS4cMz+rLownRKqtYZ7AfR8qy819R1GFywQ0kImgcdjEey5C4m0OPTwgtkO+C5uWtKfQ==,BADKYt9i0zTJeh3H8t6d8pZdncz3f28v1oWrssLZwAutkIcF3XKkPNmK3X75K3sImUSch//IIRIB1Yi5/MrZZeDrxQHhQZEg6AA8bDxgt0JdOEX2t4crzDu3gW5I8y+Ya0fZr1RmxvfMr2UxRhSsNsz949v/g+GPfsrEfDqIWTiNlJfwyg==,2,AgEPMjgCfgGRaZ/5I1hLqDoJ8nXYeTlnt9YeK4K8w+HnRAoAD09zkPcLMWajIjupe/CUFrHz00sAvs+vOPeKxGrLiQ==,AgDy7g2DcDwmIW7LtTTteHExD/cyP4BMWimEAM1RfAd/Y6P8XkmRGgglfdLJ7RGTR2YIMB1lxQ/LQUbmzyjTiiuWow==,BAHJ7oHVr/0wweyGlg4f9Dqmx8h0m35jMdrEFwVY8l/ENKpOTxG/oh9vAvo1uw39wUOn4CWGBmAFE2lsvWFW18gt+gHPFt5/9ihUFN9mtxFLT1Q3W4Uf8IdekHPMbNlxEp1wId7EH3XsAox3Eo8b3XnYpwfsAXoDwQa2wyiO5h104Ptvsg==;2,AwClCMGcHdd7rD8sYDC/GXyAtLmZ/JI4v+aOK4PXzjWJi/zvcsXT5dJUOm9bW6AAtzgOKPd0WwU3hSytJ+ATy146Uw==,AgADzN6ysOIC9GAuMF9suYNfkR027H/9OcpeVJb4HRHfZ/EOmQWSdJmJFw3F/NLUrreNnFCvuF1+1bbmHa3tvznjeA==,BADwaRJF9z3DW7HE3qhGu6Yd9d2WBfWy8opd7Mhkg7TpAQsn9oA3UcpCarn4DMSnVGG94Y3Pxsj5vlm5G7GMKiGoxAERnETH6pVgBxhtrnBU6l4vHl+X4rd8I/zheZiG0EFKJza41rmwKHTY4+42PJ8/3Y2rCanbY1RSAJEgiZR89k6nGg==,2,AgCK80PhKSC23aVKQ8uYm+79GWZiwpbV5lc8Fzcpwu8hdKGAMH4f62Y//cmrQmCIltm03PTVPMn6rMwkfoz+9M2LDQ==,AgH5aXThIKUjENFTGCGwcTRql7xIe8vR9h78KikTYkD8itQ+YBDrnx5OaNyWRjpIJHAZ2B61W2aVjZ5Rmo0d1B1Pcw==,BAAEZsEKw59QSRxN1QmWcx4X2LaK4+zBuawh+2CIRPljWyxK6XhIM6EEalr44Klce4OTK2QbxT5n3Kjnh5jNuwCOawAH/wiNrx09+HY8SZrRjCjv1+Lnicybrqg/IFDNoAGT5aguaGRIMmGOLe0QFJr0T0iW3RnYGlmSd/r6ex8+MpOgLw==</decrypt_val></awr_decrypt>";
- String replyString = connectSPU.sendReceive(Type.DECRYPT, requestString);
- System.out.println("REQUEST URL: " + requestString);
- System.out.println("REPLY: " + replyString);
- ReplyDecryption reply = (new XMLParserDecrypt()).stringToReply(replyString);
- return reply;
- }
-
- public ReplyMaterial callServiceMaterial(RequestMaterial rqtMaterial) {
- String requestString = URLParserMaterial.requestToString(rqtMaterial);
- String replyString = connectSPU.sendReceive(Type.MATERIAL, requestString);
-
- System.out.println("Material request:");
- System.out.println(replyString);
-
- ReplyMaterial reply = (new XMLParserMaterial()).stringToReply(replyString);
- return reply;
- }
-
- public ReplySurvey callServiceSurvey(){
-
-// String replyString = connectSPU.sendReceive(Type.SURVEY,"");
- //4::What's your name?::1;5::Where are you from?::2;6::How old are you?::3;7::What's your name?::1;8::Where are you from?::2;9::How old are you?::3;10::What's your name?::1;11::Where are you from?::2;12::How old are you?::3;13::What's your name?::1;14::Where are you from?::2;15::How old are you?::3
- String replyString ="<awr_survey><v_questions>1::What's your name?::1;2::Where are you from?::2;3::How old are you?::3;4::What's your name?::1;5::Where are you from?::2;6::How old are you?::3;7::What's your name?::1;8::Where are you from?::2;9::How old are you?::3;10::What's your name?::1;11::Where are you from?::2</v_questions><v_locations>Lausanne;Basel;Zurich</v_locations></awr_survey>";
- ReplySurvey reply = (new XMLParserSurvey()).stringToReply(replyString);
- return reply;
- }
-
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/99/70321c00b3a7001417ceadf0100b5ef7 b/.metadata/.plugins/org.eclipse.core.resources/.history/99/70321c00b3a7001417ceadf0100b5ef7
deleted file mode 100644
index 2658d52..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/99/70321c00b3a7001417ceadf0100b5ef7
+++ /dev/null
@@ -1,96 +0,0 @@
-package testpdf;
-
-import java.io.FileOutputStream;
-import java.io.IOException;
-
-import com.itextpdf.text.DocumentException;
-import com.itextpdf.text.Rectangle;
-import com.itextpdf.text.pdf.GrayColor;
-import com.itextpdf.text.pdf.PdfAction;
-import com.itextpdf.text.pdf.PdfFormField;
-import com.itextpdf.text.pdf.PdfReader;
-import com.itextpdf.text.pdf.PdfStamper;
-import com.itextpdf.text.pdf.PushbuttonField;
-
-public class SubmitForm {
-
- /** The resulting PDF file. */
- public static final String RESULT
- = "outputPDF/submit_me.pdf";
-
- /**
- * Manipulates a PDF file src with the file dest as result
- * @param src the original PDF
- * @param dest the resulting PDF
- * @throws IOException
- * @throws DocumentException
- */
- public void manipulatePdf(String src, String dest)
- throws IOException, DocumentException {
- // create a reader
- PdfReader reader = new PdfReader(src);
- // create a stamper
- PdfStamper stamper = new PdfStamper(reader,
- new FileOutputStream(dest));
- // create a submit button that posts the form as an HTML query string
- PushbuttonField button1 = new PushbuttonField(
- stamper.getWriter(), new Rectangle(90, 660, 140, 690), "post");
- button1.setText("POST");
- button1.setBackgroundColor(new GrayColor(0.7f));
- button1.setVisibility(PushbuttonField.VISIBLE_BUT_DOES_NOT_PRINT);
- PdfFormField submit1 = button1.getField();
- submit1.setAction(PdfAction.createSubmitForm(
- "outputPDF/request", null,
- PdfAction.SUBMIT_HTML_FORMAT | PdfAction.SUBMIT_COORDINATES));
- // add the button
- stamper.addAnnotation(submit1, 1);
- // create a submit button that posts the form as FDF
- PushbuttonField button2 = new PushbuttonField(
- stamper.getWriter(), new Rectangle(200, 660, 250, 690), "FDF");
- button2.setBackgroundColor(new GrayColor(0.7f));
- button2.setText("FDF");
- button2.setVisibility(PushbuttonField.VISIBLE_BUT_DOES_NOT_PRINT);
- PdfFormField submit2 = button2.getField();
- submit2.setAction(PdfAction.createSubmitForm(
- "outputPDF/request", null, PdfAction.SUBMIT_EXCL_F_KEY));
- // add the button
- stamper.addAnnotation(submit2, 1);
- // create a submit button that posts the form as XFDF
- PushbuttonField button3 = new PushbuttonField(
- stamper.getWriter(), new Rectangle(310, 660, 360, 690), "XFDF");
- button3.setBackgroundColor(new GrayColor(0.7f));
- button3.setText("XFDF");
- button3.setVisibility(PushbuttonField.VISIBLE_BUT_DOES_NOT_PRINT);
- PdfFormField submit3 = button3.getField();
- submit3.setAction(PdfAction.createSubmitForm(
- "outputPDF/request", null, PdfAction.SUBMIT_XFDF));
- // add the button
- stamper.addAnnotation(submit3, 1);
- // create a reset button
- PushbuttonField button4 = new PushbuttonField(
- stamper.getWriter(), new Rectangle(420, 660, 470, 690), "reset");
- button4.setBackgroundColor(new GrayColor(0.7f));
- button4.setText("RESET");
- button4.setVisibility(PushbuttonField.VISIBLE_BUT_DOES_NOT_PRINT);
- PdfFormField reset = button4.getField();
- reset.setAction(PdfAction.createResetForm(null, 0));
- // add the button
- stamper.addAnnotation(reset, 1);
- // close the stamper
- stamper.close();
- reader.close();
- }
-
- /**
- * Main method.
- *
- * @param args no arguments needed
- * @throws DocumentException
- * @throws IOException
- */
- public static void main(String[] args)
- throws IOException, DocumentException {
- new Subscribe().createPdf(Subscribe.FORM);
- new SubmitForm().manipulatePdf(Subscribe.FORM, RESULT);
- }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/99/900c56fa79a8001419a38fd8608ce0e6 b/.metadata/.plugins/org.eclipse.core.resources/.history/99/900c56fa79a8001419a38fd8608ce0e6
deleted file mode 100644
index c635af6..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/99/900c56fa79a8001419a38fd8608ce0e6
+++ /dev/null
@@ -1,138 +0,0 @@
-package io.serializer.xml;
-
-import io.serializer.ParserNamespace;
-
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.Map;
-import java.util.Set;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
-import org.jdom2.Document;
-import org.jdom2.Element;
-import org.jdom2.JDOMException;
-
-import utils.StringUtils;
-import framework.Question;
-import framework.reply.ReplySurvey;
-
-public class XMLParserSurvey extends XMLParser{
-
- private static final Logger LOGGER = Logger.getLogger(XMLParserSurvey.class.getName());
-
- public String replyToString(ReplySurvey reply) throws IOException {
- Element elemRoot = new Element(ParserNamespace.CNAME_AWR_SURVEY);
- Document doc = new Document(elemRoot);
-
- // add questions
- Element elemQuestionList = new Element(ParserNamespace.CNAME_QUESTION_LIST);
- elemQuestionList.setText(concatQuestionList(reply.getQuestions()));
- elemRoot.addContent(elemQuestionList);
-
- // add locations
- Element elemLocationList = new Element(ParserNamespace.CNAME_LOCATION_LIST);
- elemLocationList.setText(concatLocationList(reply.getLocations()));
- elemRoot.addContent(elemLocationList);
-
-
- return documentToString(doc);
- }
-
-
- public ReplySurvey stringToReply(String replyString) {
- ReplySurvey reply = null;
-
- try {
- Document doc = stringToDocument(replyString);
- Element elemRoot = doc.getRootElement();
-
- Element elemQuestionList = elemRoot.getChild(ParserNamespace.CNAME_QUESTION_LIST);
- Element elemLocationList = elemRoot.getChild(ParserNamespace.CNAME_LOCATION_LIST);
-
-
- Map<Integer, Question> questions = parseConcatQuestionList(elemQuestionList.getText());
- ArrayList<String> locations = parseConcatLocationList(elemLocationList.getText());
-
-
- reply = new ReplySurvey(questions, locations);
- } catch (JDOMException e) {
- LOGGER.log(Level.SEVERE, null, e);
- }
-
- return reply;
- }
-
- private String concatLocationList(ArrayList<String> list) {
- if (list == null || list.isEmpty()) {
- return "";
- }
-
- return StringUtils.join(SEP_EXT, list);
- }
-
- private String concatQuestionList(Map<Integer, Question> map){
- if(map == null || map.isEmpty()){
- return "";
- }
- StringBuilder sb = new StringBuilder();
- Set<Integer> ids = map.keySet();
-
- boolean first = true;
- for (Integer id : ids) {
- if (first) {
- first = false;
- } else {
- sb.append(SEP_EXT);
- }
-
- sb.append(id).append(SEP_INT_QUESTIONS).append(map.get(id).getQuestion())
- .append(SEP_INT_QUESTIONS).append(map.get(id).getType());
-
- }
-
- return sb.toString();
-
- }
-
- private ArrayList<String> parseConcatLocationList(String val) {
- if (val.equals("")) {
- return new ArrayList<String>();
- }
- ArrayList<String> list = new ArrayList<String>();
-
- String[] strings = val.split(SEP_EXT, -1);
-
- for (int i = 0; i < strings.length; i++) {
- list.add(strings[i]);
- }
-
- return list;
- }
-
- private Map<Integer, Question> parseConcatQuestionList(String val){
- if (val.equals("")) {
- return new HashMap<Integer, Question>();
- }
-
- Map<Integer, Question> map = new HashMap<Integer, Question>();
-
- String[] strings = val.split(SEP_EXT,-1);
- System.out.println(strings.length);
- for(int i = 0; i<strings.length-1; i++){
- if (strings[i].equals("")) map.put(null, null);
- else{
- String[] values = strings[i].split(SEP_INT_QUESTIONS);
- int id = Integer.parseInt(values[0]);
- String question = values[1];
- int type = Integer.parseInt(values[2]);
-
- map.put(id, new Question(type, question));
- }
- }
- return map;
-
- }
-
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/9a/90380ba57aa8001419a38fd8608ce0e6 b/.metadata/.plugins/org.eclipse.core.resources/.history/9a/90380ba57aa8001419a38fd8608ce0e6
deleted file mode 100644
index f2d1aea..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/9a/90380ba57aa8001419a38fd8608ce0e6
+++ /dev/null
@@ -1,137 +0,0 @@
-package io.serializer.xml;
-
-import io.serializer.ParserNamespace;
-
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.Map;
-import java.util.Set;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
-import org.jdom2.Document;
-import org.jdom2.Element;
-import org.jdom2.JDOMException;
-
-import utils.StringUtils;
-import framework.Question;
-import framework.reply.ReplySurvey;
-
-public class XMLParserSurvey extends XMLParser{
-
- private static final Logger LOGGER = Logger.getLogger(XMLParserSurvey.class.getName());
-
- public String replyToString(ReplySurvey reply) throws IOException {
- Element elemRoot = new Element(ParserNamespace.CNAME_AWR_SURVEY);
- Document doc = new Document(elemRoot);
-
- // add questions
- Element elemQuestionList = new Element(ParserNamespace.CNAME_QUESTION_LIST);
- elemQuestionList.setText(concatQuestionList(reply.getQuestions()));
- elemRoot.addContent(elemQuestionList);
-
- // add locations
- Element elemLocationList = new Element(ParserNamespace.CNAME_LOCATION_LIST);
- elemLocationList.setText(concatLocationList(reply.getLocations()));
- elemRoot.addContent(elemLocationList);
-
-
- return documentToString(doc);
- }
-
-
- public ReplySurvey stringToReply(String replyString) {
- ReplySurvey reply = null;
-
- try {
- Document doc = stringToDocument(replyString);
- Element elemRoot = doc.getRootElement();
-
- Element elemQuestionList = elemRoot.getChild(ParserNamespace.CNAME_QUESTION_LIST);
- Element elemLocationList = elemRoot.getChild(ParserNamespace.CNAME_LOCATION_LIST);
-
-
- Map<Integer, Question> questions = parseConcatQuestionList(elemQuestionList.getText());
- ArrayList<String> locations = parseConcatLocationList(elemLocationList.getText());
-
-
- reply = new ReplySurvey(questions, locations);
- } catch (JDOMException e) {
- LOGGER.log(Level.SEVERE, null, e);
- }
-
- return reply;
- }
-
- private String concatLocationList(ArrayList<String> list) {
- if (list == null || list.isEmpty()) {
- return "";
- }
-
- return StringUtils.join(SEP_EXT, list);
- }
-
- private String concatQuestionList(Map<Integer, Question> map){
- if(map == null || map.isEmpty()){
- return "";
- }
- StringBuilder sb = new StringBuilder();
- Set<Integer> ids = map.keySet();
-
- boolean first = true;
- for (Integer id : ids) {
- if (first) {
- first = false;
- } else {
- sb.append(SEP_EXT);
- }
-
- sb.append(id).append(SEP_INT_QUESTIONS).append(map.get(id).getQuestion())
- .append(SEP_INT_QUESTIONS).append(map.get(id).getType());
-
- }
-
- return sb.toString();
-
- }
-
- private ArrayList<String> parseConcatLocationList(String val) {
- if (val.equals("")) {
- return new ArrayList<String>();
- }
- ArrayList<String> list = new ArrayList<String>();
-
- String[] strings = val.split(SEP_EXT, -1);
-
- for (int i = 0; i < strings.length; i++) {
- list.add(strings[i]);
- }
-
- return list;
- }
-
- private Map<Integer, Question> parseConcatQuestionList(String val){
- if (val.equals("")) {
- return new HashMap<Integer, Question>();
- }
-
- Map<Integer, Question> map = new HashMap<Integer, Question>();
-
- String[] strings = val.split(SEP_EXT,-1);
- for(int i = 0; i<strings.length-1; i++){
- if (strings[i].equals("")) map.put(null, null);
- else{
- String[] values = strings[i].split(SEP_INT_QUESTIONS);
- int id = Integer.parseInt(values[0]);
- String question = values[1];
- int type = Integer.parseInt(values[2]);
-
- map.put(id, new Question(type, question));
- }
- }
- return map;
-
- }
-
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/9c/502afbfd7aa8001419a38fd8608ce0e6 b/.metadata/.plugins/org.eclipse.core.resources/.history/9c/502afbfd7aa8001419a38fd8608ce0e6
deleted file mode 100644
index c464ec9..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/9c/502afbfd7aa8001419a38fd8608ce0e6
+++ /dev/null
@@ -1,143 +0,0 @@
-package io.serializer.xml;
-
-import io.serializer.ParserNamespace;
-
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.Map;
-import java.util.Set;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
-import org.jdom2.Document;
-import org.jdom2.Element;
-import org.jdom2.JDOMException;
-
-import utils.StringUtils;
-import framework.Question;
-import framework.reply.ReplySurvey;
-
-public class XMLParserSurvey extends XMLParser{
-
- private static final Logger LOGGER = Logger.getLogger(XMLParserSurvey.class.getName());
-
- public String replyToString(ReplySurvey reply) throws IOException {
- Element elemRoot = new Element(ParserNamespace.CNAME_AWR_SURVEY);
- Document doc = new Document(elemRoot);
-
- // add questions
- Element elemQuestionList = new Element(ParserNamespace.CNAME_QUESTION_LIST);
- elemQuestionList.setText(concatQuestionList(reply.getQuestions()));
- elemRoot.addContent(elemQuestionList);
-
- // add locations
- Element elemLocationList = new Element(ParserNamespace.CNAME_LOCATION_LIST);
- elemLocationList.setText(concatLocationList(reply.getLocations()));
- elemRoot.addContent(elemLocationList);
-
-
- return documentToString(doc);
- }
-
-
- public ReplySurvey stringToReply(String replyString) {
- ReplySurvey reply = null;
-
- try {
- Document doc = stringToDocument(replyString);
- Element elemRoot = doc.getRootElement();
-
- Element elemQuestionList = elemRoot.getChild(ParserNamespace.CNAME_QUESTION_LIST);
- Element elemLocationList = elemRoot.getChild(ParserNamespace.CNAME_LOCATION_LIST);
-
-
- Map<Integer, Question> questions = parseConcatQuestionList(elemQuestionList.getText());
- ArrayList<String> locations = parseConcatLocationList(elemLocationList.getText());
-
-
- reply = new ReplySurvey(questions, locations);
- } catch (JDOMException e) {
- LOGGER.log(Level.SEVERE, null, e);
- }
-
- return reply;
- }
-
- private String concatLocationList(ArrayList<String> list) {
- if (list == null || list.isEmpty()) {
- return "";
- }
-
- return StringUtils.join(SEP_EXT, list);
- }
-
- private String concatQuestionList(Map<Integer, Question> map){
- if(map == null || map.isEmpty()){
- return "";
- }
- StringBuilder sb = new StringBuilder();
- Set<Integer> ids = map.keySet();
-
- boolean first = true;
- for (Integer id : ids) {
- if (first) {
- first = false;
- } else {
- sb.append(SEP_EXT);
- }
-
- sb.append(id).append(SEP_INT_QUESTIONS).append(map.get(id).getQuestion())
- .append(SEP_INT_QUESTIONS).append(map.get(id).getType());
-
- }
-
- return sb.toString();
-
- }
-
- private Map<Integer, String> parseConcatLocationList(String val) {
- if (val.equals("")) {
- return new HashMap<Integer, String>();
- }
- HashMap<Integer, String> map = new HashMap<Integer, String>();
-
- String[] strings = val.split(SEP_EXT, -1);
-
- for(int i = 0; i<strings.length; i++){
- if (strings[i].equals("")) map.put(null, null);
- else{
- String[] values = strings[i].split(SEP_INT_QUESTIONS);
- int id = Integer.parseInt(values[0]);
- String location = values[1];
- map.put(id, location);
- }
- }
-
- return map;
- }
-
- private Map<Integer, Question> parseConcatQuestionList(String val){
- if (val.equals("")) {
- return new HashMap<Integer, Question>();
- }
-
- Map<Integer, Question> map = new HashMap<Integer, Question>();
-
- String[] strings = val.split(SEP_EXT,-1);
- for(int i = 0; i<strings.length-1; i++){
- if (strings[i].equals("")) map.put(null, null);
- else{
- String[] values = strings[i].split(SEP_INT_QUESTIONS);
- int id = Integer.parseInt(values[0]);
- String question = values[1];
- int type = Integer.parseInt(values[2]);
-
- map.put(id, new Question(type, question));
- }
- }
- return map;
-
- }
-
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/9d/90c8d2dd4fac001410e2e30aa85db9d1 b/.metadata/.plugins/org.eclipse.core.resources/.history/9d/90c8d2dd4fac001410e2e30aa85db9d1
deleted file mode 100644
index 3b2d014..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/9d/90c8d2dd4fac001410e2e30aa85db9d1
+++ /dev/null
@@ -1,902 +0,0 @@
-package ui;
-
-import io.ClientConnection;
-import io.CommAdapter;
-import io.Questionnaire;
-
-import java.awt.BorderLayout;
-import java.awt.Color;
-import java.awt.Component;
-import java.awt.Dimension;
-import java.awt.FlowLayout;
-import java.awt.Font;
-import java.awt.SystemColor;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.awt.event.WindowAdapter;
-import java.io.File;
-import java.io.IOException;
-import java.sql.SQLException;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.LinkedList;
-import java.util.Map;
-import java.util.Set;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
-import javax.swing.Box;
-import javax.swing.BoxLayout;
-import javax.swing.ButtonGroup;
-import javax.swing.DefaultComboBoxModel;
-import javax.swing.GroupLayout;
-import javax.swing.GroupLayout.Alignment;
-import javax.swing.ImageIcon;
-import javax.swing.JButton;
-import javax.swing.JComboBox;
-import javax.swing.JDialog;
-import javax.swing.JFileChooser;
-import javax.swing.JFrame;
-import javax.swing.JLabel;
-import javax.swing.JOptionPane;
-import javax.swing.JPanel;
-import javax.swing.JRadioButton;
-import javax.swing.JScrollPane;
-import javax.swing.JSeparator;
-import javax.swing.JTabbedPane;
-import javax.swing.JTextArea;
-import javax.swing.JTextPane;
-import javax.swing.JTree;
-import javax.swing.LayoutStyle.ComponentPlacement;
-import javax.swing.SwingConstants;
-import javax.swing.UIManager;
-import javax.swing.border.BevelBorder;
-import javax.swing.border.EmptyBorder;
-import javax.swing.border.EtchedBorder;
-import javax.swing.tree.DefaultMutableTreeNode;
-import javax.swing.tree.TreeModel;
-import javax.swing.tree.TreePath;
-
-import org.jpedal.examples.viewer.Commands;
-import org.jpedal.examples.viewer.Viewer;
-
-import utils.ClientProperties;
-
-import com.itextpdf.text.DocumentException;
-
-import database.DBconnectorClient;
-import framework.Diagnostic;
-import framework.MedUnit;
-import framework.Question;
-import framework.reply.ReplySurvey;
-import framework.test.TestName;
-
-/**
- *
- * @author youssef, raisaro
- */
-public class GUI extends javax.swing.JFrame {
-
- private static final Logger LOGGER = Logger.getLogger(GUI.class.getName());
-
- private static final long serialVersionUID = -4582280515597700650L;
-
- // configuration
- private ClientProperties props;
-
- private JTree jTree;
- private DBconnectorClient connectorClientDB;
- private LinkedList<Integer> patients;
-
- /** List of all relevant tests */
- private HashMap<String, TestName> testsByName;
- private Viewer viewer;
- private JDialog dialog;
- private JFrame frame;
- private boolean survey_submitted;
- private int close_trials;
- private Map<Integer, ButtonGroup> buttonGroupMap;
- private Questionnaire quest;
- private Map<Integer, Question> map;
- private Set<Integer> ids;
- private Map<String,String> answers;
- private Map<Integer, String> locations;
-
-
- /**
- * Creates new form GUI
- */
- public GUI(ClientProperties props){
-
- frame = this;
- this.props = props;
- this.connectorClientDB = new DBconnectorClient(props.getDbMsAccess());
- survey_submitted = false;
- close_trials = 0;
-
-
- try {
- initComponents();
-
- viewer = new Viewer(jScrollPane2, null);
- viewer.setupViewer();
-
- // create questionnare
-
-
- System.out.println("#of questions: " + ids.size());
-
-// viewer_q = new Viewer(jScrollPane4, null);
-// viewer_q.setupViewer();
-//
-// // specify file you wish to open (JPedal handles getting the byte data)
-// String filepathReport = "outputPDF/buttons_filled.pdf";
-//
-// // open generated PDF
-// // object must be either String in full filepath, or
-// // File object which can be relative
-// Object[] input = new Object[]{ new File(filepathReport) };
-// viewer_q.executeCommand(Commands.OPENFILE, input);
-
- JButton btnSubmitQuestionnaire = new JButton("Submit Questionnaire");
- btnSubmitQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- btnSubmitQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- submitButtonActionPerformed(arg0);
- }
- });
- JButton btnResetQuestionnaire = new JButton("Save as PDF");
- btnResetQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- savePDFButtonActionPerformed(arg0);
- }
- });
- btnResetQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- JPanel panel_button = new JPanel();
- panel_button.setLayout(new BoxLayout(panel_button, BoxLayout.X_AXIS));
-
- lblNewLabel_3 = new JLabel("");
- lblNewLabel_3.setIcon(new ImageIcon("res/location_icon.png"));
- panel_button.add(lblNewLabel_3);
-
-
-
- comboBox = new JComboBox<String>();
- comboBox.setFont(new Font("Tahoma", Font.BOLD, 12));
- comboBox.setModel(new DefaultComboBoxModel<String>(new String[] {"Select Location"}));
- for(Integer id_loc : locations.keySet()){
- comboBox.addItem(locations.get(id_loc));
- }
-
-
- panel_button.add(comboBox);
-
- rigidArea = Box.createRigidArea(new Dimension(10, 0));
- panel_button.add(rigidArea);
-
- lblNewLabel_1 = new JLabel("");
- lblNewLabel_1.setIcon(new ImageIcon("res/submit.png"));
- panel_button.add(lblNewLabel_1);
- panel_button.add(btnSubmitQuestionnaire);
-
- panel_button.add(Box.createRigidArea(new Dimension(10,0)));
-
- lblNewLabel_2 = new JLabel("");
- lblNewLabel_2.setIcon(new ImageIcon("res/pdf.png"));
- panel_button.add(lblNewLabel_2);
- panel_button.add(btnResetQuestionnaire);
- panel_button.setPreferredSize(new Dimension(211, 35));
- panel_button.validate();
-
- JPanel panel_3 = new JPanel();
- GroupLayout gl_panel = new GroupLayout(panel);
- gl_panel.setHorizontalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(63)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addGap(103)
- .addComponent(panel_button, GroupLayout.DEFAULT_SIZE, 498, Short.MAX_VALUE)
- .addGap(241))
- .addGroup(Alignment.TRAILING, gl_panel.createSequentialGroup()
- .addGap(41)
- .addGroup(gl_panel.createParallelGroup(Alignment.TRAILING)
- .addComponent(panel_1, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE)
- .addComponent(jScrollPane4, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE))
- .addGap(32))
- );
- gl_panel.setVerticalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(22)
- .addComponent(panel_1, GroupLayout.DEFAULT_SIZE, 252, Short.MAX_VALUE)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addComponent(jScrollPane4, GroupLayout.DEFAULT_SIZE, 384, Short.MAX_VALUE)
- .addGap(26)
- .addGroup(gl_panel.createParallelGroup(Alignment.LEADING)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(panel_button, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE)))
- );
- panel_3.setLayout(new BoxLayout(panel_3, BoxLayout.X_AXIS));
-
-
- panel.setLayout(gl_panel);
-
-
-
-
-
-
- /////////////////////////////////////////////////////////
- // display the tests available
-
- // get the tests
- HashMap<String, ArrayList<TestName>> testsRelevantByGroup = connectorClientDB.getRelevantTestsByGroup();
- ArrayList<String> groups = new ArrayList<String>(testsRelevantByGroup.keySet());
-
- // flatten hashmap into linkedlist
-// tests = new LinkedList<>();
- testsByName = new HashMap<String, TestName>();
- for (String group : groups) {
-// tests.addAll(testsRelevantByGroup.get(group));
- for (TestName test : testsRelevantByGroup.get(group)) {
- testsByName.put(test.getName(), test);
- }
- }
-
- // define tree structure of the tests
- DefaultMutableTreeNode root = new DefaultMutableTreeNode("All");
-
- for (String group : groups) {
- DefaultMutableTreeNode child = new DefaultMutableTreeNode(group);
- root.add(child);
-
- for (TestName test : testsRelevantByGroup.get(group)) {
- DefaultMutableTreeNode grandChild = new DefaultMutableTreeNode(test.getName());
- child.add(grandChild);
- }
- }
-
- // define swing object
- jTree = new JTree(root);
-
- for(int i=0;i<jTree.getRowCount();i++){
- jTree.expandRow(i);
- }
-
- jScrollPane3.setViewportView(jTree);
-// jTree.addTreeSelectionListener(new TreeSelectionListener() {
-//
-// @Override
-// public void valueChanged(TreeSelectionEvent e) {
-// tp = jTree.getSelectionPaths();
-// }
-// });
- jScrollPane3.setViewportView(jTree);
-
- /////////////////////////////////////////////////////////
- // display the patients registered
-
- patients = connectorClientDB.getPatients();
- for (Integer patientId : patients) {
- jComboBox1.addItem(patientId.toString());
- }
-
- } catch (SQLException ex) {
- Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex);
- ex.printStackTrace();
-// } catch (IOException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
-// } catch (DocumentException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
- }
-
- }
-
- /**
- * 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() {
-
- jPanel1 = new javax.swing.JPanel();
- jLabel2 = new javax.swing.JLabel();
- jLabel1 = new javax.swing.JLabel();
- jPanel2 = new javax.swing.JPanel();
- jComboBox1 = new javax.swing.JComboBox<String>();
- jButton1 = new javax.swing.JButton();
- jButton1.setFont(new Font("Tahoma", Font.BOLD, 12));
- jLabel3 = new javax.swing.JLabel();
- jLabel4 = new javax.swing.JLabel();
- jScrollPane3 = new javax.swing.JScrollPane();
- jScrollPane2 = new javax.swing.JScrollPane();
- jMenuBar1 = new javax.swing.JMenuBar();
- jMenu1 = new javax.swing.JMenu();
- jMenuItem1 = new javax.swing.JMenuItem();
- jMenu2 = new javax.swing.JMenu();
- dialog = new JDialog();
- tabbedPane = new JTabbedPane(JTabbedPane.TOP);
-
- setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
- addWindowListener(new WindowAdapter() {
- @Override
- public void windowClosing(java.awt.event.WindowEvent windowEvent) {
- if (!survey_submitted && close_trials <= 2){
- JOptionPane.showMessageDialog(frame, "Before closing the application, please fill in and submit the questionnaire.");
- close_trials++;
- tabbedPane.setSelectedIndex(1);
- }else{
- System.exit(0);
- }
- }
- });
- setTitle("HIV Pharmacogenomics\n");
-
- jLabel2.setIcon(new javax.swing.ImageIcon("res/shcs_logo2_small.gif")); // NOI18N
-
- jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
- jLabel1.setText("HIV Pharmacogenomics | Project #693");
-
- javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
- jPanel1.setLayout(jPanel1Layout);
- jPanel1Layout.setHorizontalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap(71, Short.MAX_VALUE)
- .addComponent(jLabel1)
- .addGap(18, 18, 18)
- .addComponent(jLabel2))
- );
- jPanel1Layout.setVerticalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jLabel1)
- .addGap(11, 11, 11))
- .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)
- );
-
- jPanel2.setBackground(new java.awt.Color(255, 255, 255));
- jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
-
- jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<String>(new String[]{"Select Patient"}));
-
- jButton1.setText("Run Test");
- jButton1.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton1ActionPerformed(evt);
- }
- });
-
- JLabel lblNewLabel = new JLabel("");
- lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
- lblNewLabel.setIcon(new javax.swing.ImageIcon("res/gears.png"));
-
-
-
- javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
- jPanel2Layout.setHorizontalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addComponent(jComboBox1, 0, 248, Short.MAX_VALUE)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addGap(75)
- .addGroup(jPanel2Layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jButton1)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 75, GroupLayout.PREFERRED_SIZE))
- .addContainerGap(98, Short.MAX_VALUE))
- );
- jPanel2Layout.setVerticalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addComponent(jComboBox1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED, 223, Short.MAX_VALUE)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jButton1)
- .addGap(19))
- );
- jPanel2.setLayout(jPanel2Layout);
-
- jLabel3.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel3.setText("Select Patient");
-
- jLabel4.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel4.setText("Select Test");
-
- jScrollPane3.setBackground(new java.awt.Color(255, 255, 255));
-
- jMenu1.setText("File");
-
- jMenuItem1.setText("Exit");
- jMenu1.add(jMenuItem1);
-
- jMenuBar1.add(jMenu1);
-
- jMenu2.setText("Edit");
- jMenuBar1.add(jMenu2);
-
- setJMenuBar(jMenuBar1);
-
-
-
- javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
- layout.setHorizontalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(layout.createParallelGroup(Alignment.LEADING, false)
- .addComponent(jLabel3)
- .addComponent(jLabel4)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, 244, Short.MAX_VALUE)
- .addComponent(jScrollPane3))
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 970, Short.MAX_VALUE))
- .addContainerGap())
- );
- layout.setVerticalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel4))
- .addPreferredGap(ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addComponent(jScrollPane3, GroupLayout.PREFERRED_SIZE, 388, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jLabel3)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 785, Short.MAX_VALUE))
- .addContainerGap())
- );
-
-
- jScrollPane2.setAutoscrolls(true);
- jScrollPane3.setAutoscrolls(true);
- tabbedPane.addTab("Report", new ImageIcon("res/report_icon.gif"), jScrollPane2, null);
- tabbedPane.setBackgroundAt(0, new Color(255, 255, 255));
-
- panel = new JPanel();
- tabbedPane.addTab("Survey", new ImageIcon("res/survey_icon.png"), panel, null);
- tabbedPane.setBackgroundAt(1, new Color(255, 255, 255));
- tabbedPane.setEnabledAt(1, true);
-
- panel_1 = new JPanel();
- panel_1.setBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null));
- panel_1.setBackground(UIManager.getColor("Button.background"));
-
- JLabel label = new JLabel("");
- label.setIcon(new ImageIcon("res/shcs_logo2_medium.gif"));
-
- lblDearDoctor = new JLabel("Dear Doctor,");
- lblDearDoctor.setFont(new Font("Tahoma", Font.BOLD, 14));
-
- JScrollPane scrollPane = new JScrollPane();
- scrollPane.setBorder(null);
- GroupLayout gl_panel_1 = new GroupLayout(panel_1);
- gl_panel_1.setHorizontalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(25)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 666, Short.MAX_VALUE)
- .addComponent(lblDearDoctor))
- .addContainerGap())
- );
- gl_panel_1.setVerticalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(22)
- .addComponent(lblDearDoctor)
- .addGap(18)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 120, Short.MAX_VALUE)
- .addContainerGap())
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(36)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 96, GroupLayout.PREFERRED_SIZE)
- .addContainerGap(56, Short.MAX_VALUE))
- );
-
- JTextPane txtpnTodayYouAre = new JTextPane();
- txtpnTodayYouAre.setBorder(null);
- txtpnTodayYouAre.setText("Today you are receiving a pharmacogenetics report based on the genome of your patient. Because of its highly sensitive nature, " +
- "the genetic information you are provided with is processed in a privacy-preserving way. In particular, to protect patients’ genomic privacy, " +
- "their genetic and clinical data is stored encrypted at the SHCS data center, and securely analyzed through a sophisticated algorithm designed and developed at EPFL [1, 2]. " +
- "The actual clinical and genetic information is never revealed. Only the authorized users, such as you, can get some processed information, for example, the final result of a " +
- "pharmacogenetics risk test.\nThis mechanism protects the data against insiders or hackers trying to illegally access patients’ medical information, while still allowing authorized " +
- "users to obtain the information they need." +
- "\n\nTo help us understanding the importance of genomic privacy in the medical domain, and the impact of privacy-enhancing technologies in daily clinical practice, please complete the following survey.");
- txtpnTodayYouAre.setFont(new Font("Tahoma", Font.PLAIN, 13));
- txtpnTodayYouAre.setEditable(false);
- txtpnTodayYouAre.setBackground(SystemColor.menu);
- scrollPane.setViewportView(txtpnTodayYouAre);
- panel_1.setLayout(gl_panel_1);
- jScrollPane4 = new javax.swing.JScrollPane();
- getContentPane().setLayout(layout);
-
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
- ReplySurvey replySurvey = commHandlerAdapter.callServiceSurvey();
-
- map = replySurvey.getQuestions();
- ids = map.keySet();
- locations = replySurvey.getLocations();
-
- panel_2 = new JPanel();
- panel_2.setBackground(Color.WHITE);
- panel_2.setBorder(new BevelBorder(BevelBorder.LOWERED, null, null, null, null));
- jScrollPane4.setViewportView(panel_2);
- panel_2.setLayout(new BoxLayout(panel_2, BoxLayout.Y_AXIS));
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
-
-
- for(Integer id : ids){
- ButtonGroup group = new ButtonGroup();
- JRadioButton r1 = new JRadioButton("1"); r1.setActionCommand("1"); r1.setBackground(Color.WHITE);
- JRadioButton r2 = new JRadioButton("2"); r2.setActionCommand("2"); r2.setBackground(Color.WHITE);
- JRadioButton r3 = new JRadioButton("3"); r3.setActionCommand("3"); r3.setBackground(Color.WHITE);
- JRadioButton r4 = new JRadioButton("4"); r4.setActionCommand("4"); r4.setBackground(Color.WHITE);
- JRadioButton r5 = new JRadioButton("5"); r5.setActionCommand("5"); r5.setBackground(Color.WHITE);
- group.add(r1);
- group.add(r2);
- group.add(r3);
- group.add(r4);
- group.add(r5);
- JPanel radio_panel = new JPanel();
- radio_panel.setLayout((new BoxLayout(radio_panel, BoxLayout.X_AXIS)));
- radio_panel.setBackground(Color.WHITE);
- radio_panel.setAlignmentX(Component.CENTER_ALIGNMENT);
- radio_panel.add(r1);
- radio_panel.add(r2);
- radio_panel.add(r3);
- radio_panel.add(r4);
- radio_panel.add(r5);
- radio_panel.doLayout();
- radio_panel.setPreferredSize(radio_panel.getPreferredSize());
- JTextArea question = new JTextArea(id + ") " + map.get(id).getQuestion());
- question.setLineWrap(true);
- question.setWrapStyleWord(true);
- question.setAlignmentX(Component.CENTER_ALIGNMENT);
- question.setFont(new Font("Tahoma", Font.PLAIN, 13));
-
- JPanel row_panel = new JPanel();
- row_panel.setLayout(new BoxLayout(row_panel, BoxLayout.X_AXIS));
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.add(question);
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.add(radio_panel);
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
-
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- panel_2.add(row_panel);
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
-// panel_2.add(radio_panel);
- panel_2.add(new JSeparator());
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
-// panel_2.setPreferredSize(panel_2.getPreferredSize());
- buttonGroupMap.put(id, group);
-
- }
-
-
-
- this.setSize(new Dimension(1200, 865));
-// pack();
- }// </editor-fold>//GEN-END:initComponents
-
-
- private void submitButtonActionPerformed(java.awt.event.ActionEvent evt){
-
- try{
- answers = new HashMap<String, String>();
- StringBuilder sb = new StringBuilder();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- sb.append(q).append(",");
- sb.append(bg.getSelection().getActionCommand()).append(";");
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- String answer = sb.toString();
- Integer id_loc = null;
- for(Integer i: locations.keySet()){
- if(locations.get(i).equals(comboBox.getSelectedItem().toString()))
- id_loc = i;
- }
-
- String id_p;
- if(jComboBox1.getSelectedItem().toString().equals("Select Patient"))
- id_p = "0";
- else
- id_p = jComboBox1.getSelectedItem().toString();
-
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
-
- String reply = commHandlerAdapter.callServiceSurveyAnswer(answer, id_loc.toString(), id_p);
-
- if(reply.equals("1")){
- survey_submitted = true;
-
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Congrats! Your aswers have been sent to the SHCS datacenter.",
- "Information Message",
- JOptionPane.INFORMATION_MESSAGE);
- }
- else{
- throw new IOException();
- }
-
-
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "The SHCS datacenter does not respond. Please save the survey and send it to jean.raisaro@epfl.ch.",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
- private void savePDFButtonActionPerformed(java.awt.event.ActionEvent evt){
- try {
-
- answers = new HashMap<String, String>();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- JFileChooser chooser = new JFileChooser();
- // Note: source for ExampleFileFilter can be found in FileChooserDemo,
- // under the demo/jfc directory in the JDK.
-
- int returnVal = chooser.showSaveDialog(this);
- System.out.println(returnVal);
- if(returnVal == JFileChooser.APPROVE_OPTION) {
- System.out.println("You chose to open this file: " +
- chooser.getSelectedFile().getPath());
- quest = new Questionnaire(chooser.getSelectedFile().getPath() + ".pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }else{
- quest = new Questionnaire("outputPDF/survey.pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }
-
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (DocumentException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (NullPointerException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
-
- private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
-
- JPanel contentPanel = new JPanel();
-
- dialog.setBounds(100, 100, 410, 80);
- dialog.getContentPane().setLayout(new BorderLayout());
- contentPanel.setLayout(new FlowLayout());
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- dialog.getContentPane().add(contentPanel, BorderLayout.CENTER);
- {
- JLabel label = new JLabel("Please wait...The overall computation can take few seconds");
- label.setHorizontalAlignment(SwingConstants.CENTER);
- label.setFont(new Font("Tahoma", Font.PLAIN, 12));
- contentPanel.add(label);
- }
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
- dialog.getContentPane().add(buttonPane, BorderLayout.SOUTH);
- }
- dialog.setLocationRelativeTo(this);
- dialog.setVisible(true);
-
- GUIWorker gw = new GUIWorker(this, props);
- Thread t = new Thread(gw);
- t.start();
-
- }
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JButton jButton1;
- private javax.swing.JComboBox<String> jComboBox1;
- private javax.swing.JLabel jLabel1;
- private javax.swing.JLabel jLabel2;
- private javax.swing.JLabel jLabel3;
- private javax.swing.JLabel jLabel4;
- private javax.swing.JMenu jMenu1;
- private javax.swing.JMenu jMenu2;
- private javax.swing.JMenuBar jMenuBar1;
- private javax.swing.JMenuItem jMenuItem1;
- private javax.swing.JPanel jPanel1;
- private javax.swing.JPanel jPanel2;
- private javax.swing.JScrollPane jScrollPane3;
- private javax.swing.JTabbedPane tabbedPane;
- private javax.swing.JScrollPane jScrollPane2;
- private javax.swing.JScrollPane jScrollPane4;
- private JPanel panel;
- private JPanel panel_1;
- private JPanel panel_2;
- private JLabel lblDearDoctor;
- private JLabel lblNewLabel_1;
- private JLabel lblNewLabel_2;
- private JLabel lblNewLabel_3;
- private JComboBox<String> comboBox;
- private Component rigidArea;
-
- // End of variables declaration//GEN-END:variables
-
-
- class GUIWorker implements Runnable{
-
- private JFrame mainFrame;
- private ClientProperties props;
- private MedUnit mu;
-
- public GUIWorker(GUI gui, ClientProperties props) {
- mainFrame = gui;
-
- this.props = props;
- this.mu = new MedUnit(props, 0);
- }
-
- @Override
- public void run() {
-
- try{
- int patientId = Integer.parseInt((String) jComboBox1.getSelectedItem());
-
- // convert selected tests to test identifiers
- ArrayList<TestName> selectedTests = new ArrayList<TestName>();
- for (String currentName : getSelectedTests()) {
- TestName currentTest = testsByName.get(currentName);
-
- if (currentTest == null) {
- throw new IllegalStateException("Trying to run unknown test: " + currentTest);
- }
-
- selectedTests.add(currentTest);
- }
-
- // run tests
- Diagnostic diagnostic = mu.runTests(patientId, selectedTests);
-
- // warn for tests with missing material
- warnFailedTests(diagnostic, selectedTests);
-
- // create report
- mu.createReport(patientId, selectedTests, diagnostic);
-
- dialog.setVisible(false);
-
- // specify file you wish to open (JPedal handles getting the byte data)
- String filepathReport = props.getPathPDF() + patientId + ".pdf";
-
- // open generated PDF
- // object must be either String in full filepath, or
- // File object which can be relative
- Object[] input = new Object[]{ new File(filepathReport) };
- viewer.executeCommand(Commands.OPENFILE, input);
-
- // display CAD result as bar plot
- if (diagnostic.hasCAD()) {
- System.out.println("CAD = " + diagnostic.getResultCAD());
- BarPlotFrame frame = new BarPlotFrame(diagnostic.getResultCAD(), patientId);
- frame.setVisible(true);
- frame.setAlwaysOnTop(true);
- }
-
-
- } catch (SQLException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Please select a patient.");
- }
-
- }
-
- private void warnFailedTests(Diagnostic diagnostic, ArrayList<TestName> selectedTests) {
- ArrayList<Integer> failedTests = diagnostic.getInvalidTests();
-
- if (!failedTests.isEmpty()) {
- String msg = "Could not complete tests: ";
- boolean first = true;
- for (TestName testName : selectedTests) {
- if (failedTests.contains(testName.getId())) {
- if (first) {
- first = false;
- } else {
- msg += ", ";
- }
- msg += testName.getName();
- }
- }
- displayError(msg);
- }
-
- }
-
- private void displayError(String msg) {
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- mainFrame,
- msg,
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
-
- private ArrayList<String> getSelectedTests() {
- ArrayList<String> tests = new ArrayList<String>();
-
- for (TreePath treePath : jTree.getSelectionPaths()) {
- tests.addAll(getChildrenTests(jTree.getModel(), treePath.getLastPathComponent()));
- }
-
- return tests;
- }
-
- private ArrayList<String> getChildrenTests(TreeModel model, Object node) {
- ArrayList<String> tests = new ArrayList<String>();
-
- if (model.isLeaf(node)) { // leaf
- DefaultMutableTreeNode leaf = (DefaultMutableTreeNode) node;
- tests.add(leaf.toString());
- }
- else { // iterate over children
- for (int i = 0; i < model.getChildCount(node); i++) {
- tests.addAll(getChildrenTests(model, model.getChild(node, i)));
- }
- }
-
- return tests;
- }
-
- }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/9e/90388a49b2a7001417ceadf0100b5ef7 b/.metadata/.plugins/org.eclipse.core.resources/.history/9e/90388a49b2a7001417ceadf0100b5ef7
deleted file mode 100644
index 7256a47..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/9e/90388a49b2a7001417ceadf0100b5ef7
+++ /dev/null
@@ -1,5 +0,0 @@
-package testpdf;
-
-public class ChildFieldEvent {
-
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/a0/406c8d5c54ac001410e2e30aa85db9d1 b/.metadata/.plugins/org.eclipse.core.resources/.history/a0/406c8d5c54ac001410e2e30aa85db9d1
deleted file mode 100644
index 8048dea..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/a0/406c8d5c54ac001410e2e30aa85db9d1
+++ /dev/null
@@ -1,904 +0,0 @@
-package ui;
-
-import io.ClientConnection;
-import io.CommAdapter;
-import io.Questionnaire;
-
-import java.awt.BorderLayout;
-import java.awt.Color;
-import java.awt.Component;
-import java.awt.Dimension;
-import java.awt.FlowLayout;
-import java.awt.Font;
-import java.awt.SystemColor;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.awt.event.WindowAdapter;
-import java.io.File;
-import java.io.IOException;
-import java.sql.SQLException;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.LinkedList;
-import java.util.Map;
-import java.util.Set;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
-import javax.swing.Box;
-import javax.swing.BoxLayout;
-import javax.swing.ButtonGroup;
-import javax.swing.DefaultComboBoxModel;
-import javax.swing.GroupLayout;
-import javax.swing.GroupLayout.Alignment;
-import javax.swing.ImageIcon;
-import javax.swing.JButton;
-import javax.swing.JComboBox;
-import javax.swing.JDialog;
-import javax.swing.JFileChooser;
-import javax.swing.JFrame;
-import javax.swing.JLabel;
-import javax.swing.JOptionPane;
-import javax.swing.JPanel;
-import javax.swing.JRadioButton;
-import javax.swing.JScrollPane;
-import javax.swing.JSeparator;
-import javax.swing.JTabbedPane;
-import javax.swing.JTextArea;
-import javax.swing.JTextPane;
-import javax.swing.JTree;
-import javax.swing.LayoutStyle.ComponentPlacement;
-import javax.swing.SwingConstants;
-import javax.swing.border.EmptyBorder;
-import javax.swing.border.LineBorder;
-import javax.swing.tree.DefaultMutableTreeNode;
-import javax.swing.tree.TreeModel;
-import javax.swing.tree.TreePath;
-
-import org.jpedal.examples.viewer.Commands;
-import org.jpedal.examples.viewer.Viewer;
-
-import utils.ClientProperties;
-
-import com.itextpdf.text.DocumentException;
-
-import database.DBconnectorClient;
-import framework.Diagnostic;
-import framework.MedUnit;
-import framework.Question;
-import framework.reply.ReplySurvey;
-import framework.test.TestName;
-
-/**
- *
- * @author youssef, raisaro
- */
-public class GUI extends javax.swing.JFrame {
-
- private static final Logger LOGGER = Logger.getLogger(GUI.class.getName());
-
- private static final long serialVersionUID = -4582280515597700650L;
-
- // configuration
- private ClientProperties props;
-
- private JTree jTree;
- private DBconnectorClient connectorClientDB;
- private LinkedList<Integer> patients;
-
- /** List of all relevant tests */
- private HashMap<String, TestName> testsByName;
- private Viewer viewer;
- private JDialog dialog;
- private JFrame frame;
- private boolean survey_submitted;
- private int close_trials;
- private Map<Integer, ButtonGroup> buttonGroupMap;
- private Questionnaire quest;
- private Map<Integer, Question> map;
- private Set<Integer> ids;
- private Map<String,String> answers;
- private Map<Integer, String> locations;
-
-
- /**
- * Creates new form GUI
- */
- public GUI(ClientProperties props){
-
- frame = this;
- this.props = props;
- this.connectorClientDB = new DBconnectorClient(props.getDbMsAccess());
- survey_submitted = false;
- close_trials = 0;
-
-
- try {
- initComponents();
-
- viewer = new Viewer(jScrollPane2, null);
- viewer.setupViewer();
-
- // create questionnare
-
-
- System.out.println("#of questions: " + ids.size());
-
-// viewer_q = new Viewer(jScrollPane4, null);
-// viewer_q.setupViewer();
-//
-// // specify file you wish to open (JPedal handles getting the byte data)
-// String filepathReport = "outputPDF/buttons_filled.pdf";
-//
-// // open generated PDF
-// // object must be either String in full filepath, or
-// // File object which can be relative
-// Object[] input = new Object[]{ new File(filepathReport) };
-// viewer_q.executeCommand(Commands.OPENFILE, input);
-
- JButton btnSubmitQuestionnaire = new JButton("Submit Questionnaire");
- btnSubmitQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- btnSubmitQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- submitButtonActionPerformed(arg0);
- }
- });
- JButton btnResetQuestionnaire = new JButton("Save as PDF");
- btnResetQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- savePDFButtonActionPerformed(arg0);
- }
- });
- btnResetQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- JPanel panel_button = new JPanel();
- panel_button.setLayout(new BoxLayout(panel_button, BoxLayout.X_AXIS));
-
- lblNewLabel_3 = new JLabel("");
- lblNewLabel_3.setIcon(new ImageIcon("res/location_icon.png"));
- panel_button.add(lblNewLabel_3);
-
-
-
- comboBox = new JComboBox<String>();
- comboBox.setFont(new Font("Tahoma", Font.BOLD, 12));
- comboBox.setModel(new DefaultComboBoxModel<String>(new String[] {"Select Location"}));
- for(Integer id_loc : locations.keySet()){
- comboBox.addItem(locations.get(id_loc));
- }
-
-
- panel_button.add(comboBox);
-
- rigidArea = Box.createRigidArea(new Dimension(10, 0));
- panel_button.add(rigidArea);
-
- lblNewLabel_1 = new JLabel("");
- lblNewLabel_1.setIcon(new ImageIcon("res/submit.png"));
- panel_button.add(lblNewLabel_1);
- panel_button.add(btnSubmitQuestionnaire);
-
- panel_button.add(Box.createRigidArea(new Dimension(10,0)));
-
- lblNewLabel_2 = new JLabel("");
- lblNewLabel_2.setIcon(new ImageIcon("res/pdf.png"));
- panel_button.add(lblNewLabel_2);
- panel_button.add(btnResetQuestionnaire);
- panel_button.setPreferredSize(new Dimension(211, 35));
- panel_button.validate();
-
- JPanel panel_3 = new JPanel();
- GroupLayout gl_panel = new GroupLayout(panel);
- gl_panel.setHorizontalGroup(
- gl_panel.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(63)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addGap(103)
- .addComponent(panel_button, GroupLayout.DEFAULT_SIZE, 498, Short.MAX_VALUE)
- .addGap(241))
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(41)
- .addGroup(gl_panel.createParallelGroup(Alignment.TRAILING)
- .addComponent(jScrollPane4, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE)
- .addComponent(panel_1, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE))
- .addGap(32))
- );
- gl_panel.setVerticalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(22)
- .addComponent(panel_1, GroupLayout.PREFERRED_SIZE, 235, GroupLayout.PREFERRED_SIZE)
- .addGap(37)
- .addComponent(jScrollPane4, GroupLayout.DEFAULT_SIZE, 379, Short.MAX_VALUE)
- .addGap(26)
- .addGroup(gl_panel.createParallelGroup(Alignment.LEADING)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(panel_button, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE)))
- );
- panel_3.setLayout(new BoxLayout(panel_3, BoxLayout.X_AXIS));
-
-
- panel.setLayout(gl_panel);
-
-
-
-
-
-
- /////////////////////////////////////////////////////////
- // display the tests available
-
- // get the tests
- HashMap<String, ArrayList<TestName>> testsRelevantByGroup = connectorClientDB.getRelevantTestsByGroup();
- ArrayList<String> groups = new ArrayList<String>(testsRelevantByGroup.keySet());
-
- // flatten hashmap into linkedlist
-// tests = new LinkedList<>();
- testsByName = new HashMap<String, TestName>();
- for (String group : groups) {
-// tests.addAll(testsRelevantByGroup.get(group));
- for (TestName test : testsRelevantByGroup.get(group)) {
- testsByName.put(test.getName(), test);
- }
- }
-
- // define tree structure of the tests
- DefaultMutableTreeNode root = new DefaultMutableTreeNode("All");
-
- for (String group : groups) {
- DefaultMutableTreeNode child = new DefaultMutableTreeNode(group);
- root.add(child);
-
- for (TestName test : testsRelevantByGroup.get(group)) {
- DefaultMutableTreeNode grandChild = new DefaultMutableTreeNode(test.getName());
- child.add(grandChild);
- }
- }
-
- // define swing object
- jTree = new JTree(root);
-
- for(int i=0;i<jTree.getRowCount();i++){
- jTree.expandRow(i);
- }
-
- jScrollPane3.setViewportView(jTree);
-// jTree.addTreeSelectionListener(new TreeSelectionListener() {
-//
-// @Override
-// public void valueChanged(TreeSelectionEvent e) {
-// tp = jTree.getSelectionPaths();
-// }
-// });
- jScrollPane3.setViewportView(jTree);
-
- /////////////////////////////////////////////////////////
- // display the patients registered
-
- patients = connectorClientDB.getPatients();
- for (Integer patientId : patients) {
- jComboBox1.addItem(patientId.toString());
- }
-
- } catch (SQLException ex) {
- Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex);
- ex.printStackTrace();
-// } catch (IOException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
-// } catch (DocumentException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
- }
-
- }
-
- /**
- * 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() {
-
- jPanel1 = new javax.swing.JPanel();
- jLabel2 = new javax.swing.JLabel();
- jLabel1 = new javax.swing.JLabel();
- jPanel2 = new javax.swing.JPanel();
- jComboBox1 = new javax.swing.JComboBox<String>();
- jButton1 = new javax.swing.JButton();
- jButton1.setFont(new Font("Tahoma", Font.BOLD, 12));
- jLabel3 = new javax.swing.JLabel();
- jLabel4 = new javax.swing.JLabel();
- jScrollPane3 = new javax.swing.JScrollPane();
- jScrollPane2 = new javax.swing.JScrollPane();
- jMenuBar1 = new javax.swing.JMenuBar();
- jMenu1 = new javax.swing.JMenu();
- jMenuItem1 = new javax.swing.JMenuItem();
- jMenu2 = new javax.swing.JMenu();
- dialog = new JDialog();
- tabbedPane = new JTabbedPane(JTabbedPane.TOP);
-
- setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
- addWindowListener(new WindowAdapter() {
- @Override
- public void windowClosing(java.awt.event.WindowEvent windowEvent) {
- if (!survey_submitted && close_trials <= 2){
- JOptionPane.showMessageDialog(frame, "Before closing the application, please fill in and submit the questionnaire.");
- close_trials++;
- tabbedPane.setSelectedIndex(1);
- }else{
- System.exit(0);
- }
- }
- });
- setTitle("HIV Pharmacogenomics\n");
-
- jLabel2.setIcon(new javax.swing.ImageIcon("res/shcs_logo2_small.gif")); // NOI18N
-
- jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
- jLabel1.setText("HIV Pharmacogenomics | Project #693");
-
- javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
- jPanel1.setLayout(jPanel1Layout);
- jPanel1Layout.setHorizontalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap(71, Short.MAX_VALUE)
- .addComponent(jLabel1)
- .addGap(18, 18, 18)
- .addComponent(jLabel2))
- );
- jPanel1Layout.setVerticalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jLabel1)
- .addGap(11, 11, 11))
- .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)
- );
-
- jPanel2.setBackground(new java.awt.Color(255, 255, 255));
- jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
-
- jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<String>(new String[]{"Select Patient"}));
-
- jButton1.setText("Run Test");
- jButton1.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton1ActionPerformed(evt);
- }
- });
-
- JLabel lblNewLabel = new JLabel("");
- lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
- lblNewLabel.setIcon(new javax.swing.ImageIcon("res/gears.png"));
-
-
-
- javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
- jPanel2Layout.setHorizontalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addComponent(jComboBox1, 0, 248, Short.MAX_VALUE)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addGap(75)
- .addGroup(jPanel2Layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jButton1)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 75, GroupLayout.PREFERRED_SIZE))
- .addContainerGap(98, Short.MAX_VALUE))
- );
- jPanel2Layout.setVerticalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addComponent(jComboBox1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED, 223, Short.MAX_VALUE)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jButton1)
- .addGap(19))
- );
- jPanel2.setLayout(jPanel2Layout);
-
- jLabel3.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel3.setText("Select Patient");
-
- jLabel4.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel4.setText("Select Test");
-
- jScrollPane3.setBackground(new java.awt.Color(255, 255, 255));
-
- jMenu1.setText("File");
-
- jMenuItem1.setText("Exit");
- jMenu1.add(jMenuItem1);
-
- jMenuBar1.add(jMenu1);
-
- jMenu2.setText("Edit");
- jMenuBar1.add(jMenu2);
-
- setJMenuBar(jMenuBar1);
-
-
-
- javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
- layout.setHorizontalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(layout.createParallelGroup(Alignment.LEADING, false)
- .addComponent(jLabel3)
- .addComponent(jLabel4)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, 244, Short.MAX_VALUE)
- .addComponent(jScrollPane3))
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 970, Short.MAX_VALUE))
- .addContainerGap())
- );
- layout.setVerticalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel4))
- .addPreferredGap(ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addComponent(jScrollPane3, GroupLayout.PREFERRED_SIZE, 388, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jLabel3)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 785, Short.MAX_VALUE))
- .addContainerGap())
- );
-
-
- jScrollPane2.setAutoscrolls(true);
- jScrollPane3.setAutoscrolls(true);
- tabbedPane.addTab("Report", new ImageIcon("res/report_icon.gif"), jScrollPane2, null);
- tabbedPane.setBackgroundAt(0, new Color(255, 255, 255));
-
- panel = new JPanel();
- tabbedPane.addTab("Survey", new ImageIcon("res/survey_icon.png"), panel, null);
- tabbedPane.setBackgroundAt(1, new Color(255, 255, 255));
- tabbedPane.setEnabledAt(1, true);
-
- panel_1 = new JPanel();
- panel_1.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
- panel_1.setBackground(SystemColor.control);
-
- JLabel label = new JLabel("");
- label.setIcon(new ImageIcon("res/shcs_logo2_medium.gif"));
-
- lblDearDoctor = new JLabel("Dear Doctor,");
- lblDearDoctor.setFont(new Font("Tahoma", Font.BOLD, 14));
-
- JScrollPane scrollPane = new JScrollPane();
- scrollPane.setBorder(null);
- GroupLayout gl_panel_1 = new GroupLayout(panel_1);
- gl_panel_1.setHorizontalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(Alignment.LEADING, gl_panel_1.createSequentialGroup()
- .addGap(25)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addComponent(lblDearDoctor)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 661, Short.MAX_VALUE))
- .addContainerGap())
- );
- gl_panel_1.setVerticalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addContainerGap()
- .addComponent(lblDearDoctor)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 203, Short.MAX_VALUE))
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(36)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 96, GroupLayout.PREFERRED_SIZE)))
- .addContainerGap())
- );
-
- JTextPane txtpnTodayYouAre = new JTextPane();
- txtpnTodayYouAre.setBorder(null);
- txtpnTodayYouAre.setText("Today you are receiving a pharmacogenetics report based on the genome of your patient. Because of its highly sensitive nature, " +
- "the genetic information you are provided with is processed in a privacy-preserving way. In particular, to protect patients’ genomic privacy, " +
- "their genetic and clinical data is stored encrypted at the SHCS data center, and securely analyzed through a sophisticated algorithm designed and developed at EPFL [1, 2]. " +
- "The actual clinical and genetic information is never revealed. Only the authorized users, such as you, can get some processed information, for example, the final result of a " +
- "pharmacogenetics risk test.\nThis mechanism protects the data against insiders or hackers trying to illegally access patients’ medical information, while still allowing authorized " +
- "users to obtain the information they need." +
- "\n\nTo help us understanding the importance of genomic privacy in the medical domain, and the impact of privacy-enhancing technologies in daily clinical practice, please complete the following survey.");
- txtpnTodayYouAre.setFont(new Font("Tahoma", Font.PLAIN, 13));
- txtpnTodayYouAre.setEditable(false);
- txtpnTodayYouAre.setBackground(SystemColor.control);
- scrollPane.setViewportView(txtpnTodayYouAre);
- panel_1.setLayout(gl_panel_1);
- jScrollPane4 = new javax.swing.JScrollPane();
- jScrollPane4.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
- getContentPane().setLayout(layout);
-
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
- ReplySurvey replySurvey = commHandlerAdapter.callServiceSurvey();
-
- map = replySurvey.getQuestions();
- ids = map.keySet();
- locations = replySurvey.getLocations();
-
- panel_2 = new JPanel();
- panel_2.setBackground(Color.WHITE);
- panel_2.setBorder(null);
- jScrollPane4.setViewportView(panel_2);
- panel_2.setLayout(new BoxLayout(panel_2, BoxLayout.Y_AXIS));
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
-
-
- for(Integer id : ids){
- ButtonGroup group = new ButtonGroup();
- JRadioButton r1 = new JRadioButton("1"); r1.setActionCommand("1"); r1.setBackground(Color.WHITE);
- JRadioButton r2 = new JRadioButton("2"); r2.setActionCommand("2"); r2.setBackground(Color.WHITE);
- JRadioButton r3 = new JRadioButton("3"); r3.setActionCommand("3"); r3.setBackground(Color.WHITE);
- JRadioButton r4 = new JRadioButton("4"); r4.setActionCommand("4"); r4.setBackground(Color.WHITE);
- JRadioButton r5 = new JRadioButton("5"); r5.setActionCommand("5"); r5.setBackground(Color.WHITE);
- group.add(r1);
- group.add(r2);
- group.add(r3);
- group.add(r4);
- group.add(r5);
- JPanel radio_panel = new JPanel();
- radio_panel.setLayout((new BoxLayout(radio_panel, BoxLayout.X_AXIS)));
- radio_panel.setBackground(Color.WHITE);
- radio_panel.setAlignmentX(Component.CENTER_ALIGNMENT);
- radio_panel.add(r1);
- radio_panel.add(r2);
- radio_panel.add(r3);
- radio_panel.add(r4);
- radio_panel.add(r5);
- radio_panel.doLayout();
- radio_panel.setPreferredSize(radio_panel.getPreferredSize());
- JTextArea question = new JTextArea(id + ") " + map.get(id).getQuestion());
- question.setLineWrap(true);
- question.setWrapStyleWord(true);
- question.setAlignmentX(Component.CENTER_ALIGNMENT);
- question.setFont(new Font("Tahoma", Font.PLAIN, 13));
-
- JPanel row_panel = new JPanel();
- row_panel.setLayout(new BoxLayout(row_panel, BoxLayout.X_AXIS));
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.add(question);
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.add(radio_panel);
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.setBackground(Color.WHITE);
-
-
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- panel_2.add(row_panel);
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
-// panel_2.add(radio_panel);
- panel_2.add(new JSeparator());
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
-// panel_2.setPreferredSize(panel_2.getPreferredSize());
- buttonGroupMap.put(id, group);
-
- }
-
-
-
- this.setSize(new Dimension(1300, 865));
-// pack();
- }// </editor-fold>//GEN-END:initComponents
-
-
- private void submitButtonActionPerformed(java.awt.event.ActionEvent evt){
-
- try{
- answers = new HashMap<String, String>();
- StringBuilder sb = new StringBuilder();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- sb.append(q).append(",");
- sb.append(bg.getSelection().getActionCommand()).append(";");
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- String answer = sb.toString();
- Integer id_loc = null;
- for(Integer i: locations.keySet()){
- if(locations.get(i).equals(comboBox.getSelectedItem().toString()))
- id_loc = i;
- }
-
- String id_p;
- if(jComboBox1.getSelectedItem().toString().equals("Select Patient"))
- id_p = "0";
- else
- id_p = jComboBox1.getSelectedItem().toString();
-
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
-
- String reply = commHandlerAdapter.callServiceSurveyAnswer(answer, id_loc.toString(), id_p);
-
- if(reply.equals("1")){
- survey_submitted = true;
-
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Congrats! Your aswers have been sent to the SHCS datacenter.",
- "Information Message",
- JOptionPane.INFORMATION_MESSAGE);
- }
- else{
- throw new IOException();
- }
-
-
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "The SHCS datacenter does not respond. Please save the survey and send it to jean.raisaro@epfl.ch.",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
- private void savePDFButtonActionPerformed(java.awt.event.ActionEvent evt){
- try {
-
- answers = new HashMap<String, String>();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- JFileChooser chooser = new JFileChooser();
- // Note: source for ExampleFileFilter can be found in FileChooserDemo,
- // under the demo/jfc directory in the JDK.
-
- int returnVal = chooser.showSaveDialog(this);
- System.out.println(returnVal);
- if(returnVal == JFileChooser.APPROVE_OPTION) {
- System.out.println("You chose to open this file: " +
- chooser.getSelectedFile().getPath());
- quest = new Questionnaire(chooser.getSelectedFile().getPath() + ".pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }else{
- quest = new Questionnaire("outputPDF/survey.pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }
-
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (DocumentException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (NullPointerException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
-
- private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
-
- JPanel contentPanel = new JPanel();
-
- dialog.setBounds(100, 100, 410, 80);
- dialog.getContentPane().setLayout(new BorderLayout());
- contentPanel.setLayout(new FlowLayout());
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- dialog.getContentPane().add(contentPanel, BorderLayout.CENTER);
- {
- JLabel label = new JLabel("Please wait...The overall computation can take few seconds");
- label.setHorizontalAlignment(SwingConstants.CENTER);
- label.setFont(new Font("Tahoma", Font.PLAIN, 12));
- contentPanel.add(label);
- }
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
- dialog.getContentPane().add(buttonPane, BorderLayout.SOUTH);
- }
- dialog.setLocationRelativeTo(this);
- dialog.setVisible(true);
-
- GUIWorker gw = new GUIWorker(this, props);
- Thread t = new Thread(gw);
- t.start();
-
- }
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JButton jButton1;
- private javax.swing.JComboBox<String> jComboBox1;
- private javax.swing.JLabel jLabel1;
- private javax.swing.JLabel jLabel2;
- private javax.swing.JLabel jLabel3;
- private javax.swing.JLabel jLabel4;
- private javax.swing.JMenu jMenu1;
- private javax.swing.JMenu jMenu2;
- private javax.swing.JMenuBar jMenuBar1;
- private javax.swing.JMenuItem jMenuItem1;
- private javax.swing.JPanel jPanel1;
- private javax.swing.JPanel jPanel2;
- private javax.swing.JScrollPane jScrollPane3;
- private javax.swing.JTabbedPane tabbedPane;
- private javax.swing.JScrollPane jScrollPane2;
- private javax.swing.JScrollPane jScrollPane4;
- private JPanel panel;
- private JPanel panel_1;
- private JPanel panel_2;
- private JLabel lblDearDoctor;
- private JLabel lblNewLabel_1;
- private JLabel lblNewLabel_2;
- private JLabel lblNewLabel_3;
- private JComboBox<String> comboBox;
- private Component rigidArea;
-
- // End of variables declaration//GEN-END:variables
-
-
- class GUIWorker implements Runnable{
-
- private JFrame mainFrame;
- private ClientProperties props;
- private MedUnit mu;
-
- public GUIWorker(GUI gui, ClientProperties props) {
- mainFrame = gui;
-
- this.props = props;
- this.mu = new MedUnit(props, 0);
- }
-
- @Override
- public void run() {
-
- try{
- int patientId = Integer.parseInt((String) jComboBox1.getSelectedItem());
-
- // convert selected tests to test identifiers
- ArrayList<TestName> selectedTests = new ArrayList<TestName>();
- for (String currentName : getSelectedTests()) {
- TestName currentTest = testsByName.get(currentName);
-
- if (currentTest == null) {
- throw new IllegalStateException("Trying to run unknown test: " + currentTest);
- }
-
- selectedTests.add(currentTest);
- }
-
- // run tests
- Diagnostic diagnostic = mu.runTests(patientId, selectedTests);
-
- // warn for tests with missing material
- warnFailedTests(diagnostic, selectedTests);
-
- // create report
- mu.createReport(patientId, selectedTests, diagnostic);
-
- dialog.setVisible(false);
-
- // specify file you wish to open (JPedal handles getting the byte data)
- String filepathReport = props.getPathPDF() + patientId + ".pdf";
-
- // open generated PDF
- // object must be either String in full filepath, or
- // File object which can be relative
- Object[] input = new Object[]{ new File(filepathReport) };
- viewer.executeCommand(Commands.OPENFILE, input);
-
- // display CAD result as bar plot
- if (diagnostic.hasCAD()) {
- System.out.println("CAD = " + diagnostic.getResultCAD());
- BarPlotFrame frame = new BarPlotFrame(diagnostic.getResultCAD(), patientId);
- frame.setVisible(true);
- frame.setAlwaysOnTop(true);
- }
-
-
- } catch (SQLException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Please select a patient.");
- }
-
- }
-
- private void warnFailedTests(Diagnostic diagnostic, ArrayList<TestName> selectedTests) {
- ArrayList<Integer> failedTests = diagnostic.getInvalidTests();
-
- if (!failedTests.isEmpty()) {
- String msg = "Could not complete tests: ";
- boolean first = true;
- for (TestName testName : selectedTests) {
- if (failedTests.contains(testName.getId())) {
- if (first) {
- first = false;
- } else {
- msg += ", ";
- }
- msg += testName.getName();
- }
- }
- displayError(msg);
- }
-
- }
-
- private void displayError(String msg) {
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- mainFrame,
- msg,
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
-
- private ArrayList<String> getSelectedTests() {
- ArrayList<String> tests = new ArrayList<String>();
-
- for (TreePath treePath : jTree.getSelectionPaths()) {
- tests.addAll(getChildrenTests(jTree.getModel(), treePath.getLastPathComponent()));
- }
-
- return tests;
- }
-
- private ArrayList<String> getChildrenTests(TreeModel model, Object node) {
- ArrayList<String> tests = new ArrayList<String>();
-
- if (model.isLeaf(node)) { // leaf
- DefaultMutableTreeNode leaf = (DefaultMutableTreeNode) node;
- tests.add(leaf.toString());
- }
- else { // iterate over children
- for (int i = 0; i < model.getChildCount(node); i++) {
- tests.addAll(getChildrenTests(model, model.getChild(node, i)));
- }
- }
-
- return tests;
- }
-
- }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/a1/90dcd3a1d0a700141a6b8b802f4728c1 b/.metadata/.plugins/org.eclipse.core.resources/.history/a1/90dcd3a1d0a700141a6b8b802f4728c1
deleted file mode 100644
index c48e7f8..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/a1/90dcd3a1d0a700141a6b8b802f4728c1
+++ /dev/null
@@ -1,59 +0,0 @@
-package io;
-
-import io.serializer.url.URLParserDecrypt;
-import io.serializer.url.URLParserMaterial;
-import io.serializer.xml.XMLParserDecrypt;
-import io.serializer.xml.XMLParserMaterial;
-import io.serializer.xml.XMLParserSurvey;
-
-import java.util.logging.Logger;
-
-import framework.Type;
-import framework.reply.ReplyDecryption;
-import framework.reply.ReplyMaterial;
-import framework.reply.ReplySurvey;
-import framework.request.RequestDecryption;
-import framework.request.RequestMaterial;
-
-public class CommAdapter {
-
- @SuppressWarnings("unused")
- private static final Logger LOGGER = Logger.getLogger(CommAdapter.class.getName());
-
- public ClientConnection connectSPU = null;
-
- public CommAdapter(ClientConnection connectSPU) {
- this.connectSPU = connectSPU;
- }
-
- public ReplyDecryption callServiceDecrypt(RequestDecryption rqtDecrypt) {
- String requestString = URLParserDecrypt.requestToString(rqtDecrypt);
-// String replyString = "<awr_decrypt><patient>30351</patient><v_timestamp>1417188729390</v_timestamp><decrypt_val>,,,,,,,,,,,,,,,,2,AwHR3OO0/hkwgEHluLDFLtn4aaTBAwBEJjJpMegGa29ASgtyt1ha2OOyxvEvNgkIaY0xWXtTmqrqhSBKDG6J7Lps0g==,AwE/oifhonvUZDA4mqRK8K1WCkoepEuL9SidjdFXMNNZQXCMUvVN6pBUYVFgJeFX6mT2jruK8ic3y6yI14PfKl/Pvg==,AgBHs6HGF9AYNc5RlFTGv025WEaT91i/MPy+HXqhvHOrp0Ol9/aKyvv2BgAzeAdsdSEbVs2sahiyL/kbKjeUoI9tsA==,,,,,,,,,,,,,2,AgHIofEmf4aJMLBnKAY3/8WcLXUETF4y/68fzZR6hsS5btZTyI0E4ZTltDzV6hBzIT14cC4S/BMclo1aoLt5C9f+Cg==,AgDOXZAZAwO4KXslqU1wKctrVlH8CcGvpO8gGrPl3YjrY8SR3a6gStvZvjcUKXhvtDkRwSLAIkD3lFrKSXWestHSqQ==,AgG7Y5so9ZTRng2Xm3ziWx3+7zfaVLkIJ2v7g+qEUx5Vl2/udDOcg/was8W6qbKYeo/W0EGTlNXKTOdIatGVxyuoZA==,,,,,2,AgDAVy0/nE6X4iAengG9lCiYEBMtK6rAAiy7OwC7U/QSbokiEzH0RafH7rb+5L5R/ii9/3kZCcKmgOIoPzkmeloDfg==,AgHuvmLAeIFYm4ObEBO2v9xTK6tjYfdh+x4kwULBpDNlUiW4kNNaeoeziRA7nlRvcSfxPlR070N/3qzBMu3EKZ2csQ==,AgDk/CzCL4XUobuNaLsvrH5s0COMKYBqY/18YRR0d7mIsVVYrKVGF+IWnEluhbLt+BoRBdvL5UElgroyORJpiKz06w==,,,,,2,AgH0nW+2h+vcOZgPe3uR7jEHmEPi+g4izQ3OIU9An2vekwbG1liBFgTo33pEhyXhNWPhGCbSb73sJ7pt0JLL+hhWMw==,AgHG039OnpvmllkV6QBsmoMdqISrRuW2q5M3jfUp5TUbU6F/3S2FK1iSVKWgTsI291re6lz6KH5d8rWrnoCAozhIeg==,AwGjmnLUMd42F7a/tsSkeqcxoHMAXNKdvF4kOXoAxmc6ZSxaUhzkGkcgNOO8SFNiWqTKgtZCffJ7hfI0voAUX0TD1w==,,,,,2,AwHfYRjQFscHzOvVozackTaM3sybOjyd2aLc4B+WQ7KiWHoGKkzQScoDiy8hiA2cJpv8ngfitTqJRLlyegvuM+Ietw==,AwAP92OqrJFpFmdrMUUx6FeFhwVLYtAsfw3sem2RYu7ljPry+uJnvluuzTvVaFhs8BAAD8VBFs1vqrSHyQEq8Ocsmw==,AwDNXg/JA4QXA6wu30DUE7peOk1a10aHbd38iwjN1Q0DKy3BqS36+EQKg5hbwELxN2+/Yu4UA1IKWYJI0zNs6TJUtA==,,,,,2,AwBWFv3ivyQz4CGIilJ7CVtpQGOs1tnIW+0uxQyiWIO3HDjJtfxPyQ1AJWPsBQ9eYmaoKmPnN+euPCm7bP0LxBL/Tg==,AwHg7AZb5DV5OJrl0omtKx2OqckXcQEUT8pZ+Bmo9AyULgL5HOq2AVU04qhvbdy0W4OMYqxF3uBwqT6dNhFptsKEKQ==,AwG9dyMbI5EI8UCXuj5JkQRMimcT1u6zCBAfmRvANtT54yDtC8KS6VeOr7h/NP4qrf/mbl5tMaePbkkHrc6E39ntsA==,,,,,2,AwHkMyCOJm/RlYOybGhX3DchR/wSN2L3PuXKalMszgk3WOCiWSpYlP3SOPLWvJTRQaTxoN+oA5IkCTvlp02+Mduaxg==,AgHhR8HjavXjnsy+rHptc/JSI5pLFjM0RczUygxTX7vqV/yqwZ280Rq7YpXKp2GBfiZvFf0qIQoWe4vx5DBxwvHkdA==,AwEf2yisEpflVm8R2X08SCJM89apu7tUFzbpndsTIt5o9/xdoXKomMUk9REz+yrpkd+jFhlkJMQHHVMhgjiWYCEdpQ==,,,,,2,AwBaIc8ZWFm4O9QO0ofJeS9Q7tki7CAscBXRDnajEp7rmKNgrpRyyu1ezSpborwaloWR9kDKPLdYVV8SNk2V/1EudA==,AwGE8MPAnPKKXF15EyrAx1bRinwgoqYVO4Junz5IXQjGLyQpSr5NwO/hqu5E5egHte20jm380Wn2Qy6GgKNiRLy/gQ==,AwCAOjOQNdMN5uIB0POFzYS/fpxZ0Q5KfhlP5fijNmc/daO5frSrwhgcMH5lMKL4EGjBI1p6JMe3fuMqb5t1ImeTBg==,,,,,2,AgARSg2izcK6iZLFe4YkIS6yZgnt8cd9DFqpQ37gNmcccZwBI+mpsaijTUPo1GT+QUD8zC+6qr/GrzG9q+q7BPxpVw==,AwGM/jFdtoNViQXxgqeL27ZKobjsfyeuXrx8re3UfIe3c4XN16srSpcTfxEZNXDKo1Ff9fRvDVBOwdS6XU2nvo++ng==,AwAtK0eOqcVfzkdJIIkk7BORWwSDTAjtx4aEXwyZ0bla+2rIWDgXi3U5xlgnjeXJNtGsLokkvvX92BOBIw9SuCGhnw==,2,AgCWAAWTW+7jv2a2lc4pGFnumEgyH59wSDRXEYUASCVB249JBmeKFWRKNFTQlph5hTR5Rb+YHFP/qvzmwU11Hs2b0w==,AgANdxpkN+DS4De3aokNjt+e/Ou8GT+p8pUJA+6LHrDBXAddoCR8KpeXW7mESokq6BTEVQXxU3TdqavRkqaeFmpXkw==,AgDDDSEO3e8DCsm1n6dbj2PB9Z/tUzluDCt/utdSLrYFfdFY+Y5K7Vxo9F5/17CzaUbX172SGLt8TfCfuYBrtupgAg==,2,AgB1OG6bj+6kfRvLj8yjMQbl80FdZHZrRVRUfNVRwvjvvbRa5f9s9fNZ8J0a3s3hH+RyfZmGJ4Ufjh5mMiQkwiur6w==,AwBX4GFZNjUdtRdwtWgxyQz7h8Hk0ztaZeM8/e+8ll0o+RjYN+CNP8+lnXEw7wpuC4wcMX05mrjPvHOuy0hOFVNkhQ==,AgDf3el4vbMYIAFEH9WV151/uzl+gkfTQ79T8Iu4KxEVo6UJvCfqkjETlR6aXUJiqaCbSV5odMT50lURsmfgALf6AQ==,,,,,2,AgENmnviZkgQWXZ5QDgCCE2zq0IiXURTqK2UNPtEg3o64yjlrQQUd2rO/KgKolyCQcKYTVoMj7k2VeCSSVRr8KGC7w==,AwFv6ZJzhpV/Ms00QkrkNiCKVRFczn/yqnkiBFUHC1RQv3tqzzYSEUeXmDHmm0/kEBtnfgRWjHQm9zxS8Jzy7srDLQ==,AwB8aS5KA1dFLKCA1a/7Wsjhef+6kkNAB/GO9AOvRZbFW/dhl5fx04Alh+g78fwcVMX+eEIEJgSyH0jhv7kmiQh4ew==,,,,,2,AgG8fXrCra6UgP5G89TaE6PH5E0TANb/PJPbKwzdi78XEHRUmcTz6PIhYtclTmcdq5TH0IwQv+ra5ppf4qR4LtkGig==,AgEKzsmZrikmXzJywMpzkAdG9hAPlOiRY9oXKf4Sh50CL8btUItjfVJWg3ubNhotzJK+fnNlRrcMkWQEBD/aGKpf8A==,AwFi+2cGpuvVdR+pT1P9Ur8jAkzmjJK2XmUQbFpyMi5Jc9a5/fPnBWCxmTX8CH5wks0PicYC6rzZC3NEIt0EoM1Qfg==,,,,,2,AgHbTZgTAv8lLBsoX06Hkm9XPU+crlRqKl0xL8v18xeUUPY1YAvUYf2OAutmTtPRycXyzrDWSpn2h5xfk/dtq/BICg==,AwAjPydfoUhfSVFKWNI4Ox4a/psZGDIGzEEWh9HyVtAmjdNb5ctr/S6z+akiRfPlNCsVf6TdkzJ2Su6BO4sOX/SHKA==,AwBVmjn7AitCe4zQ/Fl0sYW2XqXkJxJBDviwl9jYhoq29v90n9escDsiA3Cy+1uW69MezdZBEszFdEWlX0EzbQZQ6A==,,,,,2,AwCG0RBHwHuame/1G7qtUjmwz0gkCP1tyZiEgm7aTKpsCjt7UsMirMmx/ZrNlvSzkGuVbRO97Szzr+9fo4baH1rEZA==,AwHyMK/q8FUUvoHTt7O7KJUxYz/ZHF6SntbmKfbygLVw4HWc/eFic4DXHKbEGWvrMO5b37GksqxfQHc2xlAuj8ZRIw==,AgB5x0BxqiMYxRvzlq0+/RkbOuNA7hYuMG+7D6wlMOxSskgqyfwA0MfW+AkXFqnqfqsoJRpDy15bABWhH6MIdJsPEA==,,,,,2,AwAS/nCH0pcrsllSy2duadUs1rMtL6vtz7VTUAVhn1/YYlZ068ysBi1Mdz9gJFewdyeGLnFhyg+W15rFB317nyeGHg==,AwBh6f5UVRMM5ekWqkrx6XiVOK/BL0TinjsSLna8BjkQPXU2DvGxiKPhA03/GtBdEpihEX4bVaHQhiOupTf7wh6bCQ==,AgGPDFH8Kv8hz2aUJ955nHu8NiAoTmDjqhlXuJ1T83h+O0sc2GieLhmXmpEjxjEAyxkqjb2nFxvDhi+YGs4MqI4S5A==,,,,,2,AwDqwFv6bqpM/6PTCJ/wgRALYVT+Rn54HIB2icP6ODNexaoqILBS9p1k1QENbQsBZ9LmJJwngRQXi07Q4P8br76Qfw==,AgG8yTiO8tFWZqQELBr+Zt1fKKA3bl08836nUEEpD55Sid0ZywCrWe+Va58xbMIWscISLPbBvXIdO48ZgoHsLgA7Jw==,AwCI1Ud0GJLnS86mSC58HNB91lH9kPpQbufGn+WJErGxAQubtSFBc3rnT0SNE3CbW+1MPjYBbdCgxpHjN/iQf96++w==,,,,;2,AgB9YhljgPngkwwYTBMUaMGR+rWMjvlK0tgrzkG8OT9NGNJfaaLP6AzfhWrT5oe9NRnabU25pQvDhAIGZCajDy8N2g==,AwE5Irce6LOSxfLgn4PZh1PeDPjAHb5wPTNfmQoWFY83dNQLYN44FupJaQRRUqBqyGNB0SL76GKzr8G9tKLAHOxRSQ==,BAG5iWHEhlWkvtyAlQy4bwKa1iNRzJq8WJTh2GE9oT4DeJRmO1pCHy9P+9YktDT+4RgV9s8AzOYih1LmHW14uP27HQGg1nTdHyab9/nFUe9BFxIi8xQTPG8et9++5I+gKIeWGCXBL31sBhpaMewvVhDjl2d3+7H2PUv9IY3lyIRFA6N16A==,2,AwAPIoQJqSbXFKXQAIG9J+/+/41NLX0rDINImk4eBgAnZ4V0R8YSqkHD3nd0IrEMyK7OpkCXkxTzOlwJlfEfti+vew==,AwAQ8KdMYsEOqM3eyGv/XbHnGf+TqCAG39Gz/juBcioOOJmLOFjl6oCITozJOyPusbTRXZ4eIwgQYkl12mt6saTpgQ==,BACkTO+3rRUF81w5yzZskFiIRyVxc6sdJfDFX6C+Jy5A+s/sfHskrFx2GYNklZaYztP0/B64a6v6HvFWVz8GuYj2wgHhiCL+QwLThFpaRxh8kUMSrt4VuXSIjtHwRXzhSdEbG2T6C/+CJZxIFh/ugEV9SS51l1HrLdnJDb2Kdu3QC3lRkQ==;2,AgC99VyiRLJ2kFf3oCkb+JPVV7B4tXVGI2NVT7fdKtB+gEjCcdkbS5YEXm/Sq6NAJEOKilMTFUDLYFDOe+7JHj/4pw==,AgAbT080sbKVHH9lim3tVCYS4cMz+rLownRKqtYZ7AfR8qy819R1GFywQ0kImgcdjEey5C4m0OPTwgtkO+C5uWtKfQ==,BADKYt9i0zTJeh3H8t6d8pZdncz3f28v1oWrssLZwAutkIcF3XKkPNmK3X75K3sImUSch//IIRIB1Yi5/MrZZeDrxQHhQZEg6AA8bDxgt0JdOEX2t4crzDu3gW5I8y+Ya0fZr1RmxvfMr2UxRhSsNsz949v/g+GPfsrEfDqIWTiNlJfwyg==,2,AgEPMjgCfgGRaZ/5I1hLqDoJ8nXYeTlnt9YeK4K8w+HnRAoAD09zkPcLMWajIjupe/CUFrHz00sAvs+vOPeKxGrLiQ==,AgDy7g2DcDwmIW7LtTTteHExD/cyP4BMWimEAM1RfAd/Y6P8XkmRGgglfdLJ7RGTR2YIMB1lxQ/LQUbmzyjTiiuWow==,BAHJ7oHVr/0wweyGlg4f9Dqmx8h0m35jMdrEFwVY8l/ENKpOTxG/oh9vAvo1uw39wUOn4CWGBmAFE2lsvWFW18gt+gHPFt5/9ihUFN9mtxFLT1Q3W4Uf8IdekHPMbNlxEp1wId7EH3XsAox3Eo8b3XnYpwfsAXoDwQa2wyiO5h104Ptvsg==;2,AwClCMGcHdd7rD8sYDC/GXyAtLmZ/JI4v+aOK4PXzjWJi/zvcsXT5dJUOm9bW6AAtzgOKPd0WwU3hSytJ+ATy146Uw==,AgADzN6ysOIC9GAuMF9suYNfkR027H/9OcpeVJb4HRHfZ/EOmQWSdJmJFw3F/NLUrreNnFCvuF1+1bbmHa3tvznjeA==,BADwaRJF9z3DW7HE3qhGu6Yd9d2WBfWy8opd7Mhkg7TpAQsn9oA3UcpCarn4DMSnVGG94Y3Pxsj5vlm5G7GMKiGoxAERnETH6pVgBxhtrnBU6l4vHl+X4rd8I/zheZiG0EFKJza41rmwKHTY4+42PJ8/3Y2rCanbY1RSAJEgiZR89k6nGg==,2,AgCK80PhKSC23aVKQ8uYm+79GWZiwpbV5lc8Fzcpwu8hdKGAMH4f62Y//cmrQmCIltm03PTVPMn6rMwkfoz+9M2LDQ==,AgH5aXThIKUjENFTGCGwcTRql7xIe8vR9h78KikTYkD8itQ+YBDrnx5OaNyWRjpIJHAZ2B61W2aVjZ5Rmo0d1B1Pcw==,BAAEZsEKw59QSRxN1QmWcx4X2LaK4+zBuawh+2CIRPljWyxK6XhIM6EEalr44Klce4OTK2QbxT5n3Kjnh5jNuwCOawAH/wiNrx09+HY8SZrRjCjv1+Lnicybrqg/IFDNoAGT5aguaGRIMmGOLe0QFJr0T0iW3RnYGlmSd/r6ex8+MpOgLw==</decrypt_val></awr_decrypt>";
- String replyString = connectSPU.sendReceive(Type.DECRYPT, requestString);
- System.out.println("REQUEST URL: " + requestString);
- System.out.println("REPLY: " + replyString);
- ReplyDecryption reply = (new XMLParserDecrypt()).stringToReply(replyString);
- return reply;
- }
-
- public ReplyMaterial callServiceMaterial(RequestMaterial rqtMaterial) {
- String requestString = URLParserMaterial.requestToString(rqtMaterial);
- String replyString = connectSPU.sendReceive(Type.MATERIAL, requestString);
-
- System.out.println("Material request:");
- System.out.println(replyString);
-
- ReplyMaterial reply = (new XMLParserMaterial()).stringToReply(replyString);
- return reply;
- }
-
- public ReplySurvey callServiceSurvey(){
-
-// String replyString = connectSPU.sendReceive(Type.SURVEY,"");
- //4::What's your name?::1;5::Where are you from?::2;6::How old are you?::3;7::What's your name?::1;8::Where are you from?::2;9::How old are you?::3;10::What's your name?::1;11::Where are you from?::2;12::How old are you?::3;13::What's your name?::1;14::Where are you from?::2;15::How old are you?::3
- String replyString ="<awr_survey><v_questions>1::What's your name?::1;2::Where are you from?::2;3::How old are you?::3;</v_questions><v_locations>Lausanne;Basel;Zurich</v_locations></awr_survey>";
- ReplySurvey reply = (new XMLParserSurvey()).stringToReply(replyString);
- return reply;
- }
-
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/e2/70e70c886cac00141cc3aa66275e9c24 b/.metadata/.plugins/org.eclipse.core.resources/.history/a3/f0ae22ea55b80014199a8682e9990d0e
similarity index 74%
copy from .metadata/.plugins/org.eclipse.core.resources/.history/e2/70e70c886cac00141cc3aa66275e9c24
copy to .metadata/.plugins/org.eclipse.core.resources/.history/a3/f0ae22ea55b80014199a8682e9990d0e
index 8b30fef..a09e459 100644
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/e2/70e70c886cac00141cc3aa66275e9c24
+++ b/.metadata/.plugins/org.eclipse.core.resources/.history/a3/f0ae22ea55b80014199a8682e9990d0e
@@ -1,927 +1,944 @@
package ui;
import io.ClientConnection;
import io.CommAdapter;
import io.Questionnaire;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Font;
import java.awt.SystemColor;
+import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowAdapter;
import java.io.File;
import java.io.IOException;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.Map;
import java.util.Set;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.Box;
import javax.swing.BoxLayout;
import javax.swing.ButtonGroup;
import javax.swing.DefaultComboBoxModel;
import javax.swing.GroupLayout;
import javax.swing.GroupLayout.Alignment;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JDialog;
import javax.swing.JFileChooser;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JRadioButton;
import javax.swing.JScrollPane;
import javax.swing.JSeparator;
import javax.swing.JTabbedPane;
import javax.swing.JTextArea;
import javax.swing.JTextPane;
import javax.swing.JTree;
import javax.swing.LayoutStyle.ComponentPlacement;
import javax.swing.SwingConstants;
import javax.swing.border.EmptyBorder;
import javax.swing.border.LineBorder;
import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.tree.TreeModel;
import javax.swing.tree.TreePath;
import org.jpedal.examples.viewer.Commands;
import org.jpedal.examples.viewer.Viewer;
import utils.ClientProperties;
import com.itextpdf.text.DocumentException;
import database.DBconnectorClient;
import framework.Diagnostic;
import framework.MedUnit;
import framework.Question;
import framework.reply.ReplySurvey;
import framework.test.TestName;
+import javax.swing.JSplitPane;
+import java.awt.event.MouseAdapter;
+import java.awt.event.MouseEvent;
/**
*
- * @author youssef, raisaro
+ * @author raisaro
*/
public class GUI extends javax.swing.JFrame {
private static final Logger LOGGER = Logger.getLogger(GUI.class.getName());
private static final long serialVersionUID = -4582280515597700650L;
// configuration
private ClientProperties props;
private JTree jTree;
private DBconnectorClient connectorClientDB;
private LinkedList<Integer> patients;
/** List of all relevant tests */
private HashMap<String, TestName> testsByName;
private Viewer viewer;
private JDialog dialog;
private JFrame frame;
private boolean survey_submitted;
private int close_trials;
private Map<Integer, ButtonGroup> buttonGroupMap;
private Questionnaire quest;
private Map<Integer, Question> map;
private Set<Integer> ids;
private Map<String,String> answers;
private Map<Integer, String> locations;
+ private JButton btnSubmitQuestionnaire;
/**
* Creates new form GUI
*/
public GUI(ClientProperties props){
+ setLocationByPlatform(true);
+ setIconImage(Toolkit.getDefaultToolkit().getImage("res/shcs_logo2_icon.png"));
frame = this;
this.props = props;
this.connectorClientDB = new DBconnectorClient(props.getDbMsAccess());
survey_submitted = false;
close_trials = 0;
try {
initComponents();
viewer = new Viewer(jScrollPane2, null);
viewer.setupViewer();
- // create questionnare
-
+ // create questionnare
+
System.out.println("#of questions: " + ids.size());
-// viewer_q = new Viewer(jScrollPane4, null);
-// viewer_q.setupViewer();
-//
-// // specify file you wish to open (JPedal handles getting the byte data)
-// String filepathReport = "outputPDF/buttons_filled.pdf";
-//
-// // open generated PDF
-// // object must be either String in full filepath, or
-// // File object which can be relative
-// Object[] input = new Object[]{ new File(filepathReport) };
-// viewer_q.executeCommand(Commands.OPENFILE, input);
-
- JButton btnSubmitQuestionnaire = new JButton("Submit Questionnaire");
+
+ btnSubmitQuestionnaire = new JButton("Submit Questionnaire");
btnSubmitQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
btnSubmitQuestionnaire.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
submitButtonActionPerformed(arg0);
}
});
JButton btnResetQuestionnaire = new JButton("Save as PDF");
btnResetQuestionnaire.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
savePDFButtonActionPerformed(arg0);
}
});
btnResetQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
JPanel panel_button = new JPanel();
panel_button.setLayout(new BoxLayout(panel_button, BoxLayout.X_AXIS));
lblNewLabel_3 = new JLabel("");
lblNewLabel_3.setIcon(new ImageIcon("res/location_icon.png"));
panel_button.add(lblNewLabel_3);
comboBox = new JComboBox<String>();
comboBox.setFont(new Font("Tahoma", Font.BOLD, 12));
comboBox.setModel(new DefaultComboBoxModel<String>(new String[] {"Select Location"}));
for(Integer id_loc : locations.keySet()){
comboBox.addItem(locations.get(id_loc));
}
panel_button.add(comboBox);
rigidArea = Box.createRigidArea(new Dimension(10, 0));
panel_button.add(rigidArea);
lblNewLabel_1 = new JLabel("");
lblNewLabel_1.setIcon(new ImageIcon("res/submit.png"));
panel_button.add(lblNewLabel_1);
panel_button.add(btnSubmitQuestionnaire);
panel_button.add(Box.createRigidArea(new Dimension(10,0)));
lblNewLabel_2 = new JLabel("");
lblNewLabel_2.setIcon(new ImageIcon("res/pdf.png"));
panel_button.add(lblNewLabel_2);
panel_button.add(btnResetQuestionnaire);
panel_button.setPreferredSize(new Dimension(211, 35));
panel_button.validate();
- JPanel panel_3 = new JPanel();
+ splitPane = new JSplitPane();
+ splitPane.setOneTouchExpandable(true);
+ splitPane.setResizeWeight(0.52);
+ splitPane.setOrientation(JSplitPane.VERTICAL_SPLIT);
+
GroupLayout gl_panel = new GroupLayout(panel);
gl_panel.setHorizontalGroup(
- gl_panel.createParallelGroup(Alignment.TRAILING)
+ gl_panel.createParallelGroup(Alignment.LEADING)
.addGroup(gl_panel.createSequentialGroup()
- .addGap(63)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addGap(103)
- .addComponent(panel_button, GroupLayout.DEFAULT_SIZE, 498, Short.MAX_VALUE)
- .addGap(241))
+ .addGap(165)
+ .addComponent(panel_button, GroupLayout.DEFAULT_SIZE, 421, Short.MAX_VALUE)
+ .addGap(242))
.addGroup(gl_panel.createSequentialGroup()
- .addGap(41)
- .addGroup(gl_panel.createParallelGroup(Alignment.TRAILING)
- .addComponent(jScrollPane4, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE)
- .addComponent(panel_1, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE))
- .addGap(32))
+ .addContainerGap()
+ .addComponent(splitPane, GroupLayout.DEFAULT_SIZE, 738, Short.MAX_VALUE)
+ .addGap(80))
);
gl_panel.setVerticalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
+ gl_panel.createParallelGroup(Alignment.TRAILING)
.addGroup(gl_panel.createSequentialGroup()
- .addGap(22)
- .addComponent(panel_1, GroupLayout.PREFERRED_SIZE, 235, GroupLayout.PREFERRED_SIZE)
- .addGap(37)
- .addComponent(jScrollPane4, GroupLayout.DEFAULT_SIZE, 379, Short.MAX_VALUE)
- .addGap(26)
- .addGroup(gl_panel.createParallelGroup(Alignment.LEADING)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(panel_button, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE)))
+ .addContainerGap()
+ .addComponent(splitPane, GroupLayout.DEFAULT_SIZE, 603, Short.MAX_VALUE)
+ .addPreferredGap(ComponentPlacement.RELATED)
+ .addComponent(panel_button, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE)
+ .addGap(11))
+ );
+
+ panel_1 = new JPanel();
+ panel_1.setMinimumSize(new Dimension(10, 0));
+ panel_1.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
+ panel_1.setBackground(SystemColor.menu);
+ splitPane.setLeftComponent(panel_1);
+
+ label_1 = new JLabel("");
+ label_1.setIcon(new ImageIcon("res/shcs_logo2_medium.gif"));
+
+ label_2 = new JLabel("");
+ label_2.setIcon(new ImageIcon("res/EPFL_logo.png"));
+
+ label_3 = new JLabel("");
+ label_3.setIcon(new ImageIcon("res/chuv_logo.png"));
+
+ label_4 = new JLabel("Dear Doctor,");
+ label_4.setFont(new Font("Tahoma", Font.BOLD, 14));
+
+ scrollPane = new JScrollPane();
+ scrollPane.setBorder(null);
+ GroupLayout gl_panel_1 = new GroupLayout(panel_1);
+ gl_panel_1.setHorizontalGroup(
+ gl_panel_1.createParallelGroup(Alignment.LEADING)
+ .addGroup(gl_panel_1.createSequentialGroup()
+ .addGap(25)
+ .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
+ .addComponent(label_3)
+ .addComponent(label_2)
+ .addComponent(label_1, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE))
+ .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
+ .addGroup(gl_panel_1.createSequentialGroup()
+ .addGap(20)
+ .addComponent(label_4)
+ .addGap(109))
+ .addGroup(gl_panel_1.createSequentialGroup()
+ .addGap(10)
+ .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 557, Short.MAX_VALUE)
+ .addContainerGap())))
);
- panel_3.setLayout(new BoxLayout(panel_3, BoxLayout.X_AXIS));
+ gl_panel_1.setVerticalGroup(
+ gl_panel_1.createParallelGroup(Alignment.LEADING)
+ .addGroup(gl_panel_1.createSequentialGroup()
+ .addContainerGap()
+ .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
+ .addGroup(gl_panel_1.createSequentialGroup()
+ .addComponent(label_4)
+ .addPreferredGap(ComponentPlacement.UNRELATED)
+ .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 416, Short.MAX_VALUE))
+ .addGroup(gl_panel_1.createSequentialGroup()
+ .addGap(9)
+ .addComponent(label_1, GroupLayout.PREFERRED_SIZE, 96, GroupLayout.PREFERRED_SIZE)
+ .addGap(18)
+ .addComponent(label_2)
+ .addGap(28)
+ .addComponent(label_3)))
+ .addContainerGap(114, GroupLayout.PREFERRED_SIZE))
+ );
+
+ introduction = new JTextPane();
+ introduction.setBackground(SystemColor.control);
+ introduction.setContentType("text/html");
+ introduction.setText("You are receiving a pharmacogenetics report based on the genome of your patient. Because of its highly sensitive nature, the genetic information you are provided with is processed in a privacy-preserving way. In particular, to protect patients\u2019 genomic privacy, their genetic and clinical data are stored encrypted at the SHCS data center, and securely analyzed through a sophisticated algorithm designed and developed at EPFL [1, 2]. The actual clinical and genetic information is never revealed. Only the authorized users, such as you, can get some processed information, for example, the interpreted final result of a pharmacogenetics risk test.\r\nThis mechanism protects the data against insiders or hackers trying to illegally access patients\u2019 medical information, while still allowing authorized users to obtain the information they need.\r\n<br><br>\r\n<b>To help us better understanding the importance of genomic privacy in the medical domain, and the impact of privacy-enhancing technologies in daily clinical practice, please complete the following survey. Answers are on a scale from 1 (Strongly Disagree) to 5 (Strongly Agree).</b>\r\n<font size=\"2\">\r\n<br><br>\r\nNote: this work is part of Project #693, funded by the Swiss HIV Cohort. PIs: Prof. A. Telenti, formerly at CHUV, and Prof. J.-P. Hubaux, at EPFL.\r\n<br><br>\r\n[1] J. L. Raisaro, E. Ayday, P. J. McLaren, J.-P. Hubaux, and A. Telenti. Privacy-Preserving HIV Pharmacogenetics: A Real Use Case of Genomic Data Protection. GenoPri 2014<br>\r\n[2] E. Ayday, J. L. Raisaro, J. Rougemont, and J.-P. Hubaux. Protecting and Evaluating Genomic Privacy in Medical Tests and Personalized Medicine. WPES 2013\r\n</font>");
+ scrollPane.setViewportView(introduction);
+ panel_1.setLayout(gl_panel_1);
+
+ jScrollPane4 = new JScrollPane();
+ jScrollPane4.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
+ splitPane.setRightComponent(jScrollPane4);
+
+
+ jScrollPane4.setViewportView(panel_2);
+ javax.swing.SwingUtilities.invokeLater(new Runnable() {
+ public void run() {
+ jScrollPane4.getVerticalScrollBar().setValue(0);
+ }
+ });
+ introduction.setCaretPosition(0);
panel.setLayout(gl_panel);
/////////////////////////////////////////////////////////
// display the tests available
// get the tests
HashMap<String, ArrayList<TestName>> testsRelevantByGroup = connectorClientDB.getRelevantTestsByGroup();
ArrayList<String> groups = new ArrayList<String>(testsRelevantByGroup.keySet());
// flatten hashmap into linkedlist
// tests = new LinkedList<>();
testsByName = new HashMap<String, TestName>();
for (String group : groups) {
// tests.addAll(testsRelevantByGroup.get(group));
for (TestName test : testsRelevantByGroup.get(group)) {
testsByName.put(test.getName(), test);
}
}
// define tree structure of the tests
DefaultMutableTreeNode root = new DefaultMutableTreeNode("All");
for (String group : groups) {
DefaultMutableTreeNode child = new DefaultMutableTreeNode(group);
root.add(child);
for (TestName test : testsRelevantByGroup.get(group)) {
DefaultMutableTreeNode grandChild = new DefaultMutableTreeNode(test.getName());
child.add(grandChild);
}
}
// define swing object
jTree = new JTree(root);
+ jTree.setFont(new Font("Tahoma", Font.PLAIN, 11));
for(int i=0;i<jTree.getRowCount();i++){
jTree.expandRow(i);
}
jScrollPane3.setViewportView(jTree);
// jTree.addTreeSelectionListener(new TreeSelectionListener() {
//
// @Override
// public void valueChanged(TreeSelectionEvent e) {
// tp = jTree.getSelectionPaths();
// }
// });
jScrollPane3.setViewportView(jTree);
/////////////////////////////////////////////////////////
// display the patients registered
patients = connectorClientDB.getPatients();
for (Integer patientId : patients) {
jComboBox1.addItem(patientId.toString());
}
} catch (SQLException ex) {
Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex);
ex.printStackTrace();
// } catch (IOException e) {
// // TODO Auto-generated catch block
// e.printStackTrace();
// } catch (DocumentException e) {
// // TODO Auto-generated catch block
// e.printStackTrace();
}
}
/**
* 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() {
-
- jPanel1 = new javax.swing.JPanel();
- jLabel2 = new javax.swing.JLabel();
- jLabel1 = new javax.swing.JLabel();
jPanel2 = new javax.swing.JPanel();
jComboBox1 = new javax.swing.JComboBox<String>();
+ jComboBox1.setFont(new Font("Tahoma", Font.BOLD, 12));
jButton1 = new javax.swing.JButton();
jButton1.setFont(new Font("Tahoma", Font.BOLD, 12));
jLabel3 = new javax.swing.JLabel();
jLabel4 = new javax.swing.JLabel();
jScrollPane3 = new javax.swing.JScrollPane();
jScrollPane2 = new javax.swing.JScrollPane();
+ jScrollPane2.setMinimumSize(new Dimension(5, 5));
jMenuBar1 = new javax.swing.JMenuBar();
jMenu1 = new javax.swing.JMenu();
jMenuItem1 = new javax.swing.JMenuItem();
jMenu2 = new javax.swing.JMenu();
dialog = new JDialog();
tabbedPane = new JTabbedPane(JTabbedPane.TOP);
+ tabbedPane.setFont(new Font("Tahoma", Font.BOLD, 12));
setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
addWindowListener(new WindowAdapter() {
@Override
public void windowClosing(java.awt.event.WindowEvent windowEvent) {
if (!survey_submitted && close_trials <= 2){
JOptionPane.showMessageDialog(frame, "Before closing the application, please fill in and submit the questionnaire.");
close_trials++;
tabbedPane.setSelectedIndex(1);
}else{
System.exit(0);
}
}
});
- setTitle("HIV Pharmacogenomics\n");
-
- jLabel2.setIcon(new javax.swing.ImageIcon("res/shcs_logo2_small.gif")); // NOI18N
-
- jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
- jLabel1.setText("HIV Pharmacogenomics | Project #693");
-
- javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
- jPanel1.setLayout(jPanel1Layout);
- jPanel1Layout.setHorizontalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap(71, Short.MAX_VALUE)
- .addComponent(jLabel1)
- .addGap(18, 18, 18)
- .addComponent(jLabel2))
- );
- jPanel1Layout.setVerticalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jLabel1)
- .addGap(11, 11, 11))
- .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)
- );
+ setTitle("Privacy-Preserving HIV Pharmacogenomics\r\n");
jPanel2.setBackground(new java.awt.Color(255, 255, 255));
jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<String>(new String[]{"Select Patient"}));
jButton1.setText("Run Test");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});
JLabel lblNewLabel = new JLabel("");
lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
lblNewLabel.setIcon(new javax.swing.ImageIcon("res/gears.png"));
javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
jPanel2Layout.setHorizontalGroup(
jPanel2Layout.createParallelGroup(Alignment.LEADING)
.addComponent(jComboBox1, 0, 248, Short.MAX_VALUE)
.addGroup(jPanel2Layout.createSequentialGroup()
.addGap(75)
.addGroup(jPanel2Layout.createParallelGroup(Alignment.TRAILING)
.addComponent(jButton1)
.addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 75, GroupLayout.PREFERRED_SIZE))
.addContainerGap(98, Short.MAX_VALUE))
);
jPanel2Layout.setVerticalGroup(
jPanel2Layout.createParallelGroup(Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addComponent(jComboBox1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
.addPreferredGap(ComponentPlacement.RELATED, 223, Short.MAX_VALUE)
.addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE)
.addPreferredGap(ComponentPlacement.RELATED)
.addComponent(jButton1)
.addGap(19))
);
jPanel2.setLayout(jPanel2Layout);
jLabel3.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
jLabel3.setText("Select Patient");
jLabel4.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
jLabel4.setText("Select Test");
jScrollPane3.setBackground(new java.awt.Color(255, 255, 255));
jMenu1.setText("File");
jMenuItem1.setText("Exit");
jMenu1.add(jMenuItem1);
jMenuBar1.add(jMenu1);
jMenu2.setText("Edit");
jMenuBar1.add(jMenu2);
setJMenuBar(jMenuBar1);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
layout.setHorizontalGroup(
layout.createParallelGroup(Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addGroup(layout.createParallelGroup(Alignment.LEADING, false)
- .addComponent(jLabel3)
.addComponent(jLabel4)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, 244, Short.MAX_VALUE)
- .addComponent(jScrollPane3))
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 970, Short.MAX_VALUE))
- .addContainerGap())
+ .addComponent(jLabel3)
+ .addComponent(jScrollPane3, GroupLayout.DEFAULT_SIZE, 234, Short.MAX_VALUE)
+ .addComponent(jPanel2, 0, 0, Short.MAX_VALUE))
+ .addPreferredGap(ComponentPlacement.RELATED)
+ .addComponent(tabbedPane, GroupLayout.PREFERRED_SIZE, 751, Short.MAX_VALUE)
+ .addGap(19))
);
layout.setVerticalGroup(
- layout.createParallelGroup(Alignment.LEADING)
+ layout.createParallelGroup(Alignment.TRAILING)
.addGroup(layout.createSequentialGroup()
+ .addContainerGap()
.addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel4))
- .addPreferredGap(ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(Alignment.LEADING)
+ .addComponent(tabbedPane, Alignment.LEADING, GroupLayout.PREFERRED_SIZE, 687, Short.MAX_VALUE)
.addGroup(layout.createSequentialGroup()
- .addComponent(jScrollPane3, GroupLayout.PREFERRED_SIZE, 388, GroupLayout.PREFERRED_SIZE)
+ .addComponent(jLabel4)
+ .addPreferredGap(ComponentPlacement.RELATED)
+ .addComponent(jScrollPane3, GroupLayout.PREFERRED_SIZE, 356, GroupLayout.PREFERRED_SIZE)
.addPreferredGap(ComponentPlacement.RELATED)
.addComponent(jLabel3)
.addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 785, Short.MAX_VALUE))
+ .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, 283, Short.MAX_VALUE)))
.addContainerGap())
);
jScrollPane2.setAutoscrolls(true);
jScrollPane3.setAutoscrolls(true);
tabbedPane.addTab("Report", new ImageIcon("res/report_icon.gif"), jScrollPane2, null);
tabbedPane.setBackgroundAt(0, new Color(255, 255, 255));
panel = new JPanel();
+ panel.setPreferredSize(new Dimension(0, 0));
tabbedPane.addTab("Survey", new ImageIcon("res/survey_icon.png"), panel, null);
tabbedPane.setBackgroundAt(1, new Color(255, 255, 255));
tabbedPane.setEnabledAt(1, true);
-
- panel_1 = new JPanel();
- panel_1.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
- panel_1.setBackground(SystemColor.control);
-
- JLabel label = new JLabel("");
- label.setIcon(new ImageIcon("res/shcs_logo2_medium.gif"));
-
- lblDearDoctor = new JLabel("Dear Doctor,");
- lblDearDoctor.setFont(new Font("Tahoma", Font.BOLD, 14));
-
- JScrollPane scrollPane = new JScrollPane();
- scrollPane.setBorder(null);
- GroupLayout gl_panel_1 = new GroupLayout(panel_1);
- gl_panel_1.setHorizontalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(Alignment.LEADING, gl_panel_1.createSequentialGroup()
- .addGap(25)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addComponent(lblDearDoctor)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 661, Short.MAX_VALUE))
- .addContainerGap())
- );
- gl_panel_1.setVerticalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addContainerGap()
- .addComponent(lblDearDoctor)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 203, Short.MAX_VALUE))
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(36)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 96, GroupLayout.PREFERRED_SIZE)))
- .addContainerGap())
- );
-
- JTextPane txtpnTodayYouAre = new JTextPane();
- txtpnTodayYouAre.setBorder(null);
- txtpnTodayYouAre.setText("Today you are receiving a pharmacogenetics report based on the genome of your patient. Because of its highly sensitive nature, " +
- "the genetic information you are provided with is processed in a privacy-preserving way. In particular, to protect patients’ genomic privacy, " +
- "their genetic and clinical data is stored encrypted at the SHCS data center, and securely analyzed through a sophisticated algorithm designed and developed at EPFL [1, 2]. " +
- "The actual clinical and genetic information is never revealed. Only the authorized users, such as you, can get some processed information, for example, the final result of a " +
- "pharmacogenetics risk test.\nThis mechanism protects the data against insiders or hackers trying to illegally access patients’ medical information, while still allowing authorized " +
- "users to obtain the information they need." +
- "\n\nTo help us understanding the importance of genomic privacy in the medical domain, and the impact of privacy-enhancing technologies in daily clinical practice, please complete the following survey.");
- txtpnTodayYouAre.setFont(new Font("Tahoma", Font.PLAIN, 13));
- txtpnTodayYouAre.setEditable(false);
- txtpnTodayYouAre.setBackground(SystemColor.control);
- scrollPane.setViewportView(txtpnTodayYouAre);
- panel_1.setLayout(gl_panel_1);
- jScrollPane4 = new javax.swing.JScrollPane();
- jScrollPane4.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
getContentPane().setLayout(layout);
buttonGroupMap = new HashMap<Integer, ButtonGroup>();
ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
CommAdapter commHandlerAdapter = new CommAdapter(connection);
ReplySurvey replySurvey = commHandlerAdapter.callServiceSurvey();
map = replySurvey.getQuestions();
ids = map.keySet();
locations = replySurvey.getLocations();
+ buttonGroupMap = new HashMap<Integer, ButtonGroup>();
+
panel_2 = new JPanel();
- panel_2.setBackground(Color.WHITE);
+ panel_2.addMouseListener(new MouseAdapter() {
+ @Override
+ public void mouseClicked(MouseEvent arg0) {
+ splitPane.setDividerLocation(0.0);
+ }
+ });
panel_2.setBorder(null);
- jScrollPane4.setViewportView(panel_2);
+ panel_2.setBackground(Color.WHITE);
panel_2.setLayout(new BoxLayout(panel_2, BoxLayout.Y_AXIS));
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
-
+
+ JLabel expand_icon = new JLabel("");
+ expand_icon.setVerticalAlignment(SwingConstants.TOP);
+ expand_icon.setHorizontalAlignment(SwingConstants.LEFT);
+ expand_icon.setAlignmentY(Component.TOP_ALIGNMENT);
+ expand_icon.setAlignmentX(Component.LEFT_ALIGNMENT);
+ expand_icon.setIcon(new ImageIcon("C:\\Users\\raisaro\\workspace\\yussef\\project\\PPPClient\\res\\expand_icon.jpg"));
+ panel_2.add(expand_icon);
+
+ //dynamic question generation
int type = 0;
for(Integer id : ids){
ButtonGroup group = new ButtonGroup();
- JRadioButton r1 = new JRadioButton("1"); r1.setActionCommand("1"); r1.setBackground(Color.WHITE);
- JRadioButton r2 = new JRadioButton("2"); r2.setActionCommand("2"); r2.setBackground(Color.WHITE);
- JRadioButton r3 = new JRadioButton("3"); r3.setActionCommand("3"); r3.setBackground(Color.WHITE);
- JRadioButton r4 = new JRadioButton("4"); r4.setActionCommand("4"); r4.setBackground(Color.WHITE);
- JRadioButton r5 = new JRadioButton("5"); r5.setActionCommand("5"); r5.setBackground(Color.WHITE);
+ JRadioButton r1 = new JRadioButton("1"); r1.setActionCommand("1"); r1.setBackground(Color.WHITE);
+ JRadioButton r2 = new JRadioButton("2"); r2.setActionCommand("2"); r2.setBackground(Color.WHITE);
+ JRadioButton r3 = new JRadioButton("3"); r3.setActionCommand("3"); r3.setBackground(Color.WHITE);
+ JRadioButton r4 = new JRadioButton("4"); r4.setActionCommand("4"); r4.setBackground(Color.WHITE);
+ JRadioButton r5 = new JRadioButton("5"); r5.setActionCommand("5"); r5.setBackground(Color.WHITE);
group.add(r1);
group.add(r2);
group.add(r3);
group.add(r4);
group.add(r5);
JPanel radio_panel = new JPanel();
radio_panel.setLayout((new BoxLayout(radio_panel, BoxLayout.X_AXIS)));
radio_panel.setBackground(Color.WHITE);
radio_panel.setAlignmentX(Component.CENTER_ALIGNMENT);
radio_panel.add(r1);
radio_panel.add(r2);
radio_panel.add(r3);
radio_panel.add(r4);
radio_panel.add(r5);
radio_panel.doLayout();
radio_panel.setPreferredSize(radio_panel.getPreferredSize());
JTextArea question = new JTextArea(id + ") " + map.get(id).getQuestion());
question.setEditable(false);
question.setLineWrap(true);
question.setWrapStyleWord(true);
question.setFont(new Font("Tahoma", Font.PLAIN, 13));
JPanel row_panel = new JPanel();
row_panel.setLayout(new BoxLayout(row_panel, BoxLayout.X_AXIS));
row_panel.add(Box.createRigidArea(new Dimension(20,0)));
row_panel.add(question);
row_panel.add(Box.createRigidArea(new Dimension(20,0)));
row_panel.add(radio_panel);
row_panel.add(Box.createRigidArea(new Dimension(20,0)));
row_panel.setBackground(Color.WHITE);
int type_new = map.get(id).getType();
if(type_new != type){
type = type_new;
JLabel question_group = new JLabel("");
switch(type){
case 1:
question_group.setText("Clinical Utility");
break;
case 2:
question_group.setText("Privacy Concerns");
break;
case 3:
question_group.setText("Usability Assessment");
break;
}
question_group.setAlignmentX(Component.CENTER_ALIGNMENT);
question_group.setFont(new Font("Tahoma", Font.BOLD, 13));
+ panel_2.add(new JSeparator());
panel_2.add(Box.createRigidArea(new Dimension(0,5)));
panel_2.add(question_group);
panel_2.add(Box.createRigidArea(new Dimension(0,5)));
panel_2.add(new JSeparator());
panel_2.add(Box.createRigidArea(new Dimension(0,5)));
}
panel_2.add(Box.createRigidArea(new Dimension(0,5)));
panel_2.add(row_panel);
panel_2.add(Box.createRigidArea(new Dimension(0,5)));
// panel_2.add(radio_panel);
- panel_2.add(new JSeparator());
+// panel_2.add(new JSeparator());
panel_2.add(Box.createRigidArea(new Dimension(0,5)));
// panel_2.setPreferredSize(panel_2.getPreferredSize());
buttonGroupMap.put(id, group);
}
+
+
+
-
- this.setSize(new Dimension(1300, 865));
-// pack();
+ this.setSize(new Dimension(1118, 768));
+// this.pack();
}// </editor-fold>//GEN-END:initComponents
private void submitButtonActionPerformed(java.awt.event.ActionEvent evt){
try{
answers = new HashMap<String, String>();
StringBuilder sb = new StringBuilder();
Set<Integer> questions_id = buttonGroupMap.keySet();
for(Integer q: questions_id){
ButtonGroup bg = buttonGroupMap.get(q);
sb.append(q).append(",");
sb.append(bg.getSelection().getActionCommand()).append(";");
answers.put(q.toString(),bg.getSelection().getActionCommand());
}
String answer = sb.toString();
Integer id_loc = null;
for(Integer i: locations.keySet()){
if(locations.get(i).equals(comboBox.getSelectedItem().toString()))
id_loc = i;
}
String id_p;
if(jComboBox1.getSelectedItem().toString().equals("Select Patient"))
id_p = "0";
else
id_p = jComboBox1.getSelectedItem().toString();
ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
CommAdapter commHandlerAdapter = new CommAdapter(connection);
String reply = commHandlerAdapter.callServiceSurveyAnswer(answer, id_loc.toString(), id_p);
if(reply.equals("1")){
survey_submitted = true;
dialog.setVisible(false);
JOptionPane.showMessageDialog(
this,
"Congrats! Your aswers have been sent to the SHCS datacenter.",
"Information Message",
JOptionPane.INFORMATION_MESSAGE);
+ btnSubmitQuestionnaire.setEnabled(false);
}
else{
throw new IOException();
}
} catch (NullPointerException e){
LOGGER.log(Level.SEVERE, null, e);
dialog.setVisible(false);
JOptionPane.showMessageDialog(
this,
"Please respond to all the questions!",
"Error Message",
JOptionPane.ERROR_MESSAGE);
} catch (IOException e) {
LOGGER.log(Level.SEVERE, null, e);
dialog.setVisible(false);
JOptionPane.showMessageDialog(
this,
"The SHCS datacenter does not respond. Please save the survey and send it to jean.raisaro@epfl.ch.",
"Error Message",
JOptionPane.ERROR_MESSAGE);
}
}
private void savePDFButtonActionPerformed(java.awt.event.ActionEvent evt){
try {
answers = new HashMap<String, String>();
Set<Integer> questions_id = buttonGroupMap.keySet();
for(Integer q: questions_id){
ButtonGroup bg = buttonGroupMap.get(q);
answers.put(q.toString(),bg.getSelection().getActionCommand());
}
JFileChooser chooser = new JFileChooser();
// Note: source for ExampleFileFilter can be found in FileChooserDemo,
// under the demo/jfc directory in the JDK.
int returnVal = chooser.showSaveDialog(this);
System.out.println(returnVal);
if(returnVal == JFileChooser.APPROVE_OPTION) {
System.out.println("You chose to open this file: " +
chooser.getSelectedFile().getPath());
quest = new Questionnaire(chooser.getSelectedFile().getPath() + ".pdf");
quest.createPdf(map, ids);
quest.writeAnswers(answers);
survey_submitted = true;
}else{
quest = new Questionnaire("outputPDF/survey.pdf");
quest.createPdf(map, ids);
quest.writeAnswers(answers);
survey_submitted = true;
}
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (DocumentException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (NullPointerException e) {
LOGGER.log(Level.SEVERE, null, e);
dialog.setVisible(false);
JOptionPane.showMessageDialog(
this,
"Please respond to all the questions!",
"Error Message",
JOptionPane.ERROR_MESSAGE);
}
}
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
JPanel contentPanel = new JPanel();
- dialog.setBounds(100, 100, 410, 80);
+ dialog.setBounds(100, 100, 420, 100);
dialog.getContentPane().setLayout(new BorderLayout());
contentPanel.setLayout(new FlowLayout());
contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
dialog.getContentPane().add(contentPanel, BorderLayout.CENTER);
{
- JLabel label = new JLabel("Please wait...The overall computation can take few seconds");
+ JLabel label = new JLabel("Please wait...The overall computation can take some seconds!");
+ JLabel label2 = new JLabel("Cryptographic operations are being performed at the SHCS...");
label.setHorizontalAlignment(SwingConstants.CENTER);
- label.setFont(new Font("Tahoma", Font.PLAIN, 12));
+ label.setFont(new Font("Tahoma", Font.BOLD, 12));
+ label2.setHorizontalAlignment(SwingConstants.CENTER);
+ label2.setFont(new Font("Tahoma", Font.PLAIN, 12));
contentPanel.add(label);
+ contentPanel.add(label2);
}
{
JPanel buttonPane = new JPanel();
buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
dialog.getContentPane().add(buttonPane, BorderLayout.SOUTH);
}
dialog.setLocationRelativeTo(this);
dialog.setVisible(true);
GUIWorker gw = new GUIWorker(this, props);
Thread t = new Thread(gw);
t.start();
}
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JButton jButton1;
private javax.swing.JComboBox<String> jComboBox1;
- private javax.swing.JLabel jLabel1;
- private javax.swing.JLabel jLabel2;
private javax.swing.JLabel jLabel3;
private javax.swing.JLabel jLabel4;
private javax.swing.JMenu jMenu1;
private javax.swing.JMenu jMenu2;
private javax.swing.JMenuBar jMenuBar1;
private javax.swing.JMenuItem jMenuItem1;
- private javax.swing.JPanel jPanel1;
private javax.swing.JPanel jPanel2;
private javax.swing.JScrollPane jScrollPane3;
private javax.swing.JTabbedPane tabbedPane;
private javax.swing.JScrollPane jScrollPane2;
- private javax.swing.JScrollPane jScrollPane4;
private JPanel panel;
- private JPanel panel_1;
- private JPanel panel_2;
- private JLabel lblDearDoctor;
private JLabel lblNewLabel_1;
private JLabel lblNewLabel_2;
private JLabel lblNewLabel_3;
private JComboBox<String> comboBox;
private Component rigidArea;
+ private JSplitPane splitPane;
+ private JPanel panel_1;
+ private JLabel label_1;
+ private JLabel label_2;
+ private JLabel label_3;
+ private JLabel label_4;
+ private JScrollPane scrollPane;
+ private JTextPane introduction;
+ private JScrollPane jScrollPane4;
+ private JPanel panel_2;
// End of variables declaration//GEN-END:variables
class GUIWorker implements Runnable{
private JFrame mainFrame;
private ClientProperties props;
private MedUnit mu;
public GUIWorker(GUI gui, ClientProperties props) {
mainFrame = gui;
this.props = props;
this.mu = new MedUnit(props, 0);
}
@Override
public void run() {
try{
int patientId = Integer.parseInt((String) jComboBox1.getSelectedItem());
// convert selected tests to test identifiers
ArrayList<TestName> selectedTests = new ArrayList<TestName>();
for (String currentName : getSelectedTests()) {
TestName currentTest = testsByName.get(currentName);
if (currentTest == null) {
throw new IllegalStateException("Trying to run unknown test: " + currentTest);
}
selectedTests.add(currentTest);
}
// run tests
Diagnostic diagnostic = mu.runTests(patientId, selectedTests);
// warn for tests with missing material
warnFailedTests(diagnostic, selectedTests);
// create report
mu.createReport(patientId, selectedTests, diagnostic);
dialog.setVisible(false);
// specify file you wish to open (JPedal handles getting the byte data)
String filepathReport = props.getPathPDF() + patientId + ".pdf";
// open generated PDF
// object must be either String in full filepath, or
// File object which can be relative
Object[] input = new Object[]{ new File(filepathReport) };
viewer.executeCommand(Commands.OPENFILE, input);
// display CAD result as bar plot
if (diagnostic.hasCAD()) {
System.out.println("CAD = " + diagnostic.getResultCAD());
BarPlotFrame frame = new BarPlotFrame(diagnostic.getResultCAD(), patientId);
frame.setVisible(true);
frame.setAlwaysOnTop(true);
}
} catch (SQLException e) {
LOGGER.log(Level.SEVERE, null, e);
displayError("Not able to connect to service. Please try again.");
} catch (IOException e) {
LOGGER.log(Level.SEVERE, null, e);
displayError("Not able to connect to service. Please try again.");
} catch (NullPointerException e){
LOGGER.log(Level.SEVERE, null, e);
- displayError("Please select a patient.");
+ displayError("Please select a patient and one or multiple tests.");
+ } catch (NumberFormatException e){
+ LOGGER.log(Level.SEVERE, null, e);
+ displayError("Please select a patient and one or multiple tests.");
}
}
private void warnFailedTests(Diagnostic diagnostic, ArrayList<TestName> selectedTests) {
ArrayList<Integer> failedTests = diagnostic.getInvalidTests();
if (!failedTests.isEmpty()) {
String msg = "Could not complete tests: ";
boolean first = true;
for (TestName testName : selectedTests) {
if (failedTests.contains(testName.getId())) {
if (first) {
first = false;
} else {
msg += ", ";
}
msg += testName.getName();
}
}
displayError(msg);
}
}
private void displayError(String msg) {
dialog.setVisible(false);
JOptionPane.showMessageDialog(
mainFrame,
msg,
"Error Message",
JOptionPane.ERROR_MESSAGE);
}
private ArrayList<String> getSelectedTests() {
ArrayList<String> tests = new ArrayList<String>();
for (TreePath treePath : jTree.getSelectionPaths()) {
tests.addAll(getChildrenTests(jTree.getModel(), treePath.getLastPathComponent()));
}
return tests;
}
private ArrayList<String> getChildrenTests(TreeModel model, Object node) {
ArrayList<String> tests = new ArrayList<String>();
if (model.isLeaf(node)) { // leaf
DefaultMutableTreeNode leaf = (DefaultMutableTreeNode) node;
tests.add(leaf.toString());
}
else { // iterate over children
for (int i = 0; i < model.getChildCount(node); i++) {
tests.addAll(getChildrenTests(model, model.getChild(node, i)));
}
}
return tests;
}
}
}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/a4/f04d30cb4cac001410e2e30aa85db9d1 b/.metadata/.plugins/org.eclipse.core.resources/.history/a4/f04d30cb4cac001410e2e30aa85db9d1
deleted file mode 100644
index c46799f..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/a4/f04d30cb4cac001410e2e30aa85db9d1
+++ /dev/null
@@ -1,71 +0,0 @@
-package io;
-
-import io.serializer.url.URLParserDecrypt;
-import io.serializer.url.URLParserMaterial;
-import io.serializer.xml.XMLParserDecrypt;
-import io.serializer.xml.XMLParserMaterial;
-import io.serializer.xml.XMLParserSurvey;
-
-import java.util.logging.Logger;
-
-import framework.Type;
-import framework.reply.ReplyDecryption;
-import framework.reply.ReplyMaterial;
-import framework.reply.ReplySurvey;
-import framework.request.RequestDecryption;
-import framework.request.RequestMaterial;
-
-public class CommAdapter {
-
- @SuppressWarnings("unused")
- private static final Logger LOGGER = Logger.getLogger(CommAdapter.class.getName());
-
- public ClientConnection connectSPU = null;
-
- public CommAdapter(ClientConnection connectSPU) {
- this.connectSPU = connectSPU;
- }
-
- public ReplyDecryption callServiceDecrypt(RequestDecryption rqtDecrypt) {
- String requestString = URLParserDecrypt.requestToString(rqtDecrypt);
-// String replyString = "<awr_decrypt><patient>30351</patient><v_timestamp>1417188729390</v_timestamp><decrypt_val>,,,,,,,,,,,,,,,,2,AwHR3OO0/hkwgEHluLDFLtn4aaTBAwBEJjJpMegGa29ASgtyt1ha2OOyxvEvNgkIaY0xWXtTmqrqhSBKDG6J7Lps0g==,AwE/oifhonvUZDA4mqRK8K1WCkoepEuL9SidjdFXMNNZQXCMUvVN6pBUYVFgJeFX6mT2jruK8ic3y6yI14PfKl/Pvg==,AgBHs6HGF9AYNc5RlFTGv025WEaT91i/MPy+HXqhvHOrp0Ol9/aKyvv2BgAzeAdsdSEbVs2sahiyL/kbKjeUoI9tsA==,,,,,,,,,,,,,2,AgHIofEmf4aJMLBnKAY3/8WcLXUETF4y/68fzZR6hsS5btZTyI0E4ZTltDzV6hBzIT14cC4S/BMclo1aoLt5C9f+Cg==,AgDOXZAZAwO4KXslqU1wKctrVlH8CcGvpO8gGrPl3YjrY8SR3a6gStvZvjcUKXhvtDkRwSLAIkD3lFrKSXWestHSqQ==,AgG7Y5so9ZTRng2Xm3ziWx3+7zfaVLkIJ2v7g+qEUx5Vl2/udDOcg/was8W6qbKYeo/W0EGTlNXKTOdIatGVxyuoZA==,,,,,2,AgDAVy0/nE6X4iAengG9lCiYEBMtK6rAAiy7OwC7U/QSbokiEzH0RafH7rb+5L5R/ii9/3kZCcKmgOIoPzkmeloDfg==,AgHuvmLAeIFYm4ObEBO2v9xTK6tjYfdh+x4kwULBpDNlUiW4kNNaeoeziRA7nlRvcSfxPlR070N/3qzBMu3EKZ2csQ==,AgDk/CzCL4XUobuNaLsvrH5s0COMKYBqY/18YRR0d7mIsVVYrKVGF+IWnEluhbLt+BoRBdvL5UElgroyORJpiKz06w==,,,,,2,AgH0nW+2h+vcOZgPe3uR7jEHmEPi+g4izQ3OIU9An2vekwbG1liBFgTo33pEhyXhNWPhGCbSb73sJ7pt0JLL+hhWMw==,AgHG039OnpvmllkV6QBsmoMdqISrRuW2q5M3jfUp5TUbU6F/3S2FK1iSVKWgTsI291re6lz6KH5d8rWrnoCAozhIeg==,AwGjmnLUMd42F7a/tsSkeqcxoHMAXNKdvF4kOXoAxmc6ZSxaUhzkGkcgNOO8SFNiWqTKgtZCffJ7hfI0voAUX0TD1w==,,,,,2,AwHfYRjQFscHzOvVozackTaM3sybOjyd2aLc4B+WQ7KiWHoGKkzQScoDiy8hiA2cJpv8ngfitTqJRLlyegvuM+Ietw==,AwAP92OqrJFpFmdrMUUx6FeFhwVLYtAsfw3sem2RYu7ljPry+uJnvluuzTvVaFhs8BAAD8VBFs1vqrSHyQEq8Ocsmw==,AwDNXg/JA4QXA6wu30DUE7peOk1a10aHbd38iwjN1Q0DKy3BqS36+EQKg5hbwELxN2+/Yu4UA1IKWYJI0zNs6TJUtA==,,,,,2,AwBWFv3ivyQz4CGIilJ7CVtpQGOs1tnIW+0uxQyiWIO3HDjJtfxPyQ1AJWPsBQ9eYmaoKmPnN+euPCm7bP0LxBL/Tg==,AwHg7AZb5DV5OJrl0omtKx2OqckXcQEUT8pZ+Bmo9AyULgL5HOq2AVU04qhvbdy0W4OMYqxF3uBwqT6dNhFptsKEKQ==,AwG9dyMbI5EI8UCXuj5JkQRMimcT1u6zCBAfmRvANtT54yDtC8KS6VeOr7h/NP4qrf/mbl5tMaePbkkHrc6E39ntsA==,,,,,2,AwHkMyCOJm/RlYOybGhX3DchR/wSN2L3PuXKalMszgk3WOCiWSpYlP3SOPLWvJTRQaTxoN+oA5IkCTvlp02+Mduaxg==,AgHhR8HjavXjnsy+rHptc/JSI5pLFjM0RczUygxTX7vqV/yqwZ280Rq7YpXKp2GBfiZvFf0qIQoWe4vx5DBxwvHkdA==,AwEf2yisEpflVm8R2X08SCJM89apu7tUFzbpndsTIt5o9/xdoXKomMUk9REz+yrpkd+jFhlkJMQHHVMhgjiWYCEdpQ==,,,,,2,AwBaIc8ZWFm4O9QO0ofJeS9Q7tki7CAscBXRDnajEp7rmKNgrpRyyu1ezSpborwaloWR9kDKPLdYVV8SNk2V/1EudA==,AwGE8MPAnPKKXF15EyrAx1bRinwgoqYVO4Junz5IXQjGLyQpSr5NwO/hqu5E5egHte20jm380Wn2Qy6GgKNiRLy/gQ==,AwCAOjOQNdMN5uIB0POFzYS/fpxZ0Q5KfhlP5fijNmc/daO5frSrwhgcMH5lMKL4EGjBI1p6JMe3fuMqb5t1ImeTBg==,,,,,2,AgARSg2izcK6iZLFe4YkIS6yZgnt8cd9DFqpQ37gNmcccZwBI+mpsaijTUPo1GT+QUD8zC+6qr/GrzG9q+q7BPxpVw==,AwGM/jFdtoNViQXxgqeL27ZKobjsfyeuXrx8re3UfIe3c4XN16srSpcTfxEZNXDKo1Ff9fRvDVBOwdS6XU2nvo++ng==,AwAtK0eOqcVfzkdJIIkk7BORWwSDTAjtx4aEXwyZ0bla+2rIWDgXi3U5xlgnjeXJNtGsLokkvvX92BOBIw9SuCGhnw==,2,AgCWAAWTW+7jv2a2lc4pGFnumEgyH59wSDRXEYUASCVB249JBmeKFWRKNFTQlph5hTR5Rb+YHFP/qvzmwU11Hs2b0w==,AgANdxpkN+DS4De3aokNjt+e/Ou8GT+p8pUJA+6LHrDBXAddoCR8KpeXW7mESokq6BTEVQXxU3TdqavRkqaeFmpXkw==,AgDDDSEO3e8DCsm1n6dbj2PB9Z/tUzluDCt/utdSLrYFfdFY+Y5K7Vxo9F5/17CzaUbX172SGLt8TfCfuYBrtupgAg==,2,AgB1OG6bj+6kfRvLj8yjMQbl80FdZHZrRVRUfNVRwvjvvbRa5f9s9fNZ8J0a3s3hH+RyfZmGJ4Ufjh5mMiQkwiur6w==,AwBX4GFZNjUdtRdwtWgxyQz7h8Hk0ztaZeM8/e+8ll0o+RjYN+CNP8+lnXEw7wpuC4wcMX05mrjPvHOuy0hOFVNkhQ==,AgDf3el4vbMYIAFEH9WV151/uzl+gkfTQ79T8Iu4KxEVo6UJvCfqkjETlR6aXUJiqaCbSV5odMT50lURsmfgALf6AQ==,,,,,2,AgENmnviZkgQWXZ5QDgCCE2zq0IiXURTqK2UNPtEg3o64yjlrQQUd2rO/KgKolyCQcKYTVoMj7k2VeCSSVRr8KGC7w==,AwFv6ZJzhpV/Ms00QkrkNiCKVRFczn/yqnkiBFUHC1RQv3tqzzYSEUeXmDHmm0/kEBtnfgRWjHQm9zxS8Jzy7srDLQ==,AwB8aS5KA1dFLKCA1a/7Wsjhef+6kkNAB/GO9AOvRZbFW/dhl5fx04Alh+g78fwcVMX+eEIEJgSyH0jhv7kmiQh4ew==,,,,,2,AgG8fXrCra6UgP5G89TaE6PH5E0TANb/PJPbKwzdi78XEHRUmcTz6PIhYtclTmcdq5TH0IwQv+ra5ppf4qR4LtkGig==,AgEKzsmZrikmXzJywMpzkAdG9hAPlOiRY9oXKf4Sh50CL8btUItjfVJWg3ubNhotzJK+fnNlRrcMkWQEBD/aGKpf8A==,AwFi+2cGpuvVdR+pT1P9Ur8jAkzmjJK2XmUQbFpyMi5Jc9a5/fPnBWCxmTX8CH5wks0PicYC6rzZC3NEIt0EoM1Qfg==,,,,,2,AgHbTZgTAv8lLBsoX06Hkm9XPU+crlRqKl0xL8v18xeUUPY1YAvUYf2OAutmTtPRycXyzrDWSpn2h5xfk/dtq/BICg==,AwAjPydfoUhfSVFKWNI4Ox4a/psZGDIGzEEWh9HyVtAmjdNb5ctr/S6z+akiRfPlNCsVf6TdkzJ2Su6BO4sOX/SHKA==,AwBVmjn7AitCe4zQ/Fl0sYW2XqXkJxJBDviwl9jYhoq29v90n9escDsiA3Cy+1uW69MezdZBEszFdEWlX0EzbQZQ6A==,,,,,2,AwCG0RBHwHuame/1G7qtUjmwz0gkCP1tyZiEgm7aTKpsCjt7UsMirMmx/ZrNlvSzkGuVbRO97Szzr+9fo4baH1rEZA==,AwHyMK/q8FUUvoHTt7O7KJUxYz/ZHF6SntbmKfbygLVw4HWc/eFic4DXHKbEGWvrMO5b37GksqxfQHc2xlAuj8ZRIw==,AgB5x0BxqiMYxRvzlq0+/RkbOuNA7hYuMG+7D6wlMOxSskgqyfwA0MfW+AkXFqnqfqsoJRpDy15bABWhH6MIdJsPEA==,,,,,2,AwAS/nCH0pcrsllSy2duadUs1rMtL6vtz7VTUAVhn1/YYlZ068ysBi1Mdz9gJFewdyeGLnFhyg+W15rFB317nyeGHg==,AwBh6f5UVRMM5ekWqkrx6XiVOK/BL0TinjsSLna8BjkQPXU2DvGxiKPhA03/GtBdEpihEX4bVaHQhiOupTf7wh6bCQ==,AgGPDFH8Kv8hz2aUJ955nHu8NiAoTmDjqhlXuJ1T83h+O0sc2GieLhmXmpEjxjEAyxkqjb2nFxvDhi+YGs4MqI4S5A==,,,,,2,AwDqwFv6bqpM/6PTCJ/wgRALYVT+Rn54HIB2icP6ODNexaoqILBS9p1k1QENbQsBZ9LmJJwngRQXi07Q4P8br76Qfw==,AgG8yTiO8tFWZqQELBr+Zt1fKKA3bl08836nUEEpD55Sid0ZywCrWe+Va58xbMIWscISLPbBvXIdO48ZgoHsLgA7Jw==,AwCI1Ud0GJLnS86mSC58HNB91lH9kPpQbufGn+WJErGxAQubtSFBc3rnT0SNE3CbW+1MPjYBbdCgxpHjN/iQf96++w==,,,,;2,AgB9YhljgPngkwwYTBMUaMGR+rWMjvlK0tgrzkG8OT9NGNJfaaLP6AzfhWrT5oe9NRnabU25pQvDhAIGZCajDy8N2g==,AwE5Irce6LOSxfLgn4PZh1PeDPjAHb5wPTNfmQoWFY83dNQLYN44FupJaQRRUqBqyGNB0SL76GKzr8G9tKLAHOxRSQ==,BAG5iWHEhlWkvtyAlQy4bwKa1iNRzJq8WJTh2GE9oT4DeJRmO1pCHy9P+9YktDT+4RgV9s8AzOYih1LmHW14uP27HQGg1nTdHyab9/nFUe9BFxIi8xQTPG8et9++5I+gKIeWGCXBL31sBhpaMewvVhDjl2d3+7H2PUv9IY3lyIRFA6N16A==,2,AwAPIoQJqSbXFKXQAIG9J+/+/41NLX0rDINImk4eBgAnZ4V0R8YSqkHD3nd0IrEMyK7OpkCXkxTzOlwJlfEfti+vew==,AwAQ8KdMYsEOqM3eyGv/XbHnGf+TqCAG39Gz/juBcioOOJmLOFjl6oCITozJOyPusbTRXZ4eIwgQYkl12mt6saTpgQ==,BACkTO+3rRUF81w5yzZskFiIRyVxc6sdJfDFX6C+Jy5A+s/sfHskrFx2GYNklZaYztP0/B64a6v6HvFWVz8GuYj2wgHhiCL+QwLThFpaRxh8kUMSrt4VuXSIjtHwRXzhSdEbG2T6C/+CJZxIFh/ugEV9SS51l1HrLdnJDb2Kdu3QC3lRkQ==;2,AgC99VyiRLJ2kFf3oCkb+JPVV7B4tXVGI2NVT7fdKtB+gEjCcdkbS5YEXm/Sq6NAJEOKilMTFUDLYFDOe+7JHj/4pw==,AgAbT080sbKVHH9lim3tVCYS4cMz+rLownRKqtYZ7AfR8qy819R1GFywQ0kImgcdjEey5C4m0OPTwgtkO+C5uWtKfQ==,BADKYt9i0zTJeh3H8t6d8pZdncz3f28v1oWrssLZwAutkIcF3XKkPNmK3X75K3sImUSch//IIRIB1Yi5/MrZZeDrxQHhQZEg6AA8bDxgt0JdOEX2t4crzDu3gW5I8y+Ya0fZr1RmxvfMr2UxRhSsNsz949v/g+GPfsrEfDqIWTiNlJfwyg==,2,AgEPMjgCfgGRaZ/5I1hLqDoJ8nXYeTlnt9YeK4K8w+HnRAoAD09zkPcLMWajIjupe/CUFrHz00sAvs+vOPeKxGrLiQ==,AgDy7g2DcDwmIW7LtTTteHExD/cyP4BMWimEAM1RfAd/Y6P8XkmRGgglfdLJ7RGTR2YIMB1lxQ/LQUbmzyjTiiuWow==,BAHJ7oHVr/0wweyGlg4f9Dqmx8h0m35jMdrEFwVY8l/ENKpOTxG/oh9vAvo1uw39wUOn4CWGBmAFE2lsvWFW18gt+gHPFt5/9ihUFN9mtxFLT1Q3W4Uf8IdekHPMbNlxEp1wId7EH3XsAox3Eo8b3XnYpwfsAXoDwQa2wyiO5h104Ptvsg==;2,AwClCMGcHdd7rD8sYDC/GXyAtLmZ/JI4v+aOK4PXzjWJi/zvcsXT5dJUOm9bW6AAtzgOKPd0WwU3hSytJ+ATy146Uw==,AgADzN6ysOIC9GAuMF9suYNfkR027H/9OcpeVJb4HRHfZ/EOmQWSdJmJFw3F/NLUrreNnFCvuF1+1bbmHa3tvznjeA==,BADwaRJF9z3DW7HE3qhGu6Yd9d2WBfWy8opd7Mhkg7TpAQsn9oA3UcpCarn4DMSnVGG94Y3Pxsj5vlm5G7GMKiGoxAERnETH6pVgBxhtrnBU6l4vHl+X4rd8I/zheZiG0EFKJza41rmwKHTY4+42PJ8/3Y2rCanbY1RSAJEgiZR89k6nGg==,2,AgCK80PhKSC23aVKQ8uYm+79GWZiwpbV5lc8Fzcpwu8hdKGAMH4f62Y//cmrQmCIltm03PTVPMn6rMwkfoz+9M2LDQ==,AgH5aXThIKUjENFTGCGwcTRql7xIe8vR9h78KikTYkD8itQ+YBDrnx5OaNyWRjpIJHAZ2B61W2aVjZ5Rmo0d1B1Pcw==,BAAEZsEKw59QSRxN1QmWcx4X2LaK4+zBuawh+2CIRPljWyxK6XhIM6EEalr44Klce4OTK2QbxT5n3Kjnh5jNuwCOawAH/wiNrx09+HY8SZrRjCjv1+Lnicybrqg/IFDNoAGT5aguaGRIMmGOLe0QFJr0T0iW3RnYGlmSd/r6ex8+MpOgLw==</decrypt_val></awr_decrypt>";
- String replyString = connectSPU.sendReceive(Type.DECRYPT, requestString);
- System.out.println("REQUEST URL: " + requestString);
- System.out.println("REPLY: " + replyString);
- ReplyDecryption reply = (new XMLParserDecrypt()).stringToReply(replyString);
- return reply;
- }
-
- public ReplyMaterial callServiceMaterial(RequestMaterial rqtMaterial) {
- String requestString = URLParserMaterial.requestToString(rqtMaterial);
- String replyString = connectSPU.sendReceive(Type.MATERIAL, requestString);
-
- System.out.println("Material request:");
- System.out.println(replyString);
-
- ReplyMaterial reply = (new XMLParserMaterial()).stringToReply(replyString);
- return reply;
- }
-
- public ReplySurvey callServiceSurvey(){
-
-// String replyString = connectSPU.sendReceive(Type.SURVEY_Q,"");
- //4::What's your name?::1;5::Where are you from?::2;6::How old are you?::3;7::What's your name?::1;8::Where are you from?::2;9::How old are you?::3;10::What's your name?::1;11::Where are you from?::2;12::How old are you?::3;13::What's your name?::1;14::Where are you from?::2;15::How old are you?::3
- String replyString ="<awr_survey><v_questions>1::What's your name?::1;2::Where are you from?::2;3::How old are you?::3;5::A hacker or a disgruntled employee steals from a hospital database the unprotected genome of a known personality. He finds out this person's ethnicity and predisposition to diseases. As a result, he sells this information to tabloids and newspapers. Theft of unprotected medical data is an important concern and hospitals should take more steps to make sure that unauthorized people cannot access personal information in their computers.::3;4::A hacker or a disgruntled employee steals from a hospital database the unprotected genome of a known personality. He finds out this person's ethnicity and predisposition to diseases. As a result, he sells this information to tabloids and newspapers. Theft of unprotected medical data is an important concern and hospitals should take more steps to make sure that unauthorized people cannot access personal information in their computers.::3;</v_questions><v_locations>50::Lausanne;60::Basel;70::Zurich;</v_locations></awr_survey>";
- ReplySurvey reply = (new XMLParserSurvey()).stringToReply(replyString);
- return reply;
- }
-
- public String callServiceSurveyAnswer(String survey, String id_loc, String id_p){
-
- StringBuilder sb = new StringBuilder();
- sb.append("id_p=").append(id_p);
- sb.append("&timestamp=").append(System.currentTimeMillis());
- sb.append("&id_loc=").append(id_loc);
- sb.append("&answer=").append(survey);
- String replyString = connectSPU.sendReceive(Type.SURVEY_A, sb.toString());
- return replyString;
-
- }
-
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/a7/f01ecdcc55ac001410e2e30aa85db9d1 b/.metadata/.plugins/org.eclipse.core.resources/.history/a7/f01ecdcc55ac001410e2e30aa85db9d1
deleted file mode 100644
index 23af7e0..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/a7/f01ecdcc55ac001410e2e30aa85db9d1
+++ /dev/null
@@ -1,71 +0,0 @@
-package io;
-
-import io.serializer.url.URLParserDecrypt;
-import io.serializer.url.URLParserMaterial;
-import io.serializer.xml.XMLParserDecrypt;
-import io.serializer.xml.XMLParserMaterial;
-import io.serializer.xml.XMLParserSurvey;
-
-import java.util.logging.Logger;
-
-import framework.Type;
-import framework.reply.ReplyDecryption;
-import framework.reply.ReplyMaterial;
-import framework.reply.ReplySurvey;
-import framework.request.RequestDecryption;
-import framework.request.RequestMaterial;
-
-public class CommAdapter {
-
- @SuppressWarnings("unused")
- private static final Logger LOGGER = Logger.getLogger(CommAdapter.class.getName());
-
- public ClientConnection connectSPU = null;
-
- public CommAdapter(ClientConnection connectSPU) {
- this.connectSPU = connectSPU;
- }
-
- public ReplyDecryption callServiceDecrypt(RequestDecryption rqtDecrypt) {
- String requestString = URLParserDecrypt.requestToString(rqtDecrypt);
-// String replyString = "<awr_decrypt><patient>30351</patient><v_timestamp>1417188729390</v_timestamp><decrypt_val>,,,,,,,,,,,,,,,,2,AwHR3OO0/hkwgEHluLDFLtn4aaTBAwBEJjJpMegGa29ASgtyt1ha2OOyxvEvNgkIaY0xWXtTmqrqhSBKDG6J7Lps0g==,AwE/oifhonvUZDA4mqRK8K1WCkoepEuL9SidjdFXMNNZQXCMUvVN6pBUYVFgJeFX6mT2jruK8ic3y6yI14PfKl/Pvg==,AgBHs6HGF9AYNc5RlFTGv025WEaT91i/MPy+HXqhvHOrp0Ol9/aKyvv2BgAzeAdsdSEbVs2sahiyL/kbKjeUoI9tsA==,,,,,,,,,,,,,2,AgHIofEmf4aJMLBnKAY3/8WcLXUETF4y/68fzZR6hsS5btZTyI0E4ZTltDzV6hBzIT14cC4S/BMclo1aoLt5C9f+Cg==,AgDOXZAZAwO4KXslqU1wKctrVlH8CcGvpO8gGrPl3YjrY8SR3a6gStvZvjcUKXhvtDkRwSLAIkD3lFrKSXWestHSqQ==,AgG7Y5so9ZTRng2Xm3ziWx3+7zfaVLkIJ2v7g+qEUx5Vl2/udDOcg/was8W6qbKYeo/W0EGTlNXKTOdIatGVxyuoZA==,,,,,2,AgDAVy0/nE6X4iAengG9lCiYEBMtK6rAAiy7OwC7U/QSbokiEzH0RafH7rb+5L5R/ii9/3kZCcKmgOIoPzkmeloDfg==,AgHuvmLAeIFYm4ObEBO2v9xTK6tjYfdh+x4kwULBpDNlUiW4kNNaeoeziRA7nlRvcSfxPlR070N/3qzBMu3EKZ2csQ==,AgDk/CzCL4XUobuNaLsvrH5s0COMKYBqY/18YRR0d7mIsVVYrKVGF+IWnEluhbLt+BoRBdvL5UElgroyORJpiKz06w==,,,,,2,AgH0nW+2h+vcOZgPe3uR7jEHmEPi+g4izQ3OIU9An2vekwbG1liBFgTo33pEhyXhNWPhGCbSb73sJ7pt0JLL+hhWMw==,AgHG039OnpvmllkV6QBsmoMdqISrRuW2q5M3jfUp5TUbU6F/3S2FK1iSVKWgTsI291re6lz6KH5d8rWrnoCAozhIeg==,AwGjmnLUMd42F7a/tsSkeqcxoHMAXNKdvF4kOXoAxmc6ZSxaUhzkGkcgNOO8SFNiWqTKgtZCffJ7hfI0voAUX0TD1w==,,,,,2,AwHfYRjQFscHzOvVozackTaM3sybOjyd2aLc4B+WQ7KiWHoGKkzQScoDiy8hiA2cJpv8ngfitTqJRLlyegvuM+Ietw==,AwAP92OqrJFpFmdrMUUx6FeFhwVLYtAsfw3sem2RYu7ljPry+uJnvluuzTvVaFhs8BAAD8VBFs1vqrSHyQEq8Ocsmw==,AwDNXg/JA4QXA6wu30DUE7peOk1a10aHbd38iwjN1Q0DKy3BqS36+EQKg5hbwELxN2+/Yu4UA1IKWYJI0zNs6TJUtA==,,,,,2,AwBWFv3ivyQz4CGIilJ7CVtpQGOs1tnIW+0uxQyiWIO3HDjJtfxPyQ1AJWPsBQ9eYmaoKmPnN+euPCm7bP0LxBL/Tg==,AwHg7AZb5DV5OJrl0omtKx2OqckXcQEUT8pZ+Bmo9AyULgL5HOq2AVU04qhvbdy0W4OMYqxF3uBwqT6dNhFptsKEKQ==,AwG9dyMbI5EI8UCXuj5JkQRMimcT1u6zCBAfmRvANtT54yDtC8KS6VeOr7h/NP4qrf/mbl5tMaePbkkHrc6E39ntsA==,,,,,2,AwHkMyCOJm/RlYOybGhX3DchR/wSN2L3PuXKalMszgk3WOCiWSpYlP3SOPLWvJTRQaTxoN+oA5IkCTvlp02+Mduaxg==,AgHhR8HjavXjnsy+rHptc/JSI5pLFjM0RczUygxTX7vqV/yqwZ280Rq7YpXKp2GBfiZvFf0qIQoWe4vx5DBxwvHkdA==,AwEf2yisEpflVm8R2X08SCJM89apu7tUFzbpndsTIt5o9/xdoXKomMUk9REz+yrpkd+jFhlkJMQHHVMhgjiWYCEdpQ==,,,,,2,AwBaIc8ZWFm4O9QO0ofJeS9Q7tki7CAscBXRDnajEp7rmKNgrpRyyu1ezSpborwaloWR9kDKPLdYVV8SNk2V/1EudA==,AwGE8MPAnPKKXF15EyrAx1bRinwgoqYVO4Junz5IXQjGLyQpSr5NwO/hqu5E5egHte20jm380Wn2Qy6GgKNiRLy/gQ==,AwCAOjOQNdMN5uIB0POFzYS/fpxZ0Q5KfhlP5fijNmc/daO5frSrwhgcMH5lMKL4EGjBI1p6JMe3fuMqb5t1ImeTBg==,,,,,2,AgARSg2izcK6iZLFe4YkIS6yZgnt8cd9DFqpQ37gNmcccZwBI+mpsaijTUPo1GT+QUD8zC+6qr/GrzG9q+q7BPxpVw==,AwGM/jFdtoNViQXxgqeL27ZKobjsfyeuXrx8re3UfIe3c4XN16srSpcTfxEZNXDKo1Ff9fRvDVBOwdS6XU2nvo++ng==,AwAtK0eOqcVfzkdJIIkk7BORWwSDTAjtx4aEXwyZ0bla+2rIWDgXi3U5xlgnjeXJNtGsLokkvvX92BOBIw9SuCGhnw==,2,AgCWAAWTW+7jv2a2lc4pGFnumEgyH59wSDRXEYUASCVB249JBmeKFWRKNFTQlph5hTR5Rb+YHFP/qvzmwU11Hs2b0w==,AgANdxpkN+DS4De3aokNjt+e/Ou8GT+p8pUJA+6LHrDBXAddoCR8KpeXW7mESokq6BTEVQXxU3TdqavRkqaeFmpXkw==,AgDDDSEO3e8DCsm1n6dbj2PB9Z/tUzluDCt/utdSLrYFfdFY+Y5K7Vxo9F5/17CzaUbX172SGLt8TfCfuYBrtupgAg==,2,AgB1OG6bj+6kfRvLj8yjMQbl80FdZHZrRVRUfNVRwvjvvbRa5f9s9fNZ8J0a3s3hH+RyfZmGJ4Ufjh5mMiQkwiur6w==,AwBX4GFZNjUdtRdwtWgxyQz7h8Hk0ztaZeM8/e+8ll0o+RjYN+CNP8+lnXEw7wpuC4wcMX05mrjPvHOuy0hOFVNkhQ==,AgDf3el4vbMYIAFEH9WV151/uzl+gkfTQ79T8Iu4KxEVo6UJvCfqkjETlR6aXUJiqaCbSV5odMT50lURsmfgALf6AQ==,,,,,2,AgENmnviZkgQWXZ5QDgCCE2zq0IiXURTqK2UNPtEg3o64yjlrQQUd2rO/KgKolyCQcKYTVoMj7k2VeCSSVRr8KGC7w==,AwFv6ZJzhpV/Ms00QkrkNiCKVRFczn/yqnkiBFUHC1RQv3tqzzYSEUeXmDHmm0/kEBtnfgRWjHQm9zxS8Jzy7srDLQ==,AwB8aS5KA1dFLKCA1a/7Wsjhef+6kkNAB/GO9AOvRZbFW/dhl5fx04Alh+g78fwcVMX+eEIEJgSyH0jhv7kmiQh4ew==,,,,,2,AgG8fXrCra6UgP5G89TaE6PH5E0TANb/PJPbKwzdi78XEHRUmcTz6PIhYtclTmcdq5TH0IwQv+ra5ppf4qR4LtkGig==,AgEKzsmZrikmXzJywMpzkAdG9hAPlOiRY9oXKf4Sh50CL8btUItjfVJWg3ubNhotzJK+fnNlRrcMkWQEBD/aGKpf8A==,AwFi+2cGpuvVdR+pT1P9Ur8jAkzmjJK2XmUQbFpyMi5Jc9a5/fPnBWCxmTX8CH5wks0PicYC6rzZC3NEIt0EoM1Qfg==,,,,,2,AgHbTZgTAv8lLBsoX06Hkm9XPU+crlRqKl0xL8v18xeUUPY1YAvUYf2OAutmTtPRycXyzrDWSpn2h5xfk/dtq/BICg==,AwAjPydfoUhfSVFKWNI4Ox4a/psZGDIGzEEWh9HyVtAmjdNb5ctr/S6z+akiRfPlNCsVf6TdkzJ2Su6BO4sOX/SHKA==,AwBVmjn7AitCe4zQ/Fl0sYW2XqXkJxJBDviwl9jYhoq29v90n9escDsiA3Cy+1uW69MezdZBEszFdEWlX0EzbQZQ6A==,,,,,2,AwCG0RBHwHuame/1G7qtUjmwz0gkCP1tyZiEgm7aTKpsCjt7UsMirMmx/ZrNlvSzkGuVbRO97Szzr+9fo4baH1rEZA==,AwHyMK/q8FUUvoHTt7O7KJUxYz/ZHF6SntbmKfbygLVw4HWc/eFic4DXHKbEGWvrMO5b37GksqxfQHc2xlAuj8ZRIw==,AgB5x0BxqiMYxRvzlq0+/RkbOuNA7hYuMG+7D6wlMOxSskgqyfwA0MfW+AkXFqnqfqsoJRpDy15bABWhH6MIdJsPEA==,,,,,2,AwAS/nCH0pcrsllSy2duadUs1rMtL6vtz7VTUAVhn1/YYlZ068ysBi1Mdz9gJFewdyeGLnFhyg+W15rFB317nyeGHg==,AwBh6f5UVRMM5ekWqkrx6XiVOK/BL0TinjsSLna8BjkQPXU2DvGxiKPhA03/GtBdEpihEX4bVaHQhiOupTf7wh6bCQ==,AgGPDFH8Kv8hz2aUJ955nHu8NiAoTmDjqhlXuJ1T83h+O0sc2GieLhmXmpEjxjEAyxkqjb2nFxvDhi+YGs4MqI4S5A==,,,,,2,AwDqwFv6bqpM/6PTCJ/wgRALYVT+Rn54HIB2icP6ODNexaoqILBS9p1k1QENbQsBZ9LmJJwngRQXi07Q4P8br76Qfw==,AgG8yTiO8tFWZqQELBr+Zt1fKKA3bl08836nUEEpD55Sid0ZywCrWe+Va58xbMIWscISLPbBvXIdO48ZgoHsLgA7Jw==,AwCI1Ud0GJLnS86mSC58HNB91lH9kPpQbufGn+WJErGxAQubtSFBc3rnT0SNE3CbW+1MPjYBbdCgxpHjN/iQf96++w==,,,,;2,AgB9YhljgPngkwwYTBMUaMGR+rWMjvlK0tgrzkG8OT9NGNJfaaLP6AzfhWrT5oe9NRnabU25pQvDhAIGZCajDy8N2g==,AwE5Irce6LOSxfLgn4PZh1PeDPjAHb5wPTNfmQoWFY83dNQLYN44FupJaQRRUqBqyGNB0SL76GKzr8G9tKLAHOxRSQ==,BAG5iWHEhlWkvtyAlQy4bwKa1iNRzJq8WJTh2GE9oT4DeJRmO1pCHy9P+9YktDT+4RgV9s8AzOYih1LmHW14uP27HQGg1nTdHyab9/nFUe9BFxIi8xQTPG8et9++5I+gKIeWGCXBL31sBhpaMewvVhDjl2d3+7H2PUv9IY3lyIRFA6N16A==,2,AwAPIoQJqSbXFKXQAIG9J+/+/41NLX0rDINImk4eBgAnZ4V0R8YSqkHD3nd0IrEMyK7OpkCXkxTzOlwJlfEfti+vew==,AwAQ8KdMYsEOqM3eyGv/XbHnGf+TqCAG39Gz/juBcioOOJmLOFjl6oCITozJOyPusbTRXZ4eIwgQYkl12mt6saTpgQ==,BACkTO+3rRUF81w5yzZskFiIRyVxc6sdJfDFX6C+Jy5A+s/sfHskrFx2GYNklZaYztP0/B64a6v6HvFWVz8GuYj2wgHhiCL+QwLThFpaRxh8kUMSrt4VuXSIjtHwRXzhSdEbG2T6C/+CJZxIFh/ugEV9SS51l1HrLdnJDb2Kdu3QC3lRkQ==;2,AgC99VyiRLJ2kFf3oCkb+JPVV7B4tXVGI2NVT7fdKtB+gEjCcdkbS5YEXm/Sq6NAJEOKilMTFUDLYFDOe+7JHj/4pw==,AgAbT080sbKVHH9lim3tVCYS4cMz+rLownRKqtYZ7AfR8qy819R1GFywQ0kImgcdjEey5C4m0OPTwgtkO+C5uWtKfQ==,BADKYt9i0zTJeh3H8t6d8pZdncz3f28v1oWrssLZwAutkIcF3XKkPNmK3X75K3sImUSch//IIRIB1Yi5/MrZZeDrxQHhQZEg6AA8bDxgt0JdOEX2t4crzDu3gW5I8y+Ya0fZr1RmxvfMr2UxRhSsNsz949v/g+GPfsrEfDqIWTiNlJfwyg==,2,AgEPMjgCfgGRaZ/5I1hLqDoJ8nXYeTlnt9YeK4K8w+HnRAoAD09zkPcLMWajIjupe/CUFrHz00sAvs+vOPeKxGrLiQ==,AgDy7g2DcDwmIW7LtTTteHExD/cyP4BMWimEAM1RfAd/Y6P8XkmRGgglfdLJ7RGTR2YIMB1lxQ/LQUbmzyjTiiuWow==,BAHJ7oHVr/0wweyGlg4f9Dqmx8h0m35jMdrEFwVY8l/ENKpOTxG/oh9vAvo1uw39wUOn4CWGBmAFE2lsvWFW18gt+gHPFt5/9ihUFN9mtxFLT1Q3W4Uf8IdekHPMbNlxEp1wId7EH3XsAox3Eo8b3XnYpwfsAXoDwQa2wyiO5h104Ptvsg==;2,AwClCMGcHdd7rD8sYDC/GXyAtLmZ/JI4v+aOK4PXzjWJi/zvcsXT5dJUOm9bW6AAtzgOKPd0WwU3hSytJ+ATy146Uw==,AgADzN6ysOIC9GAuMF9suYNfkR027H/9OcpeVJb4HRHfZ/EOmQWSdJmJFw3F/NLUrreNnFCvuF1+1bbmHa3tvznjeA==,BADwaRJF9z3DW7HE3qhGu6Yd9d2WBfWy8opd7Mhkg7TpAQsn9oA3UcpCarn4DMSnVGG94Y3Pxsj5vlm5G7GMKiGoxAERnETH6pVgBxhtrnBU6l4vHl+X4rd8I/zheZiG0EFKJza41rmwKHTY4+42PJ8/3Y2rCanbY1RSAJEgiZR89k6nGg==,2,AgCK80PhKSC23aVKQ8uYm+79GWZiwpbV5lc8Fzcpwu8hdKGAMH4f62Y//cmrQmCIltm03PTVPMn6rMwkfoz+9M2LDQ==,AgH5aXThIKUjENFTGCGwcTRql7xIe8vR9h78KikTYkD8itQ+YBDrnx5OaNyWRjpIJHAZ2B61W2aVjZ5Rmo0d1B1Pcw==,BAAEZsEKw59QSRxN1QmWcx4X2LaK4+zBuawh+2CIRPljWyxK6XhIM6EEalr44Klce4OTK2QbxT5n3Kjnh5jNuwCOawAH/wiNrx09+HY8SZrRjCjv1+Lnicybrqg/IFDNoAGT5aguaGRIMmGOLe0QFJr0T0iW3RnYGlmSd/r6ex8+MpOgLw==</decrypt_val></awr_decrypt>";
- String replyString = connectSPU.sendReceive(Type.DECRYPT, requestString);
- System.out.println("REQUEST URL: " + requestString);
- System.out.println("REPLY: " + replyString);
- ReplyDecryption reply = (new XMLParserDecrypt()).stringToReply(replyString);
- return reply;
- }
-
- public ReplyMaterial callServiceMaterial(RequestMaterial rqtMaterial) {
- String requestString = URLParserMaterial.requestToString(rqtMaterial);
- String replyString = connectSPU.sendReceive(Type.MATERIAL, requestString);
-
- System.out.println("Material request:");
- System.out.println(replyString);
-
- ReplyMaterial reply = (new XMLParserMaterial()).stringToReply(replyString);
- return reply;
- }
-
- public ReplySurvey callServiceSurvey(){
-
-// String replyString = connectSPU.sendReceive(Type.SURVEY_Q,"");
- //4::What's your name?::1;5::Where are you from?::2;6::How old are you?::3;7::What's your name?::1;8::Where are you from?::2;9::How old are you?::3;10::What's your name?::1;11::Where are you from?::2;12::How old are you?::3;13::What's your name?::1;14::Where are you from?::2;15::How old are you?::3
- String replyString ="<awr_survey><v_questions>1::What's your name?::1;2::Where are you from?::2;3::How old are you?::3;4::A hacker or a disgruntled employee steals from a hospital database the unprotected genome of a known personality. He finds out this person's ethnicity and predisposition to diseases. As a result, he sells this information to tabloids and newspapers. Theft of unprotected medical data is an important concern and hospitals should take more steps to make sure that unauthorized people cannot access personal information in their computers.::3;4::A hacker or a disgruntled employee steals from a hospital database the unprotected genome of a known personality. He finds out this person's ethnicity and predisposition to diseases. As a result, he sells this information to tabloids and newspapers. Theft of unprotected medical data is an important concern and hospitals should take more steps to make sure that unauthorized people cannot access personal information in their computers.::3;5::A hacker or a disgruntled employee steals from a hospital database the unprotected genome of a known personality. He finds out this person's ethnicity and predisposition to diseases. As a result, he sells this information to tabloids and newspapers. Theft of unprotected medical data is an important concern and hospitals should take more steps to make sure that unauthorized people cannot access personal information in their computers.::3;6::How old are you?::3;7::What's your name?::1;8::Where are you from?::2;9::How old are you?::3;10::What's your name?::1;11::Where are you from?::2;12::How old are you?::3;13::What's your name?::1;14::Where are you from?::2;15::How old are you?::3;</v_questions><v_locations>50::Lausanne;60::Basel;70::Zurich</v_locations></awr_survey>";
- ReplySurvey reply = (new XMLParserSurvey()).stringToReply(replyString);
- return reply;
- }
-
- public String callServiceSurveyAnswer(String survey, String id_loc, String id_p){
-
- StringBuilder sb = new StringBuilder();
- sb.append("id_p=").append(id_p);
- sb.append("&timestamp=").append(System.currentTimeMillis());
- sb.append("&id_loc=").append(id_loc);
- sb.append("&answer=").append(survey);
- String replyString = connectSPU.sendReceive(Type.SURVEY_A, sb.toString());
- return replyString;
-
- }
-
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/a8/5045059c62a8001419a38fd8608ce0e6 b/.metadata/.plugins/org.eclipse.core.resources/.history/a8/5045059c62a8001419a38fd8608ce0e6
deleted file mode 100644
index 959af0d..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/a8/5045059c62a8001419a38fd8608ce0e6
+++ /dev/null
@@ -1,297 +0,0 @@
-package io;
-
-import java.awt.BorderLayout;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.util.Map;
-import java.util.Set;
-
-import com.itextpdf.text.BaseColor;
-import com.itextpdf.text.Document;
-import com.itextpdf.text.DocumentException;
-import com.itextpdf.text.Element;
-import com.itextpdf.text.ExceptionConverter;
-import com.itextpdf.text.Font;
-import com.itextpdf.text.Font.FontFamily;
-import com.itextpdf.text.FontFactory;
-import com.itextpdf.text.Image;
-import com.itextpdf.text.PageSize;
-import com.itextpdf.text.Paragraph;
-import com.itextpdf.text.Phrase;
-import com.itextpdf.text.Rectangle;
-import com.itextpdf.text.pdf.AcroFields;
-import com.itextpdf.text.pdf.BaseFont;
-import com.itextpdf.text.pdf.ColumnText;
-import com.itextpdf.text.pdf.GrayColor;
-import com.itextpdf.text.pdf.PdfAction;
-import com.itextpdf.text.pdf.PdfBorderDictionary;
-import com.itextpdf.text.pdf.PdfContentByte;
-import com.itextpdf.text.pdf.PdfFormField;
-import com.itextpdf.text.pdf.PdfPCell;
-import com.itextpdf.text.pdf.PdfPCellEvent;
-import com.itextpdf.text.pdf.PdfPTable;
-import com.itextpdf.text.pdf.PdfReader;
-import com.itextpdf.text.pdf.PdfStamper;
-import com.itextpdf.text.pdf.PdfWriter;
-import com.itextpdf.text.pdf.PushbuttonField;
-import com.itextpdf.text.pdf.RadioCheckField;
-import com.itextpdf.text.pdf.TextField;
-
-import framework.Question;
-
-public class Questionnaire implements PdfPCellEvent{
-
- /** The path output file. */
- String pathOutputFile;
-
- /** The document. */
- Document document;
-
- PdfReader reader;
-
- int tf;
-
- public Questionnaire(String path){
- pathOutputFile = path;
- document = new Document(PageSize.A4, 25, 25, 50, 50);
- }
- public Questionnaire(int tf){
- this.tf = tf;
-
- }
-
- /** The resulting PDF. */
- public static final String RESULT1 = "outputPDF/buttons.pdf";
- /** The resulting PDF. */
- public static final String RESULT2 = "outputPDF/buttons_filled.pdf";
- /** Path to a JavaScript resource. */
- public static final String RESOURCE = "res/buttons.js";
- /** Path to an image used as button icon. */
- public static final String IMAGE = "res/info.png";
- /** Possible values of a radio field / checkboxes */
- public static final String[] LANGUAGES = { "English", "German", "French", "Spanish", "Dutch" };
-
- /**
- * Creates a PDF document.
- * @param filename the path to the new PDF document
- * @throws DocumentException
- * @throws IOException
- */
- public void createPdf(Map<Integer, Question> map, Set<Integer> ids) throws IOException, DocumentException {
-
- @SuppressWarnings("unused")
- PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(pathOutputFile));
-
-
- document.open();
- Image logo = Image.getInstance("res/shcs_logo2.gif");
-
- logo.scalePercent(30f);
- float[] columnWidths1 = {0.2f, 0.8f};
- PdfPTable table_title = new PdfPTable(columnWidths1);
- PdfPCell c01 = new PdfPCell(logo, false);
- PdfPCell c02 = new PdfPCell(new Paragraph("Survery | Project #693",
- FontFactory.getFont(FontFactory.HELVETICA, 20, Font.BOLD, BaseColor.BLACK)));
- c01.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setHorizontalAlignment(Element.ALIGN_CENTER);
- c01.setBorder(Rectangle.NO_BORDER);
- c02.setBorder(Rectangle.NO_BORDER);
-
- table_title.addCell(c01);
- table_title.addCell(c02);
- table_title.setWidthPercentage(100);
- table_title.setSpacingBefore(0);
- table_title.setSpacingAfter(25);
- document.add(table_title);
-
-
- //----------------------------------------------------------------------------------
-
-
- PdfPTable table1 = new PdfPTable(1);
- table1.setWidthPercentage(100);
- PdfPCell c11 = new PdfPCell(new Phrase("Today you are receiving a pharmacogenetic report based on the genetic " +
- "information of your patient. Because the human genome contains extremely private and sensitive information" +
- " of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier," +
- " it must be managed with care. ",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.NORMAL, BaseColor.BLACK)));
- c11.setLeading(1.5f, 1.5f);
- c11.setPaddingBottom(8);
-
-
- table1.addCell(c11);
- table1.setSpacingAfter(10);
- document.add(table1);
-
-
- //----------------------------------------------------------------------------------
-
-// // step 4
-// // add the JavaScript
-// writer.addJavaScript(Utilities.readFileToString(RESOURCE));
-
- for(Integer id: ids){
- PdfPCell c2;
-
- PdfPTable table = new PdfPTable(1);
- table.setSpacingAfter(10);
- table.setWidthPercentage(100);
-
- PdfPCell c1 = new PdfPCell(new Phrase(id + ") " + map.get(id).getQuestion(),FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c1.setPaddingTop(5);
- c1.setPaddingBottom(5);
- c1.setHorizontalAlignment(Element.ALIGN_CENTER);
- c1.setBorder(Rectangle.NO_BORDER);
- table.addCell(c1);
-
- c2 = new PdfPCell(new Phrase(" 1" +
- " 2" +
- " 3" +
- " 4" +
- " 5",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c2.setHorizontalAlignment(Element.ALIGN_LEFT);
- c2.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c2.setCellEvent(new Questionnaire(id));
- c2.setBorder(Rectangle.TOP);
- c2.setPaddingTop(2);
- c2.setPaddingBottom(5);
- c2.setBackgroundColor(new BaseColor(242, 242, 242));
-
- table.addCell(c2);
-
-
-
- document.add(table);
- }
-
-
- //----------------------------------------------------------------------------------
-
- // step 5
- document.close();
-
- reader = new PdfReader(pathOutputFile);
-
- }
-
- @Override
- public void cellLayout(PdfPCell cell, Rectangle position,
- PdfContentByte[] canvases) {
- PdfWriter writer = canvases[0].getPdfWriter();
- PdfFormField radiogroup = PdfFormField.createRadioButton(writer, true);
- radiogroup.setFieldName(String.valueOf(tf));
- System.out.println(tf);
-
- float llx = position.getLeft();
- float lly = position.getBottom();
-
- float cell_h = cell.getHeight();
- float cell_w = cell.getWidth();
-
- Rectangle rect;
-
- for(int i=1 ; i<=5; i++){
-
- rect = new Rectangle(llx + (3+i)*cell_w/12, lly+cell_h/2-6, llx + (3+i)*cell_w/12+12 ,lly+cell_h/2+6);
-
- RadioCheckField radio = new RadioCheckField(writer, rect, null, String.valueOf(i));
- radio.setBorderColor(GrayColor.GRAYBLACK);
- radio.setCheckType(RadioCheckField.TYPE_SQUARE);
-
-
- try {
- PdfFormField field = radio.getRadioField();
- radiogroup.addKid(field);
-
- writer.addAnnotation(radiogroup);
- }
-
- catch(IOException ioe) {
- throw new ExceptionConverter(ioe);
- }
- catch(DocumentException de) {
- throw new ExceptionConverter(de);
- }
- }
-
-
-
- }
-
-
- public String getAnswers() throws IOException, DocumentException{
-
- reader.removeUsageRights();
- PdfStamper stamper = new PdfStamper(reader, new FileOutputStream("outputPDF/buttons_filled2.pdf"));
-
-
- AcroFields form = stamper.getAcroFields();
-
- StringBuilder sb = new StringBuilder();
-
-
- Set<String> fields = form.getFields().keySet();
- for(String key: fields){
- System.out.println("key = " + key);
- if(form.getFieldType(key)==AcroFields.FIELD_TYPE_RADIOBUTTON){
- sb.append(key);
- sb.append(",");
- sb.append(form.getField(key));
- sb.append(";");
- }
- }
- stamper.close();
- reader.close();
-
-
- return sb.toString();
-
- }
-
-
-// /**
-// * Manipulates a PDF file src with the file dest as result
-// * @param src the original PDF
-// * @param dest the resulting PDF
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public void manipulatePdf(String src, String dest) throws IOException, DocumentException {
-// PdfReader reader = new PdfReader(src);
-// PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(dest));
-// AcroFields form = stamper.getAcroFields();
-// String[] radiostates = form.getAppearanceStates("language");
-// form.setField("language", radiostates[4]);
-// for (int i = 0; i < LANGUAGES.length; i++) {
-// String[] checkboxstates = form.getAppearanceStates("English");
-// form.setField(LANGUAGES[i], checkboxstates[i % 2 == 0 ? 1 : 0]);
-// }
-// stamper.close();
-// reader.close();
-//
-// PdfReader r = new PdfReader(dest);
-// AcroFields f = r.getAcroFields();
-// Set<String> fields = form.getFields().keySet();
-// for(String key: fields){
-// if(f.getFieldType(key)==AcroFields.FIELD_TYPE_RADIOBUTTON){
-// System.out.println(key);
-// System.out.println(f.getField(key));
-//
-// }
-// }
-// r.close();
-//
-// }
-//
-// /**
-// * Main method
-// * @param args no arguments needed
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public static void main(String[] args) throws IOException, DocumentException {
-// Questionnaire buttons = new Questionnaire();
-// buttons.createPdf(RESULT1);
-// buttons.manipulatePdf(RESULT1, RESULT2);
-// }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/a9/303611e44dac001410e2e30aa85db9d1 b/.metadata/.plugins/org.eclipse.core.resources/.history/a9/303611e44dac001410e2e30aa85db9d1
deleted file mode 100644
index 77efb70..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/a9/303611e44dac001410e2e30aa85db9d1
+++ /dev/null
@@ -1,71 +0,0 @@
-package io;
-
-import io.serializer.url.URLParserDecrypt;
-import io.serializer.url.URLParserMaterial;
-import io.serializer.xml.XMLParserDecrypt;
-import io.serializer.xml.XMLParserMaterial;
-import io.serializer.xml.XMLParserSurvey;
-
-import java.util.logging.Logger;
-
-import framework.Type;
-import framework.reply.ReplyDecryption;
-import framework.reply.ReplyMaterial;
-import framework.reply.ReplySurvey;
-import framework.request.RequestDecryption;
-import framework.request.RequestMaterial;
-
-public class CommAdapter {
-
- @SuppressWarnings("unused")
- private static final Logger LOGGER = Logger.getLogger(CommAdapter.class.getName());
-
- public ClientConnection connectSPU = null;
-
- public CommAdapter(ClientConnection connectSPU) {
- this.connectSPU = connectSPU;
- }
-
- public ReplyDecryption callServiceDecrypt(RequestDecryption rqtDecrypt) {
- String requestString = URLParserDecrypt.requestToString(rqtDecrypt);
-// String replyString = "<awr_decrypt><patient>30351</patient><v_timestamp>1417188729390</v_timestamp><decrypt_val>,,,,,,,,,,,,,,,,2,AwHR3OO0/hkwgEHluLDFLtn4aaTBAwBEJjJpMegGa29ASgtyt1ha2OOyxvEvNgkIaY0xWXtTmqrqhSBKDG6J7Lps0g==,AwE/oifhonvUZDA4mqRK8K1WCkoepEuL9SidjdFXMNNZQXCMUvVN6pBUYVFgJeFX6mT2jruK8ic3y6yI14PfKl/Pvg==,AgBHs6HGF9AYNc5RlFTGv025WEaT91i/MPy+HXqhvHOrp0Ol9/aKyvv2BgAzeAdsdSEbVs2sahiyL/kbKjeUoI9tsA==,,,,,,,,,,,,,2,AgHIofEmf4aJMLBnKAY3/8WcLXUETF4y/68fzZR6hsS5btZTyI0E4ZTltDzV6hBzIT14cC4S/BMclo1aoLt5C9f+Cg==,AgDOXZAZAwO4KXslqU1wKctrVlH8CcGvpO8gGrPl3YjrY8SR3a6gStvZvjcUKXhvtDkRwSLAIkD3lFrKSXWestHSqQ==,AgG7Y5so9ZTRng2Xm3ziWx3+7zfaVLkIJ2v7g+qEUx5Vl2/udDOcg/was8W6qbKYeo/W0EGTlNXKTOdIatGVxyuoZA==,,,,,2,AgDAVy0/nE6X4iAengG9lCiYEBMtK6rAAiy7OwC7U/QSbokiEzH0RafH7rb+5L5R/ii9/3kZCcKmgOIoPzkmeloDfg==,AgHuvmLAeIFYm4ObEBO2v9xTK6tjYfdh+x4kwULBpDNlUiW4kNNaeoeziRA7nlRvcSfxPlR070N/3qzBMu3EKZ2csQ==,AgDk/CzCL4XUobuNaLsvrH5s0COMKYBqY/18YRR0d7mIsVVYrKVGF+IWnEluhbLt+BoRBdvL5UElgroyORJpiKz06w==,,,,,2,AgH0nW+2h+vcOZgPe3uR7jEHmEPi+g4izQ3OIU9An2vekwbG1liBFgTo33pEhyXhNWPhGCbSb73sJ7pt0JLL+hhWMw==,AgHG039OnpvmllkV6QBsmoMdqISrRuW2q5M3jfUp5TUbU6F/3S2FK1iSVKWgTsI291re6lz6KH5d8rWrnoCAozhIeg==,AwGjmnLUMd42F7a/tsSkeqcxoHMAXNKdvF4kOXoAxmc6ZSxaUhzkGkcgNOO8SFNiWqTKgtZCffJ7hfI0voAUX0TD1w==,,,,,2,AwHfYRjQFscHzOvVozackTaM3sybOjyd2aLc4B+WQ7KiWHoGKkzQScoDiy8hiA2cJpv8ngfitTqJRLlyegvuM+Ietw==,AwAP92OqrJFpFmdrMUUx6FeFhwVLYtAsfw3sem2RYu7ljPry+uJnvluuzTvVaFhs8BAAD8VBFs1vqrSHyQEq8Ocsmw==,AwDNXg/JA4QXA6wu30DUE7peOk1a10aHbd38iwjN1Q0DKy3BqS36+EQKg5hbwELxN2+/Yu4UA1IKWYJI0zNs6TJUtA==,,,,,2,AwBWFv3ivyQz4CGIilJ7CVtpQGOs1tnIW+0uxQyiWIO3HDjJtfxPyQ1AJWPsBQ9eYmaoKmPnN+euPCm7bP0LxBL/Tg==,AwHg7AZb5DV5OJrl0omtKx2OqckXcQEUT8pZ+Bmo9AyULgL5HOq2AVU04qhvbdy0W4OMYqxF3uBwqT6dNhFptsKEKQ==,AwG9dyMbI5EI8UCXuj5JkQRMimcT1u6zCBAfmRvANtT54yDtC8KS6VeOr7h/NP4qrf/mbl5tMaePbkkHrc6E39ntsA==,,,,,2,AwHkMyCOJm/RlYOybGhX3DchR/wSN2L3PuXKalMszgk3WOCiWSpYlP3SOPLWvJTRQaTxoN+oA5IkCTvlp02+Mduaxg==,AgHhR8HjavXjnsy+rHptc/JSI5pLFjM0RczUygxTX7vqV/yqwZ280Rq7YpXKp2GBfiZvFf0qIQoWe4vx5DBxwvHkdA==,AwEf2yisEpflVm8R2X08SCJM89apu7tUFzbpndsTIt5o9/xdoXKomMUk9REz+yrpkd+jFhlkJMQHHVMhgjiWYCEdpQ==,,,,,2,AwBaIc8ZWFm4O9QO0ofJeS9Q7tki7CAscBXRDnajEp7rmKNgrpRyyu1ezSpborwaloWR9kDKPLdYVV8SNk2V/1EudA==,AwGE8MPAnPKKXF15EyrAx1bRinwgoqYVO4Junz5IXQjGLyQpSr5NwO/hqu5E5egHte20jm380Wn2Qy6GgKNiRLy/gQ==,AwCAOjOQNdMN5uIB0POFzYS/fpxZ0Q5KfhlP5fijNmc/daO5frSrwhgcMH5lMKL4EGjBI1p6JMe3fuMqb5t1ImeTBg==,,,,,2,AgARSg2izcK6iZLFe4YkIS6yZgnt8cd9DFqpQ37gNmcccZwBI+mpsaijTUPo1GT+QUD8zC+6qr/GrzG9q+q7BPxpVw==,AwGM/jFdtoNViQXxgqeL27ZKobjsfyeuXrx8re3UfIe3c4XN16srSpcTfxEZNXDKo1Ff9fRvDVBOwdS6XU2nvo++ng==,AwAtK0eOqcVfzkdJIIkk7BORWwSDTAjtx4aEXwyZ0bla+2rIWDgXi3U5xlgnjeXJNtGsLokkvvX92BOBIw9SuCGhnw==,2,AgCWAAWTW+7jv2a2lc4pGFnumEgyH59wSDRXEYUASCVB249JBmeKFWRKNFTQlph5hTR5Rb+YHFP/qvzmwU11Hs2b0w==,AgANdxpkN+DS4De3aokNjt+e/Ou8GT+p8pUJA+6LHrDBXAddoCR8KpeXW7mESokq6BTEVQXxU3TdqavRkqaeFmpXkw==,AgDDDSEO3e8DCsm1n6dbj2PB9Z/tUzluDCt/utdSLrYFfdFY+Y5K7Vxo9F5/17CzaUbX172SGLt8TfCfuYBrtupgAg==,2,AgB1OG6bj+6kfRvLj8yjMQbl80FdZHZrRVRUfNVRwvjvvbRa5f9s9fNZ8J0a3s3hH+RyfZmGJ4Ufjh5mMiQkwiur6w==,AwBX4GFZNjUdtRdwtWgxyQz7h8Hk0ztaZeM8/e+8ll0o+RjYN+CNP8+lnXEw7wpuC4wcMX05mrjPvHOuy0hOFVNkhQ==,AgDf3el4vbMYIAFEH9WV151/uzl+gkfTQ79T8Iu4KxEVo6UJvCfqkjETlR6aXUJiqaCbSV5odMT50lURsmfgALf6AQ==,,,,,2,AgENmnviZkgQWXZ5QDgCCE2zq0IiXURTqK2UNPtEg3o64yjlrQQUd2rO/KgKolyCQcKYTVoMj7k2VeCSSVRr8KGC7w==,AwFv6ZJzhpV/Ms00QkrkNiCKVRFczn/yqnkiBFUHC1RQv3tqzzYSEUeXmDHmm0/kEBtnfgRWjHQm9zxS8Jzy7srDLQ==,AwB8aS5KA1dFLKCA1a/7Wsjhef+6kkNAB/GO9AOvRZbFW/dhl5fx04Alh+g78fwcVMX+eEIEJgSyH0jhv7kmiQh4ew==,,,,,2,AgG8fXrCra6UgP5G89TaE6PH5E0TANb/PJPbKwzdi78XEHRUmcTz6PIhYtclTmcdq5TH0IwQv+ra5ppf4qR4LtkGig==,AgEKzsmZrikmXzJywMpzkAdG9hAPlOiRY9oXKf4Sh50CL8btUItjfVJWg3ubNhotzJK+fnNlRrcMkWQEBD/aGKpf8A==,AwFi+2cGpuvVdR+pT1P9Ur8jAkzmjJK2XmUQbFpyMi5Jc9a5/fPnBWCxmTX8CH5wks0PicYC6rzZC3NEIt0EoM1Qfg==,,,,,2,AgHbTZgTAv8lLBsoX06Hkm9XPU+crlRqKl0xL8v18xeUUPY1YAvUYf2OAutmTtPRycXyzrDWSpn2h5xfk/dtq/BICg==,AwAjPydfoUhfSVFKWNI4Ox4a/psZGDIGzEEWh9HyVtAmjdNb5ctr/S6z+akiRfPlNCsVf6TdkzJ2Su6BO4sOX/SHKA==,AwBVmjn7AitCe4zQ/Fl0sYW2XqXkJxJBDviwl9jYhoq29v90n9escDsiA3Cy+1uW69MezdZBEszFdEWlX0EzbQZQ6A==,,,,,2,AwCG0RBHwHuame/1G7qtUjmwz0gkCP1tyZiEgm7aTKpsCjt7UsMirMmx/ZrNlvSzkGuVbRO97Szzr+9fo4baH1rEZA==,AwHyMK/q8FUUvoHTt7O7KJUxYz/ZHF6SntbmKfbygLVw4HWc/eFic4DXHKbEGWvrMO5b37GksqxfQHc2xlAuj8ZRIw==,AgB5x0BxqiMYxRvzlq0+/RkbOuNA7hYuMG+7D6wlMOxSskgqyfwA0MfW+AkXFqnqfqsoJRpDy15bABWhH6MIdJsPEA==,,,,,2,AwAS/nCH0pcrsllSy2duadUs1rMtL6vtz7VTUAVhn1/YYlZ068ysBi1Mdz9gJFewdyeGLnFhyg+W15rFB317nyeGHg==,AwBh6f5UVRMM5ekWqkrx6XiVOK/BL0TinjsSLna8BjkQPXU2DvGxiKPhA03/GtBdEpihEX4bVaHQhiOupTf7wh6bCQ==,AgGPDFH8Kv8hz2aUJ955nHu8NiAoTmDjqhlXuJ1T83h+O0sc2GieLhmXmpEjxjEAyxkqjb2nFxvDhi+YGs4MqI4S5A==,,,,,2,AwDqwFv6bqpM/6PTCJ/wgRALYVT+Rn54HIB2icP6ODNexaoqILBS9p1k1QENbQsBZ9LmJJwngRQXi07Q4P8br76Qfw==,AgG8yTiO8tFWZqQELBr+Zt1fKKA3bl08836nUEEpD55Sid0ZywCrWe+Va58xbMIWscISLPbBvXIdO48ZgoHsLgA7Jw==,AwCI1Ud0GJLnS86mSC58HNB91lH9kPpQbufGn+WJErGxAQubtSFBc3rnT0SNE3CbW+1MPjYBbdCgxpHjN/iQf96++w==,,,,;2,AgB9YhljgPngkwwYTBMUaMGR+rWMjvlK0tgrzkG8OT9NGNJfaaLP6AzfhWrT5oe9NRnabU25pQvDhAIGZCajDy8N2g==,AwE5Irce6LOSxfLgn4PZh1PeDPjAHb5wPTNfmQoWFY83dNQLYN44FupJaQRRUqBqyGNB0SL76GKzr8G9tKLAHOxRSQ==,BAG5iWHEhlWkvtyAlQy4bwKa1iNRzJq8WJTh2GE9oT4DeJRmO1pCHy9P+9YktDT+4RgV9s8AzOYih1LmHW14uP27HQGg1nTdHyab9/nFUe9BFxIi8xQTPG8et9++5I+gKIeWGCXBL31sBhpaMewvVhDjl2d3+7H2PUv9IY3lyIRFA6N16A==,2,AwAPIoQJqSbXFKXQAIG9J+/+/41NLX0rDINImk4eBgAnZ4V0R8YSqkHD3nd0IrEMyK7OpkCXkxTzOlwJlfEfti+vew==,AwAQ8KdMYsEOqM3eyGv/XbHnGf+TqCAG39Gz/juBcioOOJmLOFjl6oCITozJOyPusbTRXZ4eIwgQYkl12mt6saTpgQ==,BACkTO+3rRUF81w5yzZskFiIRyVxc6sdJfDFX6C+Jy5A+s/sfHskrFx2GYNklZaYztP0/B64a6v6HvFWVz8GuYj2wgHhiCL+QwLThFpaRxh8kUMSrt4VuXSIjtHwRXzhSdEbG2T6C/+CJZxIFh/ugEV9SS51l1HrLdnJDb2Kdu3QC3lRkQ==;2,AgC99VyiRLJ2kFf3oCkb+JPVV7B4tXVGI2NVT7fdKtB+gEjCcdkbS5YEXm/Sq6NAJEOKilMTFUDLYFDOe+7JHj/4pw==,AgAbT080sbKVHH9lim3tVCYS4cMz+rLownRKqtYZ7AfR8qy819R1GFywQ0kImgcdjEey5C4m0OPTwgtkO+C5uWtKfQ==,BADKYt9i0zTJeh3H8t6d8pZdncz3f28v1oWrssLZwAutkIcF3XKkPNmK3X75K3sImUSch//IIRIB1Yi5/MrZZeDrxQHhQZEg6AA8bDxgt0JdOEX2t4crzDu3gW5I8y+Ya0fZr1RmxvfMr2UxRhSsNsz949v/g+GPfsrEfDqIWTiNlJfwyg==,2,AgEPMjgCfgGRaZ/5I1hLqDoJ8nXYeTlnt9YeK4K8w+HnRAoAD09zkPcLMWajIjupe/CUFrHz00sAvs+vOPeKxGrLiQ==,AgDy7g2DcDwmIW7LtTTteHExD/cyP4BMWimEAM1RfAd/Y6P8XkmRGgglfdLJ7RGTR2YIMB1lxQ/LQUbmzyjTiiuWow==,BAHJ7oHVr/0wweyGlg4f9Dqmx8h0m35jMdrEFwVY8l/ENKpOTxG/oh9vAvo1uw39wUOn4CWGBmAFE2lsvWFW18gt+gHPFt5/9ihUFN9mtxFLT1Q3W4Uf8IdekHPMbNlxEp1wId7EH3XsAox3Eo8b3XnYpwfsAXoDwQa2wyiO5h104Ptvsg==;2,AwClCMGcHdd7rD8sYDC/GXyAtLmZ/JI4v+aOK4PXzjWJi/zvcsXT5dJUOm9bW6AAtzgOKPd0WwU3hSytJ+ATy146Uw==,AgADzN6ysOIC9GAuMF9suYNfkR027H/9OcpeVJb4HRHfZ/EOmQWSdJmJFw3F/NLUrreNnFCvuF1+1bbmHa3tvznjeA==,BADwaRJF9z3DW7HE3qhGu6Yd9d2WBfWy8opd7Mhkg7TpAQsn9oA3UcpCarn4DMSnVGG94Y3Pxsj5vlm5G7GMKiGoxAERnETH6pVgBxhtrnBU6l4vHl+X4rd8I/zheZiG0EFKJza41rmwKHTY4+42PJ8/3Y2rCanbY1RSAJEgiZR89k6nGg==,2,AgCK80PhKSC23aVKQ8uYm+79GWZiwpbV5lc8Fzcpwu8hdKGAMH4f62Y//cmrQmCIltm03PTVPMn6rMwkfoz+9M2LDQ==,AgH5aXThIKUjENFTGCGwcTRql7xIe8vR9h78KikTYkD8itQ+YBDrnx5OaNyWRjpIJHAZ2B61W2aVjZ5Rmo0d1B1Pcw==,BAAEZsEKw59QSRxN1QmWcx4X2LaK4+zBuawh+2CIRPljWyxK6XhIM6EEalr44Klce4OTK2QbxT5n3Kjnh5jNuwCOawAH/wiNrx09+HY8SZrRjCjv1+Lnicybrqg/IFDNoAGT5aguaGRIMmGOLe0QFJr0T0iW3RnYGlmSd/r6ex8+MpOgLw==</decrypt_val></awr_decrypt>";
- String replyString = connectSPU.sendReceive(Type.DECRYPT, requestString);
- System.out.println("REQUEST URL: " + requestString);
- System.out.println("REPLY: " + replyString);
- ReplyDecryption reply = (new XMLParserDecrypt()).stringToReply(replyString);
- return reply;
- }
-
- public ReplyMaterial callServiceMaterial(RequestMaterial rqtMaterial) {
- String requestString = URLParserMaterial.requestToString(rqtMaterial);
- String replyString = connectSPU.sendReceive(Type.MATERIAL, requestString);
-
- System.out.println("Material request:");
- System.out.println(replyString);
-
- ReplyMaterial reply = (new XMLParserMaterial()).stringToReply(replyString);
- return reply;
- }
-
- public ReplySurvey callServiceSurvey(){
-
-// String replyString = connectSPU.sendReceive(Type.SURVEY_Q,"");
- //4::What's your name?::1;5::Where are you from?::2;6::How old are you?::3;7::What's your name?::1;8::Where are you from?::2;9::How old are you?::3;10::What's your name?::1;11::Where are you from?::2;12::How old are you?::3;13::What's your name?::1;14::Where are you from?::2;15::How old are you?::3
- String replyString ="<awr_survey><v_questions>1::What's your name?::1;2::Where are you from?::2;3::How old are you?::3;5::A hacker or a disgruntled employee steals from a hospital database the unprotected genome of a known personality. He finds out this person's ethnicity and predisposition to diseases. As a result, he sells this information to tabloids and newspapers. Theft of unprotected medical data is an important concern and hospitals should take more steps to make sure that unauthorized people cannot access personal information in their computers.::3;4::A hacker or a disgruntled employee steals from a hospital database the unprotected genome of a known personality. He finds out this person's ethnicity and predisposition to diseases. As a result, he sells this information to tabloids and newspapers. Theft of unprotected medical data is an important concern and hospitals should take more steps to make sure that unauthorized people cannot access personal information in their computers.::3;6::A hacker or a disgruntled employee steals from a hospital database the unprotected genome of a known personality. He finds out this person's ethnicity and predisposition to diseases. As a result, he sells this information to tabloids and newspapers. Theft of unprotected medical data is an important concern and hospitals should take more steps to make sure that unauthorized people cannot access personal information in their computers.::3;</v_questions><v_locations>50::Lausanne;60::Basel;70::Zurich</v_locations></awr_survey>";
- ReplySurvey reply = (new XMLParserSurvey()).stringToReply(replyString);
- return reply;
- }
-
- public String callServiceSurveyAnswer(String survey, String id_loc, String id_p){
-
- StringBuilder sb = new StringBuilder();
- sb.append("id_p=").append(id_p);
- sb.append("&timestamp=").append(System.currentTimeMillis());
- sb.append("&id_loc=").append(id_loc);
- sb.append("&answer=").append(survey);
- String replyString = connectSPU.sendReceive(Type.SURVEY_A, sb.toString());
- return replyString;
-
- }
-
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/a9/504cd3980fa70014162f978bbd19228b b/.metadata/.plugins/org.eclipse.core.resources/.history/a9/504cd3980fa70014162f978bbd19228b
deleted file mode 100644
index 699b626..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/a9/504cd3980fa70014162f978bbd19228b
+++ /dev/null
@@ -1,259 +0,0 @@
-package io;
-
-import java.awt.BorderLayout;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.util.Map;
-import java.util.Set;
-
-import com.itextpdf.text.BaseColor;
-import com.itextpdf.text.Document;
-import com.itextpdf.text.DocumentException;
-import com.itextpdf.text.Element;
-import com.itextpdf.text.ExceptionConverter;
-import com.itextpdf.text.Font;
-import com.itextpdf.text.Font.FontFamily;
-import com.itextpdf.text.FontFactory;
-import com.itextpdf.text.Image;
-import com.itextpdf.text.PageSize;
-import com.itextpdf.text.Paragraph;
-import com.itextpdf.text.Phrase;
-import com.itextpdf.text.Rectangle;
-import com.itextpdf.text.pdf.BaseFont;
-import com.itextpdf.text.pdf.ColumnText;
-import com.itextpdf.text.pdf.GrayColor;
-import com.itextpdf.text.pdf.PdfBorderDictionary;
-import com.itextpdf.text.pdf.PdfContentByte;
-import com.itextpdf.text.pdf.PdfFormField;
-import com.itextpdf.text.pdf.PdfPCell;
-import com.itextpdf.text.pdf.PdfPCellEvent;
-import com.itextpdf.text.pdf.PdfPTable;
-import com.itextpdf.text.pdf.PdfWriter;
-import com.itextpdf.text.pdf.RadioCheckField;
-import com.itextpdf.text.pdf.TextField;
-
-import framework.Question;
-
-public class Questionnaire implements PdfPCellEvent{
-
- /** The path output file. */
- String pathOutputFile;
-
- /** The document. */
- Document document;
-
- int tf;
-
- public Questionnaire(String path){
- pathOutputFile = path;
- document = new Document(PageSize.A4, 25, 25, 50, 50);
- }
- public Questionnaire(int tf){
- this.tf = tf;
- }
-
- /** The resulting PDF. */
- public static final String RESULT1 = "outputPDF/buttons.pdf";
- /** The resulting PDF. */
- public static final String RESULT2 = "outputPDF/buttons_filled.pdf";
- /** Path to a JavaScript resource. */
- public static final String RESOURCE = "res/buttons.js";
- /** Path to an image used as button icon. */
- public static final String IMAGE = "res/info.png";
- /** Possible values of a radio field / checkboxes */
- public static final String[] LANGUAGES = { "English", "German", "French", "Spanish", "Dutch" };
-
- /**
- * Creates a PDF document.
- * @param filename the path to the new PDF document
- * @throws DocumentException
- * @throws IOException
- */
- public void createPdf(Map<Integer, Question> map, Set<Integer> ids) throws IOException, DocumentException {
-
- @SuppressWarnings("unused")
- PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(pathOutputFile));
-
-
- document.open();
- Image logo = Image.getInstance("res/shcs_logo2.gif");
-
- logo.scalePercent(30f);
- float[] columnWidths1 = {0.2f, 0.8f};
- PdfPTable table_title = new PdfPTable(columnWidths1);
- PdfPCell c01 = new PdfPCell(logo, false);
- PdfPCell c02 = new PdfPCell(new Paragraph("HIV Pharmacogenomic Survery | Project #693",
- FontFactory.getFont(FontFactory.HELVETICA, 20, Font.BOLD, BaseColor.BLACK)));
- c01.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c01.setBorder(Rectangle.NO_BORDER);
- c02.setBorder(Rectangle.NO_BORDER);
-
- table_title.addCell(c01);
- table_title.addCell(c02);
- table_title.setWidthPercentage(100);
- table_title.setSpacingBefore(0);
- table_title.setSpacingAfter(25);
- document.add(table_title);
-
-
- //----------------------------------------------------------------------------------
-
-
- PdfPTable table1 = new PdfPTable(1);
- table1.setWidthPercentage(100);
- PdfPCell c11 = new PdfPCell(new Phrase("Today you are receiving a pharmacogenetic report based on the genetic " +
- "information of your patient. Because the human genome contains extremely private and sensitive information" +
- " of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier," +
- " it must be managed with care. ",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.NORMAL, BaseColor.BLACK)));
- c11.setLeading(1.5f, 1.5f);
- c11.setPaddingBottom(8);
-
-
- table1.addCell(c11);
- table1.setSpacingAfter(10);
- document.add(table1);
-
-
- //----------------------------------------------------------------------------------
-
-// // step 4
-// // add the JavaScript
-// writer.addJavaScript(Utilities.readFileToString(RESOURCE));
-
-
-
-
- // add the radio buttons
- for(Integer id: ids){
- PdfPCell c2;
-
- PdfPTable table = new PdfPTable(1);
- table.setSpacingAfter(10);
- table.setWidthPercentage(100);
-// table.setWidths(new int[]{ 1, 2});
-
- PdfPCell c1 = new PdfPCell(new Phrase(id + ") " + map.get(id).getQuestion(),FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c1.setPaddingTop(5);
- c1.setPaddingBottom(5);
- c1.setHorizontalAlignment(Element.ALIGN_CENTER);
- c1.setBorder(Rectangle.NO_BORDER);
- table.addCell(c1);
-
- c2 = new PdfPCell(new Phrase(" 1" +
- " 2" +
- " 3" +
- " 4" +
- " 5",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c2.setHorizontalAlignment(Element.ALIGN_LEFT);
- c2.setCellEvent(new Questionnaire(id));
-// c2.setLeading(1.5f, 1.5f);
- c2.setBorder(Rectangle.TOP);
- c2.setPaddingTop(2);
- c2.setPaddingBottom(5);
- c2.setBackgroundColor(new BaseColor(242, 242, 242));
-
- table.addCell(c2);
-
-
-
- document.add(table);
- }
-
-//
- // step 5
- document.close();
-
- }
-
- @Override
- public void cellLayout(PdfPCell cell, Rectangle position,
- PdfContentByte[] canvases) {
- PdfWriter writer = canvases[0].getPdfWriter();
- PdfFormField radiogroup = PdfFormField.createRadioButton(writer, true);
- radiogroup.setFieldName(String.valueOf(tf));
-
- float llx = position.getLeft();
- float lly = position.getBottom();
- float urx = position.getRight();
- float ury = position.getTop();
- float cell_h = cell.getHeight();
- float cell_w = cell.getWidth();
-
- Rectangle rect;
-
- for(int i=1 ; i<=5; i++){
-
-
- rect = new Rectangle(llx + (3+i)*cell_w/12, lly+cell_h/2-6, llx + (3+i)*cell_w/12+12 ,lly+cell_h/2+6);
-
- RadioCheckField radio = new RadioCheckField(writer, rect, null, String.valueOf(i));
- radio.setBorderColor(GrayColor.GRAYBLACK);
- radio.setCheckType(RadioCheckField.TYPE_SQUARE);
-
-
- try {
- PdfFormField field = radio.getRadioField();
- radiogroup.addKid(field);
-
- writer.addAnnotation(radiogroup);
- }
-
- catch(IOException ioe) {
- throw new ExceptionConverter(ioe);
- }
- catch(DocumentException de) {
- throw new ExceptionConverter(de);
- }
- }
-
-
-
- }
-
-// /**
-// * Manipulates a PDF file src with the file dest as result
-// * @param src the original PDF
-// * @param dest the resulting PDF
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public void manipulatePdf(String src, String dest) throws IOException, DocumentException {
-// PdfReader reader = new PdfReader(src);
-// PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(dest));
-// AcroFields form = stamper.getAcroFields();
-// String[] radiostates = form.getAppearanceStates("language");
-// form.setField("language", radiostates[4]);
-// for (int i = 0; i < LANGUAGES.length; i++) {
-// String[] checkboxstates = form.getAppearanceStates("English");
-// form.setField(LANGUAGES[i], checkboxstates[i % 2 == 0 ? 1 : 0]);
-// }
-// stamper.close();
-// reader.close();
-//
-// PdfReader r = new PdfReader(dest);
-// AcroFields f = r.getAcroFields();
-// Set<String> fields = form.getFields().keySet();
-// for(String key: fields){
-// if(f.getFieldType(key)==AcroFields.FIELD_TYPE_RADIOBUTTON){
-// System.out.println(key);
-// System.out.println(f.getField(key));
-//
-// }
-// }
-// r.close();
-//
-// }
-//
-// /**
-// * Main method
-// * @param args no arguments needed
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public static void main(String[] args) throws IOException, DocumentException {
-// Questionnaire buttons = new Questionnaire();
-// buttons.createPdf(RESULT1);
-// buttons.manipulatePdf(RESULT1, RESULT2);
-// }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/ab/d01ad5c24eac001410e2e30aa85db9d1 b/.metadata/.plugins/org.eclipse.core.resources/.history/ab/d01ad5c24eac001410e2e30aa85db9d1
deleted file mode 100644
index 0502c89..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/ab/d01ad5c24eac001410e2e30aa85db9d1
+++ /dev/null
@@ -1,893 +0,0 @@
-package ui;
-
-import io.ClientConnection;
-import io.CommAdapter;
-import io.Questionnaire;
-
-import java.awt.BorderLayout;
-import java.awt.Color;
-import java.awt.Component;
-import java.awt.Dimension;
-import java.awt.FlowLayout;
-import java.awt.Font;
-import java.awt.SystemColor;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.awt.event.WindowAdapter;
-import java.io.File;
-import java.io.IOException;
-import java.sql.SQLException;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.LinkedList;
-import java.util.Map;
-import java.util.Set;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
-import javax.swing.Box;
-import javax.swing.BoxLayout;
-import javax.swing.ButtonGroup;
-import javax.swing.DefaultComboBoxModel;
-import javax.swing.GroupLayout;
-import javax.swing.GroupLayout.Alignment;
-import javax.swing.ImageIcon;
-import javax.swing.JButton;
-import javax.swing.JComboBox;
-import javax.swing.JDialog;
-import javax.swing.JFileChooser;
-import javax.swing.JFrame;
-import javax.swing.JLabel;
-import javax.swing.JOptionPane;
-import javax.swing.JPanel;
-import javax.swing.JRadioButton;
-import javax.swing.JScrollPane;
-import javax.swing.JSeparator;
-import javax.swing.JTabbedPane;
-import javax.swing.JTextArea;
-import javax.swing.JTextPane;
-import javax.swing.JTree;
-import javax.swing.LayoutStyle.ComponentPlacement;
-import javax.swing.SwingConstants;
-import javax.swing.UIManager;
-import javax.swing.border.BevelBorder;
-import javax.swing.border.EmptyBorder;
-import javax.swing.border.EtchedBorder;
-import javax.swing.tree.DefaultMutableTreeNode;
-import javax.swing.tree.TreeModel;
-import javax.swing.tree.TreePath;
-
-import org.jpedal.examples.viewer.Commands;
-import org.jpedal.examples.viewer.Viewer;
-
-import utils.ClientProperties;
-
-import com.itextpdf.text.DocumentException;
-
-import database.DBconnectorClient;
-import framework.Diagnostic;
-import framework.MedUnit;
-import framework.Question;
-import framework.reply.ReplySurvey;
-import framework.test.TestName;
-
-/**
- *
- * @author youssef, raisaro
- */
-public class GUI extends javax.swing.JFrame {
-
- private static final Logger LOGGER = Logger.getLogger(GUI.class.getName());
-
- private static final long serialVersionUID = -4582280515597700650L;
-
- // configuration
- private ClientProperties props;
-
- private JTree jTree;
- private DBconnectorClient connectorClientDB;
- private LinkedList<Integer> patients;
-
- /** List of all relevant tests */
- private HashMap<String, TestName> testsByName;
- private Viewer viewer;
- private JDialog dialog;
- private JFrame frame;
- private boolean survey_submitted;
- private int close_trials;
- private Map<Integer, ButtonGroup> buttonGroupMap;
- private Questionnaire quest;
- private Map<Integer, Question> map;
- private Set<Integer> ids;
- private Map<String,String> answers;
- private Map<Integer, String> locations;
-
-
- /**
- * Creates new form GUI
- */
- public GUI(ClientProperties props){
-
- frame = this;
- this.props = props;
- this.connectorClientDB = new DBconnectorClient(props.getDbMsAccess());
- survey_submitted = false;
- close_trials = 0;
-
-
- try {
- initComponents();
-
- viewer = new Viewer(jScrollPane2, null);
- viewer.setupViewer();
-
- // create questionnare
-
-
- System.out.println("#of questions: " + ids.size());
-
-// viewer_q = new Viewer(jScrollPane4, null);
-// viewer_q.setupViewer();
-//
-// // specify file you wish to open (JPedal handles getting the byte data)
-// String filepathReport = "outputPDF/buttons_filled.pdf";
-//
-// // open generated PDF
-// // object must be either String in full filepath, or
-// // File object which can be relative
-// Object[] input = new Object[]{ new File(filepathReport) };
-// viewer_q.executeCommand(Commands.OPENFILE, input);
-
- JButton btnSubmitQuestionnaire = new JButton("Submit Questionnaire");
- btnSubmitQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- btnSubmitQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- submitButtonActionPerformed(arg0);
- }
- });
- JButton btnResetQuestionnaire = new JButton("Save as PDF");
- btnResetQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- savePDFButtonActionPerformed(arg0);
- }
- });
- btnResetQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- JPanel panel_button = new JPanel();
- panel_button.setLayout(new BoxLayout(panel_button, BoxLayout.X_AXIS));
-
- lblNewLabel_3 = new JLabel("");
- lblNewLabel_3.setIcon(new ImageIcon("res/location_icon.png"));
- panel_button.add(lblNewLabel_3);
-
-
-
- comboBox = new JComboBox<String>();
- comboBox.setFont(new Font("Tahoma", Font.BOLD, 12));
- comboBox.setModel(new DefaultComboBoxModel<String>(new String[] {"Select Location"}));
- for(Integer id_loc : locations.keySet()){
- comboBox.addItem(locations.get(id_loc));
- }
-
-
- panel_button.add(comboBox);
-
- rigidArea = Box.createRigidArea(new Dimension(10, 0));
- panel_button.add(rigidArea);
-
- lblNewLabel_1 = new JLabel("");
- lblNewLabel_1.setIcon(new ImageIcon("res/submit.png"));
- panel_button.add(lblNewLabel_1);
- panel_button.add(btnSubmitQuestionnaire);
-
- panel_button.add(Box.createRigidArea(new Dimension(10,0)));
-
- lblNewLabel_2 = new JLabel("");
- lblNewLabel_2.setIcon(new ImageIcon("res/pdf.png"));
- panel_button.add(lblNewLabel_2);
- panel_button.add(btnResetQuestionnaire);
- panel_button.setPreferredSize(new Dimension(211, 35));
- panel_button.validate();
-
- JPanel panel_3 = new JPanel();
- GroupLayout gl_panel = new GroupLayout(panel);
- gl_panel.setHorizontalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(41)
- .addGroup(gl_panel.createParallelGroup(Alignment.TRAILING)
- .addComponent(jScrollPane4, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE)
- .addComponent(panel_1, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE))
- .addGap(32))
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(63)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addGap(103)
- .addComponent(panel_button, GroupLayout.DEFAULT_SIZE, 488, Short.MAX_VALUE)
- .addGap(241))
- );
- gl_panel.setVerticalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(22)
- .addComponent(panel_1, GroupLayout.DEFAULT_SIZE, 192, Short.MAX_VALUE)
- .addGap(18)
- .addComponent(jScrollPane4, GroupLayout.DEFAULT_SIZE, 437, Short.MAX_VALUE)
- .addGap(26)
- .addGroup(gl_panel.createParallelGroup(Alignment.LEADING)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(panel_button, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE)))
- );
- panel_3.setLayout(new BoxLayout(panel_3, BoxLayout.X_AXIS));
-
-
- panel.setLayout(gl_panel);
-
-
-
-
-
-
- /////////////////////////////////////////////////////////
- // display the tests available
-
- // get the tests
- HashMap<String, ArrayList<TestName>> testsRelevantByGroup = connectorClientDB.getRelevantTestsByGroup();
- ArrayList<String> groups = new ArrayList<String>(testsRelevantByGroup.keySet());
-
- // flatten hashmap into linkedlist
-// tests = new LinkedList<>();
- testsByName = new HashMap<String, TestName>();
- for (String group : groups) {
-// tests.addAll(testsRelevantByGroup.get(group));
- for (TestName test : testsRelevantByGroup.get(group)) {
- testsByName.put(test.getName(), test);
- }
- }
-
- // define tree structure of the tests
- DefaultMutableTreeNode root = new DefaultMutableTreeNode("All");
-
- for (String group : groups) {
- DefaultMutableTreeNode child = new DefaultMutableTreeNode(group);
- root.add(child);
-
- for (TestName test : testsRelevantByGroup.get(group)) {
- DefaultMutableTreeNode grandChild = new DefaultMutableTreeNode(test.getName());
- child.add(grandChild);
- }
- }
-
- // define swing object
- jTree = new JTree(root);
-
- for(int i=0;i<jTree.getRowCount();i++){
- jTree.expandRow(i);
- }
-
- jScrollPane3.setViewportView(jTree);
-// jTree.addTreeSelectionListener(new TreeSelectionListener() {
-//
-// @Override
-// public void valueChanged(TreeSelectionEvent e) {
-// tp = jTree.getSelectionPaths();
-// }
-// });
- jScrollPane3.setViewportView(jTree);
-
- /////////////////////////////////////////////////////////
- // display the patients registered
-
- patients = connectorClientDB.getPatients();
- for (Integer patientId : patients) {
- jComboBox1.addItem(patientId.toString());
- }
-
- } catch (SQLException ex) {
- Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex);
- ex.printStackTrace();
-// } catch (IOException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
-// } catch (DocumentException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
- }
-
- }
-
- /**
- * 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() {
-
- jPanel1 = new javax.swing.JPanel();
- jLabel2 = new javax.swing.JLabel();
- jLabel1 = new javax.swing.JLabel();
- jPanel2 = new javax.swing.JPanel();
- jComboBox1 = new javax.swing.JComboBox<String>();
- jButton1 = new javax.swing.JButton();
- jButton1.setFont(new Font("Tahoma", Font.BOLD, 12));
- jLabel3 = new javax.swing.JLabel();
- jLabel4 = new javax.swing.JLabel();
- jScrollPane3 = new javax.swing.JScrollPane();
- jScrollPane2 = new javax.swing.JScrollPane();
- jMenuBar1 = new javax.swing.JMenuBar();
- jMenu1 = new javax.swing.JMenu();
- jMenuItem1 = new javax.swing.JMenuItem();
- jMenu2 = new javax.swing.JMenu();
- dialog = new JDialog();
- tabbedPane = new JTabbedPane(JTabbedPane.TOP);
-
- setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
- addWindowListener(new WindowAdapter() {
- @Override
- public void windowClosing(java.awt.event.WindowEvent windowEvent) {
- if (!survey_submitted && close_trials <= 2){
- JOptionPane.showMessageDialog(frame, "Before closing the application, please fill in and submit the questionnaire.");
- close_trials++;
- tabbedPane.setSelectedIndex(1);
- }else{
- System.exit(0);
- }
- }
- });
- setTitle("HIV Pharmacogenomics\n");
-
- jLabel2.setIcon(new javax.swing.ImageIcon("res/shcs_logo2_small.gif")); // NOI18N
-
- jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
- jLabel1.setText("HIV Pharmacogenomics | Project #693");
-
- javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
- jPanel1.setLayout(jPanel1Layout);
- jPanel1Layout.setHorizontalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap(71, Short.MAX_VALUE)
- .addComponent(jLabel1)
- .addGap(18, 18, 18)
- .addComponent(jLabel2))
- );
- jPanel1Layout.setVerticalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jLabel1)
- .addGap(11, 11, 11))
- .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)
- );
-
- jPanel2.setBackground(new java.awt.Color(255, 255, 255));
- jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
-
- jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<String>(new String[]{"Select Patient"}));
-
- jButton1.setText("Run Test");
- jButton1.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton1ActionPerformed(evt);
- }
- });
-
- JLabel lblNewLabel = new JLabel("");
- lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
- lblNewLabel.setIcon(new javax.swing.ImageIcon("res/gears.png"));
-
-
-
- javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
- jPanel2Layout.setHorizontalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addComponent(jComboBox1, 0, 248, Short.MAX_VALUE)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addGap(75)
- .addGroup(jPanel2Layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jButton1)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 75, GroupLayout.PREFERRED_SIZE))
- .addContainerGap(98, Short.MAX_VALUE))
- );
- jPanel2Layout.setVerticalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addComponent(jComboBox1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED, 223, Short.MAX_VALUE)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jButton1)
- .addGap(19))
- );
- jPanel2.setLayout(jPanel2Layout);
-
- jLabel3.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel3.setText("Select Patient");
-
- jLabel4.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel4.setText("Select Test");
-
- jScrollPane3.setBackground(new java.awt.Color(255, 255, 255));
-
- jMenu1.setText("File");
-
- jMenuItem1.setText("Exit");
- jMenu1.add(jMenuItem1);
-
- jMenuBar1.add(jMenu1);
-
- jMenu2.setText("Edit");
- jMenuBar1.add(jMenu2);
-
- setJMenuBar(jMenuBar1);
-
-
-
- javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
- layout.setHorizontalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(layout.createParallelGroup(Alignment.LEADING, false)
- .addComponent(jLabel3)
- .addComponent(jLabel4)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, 244, Short.MAX_VALUE)
- .addComponent(jScrollPane3))
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 970, Short.MAX_VALUE))
- .addContainerGap())
- );
- layout.setVerticalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel4))
- .addPreferredGap(ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addComponent(jScrollPane3, GroupLayout.PREFERRED_SIZE, 388, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jLabel3)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 785, Short.MAX_VALUE))
- .addContainerGap())
- );
-
-
- jScrollPane2.setAutoscrolls(true);
- jScrollPane3.setAutoscrolls(true);
- tabbedPane.addTab("Report", new ImageIcon("res/report_icon.gif"), jScrollPane2, null);
- tabbedPane.setBackgroundAt(0, new Color(255, 255, 255));
-
- panel = new JPanel();
- tabbedPane.addTab("Survey", new ImageIcon("res/survey_icon.png"), panel, null);
- tabbedPane.setBackgroundAt(1, new Color(255, 255, 255));
- tabbedPane.setEnabledAt(1, true);
-
- panel_1 = new JPanel();
- panel_1.setBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null));
- panel_1.setBackground(UIManager.getColor("Button.background"));
-
- JLabel label = new JLabel("");
- label.setIcon(new ImageIcon("res/shcs_logo2_medium.gif"));
-
- lblDearDoctor = new JLabel("Dear Doctor,");
- lblDearDoctor.setFont(new Font("Tahoma", Font.BOLD, 14));
-
- JScrollPane scrollPane = new JScrollPane();
- scrollPane.setBorder(null);
- GroupLayout gl_panel_1 = new GroupLayout(panel_1);
- gl_panel_1.setHorizontalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(25)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 666, Short.MAX_VALUE)
- .addComponent(lblDearDoctor))
- .addContainerGap())
- );
- gl_panel_1.setVerticalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(22)
- .addComponent(lblDearDoctor)
- .addGap(18)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 120, Short.MAX_VALUE)
- .addContainerGap())
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(36)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 96, GroupLayout.PREFERRED_SIZE)
- .addContainerGap(56, Short.MAX_VALUE))
- );
-
- JTextPane txtpnTodayYouAre = new JTextPane();
- txtpnTodayYouAre.setBorder(null);
- txtpnTodayYouAre.setText("Today you are receiving a pharmacogenetic report based on the genetic information of your patient. Because the human genome contains extremely private and sensitive information of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier, it must be managed with care.\r\nToday you are receiving a pharmacogenetic report based on the genetic information of your patient. Because the human genome contains extremely private and sensitive information of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier, it must be managed with care.\r\nToday you are receiving a pharmacogenetic report based on the genetic information of your patient. Because the human genome contains extremely private and sensitive information of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier, it must be managed with care.");
- txtpnTodayYouAre.setFont(new Font("Tahoma", Font.PLAIN, 13));
- txtpnTodayYouAre.setEditable(false);
- txtpnTodayYouAre.setBackground(SystemColor.menu);
- scrollPane.setViewportView(txtpnTodayYouAre);
- panel_1.setLayout(gl_panel_1);
- jScrollPane4 = new javax.swing.JScrollPane();
- getContentPane().setLayout(layout);
-
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
- ReplySurvey replySurvey = commHandlerAdapter.callServiceSurvey();
-
- map = replySurvey.getQuestions();
- ids = map.keySet();
- locations = replySurvey.getLocations();
-
- panel_2 = new JPanel();
- panel_2.setBackground(Color.WHITE);
- panel_2.setBorder(new BevelBorder(BevelBorder.LOWERED, null, null, null, null));
- jScrollPane4.setViewportView(panel_2);
- panel_2.setLayout(new BoxLayout(panel_2, BoxLayout.Y_AXIS));
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
-
-
- for(Integer id : ids){
- ButtonGroup group = new ButtonGroup();
- JRadioButton r1 = new JRadioButton("1"); r1.setActionCommand("1"); r1.setBackground(Color.WHITE);
- JRadioButton r2 = new JRadioButton("2"); r2.setActionCommand("2"); r2.setBackground(Color.WHITE);
- JRadioButton r3 = new JRadioButton("3"); r3.setActionCommand("3"); r3.setBackground(Color.WHITE);
- JRadioButton r4 = new JRadioButton("4"); r4.setActionCommand("4"); r4.setBackground(Color.WHITE);
- JRadioButton r5 = new JRadioButton("5"); r5.setActionCommand("5"); r5.setBackground(Color.WHITE);
- group.add(r1);
- group.add(r2);
- group.add(r3);
- group.add(r4);
- group.add(r5);
- JPanel radio_panel = new JPanel();
- radio_panel.setLayout((new BoxLayout(radio_panel, BoxLayout.X_AXIS)));
- radio_panel.setBackground(Color.WHITE);
- radio_panel.setAlignmentX(Component.CENTER_ALIGNMENT);
- radio_panel.add(r1);
- radio_panel.add(r2);
- radio_panel.add(r3);
- radio_panel.add(r4);
- radio_panel.add(r5);
- radio_panel.doLayout();
- radio_panel.setPreferredSize(radio_panel.getPreferredSize());
- JTextArea question = new JTextArea(id + ") " + map.get(id).getQuestion());
- question.setLineWrap(true);
- question.setWrapStyleWord(true);
- question.setAlignmentX(Component.CENTER_ALIGNMENT);
- question.setFont(new Font("Tahoma", Font.PLAIN, 13));
- JPanel row_panel = new JPanel();
- row_panel.setLayout(new BoxLayout(row_panel, BoxLayout.X_AXIS));
- row_panel.add(question);
- row_panel.add(Box.createRigidArea(new Dimension(10,0)));
- row_panel.add(radio_panel);
-
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- panel_2.add(row_panel);
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
-// panel_2.add(radio_panel);
- panel_2.add(new JSeparator());
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
-// panel_2.setPreferredSize(panel_2.getPreferredSize());
- buttonGroupMap.put(id, group);
-
- }
-
-
-
- this.setSize(new Dimension(1200, 865));
-// pack();
- }// </editor-fold>//GEN-END:initComponents
-
-
- private void submitButtonActionPerformed(java.awt.event.ActionEvent evt){
-
- try{
- answers = new HashMap<String, String>();
- StringBuilder sb = new StringBuilder();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- sb.append(q).append(",");
- sb.append(bg.getSelection().getActionCommand()).append(";");
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- String answer = sb.toString();
- Integer id_loc = null;
- for(Integer i: locations.keySet()){
- if(locations.get(i).equals(comboBox.getSelectedItem().toString()))
- id_loc = i;
- }
-
- String id_p;
- if(jComboBox1.getSelectedItem().toString().equals("Select Patient"))
- id_p = "0";
- else
- id_p = jComboBox1.getSelectedItem().toString();
-
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
-
- String reply = commHandlerAdapter.callServiceSurveyAnswer(answer, id_loc.toString(), id_p);
-
- if(reply.equals("1")){
- survey_submitted = true;
-
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Congrats! Your aswers have been sent to the SHCS datacenter.",
- "Information Message",
- JOptionPane.INFORMATION_MESSAGE);
- }
- else{
- throw new IOException();
- }
-
-
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "The SHCS datacenter does not respond. Please save the survey and send it to jean.raisaro@epfl.ch.",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
- private void savePDFButtonActionPerformed(java.awt.event.ActionEvent evt){
- try {
-
- answers = new HashMap<String, String>();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- JFileChooser chooser = new JFileChooser();
- // Note: source for ExampleFileFilter can be found in FileChooserDemo,
- // under the demo/jfc directory in the JDK.
-
- int returnVal = chooser.showSaveDialog(this);
- System.out.println(returnVal);
- if(returnVal == JFileChooser.APPROVE_OPTION) {
- System.out.println("You chose to open this file: " +
- chooser.getSelectedFile().getPath());
- quest = new Questionnaire(chooser.getSelectedFile().getPath() + ".pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }else{
- quest = new Questionnaire("outputPDF/survey.pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }
-
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (DocumentException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (NullPointerException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
-
- private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
-
- JPanel contentPanel = new JPanel();
-
- dialog.setBounds(100, 100, 410, 80);
- dialog.getContentPane().setLayout(new BorderLayout());
- contentPanel.setLayout(new FlowLayout());
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- dialog.getContentPane().add(contentPanel, BorderLayout.CENTER);
- {
- JLabel label = new JLabel("Please wait...The overall computation can take few seconds");
- label.setHorizontalAlignment(SwingConstants.CENTER);
- label.setFont(new Font("Tahoma", Font.PLAIN, 12));
- contentPanel.add(label);
- }
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
- dialog.getContentPane().add(buttonPane, BorderLayout.SOUTH);
- }
- dialog.setLocationRelativeTo(this);
- dialog.setVisible(true);
-
- GUIWorker gw = new GUIWorker(this, props);
- Thread t = new Thread(gw);
- t.start();
-
- }
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JButton jButton1;
- private javax.swing.JComboBox<String> jComboBox1;
- private javax.swing.JLabel jLabel1;
- private javax.swing.JLabel jLabel2;
- private javax.swing.JLabel jLabel3;
- private javax.swing.JLabel jLabel4;
- private javax.swing.JMenu jMenu1;
- private javax.swing.JMenu jMenu2;
- private javax.swing.JMenuBar jMenuBar1;
- private javax.swing.JMenuItem jMenuItem1;
- private javax.swing.JPanel jPanel1;
- private javax.swing.JPanel jPanel2;
- private javax.swing.JScrollPane jScrollPane3;
- private javax.swing.JTabbedPane tabbedPane;
- private javax.swing.JScrollPane jScrollPane2;
- private javax.swing.JScrollPane jScrollPane4;
- private JPanel panel;
- private JPanel panel_1;
- private JPanel panel_2;
- private JLabel lblDearDoctor;
- private JLabel lblNewLabel_1;
- private JLabel lblNewLabel_2;
- private JLabel lblNewLabel_3;
- private JComboBox<String> comboBox;
- private Component rigidArea;
-
- // End of variables declaration//GEN-END:variables
-
-
- class GUIWorker implements Runnable{
-
- private JFrame mainFrame;
- private ClientProperties props;
- private MedUnit mu;
-
- public GUIWorker(GUI gui, ClientProperties props) {
- mainFrame = gui;
-
- this.props = props;
- this.mu = new MedUnit(props, 0);
- }
-
- @Override
- public void run() {
-
- try{
- int patientId = Integer.parseInt((String) jComboBox1.getSelectedItem());
-
- // convert selected tests to test identifiers
- ArrayList<TestName> selectedTests = new ArrayList<TestName>();
- for (String currentName : getSelectedTests()) {
- TestName currentTest = testsByName.get(currentName);
-
- if (currentTest == null) {
- throw new IllegalStateException("Trying to run unknown test: " + currentTest);
- }
-
- selectedTests.add(currentTest);
- }
-
- // run tests
- Diagnostic diagnostic = mu.runTests(patientId, selectedTests);
-
- // warn for tests with missing material
- warnFailedTests(diagnostic, selectedTests);
-
- // create report
- mu.createReport(patientId, selectedTests, diagnostic);
-
- dialog.setVisible(false);
-
- // specify file you wish to open (JPedal handles getting the byte data)
- String filepathReport = props.getPathPDF() + patientId + ".pdf";
-
- // open generated PDF
- // object must be either String in full filepath, or
- // File object which can be relative
- Object[] input = new Object[]{ new File(filepathReport) };
- viewer.executeCommand(Commands.OPENFILE, input);
-
- // display CAD result as bar plot
- if (diagnostic.hasCAD()) {
- System.out.println("CAD = " + diagnostic.getResultCAD());
- BarPlotFrame frame = new BarPlotFrame(diagnostic.getResultCAD(), patientId);
- frame.setVisible(true);
- frame.setAlwaysOnTop(true);
- }
-
-
- } catch (SQLException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Please select a patient.");
- }
-
- }
-
- private void warnFailedTests(Diagnostic diagnostic, ArrayList<TestName> selectedTests) {
- ArrayList<Integer> failedTests = diagnostic.getInvalidTests();
-
- if (!failedTests.isEmpty()) {
- String msg = "Could not complete tests: ";
- boolean first = true;
- for (TestName testName : selectedTests) {
- if (failedTests.contains(testName.getId())) {
- if (first) {
- first = false;
- } else {
- msg += ", ";
- }
- msg += testName.getName();
- }
- }
- displayError(msg);
- }
-
- }
-
- private void displayError(String msg) {
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- mainFrame,
- msg,
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
-
- private ArrayList<String> getSelectedTests() {
- ArrayList<String> tests = new ArrayList<String>();
-
- for (TreePath treePath : jTree.getSelectionPaths()) {
- tests.addAll(getChildrenTests(jTree.getModel(), treePath.getLastPathComponent()));
- }
-
- return tests;
- }
-
- private ArrayList<String> getChildrenTests(TreeModel model, Object node) {
- ArrayList<String> tests = new ArrayList<String>();
-
- if (model.isLeaf(node)) { // leaf
- DefaultMutableTreeNode leaf = (DefaultMutableTreeNode) node;
- tests.add(leaf.toString());
- }
- else { // iterate over children
- for (int i = 0; i < model.getChildCount(node); i++) {
- tests.addAll(getChildrenTests(model, model.getChild(node, i)));
- }
- }
-
- return tests;
- }
-
- }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/ad/001629664fac001410e2e30aa85db9d1 b/.metadata/.plugins/org.eclipse.core.resources/.history/ad/001629664fac001410e2e30aa85db9d1
deleted file mode 100644
index de8a762..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/ad/001629664fac001410e2e30aa85db9d1
+++ /dev/null
@@ -1,896 +0,0 @@
-package ui;
-
-import io.ClientConnection;
-import io.CommAdapter;
-import io.Questionnaire;
-
-import java.awt.BorderLayout;
-import java.awt.Color;
-import java.awt.Component;
-import java.awt.Dimension;
-import java.awt.FlowLayout;
-import java.awt.Font;
-import java.awt.SystemColor;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.awt.event.WindowAdapter;
-import java.io.File;
-import java.io.IOException;
-import java.sql.SQLException;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.LinkedList;
-import java.util.Map;
-import java.util.Set;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
-import javax.swing.Box;
-import javax.swing.BoxLayout;
-import javax.swing.ButtonGroup;
-import javax.swing.DefaultComboBoxModel;
-import javax.swing.GroupLayout;
-import javax.swing.GroupLayout.Alignment;
-import javax.swing.ImageIcon;
-import javax.swing.JButton;
-import javax.swing.JComboBox;
-import javax.swing.JDialog;
-import javax.swing.JFileChooser;
-import javax.swing.JFrame;
-import javax.swing.JLabel;
-import javax.swing.JOptionPane;
-import javax.swing.JPanel;
-import javax.swing.JRadioButton;
-import javax.swing.JScrollPane;
-import javax.swing.JSeparator;
-import javax.swing.JTabbedPane;
-import javax.swing.JTextArea;
-import javax.swing.JTextPane;
-import javax.swing.JTree;
-import javax.swing.LayoutStyle.ComponentPlacement;
-import javax.swing.SwingConstants;
-import javax.swing.UIManager;
-import javax.swing.border.BevelBorder;
-import javax.swing.border.EmptyBorder;
-import javax.swing.border.EtchedBorder;
-import javax.swing.tree.DefaultMutableTreeNode;
-import javax.swing.tree.TreeModel;
-import javax.swing.tree.TreePath;
-
-import org.jpedal.examples.viewer.Commands;
-import org.jpedal.examples.viewer.Viewer;
-
-import utils.ClientProperties;
-
-import com.itextpdf.text.DocumentException;
-
-import database.DBconnectorClient;
-import framework.Diagnostic;
-import framework.MedUnit;
-import framework.Question;
-import framework.reply.ReplySurvey;
-import framework.test.TestName;
-
-/**
- *
- * @author youssef, raisaro
- */
-public class GUI extends javax.swing.JFrame {
-
- private static final Logger LOGGER = Logger.getLogger(GUI.class.getName());
-
- private static final long serialVersionUID = -4582280515597700650L;
-
- // configuration
- private ClientProperties props;
-
- private JTree jTree;
- private DBconnectorClient connectorClientDB;
- private LinkedList<Integer> patients;
-
- /** List of all relevant tests */
- private HashMap<String, TestName> testsByName;
- private Viewer viewer;
- private JDialog dialog;
- private JFrame frame;
- private boolean survey_submitted;
- private int close_trials;
- private Map<Integer, ButtonGroup> buttonGroupMap;
- private Questionnaire quest;
- private Map<Integer, Question> map;
- private Set<Integer> ids;
- private Map<String,String> answers;
- private Map<Integer, String> locations;
-
-
- /**
- * Creates new form GUI
- */
- public GUI(ClientProperties props){
-
- frame = this;
- this.props = props;
- this.connectorClientDB = new DBconnectorClient(props.getDbMsAccess());
- survey_submitted = false;
- close_trials = 0;
-
-
- try {
- initComponents();
-
- viewer = new Viewer(jScrollPane2, null);
- viewer.setupViewer();
-
- // create questionnare
-
-
- System.out.println("#of questions: " + ids.size());
-
-// viewer_q = new Viewer(jScrollPane4, null);
-// viewer_q.setupViewer();
-//
-// // specify file you wish to open (JPedal handles getting the byte data)
-// String filepathReport = "outputPDF/buttons_filled.pdf";
-//
-// // open generated PDF
-// // object must be either String in full filepath, or
-// // File object which can be relative
-// Object[] input = new Object[]{ new File(filepathReport) };
-// viewer_q.executeCommand(Commands.OPENFILE, input);
-
- JButton btnSubmitQuestionnaire = new JButton("Submit Questionnaire");
- btnSubmitQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- btnSubmitQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- submitButtonActionPerformed(arg0);
- }
- });
- JButton btnResetQuestionnaire = new JButton("Save as PDF");
- btnResetQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- savePDFButtonActionPerformed(arg0);
- }
- });
- btnResetQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- JPanel panel_button = new JPanel();
- panel_button.setLayout(new BoxLayout(panel_button, BoxLayout.X_AXIS));
-
- lblNewLabel_3 = new JLabel("");
- lblNewLabel_3.setIcon(new ImageIcon("res/location_icon.png"));
- panel_button.add(lblNewLabel_3);
-
-
-
- comboBox = new JComboBox<String>();
- comboBox.setFont(new Font("Tahoma", Font.BOLD, 12));
- comboBox.setModel(new DefaultComboBoxModel<String>(new String[] {"Select Location"}));
- for(Integer id_loc : locations.keySet()){
- comboBox.addItem(locations.get(id_loc));
- }
-
-
- panel_button.add(comboBox);
-
- rigidArea = Box.createRigidArea(new Dimension(10, 0));
- panel_button.add(rigidArea);
-
- lblNewLabel_1 = new JLabel("");
- lblNewLabel_1.setIcon(new ImageIcon("res/submit.png"));
- panel_button.add(lblNewLabel_1);
- panel_button.add(btnSubmitQuestionnaire);
-
- panel_button.add(Box.createRigidArea(new Dimension(10,0)));
-
- lblNewLabel_2 = new JLabel("");
- lblNewLabel_2.setIcon(new ImageIcon("res/pdf.png"));
- panel_button.add(lblNewLabel_2);
- panel_button.add(btnResetQuestionnaire);
- panel_button.setPreferredSize(new Dimension(211, 35));
- panel_button.validate();
-
- JPanel panel_3 = new JPanel();
- GroupLayout gl_panel = new GroupLayout(panel);
- gl_panel.setHorizontalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(41)
- .addGroup(gl_panel.createParallelGroup(Alignment.TRAILING)
- .addComponent(jScrollPane4, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE)
- .addComponent(panel_1, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE))
- .addGap(32))
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(63)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addGap(103)
- .addComponent(panel_button, GroupLayout.DEFAULT_SIZE, 488, Short.MAX_VALUE)
- .addGap(241))
- );
- gl_panel.setVerticalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(22)
- .addComponent(panel_1, GroupLayout.DEFAULT_SIZE, 192, Short.MAX_VALUE)
- .addGap(18)
- .addComponent(jScrollPane4, GroupLayout.DEFAULT_SIZE, 437, Short.MAX_VALUE)
- .addGap(26)
- .addGroup(gl_panel.createParallelGroup(Alignment.LEADING)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(panel_button, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE)))
- );
- panel_3.setLayout(new BoxLayout(panel_3, BoxLayout.X_AXIS));
-
-
- panel.setLayout(gl_panel);
-
-
-
-
-
-
- /////////////////////////////////////////////////////////
- // display the tests available
-
- // get the tests
- HashMap<String, ArrayList<TestName>> testsRelevantByGroup = connectorClientDB.getRelevantTestsByGroup();
- ArrayList<String> groups = new ArrayList<String>(testsRelevantByGroup.keySet());
-
- // flatten hashmap into linkedlist
-// tests = new LinkedList<>();
- testsByName = new HashMap<String, TestName>();
- for (String group : groups) {
-// tests.addAll(testsRelevantByGroup.get(group));
- for (TestName test : testsRelevantByGroup.get(group)) {
- testsByName.put(test.getName(), test);
- }
- }
-
- // define tree structure of the tests
- DefaultMutableTreeNode root = new DefaultMutableTreeNode("All");
-
- for (String group : groups) {
- DefaultMutableTreeNode child = new DefaultMutableTreeNode(group);
- root.add(child);
-
- for (TestName test : testsRelevantByGroup.get(group)) {
- DefaultMutableTreeNode grandChild = new DefaultMutableTreeNode(test.getName());
- child.add(grandChild);
- }
- }
-
- // define swing object
- jTree = new JTree(root);
-
- for(int i=0;i<jTree.getRowCount();i++){
- jTree.expandRow(i);
- }
-
- jScrollPane3.setViewportView(jTree);
-// jTree.addTreeSelectionListener(new TreeSelectionListener() {
-//
-// @Override
-// public void valueChanged(TreeSelectionEvent e) {
-// tp = jTree.getSelectionPaths();
-// }
-// });
- jScrollPane3.setViewportView(jTree);
-
- /////////////////////////////////////////////////////////
- // display the patients registered
-
- patients = connectorClientDB.getPatients();
- for (Integer patientId : patients) {
- jComboBox1.addItem(patientId.toString());
- }
-
- } catch (SQLException ex) {
- Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex);
- ex.printStackTrace();
-// } catch (IOException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
-// } catch (DocumentException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
- }
-
- }
-
- /**
- * 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() {
-
- jPanel1 = new javax.swing.JPanel();
- jLabel2 = new javax.swing.JLabel();
- jLabel1 = new javax.swing.JLabel();
- jPanel2 = new javax.swing.JPanel();
- jComboBox1 = new javax.swing.JComboBox<String>();
- jButton1 = new javax.swing.JButton();
- jButton1.setFont(new Font("Tahoma", Font.BOLD, 12));
- jLabel3 = new javax.swing.JLabel();
- jLabel4 = new javax.swing.JLabel();
- jScrollPane3 = new javax.swing.JScrollPane();
- jScrollPane2 = new javax.swing.JScrollPane();
- jMenuBar1 = new javax.swing.JMenuBar();
- jMenu1 = new javax.swing.JMenu();
- jMenuItem1 = new javax.swing.JMenuItem();
- jMenu2 = new javax.swing.JMenu();
- dialog = new JDialog();
- tabbedPane = new JTabbedPane(JTabbedPane.TOP);
-
- setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
- addWindowListener(new WindowAdapter() {
- @Override
- public void windowClosing(java.awt.event.WindowEvent windowEvent) {
- if (!survey_submitted && close_trials <= 2){
- JOptionPane.showMessageDialog(frame, "Before closing the application, please fill in and submit the questionnaire.");
- close_trials++;
- tabbedPane.setSelectedIndex(1);
- }else{
- System.exit(0);
- }
- }
- });
- setTitle("HIV Pharmacogenomics\n");
-
- jLabel2.setIcon(new javax.swing.ImageIcon("res/shcs_logo2_small.gif")); // NOI18N
-
- jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
- jLabel1.setText("HIV Pharmacogenomics | Project #693");
-
- javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
- jPanel1.setLayout(jPanel1Layout);
- jPanel1Layout.setHorizontalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap(71, Short.MAX_VALUE)
- .addComponent(jLabel1)
- .addGap(18, 18, 18)
- .addComponent(jLabel2))
- );
- jPanel1Layout.setVerticalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jLabel1)
- .addGap(11, 11, 11))
- .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)
- );
-
- jPanel2.setBackground(new java.awt.Color(255, 255, 255));
- jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
-
- jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<String>(new String[]{"Select Patient"}));
-
- jButton1.setText("Run Test");
- jButton1.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton1ActionPerformed(evt);
- }
- });
-
- JLabel lblNewLabel = new JLabel("");
- lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
- lblNewLabel.setIcon(new javax.swing.ImageIcon("res/gears.png"));
-
-
-
- javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
- jPanel2Layout.setHorizontalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addComponent(jComboBox1, 0, 248, Short.MAX_VALUE)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addGap(75)
- .addGroup(jPanel2Layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jButton1)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 75, GroupLayout.PREFERRED_SIZE))
- .addContainerGap(98, Short.MAX_VALUE))
- );
- jPanel2Layout.setVerticalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addComponent(jComboBox1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED, 223, Short.MAX_VALUE)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jButton1)
- .addGap(19))
- );
- jPanel2.setLayout(jPanel2Layout);
-
- jLabel3.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel3.setText("Select Patient");
-
- jLabel4.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel4.setText("Select Test");
-
- jScrollPane3.setBackground(new java.awt.Color(255, 255, 255));
-
- jMenu1.setText("File");
-
- jMenuItem1.setText("Exit");
- jMenu1.add(jMenuItem1);
-
- jMenuBar1.add(jMenu1);
-
- jMenu2.setText("Edit");
- jMenuBar1.add(jMenu2);
-
- setJMenuBar(jMenuBar1);
-
-
-
- javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
- layout.setHorizontalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(layout.createParallelGroup(Alignment.LEADING, false)
- .addComponent(jLabel3)
- .addComponent(jLabel4)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, 244, Short.MAX_VALUE)
- .addComponent(jScrollPane3))
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 970, Short.MAX_VALUE))
- .addContainerGap())
- );
- layout.setVerticalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel4))
- .addPreferredGap(ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addComponent(jScrollPane3, GroupLayout.PREFERRED_SIZE, 388, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jLabel3)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 785, Short.MAX_VALUE))
- .addContainerGap())
- );
-
-
- jScrollPane2.setAutoscrolls(true);
- jScrollPane3.setAutoscrolls(true);
- tabbedPane.addTab("Report", new ImageIcon("res/report_icon.gif"), jScrollPane2, null);
- tabbedPane.setBackgroundAt(0, new Color(255, 255, 255));
-
- panel = new JPanel();
- tabbedPane.addTab("Survey", new ImageIcon("res/survey_icon.png"), panel, null);
- tabbedPane.setBackgroundAt(1, new Color(255, 255, 255));
- tabbedPane.setEnabledAt(1, true);
-
- panel_1 = new JPanel();
- panel_1.setBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null));
- panel_1.setBackground(UIManager.getColor("Button.background"));
-
- JLabel label = new JLabel("");
- label.setIcon(new ImageIcon("res/shcs_logo2_medium.gif"));
-
- lblDearDoctor = new JLabel("Dear Doctor,");
- lblDearDoctor.setFont(new Font("Tahoma", Font.BOLD, 14));
-
- JScrollPane scrollPane = new JScrollPane();
- scrollPane.setBorder(null);
- GroupLayout gl_panel_1 = new GroupLayout(panel_1);
- gl_panel_1.setHorizontalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(25)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 666, Short.MAX_VALUE)
- .addComponent(lblDearDoctor))
- .addContainerGap())
- );
- gl_panel_1.setVerticalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(22)
- .addComponent(lblDearDoctor)
- .addGap(18)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 120, Short.MAX_VALUE)
- .addContainerGap())
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(36)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 96, GroupLayout.PREFERRED_SIZE)
- .addContainerGap(56, Short.MAX_VALUE))
- );
-
- JTextPane txtpnTodayYouAre = new JTextPane();
- txtpnTodayYouAre.setBorder(null);
- txtpnTodayYouAre.setText("Today you are receiving a pharmacogenetics report based on the genome of your patient. Because of its highly sensitive nature, the genetic information you are provided with is processed in a privacy-preserving way. In particular, to protect patients’ genomic privacy, their genetic and clinical data is stored encrypted at the SHCS data center, and securely analyzed through a sophisticated algorithm designed and developed at EPFL [1, 2]. The actual clinical and genetic information is never revealed. Only the authorized users, such as you, can get some processed information, for example, the final result of a pharmacogenetics risk test.\nThis mechanism protects the data against insiders or hackers trying to illegally access patients’ medical information, while still allowing authorized users to obtain the information they need.");
- txtpnTodayYouAre.setFont(new Font("Tahoma", Font.PLAIN, 13));
- txtpnTodayYouAre.setEditable(false);
- txtpnTodayYouAre.setBackground(SystemColor.menu);
- scrollPane.setViewportView(txtpnTodayYouAre);
- panel_1.setLayout(gl_panel_1);
- jScrollPane4 = new javax.swing.JScrollPane();
- getContentPane().setLayout(layout);
-
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
- ReplySurvey replySurvey = commHandlerAdapter.callServiceSurvey();
-
- map = replySurvey.getQuestions();
- ids = map.keySet();
- locations = replySurvey.getLocations();
-
- panel_2 = new JPanel();
- panel_2.setBackground(Color.WHITE);
- panel_2.setBorder(new BevelBorder(BevelBorder.LOWERED, null, null, null, null));
- jScrollPane4.setViewportView(panel_2);
- panel_2.setLayout(new BoxLayout(panel_2, BoxLayout.Y_AXIS));
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
-
-
- for(Integer id : ids){
- ButtonGroup group = new ButtonGroup();
- JRadioButton r1 = new JRadioButton("1"); r1.setActionCommand("1"); r1.setBackground(Color.WHITE);
- JRadioButton r2 = new JRadioButton("2"); r2.setActionCommand("2"); r2.setBackground(Color.WHITE);
- JRadioButton r3 = new JRadioButton("3"); r3.setActionCommand("3"); r3.setBackground(Color.WHITE);
- JRadioButton r4 = new JRadioButton("4"); r4.setActionCommand("4"); r4.setBackground(Color.WHITE);
- JRadioButton r5 = new JRadioButton("5"); r5.setActionCommand("5"); r5.setBackground(Color.WHITE);
- group.add(r1);
- group.add(r2);
- group.add(r3);
- group.add(r4);
- group.add(r5);
- JPanel radio_panel = new JPanel();
- radio_panel.setLayout((new BoxLayout(radio_panel, BoxLayout.X_AXIS)));
- radio_panel.setBackground(Color.WHITE);
- radio_panel.setAlignmentX(Component.CENTER_ALIGNMENT);
- radio_panel.add(r1);
- radio_panel.add(r2);
- radio_panel.add(r3);
- radio_panel.add(r4);
- radio_panel.add(r5);
- radio_panel.doLayout();
- radio_panel.setPreferredSize(radio_panel.getPreferredSize());
- JTextArea question = new JTextArea(id + ") " + map.get(id).getQuestion());
- question.setLineWrap(true);
- question.setWrapStyleWord(true);
- question.setAlignmentX(Component.CENTER_ALIGNMENT);
- question.setFont(new Font("Tahoma", Font.PLAIN, 13));
-
- JPanel row_panel = new JPanel();
- row_panel.setLayout(new BoxLayout(row_panel, BoxLayout.X_AXIS));
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.add(question);
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.add(radio_panel);
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
-
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- panel_2.add(row_panel);
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
-// panel_2.add(radio_panel);
- panel_2.add(new JSeparator());
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
-// panel_2.setPreferredSize(panel_2.getPreferredSize());
- buttonGroupMap.put(id, group);
-
- }
-
-
-
- this.setSize(new Dimension(1200, 865));
-// pack();
- }// </editor-fold>//GEN-END:initComponents
-
-
- private void submitButtonActionPerformed(java.awt.event.ActionEvent evt){
-
- try{
- answers = new HashMap<String, String>();
- StringBuilder sb = new StringBuilder();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- sb.append(q).append(",");
- sb.append(bg.getSelection().getActionCommand()).append(";");
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- String answer = sb.toString();
- Integer id_loc = null;
- for(Integer i: locations.keySet()){
- if(locations.get(i).equals(comboBox.getSelectedItem().toString()))
- id_loc = i;
- }
-
- String id_p;
- if(jComboBox1.getSelectedItem().toString().equals("Select Patient"))
- id_p = "0";
- else
- id_p = jComboBox1.getSelectedItem().toString();
-
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
-
- String reply = commHandlerAdapter.callServiceSurveyAnswer(answer, id_loc.toString(), id_p);
-
- if(reply.equals("1")){
- survey_submitted = true;
-
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Congrats! Your aswers have been sent to the SHCS datacenter.",
- "Information Message",
- JOptionPane.INFORMATION_MESSAGE);
- }
- else{
- throw new IOException();
- }
-
-
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "The SHCS datacenter does not respond. Please save the survey and send it to jean.raisaro@epfl.ch.",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
- private void savePDFButtonActionPerformed(java.awt.event.ActionEvent evt){
- try {
-
- answers = new HashMap<String, String>();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- JFileChooser chooser = new JFileChooser();
- // Note: source for ExampleFileFilter can be found in FileChooserDemo,
- // under the demo/jfc directory in the JDK.
-
- int returnVal = chooser.showSaveDialog(this);
- System.out.println(returnVal);
- if(returnVal == JFileChooser.APPROVE_OPTION) {
- System.out.println("You chose to open this file: " +
- chooser.getSelectedFile().getPath());
- quest = new Questionnaire(chooser.getSelectedFile().getPath() + ".pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }else{
- quest = new Questionnaire("outputPDF/survey.pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }
-
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (DocumentException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (NullPointerException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
-
- private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
-
- JPanel contentPanel = new JPanel();
-
- dialog.setBounds(100, 100, 410, 80);
- dialog.getContentPane().setLayout(new BorderLayout());
- contentPanel.setLayout(new FlowLayout());
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- dialog.getContentPane().add(contentPanel, BorderLayout.CENTER);
- {
- JLabel label = new JLabel("Please wait...The overall computation can take few seconds");
- label.setHorizontalAlignment(SwingConstants.CENTER);
- label.setFont(new Font("Tahoma", Font.PLAIN, 12));
- contentPanel.add(label);
- }
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
- dialog.getContentPane().add(buttonPane, BorderLayout.SOUTH);
- }
- dialog.setLocationRelativeTo(this);
- dialog.setVisible(true);
-
- GUIWorker gw = new GUIWorker(this, props);
- Thread t = new Thread(gw);
- t.start();
-
- }
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JButton jButton1;
- private javax.swing.JComboBox<String> jComboBox1;
- private javax.swing.JLabel jLabel1;
- private javax.swing.JLabel jLabel2;
- private javax.swing.JLabel jLabel3;
- private javax.swing.JLabel jLabel4;
- private javax.swing.JMenu jMenu1;
- private javax.swing.JMenu jMenu2;
- private javax.swing.JMenuBar jMenuBar1;
- private javax.swing.JMenuItem jMenuItem1;
- private javax.swing.JPanel jPanel1;
- private javax.swing.JPanel jPanel2;
- private javax.swing.JScrollPane jScrollPane3;
- private javax.swing.JTabbedPane tabbedPane;
- private javax.swing.JScrollPane jScrollPane2;
- private javax.swing.JScrollPane jScrollPane4;
- private JPanel panel;
- private JPanel panel_1;
- private JPanel panel_2;
- private JLabel lblDearDoctor;
- private JLabel lblNewLabel_1;
- private JLabel lblNewLabel_2;
- private JLabel lblNewLabel_3;
- private JComboBox<String> comboBox;
- private Component rigidArea;
-
- // End of variables declaration//GEN-END:variables
-
-
- class GUIWorker implements Runnable{
-
- private JFrame mainFrame;
- private ClientProperties props;
- private MedUnit mu;
-
- public GUIWorker(GUI gui, ClientProperties props) {
- mainFrame = gui;
-
- this.props = props;
- this.mu = new MedUnit(props, 0);
- }
-
- @Override
- public void run() {
-
- try{
- int patientId = Integer.parseInt((String) jComboBox1.getSelectedItem());
-
- // convert selected tests to test identifiers
- ArrayList<TestName> selectedTests = new ArrayList<TestName>();
- for (String currentName : getSelectedTests()) {
- TestName currentTest = testsByName.get(currentName);
-
- if (currentTest == null) {
- throw new IllegalStateException("Trying to run unknown test: " + currentTest);
- }
-
- selectedTests.add(currentTest);
- }
-
- // run tests
- Diagnostic diagnostic = mu.runTests(patientId, selectedTests);
-
- // warn for tests with missing material
- warnFailedTests(diagnostic, selectedTests);
-
- // create report
- mu.createReport(patientId, selectedTests, diagnostic);
-
- dialog.setVisible(false);
-
- // specify file you wish to open (JPedal handles getting the byte data)
- String filepathReport = props.getPathPDF() + patientId + ".pdf";
-
- // open generated PDF
- // object must be either String in full filepath, or
- // File object which can be relative
- Object[] input = new Object[]{ new File(filepathReport) };
- viewer.executeCommand(Commands.OPENFILE, input);
-
- // display CAD result as bar plot
- if (diagnostic.hasCAD()) {
- System.out.println("CAD = " + diagnostic.getResultCAD());
- BarPlotFrame frame = new BarPlotFrame(diagnostic.getResultCAD(), patientId);
- frame.setVisible(true);
- frame.setAlwaysOnTop(true);
- }
-
-
- } catch (SQLException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Please select a patient.");
- }
-
- }
-
- private void warnFailedTests(Diagnostic diagnostic, ArrayList<TestName> selectedTests) {
- ArrayList<Integer> failedTests = diagnostic.getInvalidTests();
-
- if (!failedTests.isEmpty()) {
- String msg = "Could not complete tests: ";
- boolean first = true;
- for (TestName testName : selectedTests) {
- if (failedTests.contains(testName.getId())) {
- if (first) {
- first = false;
- } else {
- msg += ", ";
- }
- msg += testName.getName();
- }
- }
- displayError(msg);
- }
-
- }
-
- private void displayError(String msg) {
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- mainFrame,
- msg,
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
-
- private ArrayList<String> getSelectedTests() {
- ArrayList<String> tests = new ArrayList<String>();
-
- for (TreePath treePath : jTree.getSelectionPaths()) {
- tests.addAll(getChildrenTests(jTree.getModel(), treePath.getLastPathComponent()));
- }
-
- return tests;
- }
-
- private ArrayList<String> getChildrenTests(TreeModel model, Object node) {
- ArrayList<String> tests = new ArrayList<String>();
-
- if (model.isLeaf(node)) { // leaf
- DefaultMutableTreeNode leaf = (DefaultMutableTreeNode) node;
- tests.add(leaf.toString());
- }
- else { // iterate over children
- for (int i = 0; i < model.getChildCount(node); i++) {
- tests.addAll(getChildrenTests(model, model.getChild(node, i)));
- }
- }
-
- return tests;
- }
-
- }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/ae/603954714aac001410e2e30aa85db9d1 b/.metadata/.plugins/org.eclipse.core.resources/.history/ae/603954714aac001410e2e30aa85db9d1
deleted file mode 100644
index 594d8c6..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/ae/603954714aac001410e2e30aa85db9d1
+++ /dev/null
@@ -1,884 +0,0 @@
-package ui;
-
-import io.ClientConnection;
-import io.CommAdapter;
-import io.Questionnaire;
-
-import java.awt.BorderLayout;
-import java.awt.Color;
-import java.awt.Component;
-import java.awt.Dimension;
-import java.awt.FlowLayout;
-import java.awt.Font;
-import java.awt.SystemColor;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.awt.event.WindowAdapter;
-import java.io.File;
-import java.io.IOException;
-import java.sql.SQLException;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.LinkedList;
-import java.util.Map;
-import java.util.Set;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
-import javax.swing.Box;
-import javax.swing.BoxLayout;
-import javax.swing.ButtonGroup;
-import javax.swing.DefaultComboBoxModel;
-import javax.swing.GroupLayout;
-import javax.swing.GroupLayout.Alignment;
-import javax.swing.ImageIcon;
-import javax.swing.JButton;
-import javax.swing.JComboBox;
-import javax.swing.JDialog;
-import javax.swing.JFileChooser;
-import javax.swing.JFrame;
-import javax.swing.JLabel;
-import javax.swing.JOptionPane;
-import javax.swing.JPanel;
-import javax.swing.JRadioButton;
-import javax.swing.JScrollPane;
-import javax.swing.JSeparator;
-import javax.swing.JTabbedPane;
-import javax.swing.JTextArea;
-import javax.swing.JTextPane;
-import javax.swing.JTree;
-import javax.swing.LayoutStyle.ComponentPlacement;
-import javax.swing.SwingConstants;
-import javax.swing.UIManager;
-import javax.swing.border.BevelBorder;
-import javax.swing.border.EmptyBorder;
-import javax.swing.border.EtchedBorder;
-import javax.swing.tree.DefaultMutableTreeNode;
-import javax.swing.tree.TreeModel;
-import javax.swing.tree.TreePath;
-
-import org.jpedal.examples.viewer.Commands;
-import org.jpedal.examples.viewer.Viewer;
-
-import utils.ClientProperties;
-
-import com.itextpdf.text.DocumentException;
-
-import database.DBconnectorClient;
-import framework.Diagnostic;
-import framework.MedUnit;
-import framework.Question;
-import framework.reply.ReplySurvey;
-import framework.test.TestName;
-
-/**
- *
- * @author youssef, raisaro
- */
-public class GUI extends javax.swing.JFrame {
-
- private static final Logger LOGGER = Logger.getLogger(GUI.class.getName());
-
- private static final long serialVersionUID = -4582280515597700650L;
-
- // configuration
- private ClientProperties props;
-
- private JTree jTree;
- private DBconnectorClient connectorClientDB;
- private LinkedList<Integer> patients;
-
- /** List of all relevant tests */
- private HashMap<String, TestName> testsByName;
- private Viewer viewer;
- private JDialog dialog;
- private JFrame frame;
- private boolean survey_submitted;
- private int close_trials;
- private Map<Integer, ButtonGroup> buttonGroupMap;
- private Questionnaire quest;
- private Map<Integer, Question> map;
- private Set<Integer> ids;
- private Map<String,String> answers;
- private Map<Integer, String> locations;
-
-
- /**
- * Creates new form GUI
- */
- public GUI(ClientProperties props){
-
- frame = this;
- this.props = props;
- this.connectorClientDB = new DBconnectorClient(props.getDbMsAccess());
- survey_submitted = false;
- close_trials = 0;
-
-
- try {
- initComponents();
-
- viewer = new Viewer(jScrollPane2, null);
- viewer.setupViewer();
-
- // create questionnare
-
-
- System.out.println("#of questions: " + ids.size());
-
-// viewer_q = new Viewer(jScrollPane4, null);
-// viewer_q.setupViewer();
-//
-// // specify file you wish to open (JPedal handles getting the byte data)
-// String filepathReport = "outputPDF/buttons_filled.pdf";
-//
-// // open generated PDF
-// // object must be either String in full filepath, or
-// // File object which can be relative
-// Object[] input = new Object[]{ new File(filepathReport) };
-// viewer_q.executeCommand(Commands.OPENFILE, input);
-
- JButton btnSubmitQuestionnaire = new JButton("Submit Questionnaire");
- btnSubmitQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- btnSubmitQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- submitButtonActionPerformed(arg0);
- }
- });
- JButton btnResetQuestionnaire = new JButton("Save as PDF");
- btnResetQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- savePDFButtonActionPerformed(arg0);
- }
- });
- btnResetQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- JPanel panel_button = new JPanel();
- panel_button.setLayout(new BoxLayout(panel_button, BoxLayout.X_AXIS));
-
- lblNewLabel_3 = new JLabel("");
- lblNewLabel_3.setIcon(new ImageIcon("res/location_icon.png"));
- panel_button.add(lblNewLabel_3);
-
-
-
- comboBox = new JComboBox<String>();
- comboBox.setFont(new Font("Tahoma", Font.BOLD, 12));
- comboBox.setModel(new DefaultComboBoxModel<String>(new String[] {"Select Location"}));
- for(Integer id_loc : locations.keySet()){
- comboBox.addItem(locations.get(id_loc));
- }
-
-
- panel_button.add(comboBox);
-
- rigidArea = Box.createRigidArea(new Dimension(10, 0));
- panel_button.add(rigidArea);
-
- lblNewLabel_1 = new JLabel("");
- lblNewLabel_1.setIcon(new ImageIcon("res/submit.png"));
- panel_button.add(lblNewLabel_1);
- panel_button.add(btnSubmitQuestionnaire);
-
- panel_button.add(Box.createRigidArea(new Dimension(10,0)));
-
- lblNewLabel_2 = new JLabel("");
- lblNewLabel_2.setIcon(new ImageIcon("res/pdf.png"));
- panel_button.add(lblNewLabel_2);
- panel_button.add(btnResetQuestionnaire);
- panel_button.setPreferredSize(new Dimension(211, 35));
- panel_button.validate();
-
- JPanel panel_3 = new JPanel();
- GroupLayout gl_panel = new GroupLayout(panel);
- gl_panel.setHorizontalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(41)
- .addGroup(gl_panel.createParallelGroup(Alignment.TRAILING)
- .addComponent(jScrollPane4, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE)
- .addComponent(panel_1, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE))
- .addGap(32))
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(63)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addGap(103)
- .addComponent(panel_button, GroupLayout.DEFAULT_SIZE, 488, Short.MAX_VALUE)
- .addGap(241))
- );
- gl_panel.setVerticalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(22)
- .addComponent(panel_1, GroupLayout.DEFAULT_SIZE, 192, Short.MAX_VALUE)
- .addGap(18)
- .addComponent(jScrollPane4, GroupLayout.DEFAULT_SIZE, 437, Short.MAX_VALUE)
- .addGap(26)
- .addGroup(gl_panel.createParallelGroup(Alignment.LEADING)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(panel_button, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE)))
- );
- panel_3.setLayout(new BoxLayout(panel_3, BoxLayout.X_AXIS));
-
-
- panel.setLayout(gl_panel);
-
-
-
-
-
-
- /////////////////////////////////////////////////////////
- // display the tests available
-
- // get the tests
- HashMap<String, ArrayList<TestName>> testsRelevantByGroup = connectorClientDB.getRelevantTestsByGroup();
- ArrayList<String> groups = new ArrayList<String>(testsRelevantByGroup.keySet());
-
- // flatten hashmap into linkedlist
-// tests = new LinkedList<>();
- testsByName = new HashMap<String, TestName>();
- for (String group : groups) {
-// tests.addAll(testsRelevantByGroup.get(group));
- for (TestName test : testsRelevantByGroup.get(group)) {
- testsByName.put(test.getName(), test);
- }
- }
-
- // define tree structure of the tests
- DefaultMutableTreeNode root = new DefaultMutableTreeNode("All");
-
- for (String group : groups) {
- DefaultMutableTreeNode child = new DefaultMutableTreeNode(group);
- root.add(child);
-
- for (TestName test : testsRelevantByGroup.get(group)) {
- DefaultMutableTreeNode grandChild = new DefaultMutableTreeNode(test.getName());
- child.add(grandChild);
- }
- }
-
- // define swing object
- jTree = new JTree(root);
-
- for(int i=0;i<jTree.getRowCount();i++){
- jTree.expandRow(i);
- }
-
- jScrollPane3.setViewportView(jTree);
-// jTree.addTreeSelectionListener(new TreeSelectionListener() {
-//
-// @Override
-// public void valueChanged(TreeSelectionEvent e) {
-// tp = jTree.getSelectionPaths();
-// }
-// });
- jScrollPane3.setViewportView(jTree);
-
- /////////////////////////////////////////////////////////
- // display the patients registered
-
- patients = connectorClientDB.getPatients();
- for (Integer patientId : patients) {
- jComboBox1.addItem(patientId.toString());
- }
-
- } catch (SQLException ex) {
- Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex);
- ex.printStackTrace();
-// } catch (IOException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
-// } catch (DocumentException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
- }
-
- }
-
- /**
- * 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() {
-
- jPanel1 = new javax.swing.JPanel();
- jLabel2 = new javax.swing.JLabel();
- jLabel1 = new javax.swing.JLabel();
- jPanel2 = new javax.swing.JPanel();
- jComboBox1 = new javax.swing.JComboBox<String>();
- jButton1 = new javax.swing.JButton();
- jButton1.setFont(new Font("Tahoma", Font.BOLD, 12));
- jLabel3 = new javax.swing.JLabel();
- jLabel4 = new javax.swing.JLabel();
- jScrollPane3 = new javax.swing.JScrollPane();
- jScrollPane2 = new javax.swing.JScrollPane();
- jMenuBar1 = new javax.swing.JMenuBar();
- jMenu1 = new javax.swing.JMenu();
- jMenuItem1 = new javax.swing.JMenuItem();
- jMenu2 = new javax.swing.JMenu();
- dialog = new JDialog();
- tabbedPane = new JTabbedPane(JTabbedPane.TOP);
-
- setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
- addWindowListener(new WindowAdapter() {
- @Override
- public void windowClosing(java.awt.event.WindowEvent windowEvent) {
- if (!survey_submitted && close_trials <= 2){
- JOptionPane.showMessageDialog(frame, "Before closing the application, please fill in and submit the questionnaire.");
- close_trials++;
- tabbedPane.setSelectedIndex(1);
- }else{
- System.exit(0);
- }
- }
- });
- setTitle("HIV Pharmacogenomics\n");
-
- jLabel2.setIcon(new javax.swing.ImageIcon("res/shcs_logo2_small.gif")); // NOI18N
-
- jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
- jLabel1.setText("HIV Pharmacogenomics | Project #693");
-
- javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
- jPanel1.setLayout(jPanel1Layout);
- jPanel1Layout.setHorizontalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap(71, Short.MAX_VALUE)
- .addComponent(jLabel1)
- .addGap(18, 18, 18)
- .addComponent(jLabel2))
- );
- jPanel1Layout.setVerticalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jLabel1)
- .addGap(11, 11, 11))
- .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)
- );
-
- jPanel2.setBackground(new java.awt.Color(255, 255, 255));
- jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
-
- jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<String>(new String[]{"Select Patient"}));
-
- jButton1.setText("Run Test");
- jButton1.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton1ActionPerformed(evt);
- }
- });
-
- JLabel lblNewLabel = new JLabel("");
- lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
- lblNewLabel.setIcon(new javax.swing.ImageIcon("res/gears.png"));
-
-
-
- javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
- jPanel2Layout.setHorizontalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addComponent(jComboBox1, 0, 248, Short.MAX_VALUE)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addGap(75)
- .addGroup(jPanel2Layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jButton1)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 75, GroupLayout.PREFERRED_SIZE))
- .addContainerGap(98, Short.MAX_VALUE))
- );
- jPanel2Layout.setVerticalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addComponent(jComboBox1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED, 223, Short.MAX_VALUE)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jButton1)
- .addGap(19))
- );
- jPanel2.setLayout(jPanel2Layout);
-
- jLabel3.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel3.setText("Select Patient");
-
- jLabel4.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel4.setText("Select Test");
-
- jScrollPane3.setBackground(new java.awt.Color(255, 255, 255));
-
- jMenu1.setText("File");
-
- jMenuItem1.setText("Exit");
- jMenu1.add(jMenuItem1);
-
- jMenuBar1.add(jMenu1);
-
- jMenu2.setText("Edit");
- jMenuBar1.add(jMenu2);
-
- setJMenuBar(jMenuBar1);
-
-
-
- javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
- layout.setHorizontalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(layout.createParallelGroup(Alignment.LEADING, false)
- .addComponent(jLabel3)
- .addComponent(jLabel4)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, 244, Short.MAX_VALUE)
- .addComponent(jScrollPane3))
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 970, Short.MAX_VALUE))
- .addContainerGap())
- );
- layout.setVerticalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel4))
- .addPreferredGap(ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addComponent(jScrollPane3, GroupLayout.PREFERRED_SIZE, 388, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jLabel3)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 785, Short.MAX_VALUE))
- .addContainerGap())
- );
-
-
- jScrollPane2.setAutoscrolls(true);
- jScrollPane3.setAutoscrolls(true);
- tabbedPane.addTab("Report", new ImageIcon("res/report_icon.gif"), jScrollPane2, null);
- tabbedPane.setBackgroundAt(0, new Color(255, 255, 255));
-
- panel = new JPanel();
- tabbedPane.addTab("Survey", new ImageIcon("res/survey_icon.png"), panel, null);
- tabbedPane.setBackgroundAt(1, new Color(255, 255, 255));
- tabbedPane.setEnabledAt(1, true);
-
- panel_1 = new JPanel();
- panel_1.setBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null));
- panel_1.setBackground(UIManager.getColor("Button.background"));
-
- JLabel label = new JLabel("");
- label.setIcon(new ImageIcon("res/shcs_logo2_medium.gif"));
-
- lblDearDoctor = new JLabel("Dear Doctor,");
- lblDearDoctor.setFont(new Font("Tahoma", Font.BOLD, 14));
-
- JScrollPane scrollPane = new JScrollPane();
- scrollPane.setBorder(null);
- GroupLayout gl_panel_1 = new GroupLayout(panel_1);
- gl_panel_1.setHorizontalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(25)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 666, Short.MAX_VALUE)
- .addComponent(lblDearDoctor))
- .addContainerGap())
- );
- gl_panel_1.setVerticalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(22)
- .addComponent(lblDearDoctor)
- .addGap(18)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 120, Short.MAX_VALUE)
- .addContainerGap())
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(36)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 96, GroupLayout.PREFERRED_SIZE)
- .addContainerGap(56, Short.MAX_VALUE))
- );
-
- JTextPane txtpnTodayYouAre = new JTextPane();
- txtpnTodayYouAre.setBorder(null);
- txtpnTodayYouAre.setText("Today you are receiving a pharmacogenetic report based on the genetic information of your patient. Because the human genome contains extremely private and sensitive information of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier, it must be managed with care.\r\nToday you are receiving a pharmacogenetic report based on the genetic information of your patient. Because the human genome contains extremely private and sensitive information of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier, it must be managed with care.\r\nToday you are receiving a pharmacogenetic report based on the genetic information of your patient. Because the human genome contains extremely private and sensitive information of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier, it must be managed with care.");
- txtpnTodayYouAre.setFont(new Font("Tahoma", Font.PLAIN, 13));
- txtpnTodayYouAre.setEditable(false);
- txtpnTodayYouAre.setBackground(SystemColor.menu);
- scrollPane.setViewportView(txtpnTodayYouAre);
- panel_1.setLayout(gl_panel_1);
- jScrollPane4 = new javax.swing.JScrollPane();
- getContentPane().setLayout(layout);
-
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
- ReplySurvey replySurvey = commHandlerAdapter.callServiceSurvey();
-
- map = replySurvey.getQuestions();
- ids = map.keySet();
- locations = replySurvey.getLocations();
-
- panel_2 = new JPanel();
- panel_2.setBackground(Color.WHITE);
- panel_2.setBorder(new BevelBorder(BevelBorder.LOWERED, null, null, null, null));
- jScrollPane4.setViewportView(panel_2);
- panel_2.setLayout(new BoxLayout(panel_2, BoxLayout.Y_AXIS));
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
-
-
- for(Integer id : ids){
- ButtonGroup group = new ButtonGroup();
- JRadioButton r1 = new JRadioButton("1"); r1.setActionCommand("1"); r1.setBackground(Color.WHITE);
- JRadioButton r2 = new JRadioButton("2"); r2.setActionCommand("2"); r2.setBackground(Color.WHITE);
- JRadioButton r3 = new JRadioButton("3"); r3.setActionCommand("3"); r3.setBackground(Color.WHITE);
- JRadioButton r4 = new JRadioButton("4"); r4.setActionCommand("4"); r4.setBackground(Color.WHITE);
- JRadioButton r5 = new JRadioButton("5"); r5.setActionCommand("5"); r5.setBackground(Color.WHITE);
- group.add(r1);
- group.add(r2);
- group.add(r3);
- group.add(r4);
- group.add(r5);
- JPanel radio_panel = new JPanel();
- radio_panel.setLayout((new BoxLayout(radio_panel, BoxLayout.X_AXIS)));
- radio_panel.setBackground(Color.WHITE);
- radio_panel.setAlignmentX(Component.CENTER_ALIGNMENT);
- radio_panel.add(r1);
- radio_panel.add(r2);
- radio_panel.add(r3);
- radio_panel.add(r4);
- radio_panel.add(r5);
- radio_panel.doLayout();
- radio_panel.setPreferredSize(radio_panel.getPreferredSize());
- JTextArea question = new JTextArea(id + ") " + map.get(id).getQuestion());
- question.setAlignmentX(Component.CENTER_ALIGNMENT);
- question.setFont(new Font("Tahoma", Font.PLAIN, 13));
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- panel_2.add(question);
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- panel_2.add(radio_panel);
- panel_2.add(new JSeparator());
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- buttonGroupMap.put(id, group);
-
- }
-
-
-
- this.setSize(new Dimension(1200, 865));
-// pack();
- }// </editor-fold>//GEN-END:initComponents
-
-
- private void submitButtonActionPerformed(java.awt.event.ActionEvent evt){
-
- try{
- answers = new HashMap<String, String>();
- StringBuilder sb = new StringBuilder();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- sb.append(q).append(",");
- sb.append(bg.getSelection().getActionCommand()).append(";");
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- String answer = sb.toString();
- Integer id_loc = null;
- for(Integer i: locations.keySet()){
- if(locations.get(i).equals(comboBox.getSelectedItem().toString()))
- id_loc = i;
- }
-
- String id_p;
- if(jComboBox1.getSelectedItem().toString().equals("Select Patient"))
- id_p = "0";
- else
- id_p = jComboBox1.getSelectedItem().toString();
-
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
-
- String reply = commHandlerAdapter.callServiceSurveyAnswer(answer, id_loc.toString(), id_p);
-
- if(reply.equals("1")){
- survey_submitted = true;
-
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Congrats! Your aswers have been sent to the SHCS datacenter.",
- "Information Message",
- JOptionPane.INFORMATION_MESSAGE);
- }
- else{
- throw new IOException();
- }
-
-
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "The SHCS datacenter does not respond. Please save the survey and send it to jean.raisaro@epfl.ch.",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
- private void savePDFButtonActionPerformed(java.awt.event.ActionEvent evt){
- try {
-
- answers = new HashMap<String, String>();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- JFileChooser chooser = new JFileChooser();
- // Note: source for ExampleFileFilter can be found in FileChooserDemo,
- // under the demo/jfc directory in the JDK.
-
- int returnVal = chooser.showSaveDialog(this);
- System.out.println(returnVal);
- if(returnVal == JFileChooser.APPROVE_OPTION) {
- System.out.println("You chose to open this file: " +
- chooser.getSelectedFile().getPath());
- quest = new Questionnaire(chooser.getSelectedFile().getPath() + ".pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }else{
- quest = new Questionnaire("outputPDF/survey.pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }
-
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (DocumentException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (NullPointerException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
-
- private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
-
- JPanel contentPanel = new JPanel();
-
- dialog.setBounds(100, 100, 410, 80);
- dialog.getContentPane().setLayout(new BorderLayout());
- contentPanel.setLayout(new FlowLayout());
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- dialog.getContentPane().add(contentPanel, BorderLayout.CENTER);
- {
- JLabel label = new JLabel("Please wait...The overall computation can take few seconds");
- label.setHorizontalAlignment(SwingConstants.CENTER);
- label.setFont(new Font("Tahoma", Font.PLAIN, 12));
- contentPanel.add(label);
- }
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
- dialog.getContentPane().add(buttonPane, BorderLayout.SOUTH);
- }
- dialog.setLocationRelativeTo(this);
- dialog.setVisible(true);
-
- GUIWorker gw = new GUIWorker(this, props);
- Thread t = new Thread(gw);
- t.start();
-
- }
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JButton jButton1;
- private javax.swing.JComboBox<String> jComboBox1;
- private javax.swing.JLabel jLabel1;
- private javax.swing.JLabel jLabel2;
- private javax.swing.JLabel jLabel3;
- private javax.swing.JLabel jLabel4;
- private javax.swing.JMenu jMenu1;
- private javax.swing.JMenu jMenu2;
- private javax.swing.JMenuBar jMenuBar1;
- private javax.swing.JMenuItem jMenuItem1;
- private javax.swing.JPanel jPanel1;
- private javax.swing.JPanel jPanel2;
- private javax.swing.JScrollPane jScrollPane3;
- private javax.swing.JTabbedPane tabbedPane;
- private javax.swing.JScrollPane jScrollPane2;
- private javax.swing.JScrollPane jScrollPane4;
- private JPanel panel;
- private JPanel panel_1;
- private JPanel panel_2;
- private JLabel lblDearDoctor;
- private JLabel lblNewLabel_1;
- private JLabel lblNewLabel_2;
- private JLabel lblNewLabel_3;
- private JComboBox<String> comboBox;
- private Component rigidArea;
-
- // End of variables declaration//GEN-END:variables
-
-
- class GUIWorker implements Runnable{
-
- private JFrame mainFrame;
- private ClientProperties props;
- private MedUnit mu;
-
- public GUIWorker(GUI gui, ClientProperties props) {
- mainFrame = gui;
-
- this.props = props;
- this.mu = new MedUnit(props, 0);
- }
-
- @Override
- public void run() {
-
- try{
- int patientId = Integer.parseInt((String) jComboBox1.getSelectedItem());
-
- // convert selected tests to test identifiers
- ArrayList<TestName> selectedTests = new ArrayList<TestName>();
- for (String currentName : getSelectedTests()) {
- TestName currentTest = testsByName.get(currentName);
-
- if (currentTest == null) {
- throw new IllegalStateException("Trying to run unknown test: " + currentTest);
- }
-
- selectedTests.add(currentTest);
- }
-
- // run tests
- Diagnostic diagnostic = mu.runTests(patientId, selectedTests);
-
- // warn for tests with missing material
- warnFailedTests(diagnostic, selectedTests);
-
- // create report
- mu.createReport(patientId, selectedTests, diagnostic);
-
- dialog.setVisible(false);
-
- // specify file you wish to open (JPedal handles getting the byte data)
- String filepathReport = props.getPathPDF() + patientId + ".pdf";
-
- // open generated PDF
- // object must be either String in full filepath, or
- // File object which can be relative
- Object[] input = new Object[]{ new File(filepathReport) };
- viewer.executeCommand(Commands.OPENFILE, input);
-
- // display CAD result as bar plot
- if (diagnostic.hasCAD()) {
- System.out.println("CAD = " + diagnostic.getResultCAD());
- BarPlotFrame frame = new BarPlotFrame(diagnostic.getResultCAD(), patientId);
- frame.setVisible(true);
- frame.setAlwaysOnTop(true);
- }
-
-
- } catch (SQLException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Please select a patient.");
- }
-
- }
-
- private void warnFailedTests(Diagnostic diagnostic, ArrayList<TestName> selectedTests) {
- ArrayList<Integer> failedTests = diagnostic.getInvalidTests();
-
- if (!failedTests.isEmpty()) {
- String msg = "Could not complete tests: ";
- boolean first = true;
- for (TestName testName : selectedTests) {
- if (failedTests.contains(testName.getId())) {
- if (first) {
- first = false;
- } else {
- msg += ", ";
- }
- msg += testName.getName();
- }
- }
- displayError(msg);
- }
-
- }
-
- private void displayError(String msg) {
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- mainFrame,
- msg,
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
-
- private ArrayList<String> getSelectedTests() {
- ArrayList<String> tests = new ArrayList<String>();
-
- for (TreePath treePath : jTree.getSelectionPaths()) {
- tests.addAll(getChildrenTests(jTree.getModel(), treePath.getLastPathComponent()));
- }
-
- return tests;
- }
-
- private ArrayList<String> getChildrenTests(TreeModel model, Object node) {
- ArrayList<String> tests = new ArrayList<String>();
-
- if (model.isLeaf(node)) { // leaf
- DefaultMutableTreeNode leaf = (DefaultMutableTreeNode) node;
- tests.add(leaf.toString());
- }
- else { // iterate over children
- for (int i = 0; i < model.getChildCount(node); i++) {
- tests.addAll(getChildrenTests(model, model.getChild(node, i)));
- }
- }
-
- return tests;
- }
-
- }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/b/808b0ddd49ac001410e2e30aa85db9d1 b/.metadata/.plugins/org.eclipse.core.resources/.history/b/808b0ddd49ac001410e2e30aa85db9d1
deleted file mode 100644
index d46857e..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/b/808b0ddd49ac001410e2e30aa85db9d1
+++ /dev/null
@@ -1,71 +0,0 @@
-package io;
-
-import io.serializer.url.URLParserDecrypt;
-import io.serializer.url.URLParserMaterial;
-import io.serializer.xml.XMLParserDecrypt;
-import io.serializer.xml.XMLParserMaterial;
-import io.serializer.xml.XMLParserSurvey;
-
-import java.util.logging.Logger;
-
-import framework.Type;
-import framework.reply.ReplyDecryption;
-import framework.reply.ReplyMaterial;
-import framework.reply.ReplySurvey;
-import framework.request.RequestDecryption;
-import framework.request.RequestMaterial;
-
-public class CommAdapter {
-
- @SuppressWarnings("unused")
- private static final Logger LOGGER = Logger.getLogger(CommAdapter.class.getName());
-
- public ClientConnection connectSPU = null;
-
- public CommAdapter(ClientConnection connectSPU) {
- this.connectSPU = connectSPU;
- }
-
- public ReplyDecryption callServiceDecrypt(RequestDecryption rqtDecrypt) {
- String requestString = URLParserDecrypt.requestToString(rqtDecrypt);
-// String replyString = "<awr_decrypt><patient>30351</patient><v_timestamp>1417188729390</v_timestamp><decrypt_val>,,,,,,,,,,,,,,,,2,AwHR3OO0/hkwgEHluLDFLtn4aaTBAwBEJjJpMegGa29ASgtyt1ha2OOyxvEvNgkIaY0xWXtTmqrqhSBKDG6J7Lps0g==,AwE/oifhonvUZDA4mqRK8K1WCkoepEuL9SidjdFXMNNZQXCMUvVN6pBUYVFgJeFX6mT2jruK8ic3y6yI14PfKl/Pvg==,AgBHs6HGF9AYNc5RlFTGv025WEaT91i/MPy+HXqhvHOrp0Ol9/aKyvv2BgAzeAdsdSEbVs2sahiyL/kbKjeUoI9tsA==,,,,,,,,,,,,,2,AgHIofEmf4aJMLBnKAY3/8WcLXUETF4y/68fzZR6hsS5btZTyI0E4ZTltDzV6hBzIT14cC4S/BMclo1aoLt5C9f+Cg==,AgDOXZAZAwO4KXslqU1wKctrVlH8CcGvpO8gGrPl3YjrY8SR3a6gStvZvjcUKXhvtDkRwSLAIkD3lFrKSXWestHSqQ==,AgG7Y5so9ZTRng2Xm3ziWx3+7zfaVLkIJ2v7g+qEUx5Vl2/udDOcg/was8W6qbKYeo/W0EGTlNXKTOdIatGVxyuoZA==,,,,,2,AgDAVy0/nE6X4iAengG9lCiYEBMtK6rAAiy7OwC7U/QSbokiEzH0RafH7rb+5L5R/ii9/3kZCcKmgOIoPzkmeloDfg==,AgHuvmLAeIFYm4ObEBO2v9xTK6tjYfdh+x4kwULBpDNlUiW4kNNaeoeziRA7nlRvcSfxPlR070N/3qzBMu3EKZ2csQ==,AgDk/CzCL4XUobuNaLsvrH5s0COMKYBqY/18YRR0d7mIsVVYrKVGF+IWnEluhbLt+BoRBdvL5UElgroyORJpiKz06w==,,,,,2,AgH0nW+2h+vcOZgPe3uR7jEHmEPi+g4izQ3OIU9An2vekwbG1liBFgTo33pEhyXhNWPhGCbSb73sJ7pt0JLL+hhWMw==,AgHG039OnpvmllkV6QBsmoMdqISrRuW2q5M3jfUp5TUbU6F/3S2FK1iSVKWgTsI291re6lz6KH5d8rWrnoCAozhIeg==,AwGjmnLUMd42F7a/tsSkeqcxoHMAXNKdvF4kOXoAxmc6ZSxaUhzkGkcgNOO8SFNiWqTKgtZCffJ7hfI0voAUX0TD1w==,,,,,2,AwHfYRjQFscHzOvVozackTaM3sybOjyd2aLc4B+WQ7KiWHoGKkzQScoDiy8hiA2cJpv8ngfitTqJRLlyegvuM+Ietw==,AwAP92OqrJFpFmdrMUUx6FeFhwVLYtAsfw3sem2RYu7ljPry+uJnvluuzTvVaFhs8BAAD8VBFs1vqrSHyQEq8Ocsmw==,AwDNXg/JA4QXA6wu30DUE7peOk1a10aHbd38iwjN1Q0DKy3BqS36+EQKg5hbwELxN2+/Yu4UA1IKWYJI0zNs6TJUtA==,,,,,2,AwBWFv3ivyQz4CGIilJ7CVtpQGOs1tnIW+0uxQyiWIO3HDjJtfxPyQ1AJWPsBQ9eYmaoKmPnN+euPCm7bP0LxBL/Tg==,AwHg7AZb5DV5OJrl0omtKx2OqckXcQEUT8pZ+Bmo9AyULgL5HOq2AVU04qhvbdy0W4OMYqxF3uBwqT6dNhFptsKEKQ==,AwG9dyMbI5EI8UCXuj5JkQRMimcT1u6zCBAfmRvANtT54yDtC8KS6VeOr7h/NP4qrf/mbl5tMaePbkkHrc6E39ntsA==,,,,,2,AwHkMyCOJm/RlYOybGhX3DchR/wSN2L3PuXKalMszgk3WOCiWSpYlP3SOPLWvJTRQaTxoN+oA5IkCTvlp02+Mduaxg==,AgHhR8HjavXjnsy+rHptc/JSI5pLFjM0RczUygxTX7vqV/yqwZ280Rq7YpXKp2GBfiZvFf0qIQoWe4vx5DBxwvHkdA==,AwEf2yisEpflVm8R2X08SCJM89apu7tUFzbpndsTIt5o9/xdoXKomMUk9REz+yrpkd+jFhlkJMQHHVMhgjiWYCEdpQ==,,,,,2,AwBaIc8ZWFm4O9QO0ofJeS9Q7tki7CAscBXRDnajEp7rmKNgrpRyyu1ezSpborwaloWR9kDKPLdYVV8SNk2V/1EudA==,AwGE8MPAnPKKXF15EyrAx1bRinwgoqYVO4Junz5IXQjGLyQpSr5NwO/hqu5E5egHte20jm380Wn2Qy6GgKNiRLy/gQ==,AwCAOjOQNdMN5uIB0POFzYS/fpxZ0Q5KfhlP5fijNmc/daO5frSrwhgcMH5lMKL4EGjBI1p6JMe3fuMqb5t1ImeTBg==,,,,,2,AgARSg2izcK6iZLFe4YkIS6yZgnt8cd9DFqpQ37gNmcccZwBI+mpsaijTUPo1GT+QUD8zC+6qr/GrzG9q+q7BPxpVw==,AwGM/jFdtoNViQXxgqeL27ZKobjsfyeuXrx8re3UfIe3c4XN16srSpcTfxEZNXDKo1Ff9fRvDVBOwdS6XU2nvo++ng==,AwAtK0eOqcVfzkdJIIkk7BORWwSDTAjtx4aEXwyZ0bla+2rIWDgXi3U5xlgnjeXJNtGsLokkvvX92BOBIw9SuCGhnw==,2,AgCWAAWTW+7jv2a2lc4pGFnumEgyH59wSDRXEYUASCVB249JBmeKFWRKNFTQlph5hTR5Rb+YHFP/qvzmwU11Hs2b0w==,AgANdxpkN+DS4De3aokNjt+e/Ou8GT+p8pUJA+6LHrDBXAddoCR8KpeXW7mESokq6BTEVQXxU3TdqavRkqaeFmpXkw==,AgDDDSEO3e8DCsm1n6dbj2PB9Z/tUzluDCt/utdSLrYFfdFY+Y5K7Vxo9F5/17CzaUbX172SGLt8TfCfuYBrtupgAg==,2,AgB1OG6bj+6kfRvLj8yjMQbl80FdZHZrRVRUfNVRwvjvvbRa5f9s9fNZ8J0a3s3hH+RyfZmGJ4Ufjh5mMiQkwiur6w==,AwBX4GFZNjUdtRdwtWgxyQz7h8Hk0ztaZeM8/e+8ll0o+RjYN+CNP8+lnXEw7wpuC4wcMX05mrjPvHOuy0hOFVNkhQ==,AgDf3el4vbMYIAFEH9WV151/uzl+gkfTQ79T8Iu4KxEVo6UJvCfqkjETlR6aXUJiqaCbSV5odMT50lURsmfgALf6AQ==,,,,,2,AgENmnviZkgQWXZ5QDgCCE2zq0IiXURTqK2UNPtEg3o64yjlrQQUd2rO/KgKolyCQcKYTVoMj7k2VeCSSVRr8KGC7w==,AwFv6ZJzhpV/Ms00QkrkNiCKVRFczn/yqnkiBFUHC1RQv3tqzzYSEUeXmDHmm0/kEBtnfgRWjHQm9zxS8Jzy7srDLQ==,AwB8aS5KA1dFLKCA1a/7Wsjhef+6kkNAB/GO9AOvRZbFW/dhl5fx04Alh+g78fwcVMX+eEIEJgSyH0jhv7kmiQh4ew==,,,,,2,AgG8fXrCra6UgP5G89TaE6PH5E0TANb/PJPbKwzdi78XEHRUmcTz6PIhYtclTmcdq5TH0IwQv+ra5ppf4qR4LtkGig==,AgEKzsmZrikmXzJywMpzkAdG9hAPlOiRY9oXKf4Sh50CL8btUItjfVJWg3ubNhotzJK+fnNlRrcMkWQEBD/aGKpf8A==,AwFi+2cGpuvVdR+pT1P9Ur8jAkzmjJK2XmUQbFpyMi5Jc9a5/fPnBWCxmTX8CH5wks0PicYC6rzZC3NEIt0EoM1Qfg==,,,,,2,AgHbTZgTAv8lLBsoX06Hkm9XPU+crlRqKl0xL8v18xeUUPY1YAvUYf2OAutmTtPRycXyzrDWSpn2h5xfk/dtq/BICg==,AwAjPydfoUhfSVFKWNI4Ox4a/psZGDIGzEEWh9HyVtAmjdNb5ctr/S6z+akiRfPlNCsVf6TdkzJ2Su6BO4sOX/SHKA==,AwBVmjn7AitCe4zQ/Fl0sYW2XqXkJxJBDviwl9jYhoq29v90n9escDsiA3Cy+1uW69MezdZBEszFdEWlX0EzbQZQ6A==,,,,,2,AwCG0RBHwHuame/1G7qtUjmwz0gkCP1tyZiEgm7aTKpsCjt7UsMirMmx/ZrNlvSzkGuVbRO97Szzr+9fo4baH1rEZA==,AwHyMK/q8FUUvoHTt7O7KJUxYz/ZHF6SntbmKfbygLVw4HWc/eFic4DXHKbEGWvrMO5b37GksqxfQHc2xlAuj8ZRIw==,AgB5x0BxqiMYxRvzlq0+/RkbOuNA7hYuMG+7D6wlMOxSskgqyfwA0MfW+AkXFqnqfqsoJRpDy15bABWhH6MIdJsPEA==,,,,,2,AwAS/nCH0pcrsllSy2duadUs1rMtL6vtz7VTUAVhn1/YYlZ068ysBi1Mdz9gJFewdyeGLnFhyg+W15rFB317nyeGHg==,AwBh6f5UVRMM5ekWqkrx6XiVOK/BL0TinjsSLna8BjkQPXU2DvGxiKPhA03/GtBdEpihEX4bVaHQhiOupTf7wh6bCQ==,AgGPDFH8Kv8hz2aUJ955nHu8NiAoTmDjqhlXuJ1T83h+O0sc2GieLhmXmpEjxjEAyxkqjb2nFxvDhi+YGs4MqI4S5A==,,,,,2,AwDqwFv6bqpM/6PTCJ/wgRALYVT+Rn54HIB2icP6ODNexaoqILBS9p1k1QENbQsBZ9LmJJwngRQXi07Q4P8br76Qfw==,AgG8yTiO8tFWZqQELBr+Zt1fKKA3bl08836nUEEpD55Sid0ZywCrWe+Va58xbMIWscISLPbBvXIdO48ZgoHsLgA7Jw==,AwCI1Ud0GJLnS86mSC58HNB91lH9kPpQbufGn+WJErGxAQubtSFBc3rnT0SNE3CbW+1MPjYBbdCgxpHjN/iQf96++w==,,,,;2,AgB9YhljgPngkwwYTBMUaMGR+rWMjvlK0tgrzkG8OT9NGNJfaaLP6AzfhWrT5oe9NRnabU25pQvDhAIGZCajDy8N2g==,AwE5Irce6LOSxfLgn4PZh1PeDPjAHb5wPTNfmQoWFY83dNQLYN44FupJaQRRUqBqyGNB0SL76GKzr8G9tKLAHOxRSQ==,BAG5iWHEhlWkvtyAlQy4bwKa1iNRzJq8WJTh2GE9oT4DeJRmO1pCHy9P+9YktDT+4RgV9s8AzOYih1LmHW14uP27HQGg1nTdHyab9/nFUe9BFxIi8xQTPG8et9++5I+gKIeWGCXBL31sBhpaMewvVhDjl2d3+7H2PUv9IY3lyIRFA6N16A==,2,AwAPIoQJqSbXFKXQAIG9J+/+/41NLX0rDINImk4eBgAnZ4V0R8YSqkHD3nd0IrEMyK7OpkCXkxTzOlwJlfEfti+vew==,AwAQ8KdMYsEOqM3eyGv/XbHnGf+TqCAG39Gz/juBcioOOJmLOFjl6oCITozJOyPusbTRXZ4eIwgQYkl12mt6saTpgQ==,BACkTO+3rRUF81w5yzZskFiIRyVxc6sdJfDFX6C+Jy5A+s/sfHskrFx2GYNklZaYztP0/B64a6v6HvFWVz8GuYj2wgHhiCL+QwLThFpaRxh8kUMSrt4VuXSIjtHwRXzhSdEbG2T6C/+CJZxIFh/ugEV9SS51l1HrLdnJDb2Kdu3QC3lRkQ==;2,AgC99VyiRLJ2kFf3oCkb+JPVV7B4tXVGI2NVT7fdKtB+gEjCcdkbS5YEXm/Sq6NAJEOKilMTFUDLYFDOe+7JHj/4pw==,AgAbT080sbKVHH9lim3tVCYS4cMz+rLownRKqtYZ7AfR8qy819R1GFywQ0kImgcdjEey5C4m0OPTwgtkO+C5uWtKfQ==,BADKYt9i0zTJeh3H8t6d8pZdncz3f28v1oWrssLZwAutkIcF3XKkPNmK3X75K3sImUSch//IIRIB1Yi5/MrZZeDrxQHhQZEg6AA8bDxgt0JdOEX2t4crzDu3gW5I8y+Ya0fZr1RmxvfMr2UxRhSsNsz949v/g+GPfsrEfDqIWTiNlJfwyg==,2,AgEPMjgCfgGRaZ/5I1hLqDoJ8nXYeTlnt9YeK4K8w+HnRAoAD09zkPcLMWajIjupe/CUFrHz00sAvs+vOPeKxGrLiQ==,AgDy7g2DcDwmIW7LtTTteHExD/cyP4BMWimEAM1RfAd/Y6P8XkmRGgglfdLJ7RGTR2YIMB1lxQ/LQUbmzyjTiiuWow==,BAHJ7oHVr/0wweyGlg4f9Dqmx8h0m35jMdrEFwVY8l/ENKpOTxG/oh9vAvo1uw39wUOn4CWGBmAFE2lsvWFW18gt+gHPFt5/9ihUFN9mtxFLT1Q3W4Uf8IdekHPMbNlxEp1wId7EH3XsAox3Eo8b3XnYpwfsAXoDwQa2wyiO5h104Ptvsg==;2,AwClCMGcHdd7rD8sYDC/GXyAtLmZ/JI4v+aOK4PXzjWJi/zvcsXT5dJUOm9bW6AAtzgOKPd0WwU3hSytJ+ATy146Uw==,AgADzN6ysOIC9GAuMF9suYNfkR027H/9OcpeVJb4HRHfZ/EOmQWSdJmJFw3F/NLUrreNnFCvuF1+1bbmHa3tvznjeA==,BADwaRJF9z3DW7HE3qhGu6Yd9d2WBfWy8opd7Mhkg7TpAQsn9oA3UcpCarn4DMSnVGG94Y3Pxsj5vlm5G7GMKiGoxAERnETH6pVgBxhtrnBU6l4vHl+X4rd8I/zheZiG0EFKJza41rmwKHTY4+42PJ8/3Y2rCanbY1RSAJEgiZR89k6nGg==,2,AgCK80PhKSC23aVKQ8uYm+79GWZiwpbV5lc8Fzcpwu8hdKGAMH4f62Y//cmrQmCIltm03PTVPMn6rMwkfoz+9M2LDQ==,AgH5aXThIKUjENFTGCGwcTRql7xIe8vR9h78KikTYkD8itQ+YBDrnx5OaNyWRjpIJHAZ2B61W2aVjZ5Rmo0d1B1Pcw==,BAAEZsEKw59QSRxN1QmWcx4X2LaK4+zBuawh+2CIRPljWyxK6XhIM6EEalr44Klce4OTK2QbxT5n3Kjnh5jNuwCOawAH/wiNrx09+HY8SZrRjCjv1+Lnicybrqg/IFDNoAGT5aguaGRIMmGOLe0QFJr0T0iW3RnYGlmSd/r6ex8+MpOgLw==</decrypt_val></awr_decrypt>";
- String replyString = connectSPU.sendReceive(Type.DECRYPT, requestString);
- System.out.println("REQUEST URL: " + requestString);
- System.out.println("REPLY: " + replyString);
- ReplyDecryption reply = (new XMLParserDecrypt()).stringToReply(replyString);
- return reply;
- }
-
- public ReplyMaterial callServiceMaterial(RequestMaterial rqtMaterial) {
- String requestString = URLParserMaterial.requestToString(rqtMaterial);
- String replyString = connectSPU.sendReceive(Type.MATERIAL, requestString);
-
- System.out.println("Material request:");
- System.out.println(replyString);
-
- ReplyMaterial reply = (new XMLParserMaterial()).stringToReply(replyString);
- return reply;
- }
-
- public ReplySurvey callServiceSurvey(){
-
-// String replyString = connectSPU.sendReceive(Type.SURVEY_Q,"");
- //4::What's your name?::1;5::Where are you from?::2;6::How old are you?::3;7::What's your name?::1;8::Where are you from?::2;9::How old are you?::3;10::What's your name?::1;11::Where are you from?::2;12::How old are you?::3;13::What's your name?::1;14::Where are you from?::2;15::How old are you?::3
- String replyString ="<awr_survey><v_questions>1::What's your name?::1;2::Where are you from?::2;3::How old are you?::3;4::A hacker or a disgruntled employee steals from a hospital database the unprotected genome of a known personality. He finds out this person's ethnicity and predisposition to diseases. As a result, he sells this information to tabloids and newspapers. Theft of unprotected medical data is an important concern and hospitals should take more steps to make sure that unauthorized people cannot access personal information in their computers.::3;</v_questions><v_locations>50::Lausanne;60::Basel;70::Zurich</v_locations></awr_survey>";
- ReplySurvey reply = (new XMLParserSurvey()).stringToReply(replyString);
- return reply;
- }
-
- public String callServiceSurveyAnswer(String survey, String id_loc, String id_p){
-
- StringBuilder sb = new StringBuilder();
- sb.append("id_p=").append(id_p);
- sb.append("&timestamp=").append(System.currentTimeMillis());
- sb.append("&id_loc=").append(id_loc);
- sb.append("&answer=").append(survey);
- String replyString = connectSPU.sendReceive(Type.SURVEY_A, sb.toString());
- return replyString;
-
- }
-
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/b2/607ced1f56ac001410e2e30aa85db9d1 b/.metadata/.plugins/org.eclipse.core.resources/.history/b2/607ced1f56ac001410e2e30aa85db9d1
deleted file mode 100644
index 71a6da0..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/b2/607ced1f56ac001410e2e30aa85db9d1
+++ /dev/null
@@ -1,270 +0,0 @@
-package io;
-
-import java.awt.BorderLayout;
-import java.io.File;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.util.Map;
-import java.util.Set;
-
-import com.itextpdf.text.BaseColor;
-import com.itextpdf.text.Document;
-import com.itextpdf.text.DocumentException;
-import com.itextpdf.text.Element;
-import com.itextpdf.text.ExceptionConverter;
-import com.itextpdf.text.Font;
-import com.itextpdf.text.Font.FontFamily;
-import com.itextpdf.text.FontFactory;
-import com.itextpdf.text.Image;
-import com.itextpdf.text.PageSize;
-import com.itextpdf.text.Paragraph;
-import com.itextpdf.text.Phrase;
-import com.itextpdf.text.Rectangle;
-import com.itextpdf.text.pdf.AcroFields;
-import com.itextpdf.text.pdf.BaseFont;
-import com.itextpdf.text.pdf.ColumnText;
-import com.itextpdf.text.pdf.GrayColor;
-import com.itextpdf.text.pdf.PdfAction;
-import com.itextpdf.text.pdf.PdfBorderDictionary;
-import com.itextpdf.text.pdf.PdfContentByte;
-import com.itextpdf.text.pdf.PdfFormField;
-import com.itextpdf.text.pdf.PdfPCell;
-import com.itextpdf.text.pdf.PdfPCellEvent;
-import com.itextpdf.text.pdf.PdfPTable;
-import com.itextpdf.text.pdf.PdfReader;
-import com.itextpdf.text.pdf.PdfStamper;
-import com.itextpdf.text.pdf.PdfWriter;
-import com.itextpdf.text.pdf.PushbuttonField;
-import com.itextpdf.text.pdf.RadioCheckField;
-import com.itextpdf.text.pdf.TextField;
-
-import framework.Question;
-
-public class Questionnaire implements PdfPCellEvent{
-
- /** The path output file. */
- String pathOutputFile;
-
- /** The document. */
- Document document;
-
-
-
- int tf;
-
- public Questionnaire(String path){
- pathOutputFile = path;
- document = new Document(PageSize.A4, 25, 25, 50, 50);
- }
- public Questionnaire(int tf){
- this.tf = tf;
-
- }
-
- /** The resulting PDF. */
- public static final String RESULT1 = "outputPDF/buttons.pdf";
- /** The resulting PDF. */
- public static final String RESULT2 = "outputPDF/buttons_filled.pdf";
- /** Path to a JavaScript resource. */
- public static final String RESOURCE = "res/buttons.js";
- /** Path to an image used as button icon. */
- public static final String IMAGE = "res/info.png";
- /** Possible values of a radio field / checkboxes */
- public static final String[] LANGUAGES = { "English", "German", "French", "Spanish", "Dutch" };
-
- /**
- * Creates a PDF document.
- * @param filename the path to the new PDF document
- * @throws DocumentException
- * @throws IOException
- */
- public void createPdf(Map<Integer, Question> map, Set<Integer> ids) throws IOException, DocumentException {
-
- @SuppressWarnings("unused")
- PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream("outputPDF/temp.pdf"));
-
-
- document.open();
- Image logo = Image.getInstance("res/shcs_logo2.gif");
-
- logo.scalePercent(30f);
- float[] columnWidths1 = {0.2f, 0.8f};
- PdfPTable table_title = new PdfPTable(columnWidths1);
- PdfPCell c01 = new PdfPCell(logo, false);
- PdfPCell c02 = new PdfPCell(new Paragraph("Survery | Project #693",
- FontFactory.getFont(FontFactory.HELVETICA, 20, Font.BOLD, BaseColor.BLACK)));
- c01.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setHorizontalAlignment(Element.ALIGN_CENTER);
- c01.setBorder(Rectangle.NO_BORDER);
- c02.setBorder(Rectangle.NO_BORDER);
-
- table_title.addCell(c01);
- table_title.addCell(c02);
- table_title.setWidthPercentage(100);
- table_title.setSpacingBefore(0);
- table_title.setSpacingAfter(25);
- document.add(table_title);
-
-
- //----------------------------------------------------------------------------------
-
-
- PdfPTable table1 = new PdfPTable(1);
- table1.setWidthPercentage(100);
- PdfPCell c11 = new PdfPCell(new Phrase("Today you are receiving a pharmacogenetic report based on the genetic " +
- "information of your patient. Because the human genome contains extremely private and sensitive information" +
- " of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier," +
- " it must be managed with care. ",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.NORMAL, BaseColor.BLACK)));
- c11.setLeading(1.5f, 1.5f);
- c11.setPaddingBottom(8);
-
-
- table1.addCell(c11);
- table1.setSpacingAfter(10);
- document.add(table1);
-
-
- //----------------------------------------------------------------------------------
-
-// // step 4
-// // add the JavaScript
-// writer.addJavaScript(Utilities.readFileToString(RESOURCE));
-
- for(Integer id: ids){
- PdfPCell c2;
-
- PdfPTable table = new PdfPTable(1);
- table.setSpacingAfter(10);
- table.setWidthPercentage(100);
-
- PdfPCell c1 = new PdfPCell(new Phrase(id + ") " + map.get(id).getQuestion(),FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c1.setPaddingTop(5);
- c1.setPaddingBottom(5);
- c1.setHorizontalAlignment(Element.ALIGN_CENTER);
- c1.setBorder(Rectangle.NO_BORDER);
- table.addCell(c1);
-
- c2 = new PdfPCell(new Phrase(" 1" +
- " 2" +
- " 3" +
- " 4" +
- " 5",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c2.setHorizontalAlignment(Element.ALIGN_LEFT);
- c2.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c2.setCellEvent(new Questionnaire(id));
- c2.setBorder(Rectangle.TOP);
- c2.setPaddingTop(2);
- c2.setPaddingBottom(5);
- c2.setBackgroundColor(new BaseColor(242, 242, 242));
-
- table.addCell(c2);
-
-
-
- document.add(table);
- }
-
-
- //----------------------------------------------------------------------------------
-
- // step 5
- document.close();
-
-
-
- }
-
- @Override
- public void cellLayout(PdfPCell cell, Rectangle position,
- PdfContentByte[] canvases) {
- PdfWriter writer = canvases[0].getPdfWriter();
- PdfFormField radiogroup = PdfFormField.createRadioButton(writer, true);
- radiogroup.setFieldName(String.valueOf(tf));
-
- float llx = position.getLeft();
- float lly = position.getBottom();
-
- float cell_h = cell.getHeight();
- float cell_w = cell.getWidth();
-
- Rectangle rect;
-
- for(int i=1 ; i<=5; i++){
-
- rect = new Rectangle(llx + (3+i)*cell_w/12, lly+cell_h/2-6, llx + (3+i)*cell_w/12+12 ,lly+cell_h/2+6);
-
- RadioCheckField radio = new RadioCheckField(writer, rect, String.valueOf(i), String.valueOf(i));
- radio.setBorderColor(GrayColor.GRAYBLACK);
- radio.setCheckType(RadioCheckField.TYPE_SQUARE);
-
-
- try {
- PdfFormField field = radio.getRadioField();
- radiogroup.addKid(field);
-
- writer.addAnnotation(radiogroup);
- }
-
- catch(IOException ioe) {
- throw new ExceptionConverter(ioe);
- }
- catch(DocumentException de) {
- throw new ExceptionConverter(de);
- }
- }
-
-
-
- }
-
-
- public void writeAnswers(Map<String, String> answers) throws IOException, DocumentException{
-
- PdfReader reader = new PdfReader("outputPDF/temp.pdf");
- PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(pathOutputFile));
-
- AcroFields form = stamper.getAcroFields();
-
- Set<String> fields = form.getFields().keySet();
- for(String key: fields){
-
- if(answers.containsKey(key)){
- form.setField(key, answers.get(key));
- }
- }
- stamper.close();
- reader.close();
- deleteFile("outputPDF/temp.pdf");
-
- }
-
-
- private void deleteFile(String fileName){
- // A File object to represent the filename
- File f = new File(fileName);
-
- // Make sure the file or directory exists and isn't write protected
- if (!f.exists())
- throw new IllegalArgumentException(
- "Delete: no such file or directory: " + fileName);
-
- if (!f.canWrite())
- throw new IllegalArgumentException("Delete: write protected: "
- + fileName);
-
- // If it is a directory, make sure it is empty
- if (f.isDirectory()) {
- String[] files = f.list();
- if (files.length > 0)
- throw new IllegalArgumentException(
- "Delete: directory not empty: " + fileName);
- }
-
- // Attempt to delete it
- boolean success = f.delete();
-
- if (!success)
- throw new IllegalArgumentException("Delete: deletion failed");
- }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/b2/90ccbe9079a8001419a38fd8608ce0e6 b/.metadata/.plugins/org.eclipse.core.resources/.history/b2/90ccbe9079a8001419a38fd8608ce0e6
deleted file mode 100644
index 27786e6..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/b2/90ccbe9079a8001419a38fd8608ce0e6
+++ /dev/null
@@ -1,138 +0,0 @@
-package io.serializer.xml;
-
-import io.serializer.ParserNamespace;
-
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.Map;
-import java.util.Set;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
-import org.jdom2.Document;
-import org.jdom2.Element;
-import org.jdom2.JDOMException;
-
-import utils.StringUtils;
-import framework.Question;
-import framework.reply.ReplySurvey;
-
-public class XMLParserSurvey extends XMLParser{
-
- private static final Logger LOGGER = Logger.getLogger(XMLParserSurvey.class.getName());
-
- public String replyToString(ReplySurvey reply) throws IOException {
- Element elemRoot = new Element(ParserNamespace.CNAME_AWR_SURVEY);
- Document doc = new Document(elemRoot);
-
- // add questions
- Element elemQuestionList = new Element(ParserNamespace.CNAME_QUESTION_LIST);
- elemQuestionList.setText(concatQuestionList(reply.getQuestions()));
- elemRoot.addContent(elemQuestionList);
-
- // add locations
- Element elemLocationList = new Element(ParserNamespace.CNAME_LOCATION_LIST);
- elemLocationList.setText(concatLocationList(reply.getLocations()));
- elemRoot.addContent(elemLocationList);
-
-
- return documentToString(doc);
- }
-
-
- public ReplySurvey stringToReply(String replyString) {
- ReplySurvey reply = null;
-
- try {
- Document doc = stringToDocument(replyString);
- Element elemRoot = doc.getRootElement();
-
- Element elemQuestionList = elemRoot.getChild(ParserNamespace.CNAME_QUESTION_LIST);
- Element elemLocationList = elemRoot.getChild(ParserNamespace.CNAME_LOCATION_LIST);
-
-
- Map<Integer, Question> questions = parseConcatQuestionList(elemQuestionList.getText());
- ArrayList<String> locations = parseConcatLocationList(elemLocationList.getText());
-
-
- reply = new ReplySurvey(questions, locations);
- } catch (JDOMException e) {
- LOGGER.log(Level.SEVERE, null, e);
- }
-
- return reply;
- }
-
- private String concatLocationList(ArrayList<String> list) {
- if (list == null || list.isEmpty()) {
- return "";
- }
-
- return StringUtils.join(SEP_EXT, list);
- }
-
- private String concatQuestionList(Map<Integer, Question> map){
- if(map == null || map.isEmpty()){
- return "";
- }
- StringBuilder sb = new StringBuilder();
- Set<Integer> ids = map.keySet();
-
- boolean first = true;
- for (Integer id : ids) {
- if (first) {
- first = false;
- } else {
- sb.append(SEP_EXT);
- }
-
- sb.append(id).append(SEP_INT_QUESTIONS).append(map.get(id).getQuestion())
- .append(SEP_INT_QUESTIONS).append(map.get(id).getType());
-
- }
-
- return sb.toString();
-
- }
-
- private ArrayList<String> parseConcatLocationList(String val) {
- if (val.equals("")) {
- return new ArrayList<String>();
- }
- ArrayList<String> list = new ArrayList<String>();
-
- String[] strings = val.split(SEP_EXT, -1);
-
- for (int i = 0; i < strings.length; i++) {
- list.add(strings[i]);
- }
-
- return list;
- }
-
- private Map<Integer, Question> parseConcatQuestionList(String val){
- if (val.equals("")) {
- return new HashMap<Integer, Question>();
- }
-
- Map<Integer, Question> map = new HashMap<Integer, Question>();
-
- String[] strings = val.split(SEP_EXT,-1);
- System.out.println(strings[0]);
- for(int i = 0; i<strings.length; i++){
- if (strings[i].equals("")) map.put(null, null);
- else{
- String[] values = strings[i].split(SEP_INT_QUESTIONS);
- int id = Integer.parseInt(values[0]);
- String question = values[1];
- int type = Integer.parseInt(values[2]);
-
- map.put(id, new Question(type, question));
- }
- }
- return map;
-
- }
-
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/b2/c088721655ac001410e2e30aa85db9d1 b/.metadata/.plugins/org.eclipse.core.resources/.history/b2/c088721655ac001410e2e30aa85db9d1
deleted file mode 100644
index dad02fe..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/b2/c088721655ac001410e2e30aa85db9d1
+++ /dev/null
@@ -1,928 +0,0 @@
-package ui;
-
-import io.ClientConnection;
-import io.CommAdapter;
-import io.Questionnaire;
-
-import java.awt.BorderLayout;
-import java.awt.Color;
-import java.awt.Component;
-import java.awt.Dimension;
-import java.awt.FlowLayout;
-import java.awt.Font;
-import java.awt.SystemColor;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.awt.event.WindowAdapter;
-import java.io.File;
-import java.io.IOException;
-import java.sql.SQLException;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.LinkedList;
-import java.util.Map;
-import java.util.Set;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
-import javax.swing.Box;
-import javax.swing.BoxLayout;
-import javax.swing.ButtonGroup;
-import javax.swing.DefaultComboBoxModel;
-import javax.swing.GroupLayout;
-import javax.swing.GroupLayout.Alignment;
-import javax.swing.ImageIcon;
-import javax.swing.JButton;
-import javax.swing.JComboBox;
-import javax.swing.JDialog;
-import javax.swing.JFileChooser;
-import javax.swing.JFrame;
-import javax.swing.JLabel;
-import javax.swing.JOptionPane;
-import javax.swing.JPanel;
-import javax.swing.JRadioButton;
-import javax.swing.JScrollPane;
-import javax.swing.JSeparator;
-import javax.swing.JTabbedPane;
-import javax.swing.JTextArea;
-import javax.swing.JTextPane;
-import javax.swing.JTree;
-import javax.swing.LayoutStyle.ComponentPlacement;
-import javax.swing.SwingConstants;
-import javax.swing.border.EmptyBorder;
-import javax.swing.border.LineBorder;
-import javax.swing.tree.DefaultMutableTreeNode;
-import javax.swing.tree.TreeModel;
-import javax.swing.tree.TreePath;
-
-import org.jpedal.examples.viewer.Commands;
-import org.jpedal.examples.viewer.Viewer;
-
-import utils.ClientProperties;
-
-import com.itextpdf.text.DocumentException;
-
-import database.DBconnectorClient;
-import framework.Diagnostic;
-import framework.MedUnit;
-import framework.Question;
-import framework.reply.ReplySurvey;
-import framework.test.TestName;
-
-/**
- *
- * @author youssef, raisaro
- */
-public class GUI extends javax.swing.JFrame {
-
- private static final Logger LOGGER = Logger.getLogger(GUI.class.getName());
-
- private static final long serialVersionUID = -4582280515597700650L;
-
- // configuration
- private ClientProperties props;
-
- private JTree jTree;
- private DBconnectorClient connectorClientDB;
- private LinkedList<Integer> patients;
-
- /** List of all relevant tests */
- private HashMap<String, TestName> testsByName;
- private Viewer viewer;
- private JDialog dialog;
- private JFrame frame;
- private boolean survey_submitted;
- private int close_trials;
- private Map<Integer, ButtonGroup> buttonGroupMap;
- private Questionnaire quest;
- private Map<Integer, Question> map;
- private Set<Integer> ids;
- private Map<String,String> answers;
- private Map<Integer, String> locations;
-
-
- /**
- * Creates new form GUI
- */
- public GUI(ClientProperties props){
-
- frame = this;
- this.props = props;
- this.connectorClientDB = new DBconnectorClient(props.getDbMsAccess());
- survey_submitted = false;
- close_trials = 0;
-
-
- try {
- initComponents();
-
- viewer = new Viewer(jScrollPane2, null);
- viewer.setupViewer();
-
- // create questionnare
-
-
- System.out.println("#of questions: " + ids.size());
-
-// viewer_q = new Viewer(jScrollPane4, null);
-// viewer_q.setupViewer();
-//
-// // specify file you wish to open (JPedal handles getting the byte data)
-// String filepathReport = "outputPDF/buttons_filled.pdf";
-//
-// // open generated PDF
-// // object must be either String in full filepath, or
-// // File object which can be relative
-// Object[] input = new Object[]{ new File(filepathReport) };
-// viewer_q.executeCommand(Commands.OPENFILE, input);
-
- JButton btnSubmitQuestionnaire = new JButton("Submit Questionnaire");
- btnSubmitQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- btnSubmitQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- submitButtonActionPerformed(arg0);
- }
- });
- JButton btnResetQuestionnaire = new JButton("Save as PDF");
- btnResetQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- savePDFButtonActionPerformed(arg0);
- }
- });
- btnResetQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- JPanel panel_button = new JPanel();
- panel_button.setLayout(new BoxLayout(panel_button, BoxLayout.X_AXIS));
-
- lblNewLabel_3 = new JLabel("");
- lblNewLabel_3.setIcon(new ImageIcon("res/location_icon.png"));
- panel_button.add(lblNewLabel_3);
-
-
-
- comboBox = new JComboBox<String>();
- comboBox.setFont(new Font("Tahoma", Font.BOLD, 12));
- comboBox.setModel(new DefaultComboBoxModel<String>(new String[] {"Select Location"}));
- for(Integer id_loc : locations.keySet()){
- comboBox.addItem(locations.get(id_loc));
- }
-
-
- panel_button.add(comboBox);
-
- rigidArea = Box.createRigidArea(new Dimension(10, 0));
- panel_button.add(rigidArea);
-
- lblNewLabel_1 = new JLabel("");
- lblNewLabel_1.setIcon(new ImageIcon("res/submit.png"));
- panel_button.add(lblNewLabel_1);
- panel_button.add(btnSubmitQuestionnaire);
-
- panel_button.add(Box.createRigidArea(new Dimension(10,0)));
-
- lblNewLabel_2 = new JLabel("");
- lblNewLabel_2.setIcon(new ImageIcon("res/pdf.png"));
- panel_button.add(lblNewLabel_2);
- panel_button.add(btnResetQuestionnaire);
- panel_button.setPreferredSize(new Dimension(211, 35));
- panel_button.validate();
-
- JPanel panel_3 = new JPanel();
- GroupLayout gl_panel = new GroupLayout(panel);
- gl_panel.setHorizontalGroup(
- gl_panel.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(63)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addGap(103)
- .addComponent(panel_button, GroupLayout.DEFAULT_SIZE, 498, Short.MAX_VALUE)
- .addGap(241))
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(41)
- .addGroup(gl_panel.createParallelGroup(Alignment.TRAILING)
- .addComponent(jScrollPane4, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE)
- .addComponent(panel_1, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE))
- .addGap(32))
- );
- gl_panel.setVerticalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(22)
- .addComponent(panel_1, GroupLayout.PREFERRED_SIZE, 235, GroupLayout.PREFERRED_SIZE)
- .addGap(37)
- .addComponent(jScrollPane4, GroupLayout.DEFAULT_SIZE, 379, Short.MAX_VALUE)
- .addGap(26)
- .addGroup(gl_panel.createParallelGroup(Alignment.LEADING)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(panel_button, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE)))
- );
- panel_3.setLayout(new BoxLayout(panel_3, BoxLayout.X_AXIS));
-
-
- panel.setLayout(gl_panel);
-
-
-
-
-
-
- /////////////////////////////////////////////////////////
- // display the tests available
-
- // get the tests
- HashMap<String, ArrayList<TestName>> testsRelevantByGroup = connectorClientDB.getRelevantTestsByGroup();
- ArrayList<String> groups = new ArrayList<String>(testsRelevantByGroup.keySet());
-
- // flatten hashmap into linkedlist
-// tests = new LinkedList<>();
- testsByName = new HashMap<String, TestName>();
- for (String group : groups) {
-// tests.addAll(testsRelevantByGroup.get(group));
- for (TestName test : testsRelevantByGroup.get(group)) {
- testsByName.put(test.getName(), test);
- }
- }
-
- // define tree structure of the tests
- DefaultMutableTreeNode root = new DefaultMutableTreeNode("All");
-
- for (String group : groups) {
- DefaultMutableTreeNode child = new DefaultMutableTreeNode(group);
- root.add(child);
-
- for (TestName test : testsRelevantByGroup.get(group)) {
- DefaultMutableTreeNode grandChild = new DefaultMutableTreeNode(test.getName());
- child.add(grandChild);
- }
- }
-
- // define swing object
- jTree = new JTree(root);
-
- for(int i=0;i<jTree.getRowCount();i++){
- jTree.expandRow(i);
- }
-
- jScrollPane3.setViewportView(jTree);
-// jTree.addTreeSelectionListener(new TreeSelectionListener() {
-//
-// @Override
-// public void valueChanged(TreeSelectionEvent e) {
-// tp = jTree.getSelectionPaths();
-// }
-// });
- jScrollPane3.setViewportView(jTree);
-
- /////////////////////////////////////////////////////////
- // display the patients registered
-
- patients = connectorClientDB.getPatients();
- for (Integer patientId : patients) {
- jComboBox1.addItem(patientId.toString());
- }
-
- } catch (SQLException ex) {
- Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex);
- ex.printStackTrace();
-// } catch (IOException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
-// } catch (DocumentException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
- }
-
- }
-
- /**
- * 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() {
-
- jPanel1 = new javax.swing.JPanel();
- jLabel2 = new javax.swing.JLabel();
- jLabel1 = new javax.swing.JLabel();
- jPanel2 = new javax.swing.JPanel();
- jComboBox1 = new javax.swing.JComboBox<String>();
- jButton1 = new javax.swing.JButton();
- jButton1.setFont(new Font("Tahoma", Font.BOLD, 12));
- jLabel3 = new javax.swing.JLabel();
- jLabel4 = new javax.swing.JLabel();
- jScrollPane3 = new javax.swing.JScrollPane();
- jScrollPane2 = new javax.swing.JScrollPane();
- jMenuBar1 = new javax.swing.JMenuBar();
- jMenu1 = new javax.swing.JMenu();
- jMenuItem1 = new javax.swing.JMenuItem();
- jMenu2 = new javax.swing.JMenu();
- dialog = new JDialog();
- tabbedPane = new JTabbedPane(JTabbedPane.TOP);
-
- setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
- addWindowListener(new WindowAdapter() {
- @Override
- public void windowClosing(java.awt.event.WindowEvent windowEvent) {
- if (!survey_submitted && close_trials <= 2){
- JOptionPane.showMessageDialog(frame, "Before closing the application, please fill in and submit the questionnaire.");
- close_trials++;
- tabbedPane.setSelectedIndex(1);
- }else{
- System.exit(0);
- }
- }
- });
- setTitle("HIV Pharmacogenomics\n");
-
- jLabel2.setIcon(new javax.swing.ImageIcon("res/shcs_logo2_small.gif")); // NOI18N
-
- jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
- jLabel1.setText("HIV Pharmacogenomics | Project #693");
-
- javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
- jPanel1.setLayout(jPanel1Layout);
- jPanel1Layout.setHorizontalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap(71, Short.MAX_VALUE)
- .addComponent(jLabel1)
- .addGap(18, 18, 18)
- .addComponent(jLabel2))
- );
- jPanel1Layout.setVerticalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jLabel1)
- .addGap(11, 11, 11))
- .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)
- );
-
- jPanel2.setBackground(new java.awt.Color(255, 255, 255));
- jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
-
- jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<String>(new String[]{"Select Patient"}));
-
- jButton1.setText("Run Test");
- jButton1.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton1ActionPerformed(evt);
- }
- });
-
- JLabel lblNewLabel = new JLabel("");
- lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
- lblNewLabel.setIcon(new javax.swing.ImageIcon("res/gears.png"));
-
-
-
- javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
- jPanel2Layout.setHorizontalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addComponent(jComboBox1, 0, 248, Short.MAX_VALUE)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addGap(75)
- .addGroup(jPanel2Layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jButton1)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 75, GroupLayout.PREFERRED_SIZE))
- .addContainerGap(98, Short.MAX_VALUE))
- );
- jPanel2Layout.setVerticalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addComponent(jComboBox1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED, 223, Short.MAX_VALUE)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jButton1)
- .addGap(19))
- );
- jPanel2.setLayout(jPanel2Layout);
-
- jLabel3.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel3.setText("Select Patient");
-
- jLabel4.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel4.setText("Select Test");
-
- jScrollPane3.setBackground(new java.awt.Color(255, 255, 255));
-
- jMenu1.setText("File");
-
- jMenuItem1.setText("Exit");
- jMenu1.add(jMenuItem1);
-
- jMenuBar1.add(jMenu1);
-
- jMenu2.setText("Edit");
- jMenuBar1.add(jMenu2);
-
- setJMenuBar(jMenuBar1);
-
-
-
- javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
- layout.setHorizontalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(layout.createParallelGroup(Alignment.LEADING, false)
- .addComponent(jLabel3)
- .addComponent(jLabel4)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, 244, Short.MAX_VALUE)
- .addComponent(jScrollPane3))
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 970, Short.MAX_VALUE))
- .addContainerGap())
- );
- layout.setVerticalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel4))
- .addPreferredGap(ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addComponent(jScrollPane3, GroupLayout.PREFERRED_SIZE, 388, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jLabel3)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 785, Short.MAX_VALUE))
- .addContainerGap())
- );
-
-
- jScrollPane2.setAutoscrolls(true);
- jScrollPane3.setAutoscrolls(true);
- tabbedPane.addTab("Report", new ImageIcon("res/report_icon.gif"), jScrollPane2, null);
- tabbedPane.setBackgroundAt(0, new Color(255, 255, 255));
-
- panel = new JPanel();
- tabbedPane.addTab("Survey", new ImageIcon("res/survey_icon.png"), panel, null);
- tabbedPane.setBackgroundAt(1, new Color(255, 255, 255));
- tabbedPane.setEnabledAt(1, true);
-
- panel_1 = new JPanel();
- panel_1.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
- panel_1.setBackground(SystemColor.control);
-
- JLabel label = new JLabel("");
- label.setIcon(new ImageIcon("res/shcs_logo2_medium.gif"));
-
- lblDearDoctor = new JLabel("Dear Doctor,");
- lblDearDoctor.setFont(new Font("Tahoma", Font.BOLD, 14));
-
- JScrollPane scrollPane = new JScrollPane();
- scrollPane.setBorder(null);
- GroupLayout gl_panel_1 = new GroupLayout(panel_1);
- gl_panel_1.setHorizontalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(Alignment.LEADING, gl_panel_1.createSequentialGroup()
- .addGap(25)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addComponent(lblDearDoctor)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 661, Short.MAX_VALUE))
- .addContainerGap())
- );
- gl_panel_1.setVerticalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addContainerGap()
- .addComponent(lblDearDoctor)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 203, Short.MAX_VALUE))
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(36)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 96, GroupLayout.PREFERRED_SIZE)))
- .addContainerGap())
- );
-
- JTextPane txtpnTodayYouAre = new JTextPane();
- txtpnTodayYouAre.setBorder(null);
- txtpnTodayYouAre.setText("Today you are receiving a pharmacogenetics report based on the genome of your patient. Because of its highly sensitive nature, " +
- "the genetic information you are provided with is processed in a privacy-preserving way. In particular, to protect patients’ genomic privacy, " +
- "their genetic and clinical data is stored encrypted at the SHCS data center, and securely analyzed through a sophisticated algorithm designed and developed at EPFL [1, 2]. " +
- "The actual clinical and genetic information is never revealed. Only the authorized users, such as you, can get some processed information, for example, the final result of a " +
- "pharmacogenetics risk test.\nThis mechanism protects the data against insiders or hackers trying to illegally access patients’ medical information, while still allowing authorized " +
- "users to obtain the information they need." +
- "\n\nTo help us understanding the importance of genomic privacy in the medical domain, and the impact of privacy-enhancing technologies in daily clinical practice, please complete the following survey.");
- txtpnTodayYouAre.setFont(new Font("Tahoma", Font.PLAIN, 13));
- txtpnTodayYouAre.setEditable(false);
- txtpnTodayYouAre.setBackground(SystemColor.control);
- scrollPane.setViewportView(txtpnTodayYouAre);
- panel_1.setLayout(gl_panel_1);
- jScrollPane4 = new javax.swing.JScrollPane();
- jScrollPane4.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
- getContentPane().setLayout(layout);
-
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
- ReplySurvey replySurvey = commHandlerAdapter.callServiceSurvey();
-
- map = replySurvey.getQuestions();
- ids = map.keySet();
- locations = replySurvey.getLocations();
-
- panel_2 = new JPanel();
- panel_2.setBackground(Color.WHITE);
- panel_2.setBorder(null);
- jScrollPane4.setViewportView(panel_2);
- panel_2.setLayout(new BoxLayout(panel_2, BoxLayout.Y_AXIS));
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
-
- int type = 0;
- for(Integer id : ids){
- ButtonGroup group = new ButtonGroup();
- JRadioButton r1 = new JRadioButton("1"); r1.setActionCommand("1"); r1.setBackground(Color.WHITE);
- JRadioButton r2 = new JRadioButton("2"); r2.setActionCommand("2"); r2.setBackground(Color.WHITE);
- JRadioButton r3 = new JRadioButton("3"); r3.setActionCommand("3"); r3.setBackground(Color.WHITE);
- JRadioButton r4 = new JRadioButton("4"); r4.setActionCommand("4"); r4.setBackground(Color.WHITE);
- JRadioButton r5 = new JRadioButton("5"); r5.setActionCommand("5"); r5.setBackground(Color.WHITE);
- group.add(r1);
- group.add(r2);
- group.add(r3);
- group.add(r4);
- group.add(r5);
- JPanel radio_panel = new JPanel();
- radio_panel.setLayout((new BoxLayout(radio_panel, BoxLayout.X_AXIS)));
- radio_panel.setBackground(Color.WHITE);
- radio_panel.setAlignmentX(Component.CENTER_ALIGNMENT);
- radio_panel.add(r1);
- radio_panel.add(r2);
- radio_panel.add(r3);
- radio_panel.add(r4);
- radio_panel.add(r5);
- radio_panel.doLayout();
- radio_panel.setPreferredSize(radio_panel.getPreferredSize());
- JTextArea question = new JTextArea(id + ") " + map.get(id).getQuestion());
-
- question.setLineWrap(true);
- question.setWrapStyleWord(true);
-
-
- JPanel row_panel = new JPanel();
- row_panel.setLayout(new BoxLayout(row_panel, BoxLayout.X_AXIS));
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.add(question);
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.add(radio_panel);
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.setBackground(Color.WHITE);
-
- int type_new = map.get(id).getType();
-
- if(type_new != type){
- type = type_new;
- JLabel question_group = new JLabel();
- switch(type){
- case 1:
- question_group.setText("Clinical Utility");
- break;
- case 2:
- question_group.setText("Privacy Concerns");
- break;
- case 3:
- question_group.setText("Usability Assessment");
- break;
- }
- question_group.setAlignmentX(Component.CENTER_ALIGNMENT);
- question_group.setFont(new Font("Tahoma", Font.BOLD, 13));
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- panel_2.add(question_group);
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
-// panel_2.add(radio_panel);
- panel_2.add(new JSeparator());
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- }
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- panel_2.add(row_panel);
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
-// panel_2.add(radio_panel);
- panel_2.add(new JSeparator());
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
-// panel_2.setPreferredSize(panel_2.getPreferredSize());
- buttonGroupMap.put(id, group);
-
- }
-
-
-
- this.setSize(new Dimension(1300, 865));
-// pack();
- }// </editor-fold>//GEN-END:initComponents
-
-
- private void submitButtonActionPerformed(java.awt.event.ActionEvent evt){
-
- try{
- answers = new HashMap<String, String>();
- StringBuilder sb = new StringBuilder();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- sb.append(q).append(",");
- sb.append(bg.getSelection().getActionCommand()).append(";");
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- String answer = sb.toString();
- Integer id_loc = null;
- for(Integer i: locations.keySet()){
- if(locations.get(i).equals(comboBox.getSelectedItem().toString()))
- id_loc = i;
- }
-
- String id_p;
- if(jComboBox1.getSelectedItem().toString().equals("Select Patient"))
- id_p = "0";
- else
- id_p = jComboBox1.getSelectedItem().toString();
-
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
-
- String reply = commHandlerAdapter.callServiceSurveyAnswer(answer, id_loc.toString(), id_p);
-
- if(reply.equals("1")){
- survey_submitted = true;
-
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Congrats! Your aswers have been sent to the SHCS datacenter.",
- "Information Message",
- JOptionPane.INFORMATION_MESSAGE);
- }
- else{
- throw new IOException();
- }
-
-
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "The SHCS datacenter does not respond. Please save the survey and send it to jean.raisaro@epfl.ch.",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
- private void savePDFButtonActionPerformed(java.awt.event.ActionEvent evt){
- try {
-
- answers = new HashMap<String, String>();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- JFileChooser chooser = new JFileChooser();
- // Note: source for ExampleFileFilter can be found in FileChooserDemo,
- // under the demo/jfc directory in the JDK.
-
- int returnVal = chooser.showSaveDialog(this);
- System.out.println(returnVal);
- if(returnVal == JFileChooser.APPROVE_OPTION) {
- System.out.println("You chose to open this file: " +
- chooser.getSelectedFile().getPath());
- quest = new Questionnaire(chooser.getSelectedFile().getPath() + ".pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }else{
- quest = new Questionnaire("outputPDF/survey.pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }
-
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (DocumentException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (NullPointerException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
-
- private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
-
- JPanel contentPanel = new JPanel();
-
- dialog.setBounds(100, 100, 410, 80);
- dialog.getContentPane().setLayout(new BorderLayout());
- contentPanel.setLayout(new FlowLayout());
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- dialog.getContentPane().add(contentPanel, BorderLayout.CENTER);
- {
- JLabel label = new JLabel("Please wait...The overall computation can take few seconds");
- label.setHorizontalAlignment(SwingConstants.CENTER);
- label.setFont(new Font("Tahoma", Font.PLAIN, 12));
- contentPanel.add(label);
- }
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
- dialog.getContentPane().add(buttonPane, BorderLayout.SOUTH);
- }
- dialog.setLocationRelativeTo(this);
- dialog.setVisible(true);
-
- GUIWorker gw = new GUIWorker(this, props);
- Thread t = new Thread(gw);
- t.start();
-
- }
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JButton jButton1;
- private javax.swing.JComboBox<String> jComboBox1;
- private javax.swing.JLabel jLabel1;
- private javax.swing.JLabel jLabel2;
- private javax.swing.JLabel jLabel3;
- private javax.swing.JLabel jLabel4;
- private javax.swing.JMenu jMenu1;
- private javax.swing.JMenu jMenu2;
- private javax.swing.JMenuBar jMenuBar1;
- private javax.swing.JMenuItem jMenuItem1;
- private javax.swing.JPanel jPanel1;
- private javax.swing.JPanel jPanel2;
- private javax.swing.JScrollPane jScrollPane3;
- private javax.swing.JTabbedPane tabbedPane;
- private javax.swing.JScrollPane jScrollPane2;
- private javax.swing.JScrollPane jScrollPane4;
- private JPanel panel;
- private JPanel panel_1;
- private JPanel panel_2;
- private JLabel lblDearDoctor;
- private JLabel lblNewLabel_1;
- private JLabel lblNewLabel_2;
- private JLabel lblNewLabel_3;
- private JComboBox<String> comboBox;
- private Component rigidArea;
-
- // End of variables declaration//GEN-END:variables
-
-
- class GUIWorker implements Runnable{
-
- private JFrame mainFrame;
- private ClientProperties props;
- private MedUnit mu;
-
- public GUIWorker(GUI gui, ClientProperties props) {
- mainFrame = gui;
-
- this.props = props;
- this.mu = new MedUnit(props, 0);
- }
-
- @Override
- public void run() {
-
- try{
- int patientId = Integer.parseInt((String) jComboBox1.getSelectedItem());
-
- // convert selected tests to test identifiers
- ArrayList<TestName> selectedTests = new ArrayList<TestName>();
- for (String currentName : getSelectedTests()) {
- TestName currentTest = testsByName.get(currentName);
-
- if (currentTest == null) {
- throw new IllegalStateException("Trying to run unknown test: " + currentTest);
- }
-
- selectedTests.add(currentTest);
- }
-
- // run tests
- Diagnostic diagnostic = mu.runTests(patientId, selectedTests);
-
- // warn for tests with missing material
- warnFailedTests(diagnostic, selectedTests);
-
- // create report
- mu.createReport(patientId, selectedTests, diagnostic);
-
- dialog.setVisible(false);
-
- // specify file you wish to open (JPedal handles getting the byte data)
- String filepathReport = props.getPathPDF() + patientId + ".pdf";
-
- // open generated PDF
- // object must be either String in full filepath, or
- // File object which can be relative
- Object[] input = new Object[]{ new File(filepathReport) };
- viewer.executeCommand(Commands.OPENFILE, input);
-
- // display CAD result as bar plot
- if (diagnostic.hasCAD()) {
- System.out.println("CAD = " + diagnostic.getResultCAD());
- BarPlotFrame frame = new BarPlotFrame(diagnostic.getResultCAD(), patientId);
- frame.setVisible(true);
- frame.setAlwaysOnTop(true);
- }
-
-
- } catch (SQLException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Please select a patient.");
- }
-
- }
-
- private void warnFailedTests(Diagnostic diagnostic, ArrayList<TestName> selectedTests) {
- ArrayList<Integer> failedTests = diagnostic.getInvalidTests();
-
- if (!failedTests.isEmpty()) {
- String msg = "Could not complete tests: ";
- boolean first = true;
- for (TestName testName : selectedTests) {
- if (failedTests.contains(testName.getId())) {
- if (first) {
- first = false;
- } else {
- msg += ", ";
- }
- msg += testName.getName();
- }
- }
- displayError(msg);
- }
-
- }
-
- private void displayError(String msg) {
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- mainFrame,
- msg,
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
-
- private ArrayList<String> getSelectedTests() {
- ArrayList<String> tests = new ArrayList<String>();
-
- for (TreePath treePath : jTree.getSelectionPaths()) {
- tests.addAll(getChildrenTests(jTree.getModel(), treePath.getLastPathComponent()));
- }
-
- return tests;
- }
-
- private ArrayList<String> getChildrenTests(TreeModel model, Object node) {
- ArrayList<String> tests = new ArrayList<String>();
-
- if (model.isLeaf(node)) { // leaf
- DefaultMutableTreeNode leaf = (DefaultMutableTreeNode) node;
- tests.add(leaf.toString());
- }
- else { // iterate over children
- for (int i = 0; i < model.getChildCount(node); i++) {
- tests.addAll(getChildrenTests(model, model.getChild(node, i)));
- }
- }
-
- return tests;
- }
-
- }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/b4/e0b08296a4a7001417ceadf0100b5ef7 b/.metadata/.plugins/org.eclipse.core.resources/.history/b4/e0b08296a4a7001417ceadf0100b5ef7
deleted file mode 100644
index 9f34a26..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/b4/e0b08296a4a7001417ceadf0100b5ef7
+++ /dev/null
@@ -1,122 +0,0 @@
-package io;
-
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.util.HashMap;
-
-import com.itextpdf.text.Document;
-import com.itextpdf.text.DocumentException;
-import com.itextpdf.text.Rectangle;
-import com.itextpdf.text.pdf.AcroFields;
-import com.itextpdf.text.pdf.PdfFormField;
-import com.itextpdf.text.pdf.PdfPCell;
-import com.itextpdf.text.pdf.PdfPTable;
-import com.itextpdf.text.pdf.PdfReader;
-import com.itextpdf.text.pdf.PdfStamper;
-import com.itextpdf.text.pdf.PdfWriter;
-import com.itextpdf.text.pdf.TextField;
-
-public class Subscribe {
-
- /** The resulting PDF. */
- public static final String FORM = "results/part2/chapter08/subscribe.pdf";
- /** The resulting PDFs. */
- public static final String RESULT = "results/part2/chapter08/filled_form_%d.pdf";
-
- /**
- * Manipulates a PDF file src with the file dest as result
- * @param src the original PDF
- * @param dest the resulting PDF
- * @param cache a map that will be used to cache text field information
- * @param name the name of a person
- * @param login the login name of the same person
- * @throws IOException
- * @throws DocumentException
- */
- public void manipulatePdf(String src, String dest,
- HashMap<String,TextField> cache, String name, String login)
- throws IOException, DocumentException {
- PdfReader reader = new PdfReader(src);
- PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(dest));
- AcroFields form = stamper.getAcroFields();
- form.setFieldCache(cache);
- form.setExtraMargin(2, 0);
- form.removeField("personal.password");
- form.setField("personal.name", name);
- form.setField("personal.loginname", login);
- form.renameField("personal.reason", "personal.motivation");
- form.setFieldProperty("personal.loginname", "setfflags", TextField.READ_ONLY, null);
- stamper.setFormFlattening(true);
- stamper.partialFormFlattening("personal.name");
- stamper.close();
- reader.close();
- }
-
- /**
- * Creates a PDF document.
- * @param filename the path to the new PDF document
- * @throws DocumentException
- * @throws IOException
- */
- public void createPdf(String filename) throws IOException, DocumentException {
- // step 1
- Document document = new Document();
- // step 2
- PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(filename));
- // step 3
- document.open();
- // step 4
- PdfFormField personal = PdfFormField.createEmpty(writer);
- personal.setFieldName("personal");
- PdfPTable table = new PdfPTable(3);
- PdfPCell cell;
-
- table.addCell("Your name:");
- cell = new PdfPCell();
- cell.setColspan(2);
- TextField field = new TextField(writer, new Rectangle(0, 0), "name");
- field.setFontSize(12);
- cell.setCellEvent(new ChildFieldEvent(personal, field.getTextField(), 1));
- table.addCell(cell);
- table.addCell("Login:");
- cell = new PdfPCell();
- field = new TextField(writer, new Rectangle(0, 0), "loginname");
- field.setFontSize(12);
- cell.setCellEvent(new ChildFieldEvent(personal, field.getTextField(), 1));
- table.addCell(cell);
- cell = new PdfPCell();
- field = new TextField(writer, new Rectangle(0, 0), "password");
- field.setOptions(TextField.PASSWORD);
- field.setFontSize(12);
- cell.setCellEvent(new ChildFieldEvent(personal, field.getTextField(), 1));
- table.addCell(cell);
- table.addCell("Your motivation:");
- cell = new PdfPCell();
- cell.setColspan(2);
- cell.setFixedHeight(60);
- field = new TextField(writer, new Rectangle(0, 0), "reason");
- field.setOptions(TextField.MULTILINE);
- field.setFontSize(12);
- cell.setCellEvent(new ChildFieldEvent(personal, field.getTextField(), 1));
- table.addCell(cell);
- document.add(table);
- writer.addAnnotation(personal);
- // step 5
- document.close();
- }
-
- /**
- * Main method
- * @param args no arguments needed
- * @throws IOException
- * @throws DocumentException
- */
- public static void main(String[] args) throws IOException, DocumentException {
- Subscribe subscribe = new Subscribe();
- subscribe.createPdf(FORM);
- HashMap<String,TextField> fieldCache = new HashMap<String,TextField>();
- subscribe.manipulatePdf(FORM, String.format(RESULT, 1), fieldCache, "Bruno Lowagie", "blowagie");
- subscribe.manipulatePdf(FORM, String.format(RESULT, 2), fieldCache, "Paulo Soares", "psoares");
- subscribe.manipulatePdf(FORM, String.format(RESULT, 3), fieldCache, "Mark Storer", "mstorer");
- }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/b5/502c431eb7a7001417ceadf0100b5ef7 b/.metadata/.plugins/org.eclipse.core.resources/.history/b5/502c431eb7a7001417ceadf0100b5ef7
deleted file mode 100644
index 2abad99..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/b5/502c431eb7a7001417ceadf0100b5ef7
+++ /dev/null
@@ -1,295 +0,0 @@
-package io;
-
-import java.awt.BorderLayout;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.util.Map;
-import java.util.Set;
-
-import com.itextpdf.text.BaseColor;
-import com.itextpdf.text.Document;
-import com.itextpdf.text.DocumentException;
-import com.itextpdf.text.Element;
-import com.itextpdf.text.ExceptionConverter;
-import com.itextpdf.text.Font;
-import com.itextpdf.text.Font.FontFamily;
-import com.itextpdf.text.FontFactory;
-import com.itextpdf.text.Image;
-import com.itextpdf.text.PageSize;
-import com.itextpdf.text.Paragraph;
-import com.itextpdf.text.Phrase;
-import com.itextpdf.text.Rectangle;
-import com.itextpdf.text.pdf.AcroFields;
-import com.itextpdf.text.pdf.BaseFont;
-import com.itextpdf.text.pdf.ColumnText;
-import com.itextpdf.text.pdf.GrayColor;
-import com.itextpdf.text.pdf.PdfAction;
-import com.itextpdf.text.pdf.PdfBorderDictionary;
-import com.itextpdf.text.pdf.PdfContentByte;
-import com.itextpdf.text.pdf.PdfFormField;
-import com.itextpdf.text.pdf.PdfPCell;
-import com.itextpdf.text.pdf.PdfPCellEvent;
-import com.itextpdf.text.pdf.PdfPTable;
-import com.itextpdf.text.pdf.PdfReader;
-import com.itextpdf.text.pdf.PdfStamper;
-import com.itextpdf.text.pdf.PdfWriter;
-import com.itextpdf.text.pdf.PushbuttonField;
-import com.itextpdf.text.pdf.RadioCheckField;
-import com.itextpdf.text.pdf.TextField;
-
-import framework.Question;
-
-public class Questionnaire implements PdfPCellEvent{
-
- /** The path output file. */
- String pathOutputFile;
-
- /** The document. */
- Document document;
-
- PdfReader reader;
-
- int tf;
-
- public Questionnaire(String path){
- pathOutputFile = path;
- document = new Document(PageSize.A4, 25, 25, 50, 50);
- }
- public Questionnaire(int tf) throws IOException{
- this.tf = tf;
- reader = new PdfReader(pathOutputFile);
- }
-
- /** The resulting PDF. */
- public static final String RESULT1 = "outputPDF/buttons.pdf";
- /** The resulting PDF. */
- public static final String RESULT2 = "outputPDF/buttons_filled.pdf";
- /** Path to a JavaScript resource. */
- public static final String RESOURCE = "res/buttons.js";
- /** Path to an image used as button icon. */
- public static final String IMAGE = "res/info.png";
- /** Possible values of a radio field / checkboxes */
- public static final String[] LANGUAGES = { "English", "German", "French", "Spanish", "Dutch" };
-
- /**
- * Creates a PDF document.
- * @param filename the path to the new PDF document
- * @throws DocumentException
- * @throws IOException
- */
- public void createPdf(Map<Integer, Question> map, Set<Integer> ids) throws IOException, DocumentException {
-
- @SuppressWarnings("unused")
- PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(pathOutputFile));
-
-
- document.open();
- Image logo = Image.getInstance("res/shcs_logo2.gif");
-
- logo.scalePercent(30f);
- float[] columnWidths1 = {0.2f, 0.8f};
- PdfPTable table_title = new PdfPTable(columnWidths1);
- PdfPCell c01 = new PdfPCell(logo, false);
- PdfPCell c02 = new PdfPCell(new Paragraph("Survery | Project #693",
- FontFactory.getFont(FontFactory.HELVETICA, 20, Font.BOLD, BaseColor.BLACK)));
- c01.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setHorizontalAlignment(Element.ALIGN_CENTER);
- c01.setBorder(Rectangle.NO_BORDER);
- c02.setBorder(Rectangle.NO_BORDER);
-
- table_title.addCell(c01);
- table_title.addCell(c02);
- table_title.setWidthPercentage(100);
- table_title.setSpacingBefore(0);
- table_title.setSpacingAfter(25);
- document.add(table_title);
-
-
- //----------------------------------------------------------------------------------
-
-
- PdfPTable table1 = new PdfPTable(1);
- table1.setWidthPercentage(100);
- PdfPCell c11 = new PdfPCell(new Phrase("Today you are receiving a pharmacogenetic report based on the genetic " +
- "information of your patient. Because the human genome contains extremely private and sensitive information" +
- " of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier," +
- " it must be managed with care. ",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.NORMAL, BaseColor.BLACK)));
- c11.setLeading(1.5f, 1.5f);
- c11.setPaddingBottom(8);
-
-
- table1.addCell(c11);
- table1.setSpacingAfter(10);
- document.add(table1);
-
-
- //----------------------------------------------------------------------------------
-
-// // step 4
-// // add the JavaScript
-// writer.addJavaScript(Utilities.readFileToString(RESOURCE));
-
- for(Integer id: ids){
- PdfPCell c2;
-
- PdfPTable table = new PdfPTable(1);
- table.setSpacingAfter(10);
- table.setWidthPercentage(100);
-
- PdfPCell c1 = new PdfPCell(new Phrase(id + ") " + map.get(id).getQuestion(),FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c1.setPaddingTop(5);
- c1.setPaddingBottom(5);
- c1.setHorizontalAlignment(Element.ALIGN_CENTER);
- c1.setBorder(Rectangle.NO_BORDER);
- table.addCell(c1);
-
- c2 = new PdfPCell(new Phrase(" 1" +
- " 2" +
- " 3" +
- " 4" +
- " 5",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c2.setHorizontalAlignment(Element.ALIGN_LEFT);
- c2.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c2.setCellEvent(new Questionnaire(id));
- c2.setBorder(Rectangle.TOP);
- c2.setPaddingTop(2);
- c2.setPaddingBottom(5);
- c2.setBackgroundColor(new BaseColor(242, 242, 242));
-
- table.addCell(c2);
-
-
-
- document.add(table);
- }
-
-
- //----------------------------------------------------------------------------------
-
- // step 5
- document.close();
-
- }
-
- @Override
- public void cellLayout(PdfPCell cell, Rectangle position,
- PdfContentByte[] canvases) {
- PdfWriter writer = canvases[0].getPdfWriter();
- PdfFormField radiogroup = PdfFormField.createRadioButton(writer, true);
- radiogroup.setFieldName(String.valueOf(tf));
- System.out.println(tf);
-
- float llx = position.getLeft();
- float lly = position.getBottom();
-
- float cell_h = cell.getHeight();
- float cell_w = cell.getWidth();
-
- Rectangle rect;
-
- for(int i=1 ; i<=5; i++){
-
- rect = new Rectangle(llx + (3+i)*cell_w/12, lly+cell_h/2-6, llx + (3+i)*cell_w/12+12 ,lly+cell_h/2+6);
-
- RadioCheckField radio = new RadioCheckField(writer, rect, null, String.valueOf(i));
- radio.setBorderColor(GrayColor.GRAYBLACK);
- radio.setCheckType(RadioCheckField.TYPE_SQUARE);
-
-
- try {
- PdfFormField field = radio.getRadioField();
- radiogroup.addKid(field);
-
- writer.addAnnotation(radiogroup);
- }
-
- catch(IOException ioe) {
- throw new ExceptionConverter(ioe);
- }
- catch(DocumentException de) {
- throw new ExceptionConverter(de);
- }
- }
-
-
-
- }
-
-
- public String getAnswers() throws IOException, DocumentException{
-
- reader.removeUsageRights();
- PdfStamper stamper = new PdfStamper(reader, new FileOutputStream("outputPDF/buttons_filled2.pdf"));
-
-
- AcroFields form = stamper.getAcroFields();
-
- StringBuilder sb = new StringBuilder();
-
-
- Set<String> fields = form.getFields().keySet();
- for(String key: fields){
- System.out.println("key = " + key);
- if(form.getFieldType(key)==AcroFields.FIELD_TYPE_RADIOBUTTON){
- sb.append(key);
- sb.append(",");
- sb.append(form.getField(key));
- sb.append(";");
- }
- }
- stamper.close();
- reader.close();
-
-
- return sb.toString();
-
- }
-
-
-// /**
-// * Manipulates a PDF file src with the file dest as result
-// * @param src the original PDF
-// * @param dest the resulting PDF
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public void manipulatePdf(String src, String dest) throws IOException, DocumentException {
-// PdfReader reader = new PdfReader(src);
-// PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(dest));
-// AcroFields form = stamper.getAcroFields();
-// String[] radiostates = form.getAppearanceStates("language");
-// form.setField("language", radiostates[4]);
-// for (int i = 0; i < LANGUAGES.length; i++) {
-// String[] checkboxstates = form.getAppearanceStates("English");
-// form.setField(LANGUAGES[i], checkboxstates[i % 2 == 0 ? 1 : 0]);
-// }
-// stamper.close();
-// reader.close();
-//
-// PdfReader r = new PdfReader(dest);
-// AcroFields f = r.getAcroFields();
-// Set<String> fields = form.getFields().keySet();
-// for(String key: fields){
-// if(f.getFieldType(key)==AcroFields.FIELD_TYPE_RADIOBUTTON){
-// System.out.println(key);
-// System.out.println(f.getField(key));
-//
-// }
-// }
-// r.close();
-//
-// }
-//
-// /**
-// * Main method
-// * @param args no arguments needed
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public static void main(String[] args) throws IOException, DocumentException {
-// Questionnaire buttons = new Questionnaire();
-// buttons.createPdf(RESULT1);
-// buttons.manipulatePdf(RESULT1, RESULT2);
-// }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/b5/60f785204cac001410e2e30aa85db9d1 b/.metadata/.plugins/org.eclipse.core.resources/.history/b5/60f785204cac001410e2e30aa85db9d1
deleted file mode 100644
index c0a1998..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/b5/60f785204cac001410e2e30aa85db9d1
+++ /dev/null
@@ -1,891 +0,0 @@
-package ui;
-
-import io.ClientConnection;
-import io.CommAdapter;
-import io.Questionnaire;
-
-import java.awt.BorderLayout;
-import java.awt.Color;
-import java.awt.Component;
-import java.awt.Dimension;
-import java.awt.FlowLayout;
-import java.awt.Font;
-import java.awt.SystemColor;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.awt.event.WindowAdapter;
-import java.io.File;
-import java.io.IOException;
-import java.sql.SQLException;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.LinkedList;
-import java.util.Map;
-import java.util.Set;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
-import javax.swing.Box;
-import javax.swing.BoxLayout;
-import javax.swing.ButtonGroup;
-import javax.swing.DefaultComboBoxModel;
-import javax.swing.GroupLayout;
-import javax.swing.GroupLayout.Alignment;
-import javax.swing.ImageIcon;
-import javax.swing.JButton;
-import javax.swing.JComboBox;
-import javax.swing.JDialog;
-import javax.swing.JFileChooser;
-import javax.swing.JFrame;
-import javax.swing.JLabel;
-import javax.swing.JOptionPane;
-import javax.swing.JPanel;
-import javax.swing.JRadioButton;
-import javax.swing.JScrollPane;
-import javax.swing.JSeparator;
-import javax.swing.JTabbedPane;
-import javax.swing.JTextArea;
-import javax.swing.JTextPane;
-import javax.swing.JTree;
-import javax.swing.LayoutStyle.ComponentPlacement;
-import javax.swing.SwingConstants;
-import javax.swing.UIManager;
-import javax.swing.border.BevelBorder;
-import javax.swing.border.EmptyBorder;
-import javax.swing.border.EtchedBorder;
-import javax.swing.tree.DefaultMutableTreeNode;
-import javax.swing.tree.TreeModel;
-import javax.swing.tree.TreePath;
-
-import org.jpedal.examples.viewer.Commands;
-import org.jpedal.examples.viewer.Viewer;
-
-import utils.ClientProperties;
-
-import com.itextpdf.text.DocumentException;
-
-import database.DBconnectorClient;
-import framework.Diagnostic;
-import framework.MedUnit;
-import framework.Question;
-import framework.reply.ReplySurvey;
-import framework.test.TestName;
-
-/**
- *
- * @author youssef, raisaro
- */
-public class GUI extends javax.swing.JFrame {
-
- private static final Logger LOGGER = Logger.getLogger(GUI.class.getName());
-
- private static final long serialVersionUID = -4582280515597700650L;
-
- // configuration
- private ClientProperties props;
-
- private JTree jTree;
- private DBconnectorClient connectorClientDB;
- private LinkedList<Integer> patients;
-
- /** List of all relevant tests */
- private HashMap<String, TestName> testsByName;
- private Viewer viewer;
- private JDialog dialog;
- private JFrame frame;
- private boolean survey_submitted;
- private int close_trials;
- private Map<Integer, ButtonGroup> buttonGroupMap;
- private Questionnaire quest;
- private Map<Integer, Question> map;
- private Set<Integer> ids;
- private Map<String,String> answers;
- private Map<Integer, String> locations;
-
-
- /**
- * Creates new form GUI
- */
- public GUI(ClientProperties props){
-
- frame = this;
- this.props = props;
- this.connectorClientDB = new DBconnectorClient(props.getDbMsAccess());
- survey_submitted = false;
- close_trials = 0;
-
-
- try {
- initComponents();
-
- viewer = new Viewer(jScrollPane2, null);
- viewer.setupViewer();
-
- // create questionnare
-
-
- System.out.println("#of questions: " + ids.size());
-
-// viewer_q = new Viewer(jScrollPane4, null);
-// viewer_q.setupViewer();
-//
-// // specify file you wish to open (JPedal handles getting the byte data)
-// String filepathReport = "outputPDF/buttons_filled.pdf";
-//
-// // open generated PDF
-// // object must be either String in full filepath, or
-// // File object which can be relative
-// Object[] input = new Object[]{ new File(filepathReport) };
-// viewer_q.executeCommand(Commands.OPENFILE, input);
-
- JButton btnSubmitQuestionnaire = new JButton("Submit Questionnaire");
- btnSubmitQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- btnSubmitQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- submitButtonActionPerformed(arg0);
- }
- });
- JButton btnResetQuestionnaire = new JButton("Save as PDF");
- btnResetQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- savePDFButtonActionPerformed(arg0);
- }
- });
- btnResetQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- JPanel panel_button = new JPanel();
- panel_button.setLayout(new BoxLayout(panel_button, BoxLayout.X_AXIS));
-
- lblNewLabel_3 = new JLabel("");
- lblNewLabel_3.setIcon(new ImageIcon("res/location_icon.png"));
- panel_button.add(lblNewLabel_3);
-
-
-
- comboBox = new JComboBox<String>();
- comboBox.setFont(new Font("Tahoma", Font.BOLD, 12));
- comboBox.setModel(new DefaultComboBoxModel<String>(new String[] {"Select Location"}));
- for(Integer id_loc : locations.keySet()){
- comboBox.addItem(locations.get(id_loc));
- }
-
-
- panel_button.add(comboBox);
-
- rigidArea = Box.createRigidArea(new Dimension(10, 0));
- panel_button.add(rigidArea);
-
- lblNewLabel_1 = new JLabel("");
- lblNewLabel_1.setIcon(new ImageIcon("res/submit.png"));
- panel_button.add(lblNewLabel_1);
- panel_button.add(btnSubmitQuestionnaire);
-
- panel_button.add(Box.createRigidArea(new Dimension(10,0)));
-
- lblNewLabel_2 = new JLabel("");
- lblNewLabel_2.setIcon(new ImageIcon("res/pdf.png"));
- panel_button.add(lblNewLabel_2);
- panel_button.add(btnResetQuestionnaire);
- panel_button.setPreferredSize(new Dimension(211, 35));
- panel_button.validate();
-
- JPanel panel_3 = new JPanel();
- GroupLayout gl_panel = new GroupLayout(panel);
- gl_panel.setHorizontalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(41)
- .addGroup(gl_panel.createParallelGroup(Alignment.TRAILING)
- .addComponent(jScrollPane4, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE)
- .addComponent(panel_1, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE))
- .addGap(32))
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(63)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addGap(103)
- .addComponent(panel_button, GroupLayout.DEFAULT_SIZE, 488, Short.MAX_VALUE)
- .addGap(241))
- );
- gl_panel.setVerticalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(22)
- .addComponent(panel_1, GroupLayout.DEFAULT_SIZE, 192, Short.MAX_VALUE)
- .addGap(18)
- .addComponent(jScrollPane4, GroupLayout.DEFAULT_SIZE, 437, Short.MAX_VALUE)
- .addGap(26)
- .addGroup(gl_panel.createParallelGroup(Alignment.LEADING)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(panel_button, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE)))
- );
- panel_3.setLayout(new BoxLayout(panel_3, BoxLayout.X_AXIS));
-
-
- panel.setLayout(gl_panel);
-
-
-
-
-
-
- /////////////////////////////////////////////////////////
- // display the tests available
-
- // get the tests
- HashMap<String, ArrayList<TestName>> testsRelevantByGroup = connectorClientDB.getRelevantTestsByGroup();
- ArrayList<String> groups = new ArrayList<String>(testsRelevantByGroup.keySet());
-
- // flatten hashmap into linkedlist
-// tests = new LinkedList<>();
- testsByName = new HashMap<String, TestName>();
- for (String group : groups) {
-// tests.addAll(testsRelevantByGroup.get(group));
- for (TestName test : testsRelevantByGroup.get(group)) {
- testsByName.put(test.getName(), test);
- }
- }
-
- // define tree structure of the tests
- DefaultMutableTreeNode root = new DefaultMutableTreeNode("All");
-
- for (String group : groups) {
- DefaultMutableTreeNode child = new DefaultMutableTreeNode(group);
- root.add(child);
-
- for (TestName test : testsRelevantByGroup.get(group)) {
- DefaultMutableTreeNode grandChild = new DefaultMutableTreeNode(test.getName());
- child.add(grandChild);
- }
- }
-
- // define swing object
- jTree = new JTree(root);
-
- for(int i=0;i<jTree.getRowCount();i++){
- jTree.expandRow(i);
- }
-
- jScrollPane3.setViewportView(jTree);
-// jTree.addTreeSelectionListener(new TreeSelectionListener() {
-//
-// @Override
-// public void valueChanged(TreeSelectionEvent e) {
-// tp = jTree.getSelectionPaths();
-// }
-// });
- jScrollPane3.setViewportView(jTree);
-
- /////////////////////////////////////////////////////////
- // display the patients registered
-
- patients = connectorClientDB.getPatients();
- for (Integer patientId : patients) {
- jComboBox1.addItem(patientId.toString());
- }
-
- } catch (SQLException ex) {
- Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex);
- ex.printStackTrace();
-// } catch (IOException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
-// } catch (DocumentException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
- }
-
- }
-
- /**
- * 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() {
-
- jPanel1 = new javax.swing.JPanel();
- jLabel2 = new javax.swing.JLabel();
- jLabel1 = new javax.swing.JLabel();
- jPanel2 = new javax.swing.JPanel();
- jComboBox1 = new javax.swing.JComboBox<String>();
- jButton1 = new javax.swing.JButton();
- jButton1.setFont(new Font("Tahoma", Font.BOLD, 12));
- jLabel3 = new javax.swing.JLabel();
- jLabel4 = new javax.swing.JLabel();
- jScrollPane3 = new javax.swing.JScrollPane();
- jScrollPane2 = new javax.swing.JScrollPane();
- jMenuBar1 = new javax.swing.JMenuBar();
- jMenu1 = new javax.swing.JMenu();
- jMenuItem1 = new javax.swing.JMenuItem();
- jMenu2 = new javax.swing.JMenu();
- dialog = new JDialog();
- tabbedPane = new JTabbedPane(JTabbedPane.TOP);
-
- setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
- addWindowListener(new WindowAdapter() {
- @Override
- public void windowClosing(java.awt.event.WindowEvent windowEvent) {
- if (!survey_submitted && close_trials <= 2){
- JOptionPane.showMessageDialog(frame, "Before closing the application, please fill in and submit the questionnaire.");
- close_trials++;
- tabbedPane.setSelectedIndex(1);
- }else{
- System.exit(0);
- }
- }
- });
- setTitle("HIV Pharmacogenomics\n");
-
- jLabel2.setIcon(new javax.swing.ImageIcon("res/shcs_logo2_small.gif")); // NOI18N
-
- jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
- jLabel1.setText("HIV Pharmacogenomics | Project #693");
-
- javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
- jPanel1.setLayout(jPanel1Layout);
- jPanel1Layout.setHorizontalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap(71, Short.MAX_VALUE)
- .addComponent(jLabel1)
- .addGap(18, 18, 18)
- .addComponent(jLabel2))
- );
- jPanel1Layout.setVerticalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jLabel1)
- .addGap(11, 11, 11))
- .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)
- );
-
- jPanel2.setBackground(new java.awt.Color(255, 255, 255));
- jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
-
- jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<String>(new String[]{"Select Patient"}));
-
- jButton1.setText("Run Test");
- jButton1.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton1ActionPerformed(evt);
- }
- });
-
- JLabel lblNewLabel = new JLabel("");
- lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
- lblNewLabel.setIcon(new javax.swing.ImageIcon("res/gears.png"));
-
-
-
- javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
- jPanel2Layout.setHorizontalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addComponent(jComboBox1, 0, 248, Short.MAX_VALUE)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addGap(75)
- .addGroup(jPanel2Layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jButton1)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 75, GroupLayout.PREFERRED_SIZE))
- .addContainerGap(98, Short.MAX_VALUE))
- );
- jPanel2Layout.setVerticalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addComponent(jComboBox1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED, 223, Short.MAX_VALUE)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jButton1)
- .addGap(19))
- );
- jPanel2.setLayout(jPanel2Layout);
-
- jLabel3.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel3.setText("Select Patient");
-
- jLabel4.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel4.setText("Select Test");
-
- jScrollPane3.setBackground(new java.awt.Color(255, 255, 255));
-
- jMenu1.setText("File");
-
- jMenuItem1.setText("Exit");
- jMenu1.add(jMenuItem1);
-
- jMenuBar1.add(jMenu1);
-
- jMenu2.setText("Edit");
- jMenuBar1.add(jMenu2);
-
- setJMenuBar(jMenuBar1);
-
-
-
- javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
- layout.setHorizontalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(layout.createParallelGroup(Alignment.LEADING, false)
- .addComponent(jLabel3)
- .addComponent(jLabel4)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, 244, Short.MAX_VALUE)
- .addComponent(jScrollPane3))
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 970, Short.MAX_VALUE))
- .addContainerGap())
- );
- layout.setVerticalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel4))
- .addPreferredGap(ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addComponent(jScrollPane3, GroupLayout.PREFERRED_SIZE, 388, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jLabel3)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 785, Short.MAX_VALUE))
- .addContainerGap())
- );
-
-
- jScrollPane2.setAutoscrolls(true);
- jScrollPane3.setAutoscrolls(true);
- tabbedPane.addTab("Report", new ImageIcon("res/report_icon.gif"), jScrollPane2, null);
- tabbedPane.setBackgroundAt(0, new Color(255, 255, 255));
-
- panel = new JPanel();
- tabbedPane.addTab("Survey", new ImageIcon("res/survey_icon.png"), panel, null);
- tabbedPane.setBackgroundAt(1, new Color(255, 255, 255));
- tabbedPane.setEnabledAt(1, true);
-
- panel_1 = new JPanel();
- panel_1.setBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null));
- panel_1.setBackground(UIManager.getColor("Button.background"));
-
- JLabel label = new JLabel("");
- label.setIcon(new ImageIcon("res/shcs_logo2_medium.gif"));
-
- lblDearDoctor = new JLabel("Dear Doctor,");
- lblDearDoctor.setFont(new Font("Tahoma", Font.BOLD, 14));
-
- JScrollPane scrollPane = new JScrollPane();
- scrollPane.setBorder(null);
- GroupLayout gl_panel_1 = new GroupLayout(panel_1);
- gl_panel_1.setHorizontalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(25)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 666, Short.MAX_VALUE)
- .addComponent(lblDearDoctor))
- .addContainerGap())
- );
- gl_panel_1.setVerticalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(22)
- .addComponent(lblDearDoctor)
- .addGap(18)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 120, Short.MAX_VALUE)
- .addContainerGap())
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(36)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 96, GroupLayout.PREFERRED_SIZE)
- .addContainerGap(56, Short.MAX_VALUE))
- );
-
- JTextPane txtpnTodayYouAre = new JTextPane();
- txtpnTodayYouAre.setBorder(null);
- txtpnTodayYouAre.setText("Today you are receiving a pharmacogenetic report based on the genetic information of your patient. Because the human genome contains extremely private and sensitive information of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier, it must be managed with care.\r\nToday you are receiving a pharmacogenetic report based on the genetic information of your patient. Because the human genome contains extremely private and sensitive information of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier, it must be managed with care.\r\nToday you are receiving a pharmacogenetic report based on the genetic information of your patient. Because the human genome contains extremely private and sensitive information of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier, it must be managed with care.");
- txtpnTodayYouAre.setFont(new Font("Tahoma", Font.PLAIN, 13));
- txtpnTodayYouAre.setEditable(false);
- txtpnTodayYouAre.setBackground(SystemColor.menu);
- scrollPane.setViewportView(txtpnTodayYouAre);
- panel_1.setLayout(gl_panel_1);
- jScrollPane4 = new javax.swing.JScrollPane();
- getContentPane().setLayout(layout);
-
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
- ReplySurvey replySurvey = commHandlerAdapter.callServiceSurvey();
-
- map = replySurvey.getQuestions();
- ids = map.keySet();
- locations = replySurvey.getLocations();
-
- panel_2 = new JPanel();
- panel_2.setBackground(Color.WHITE);
- panel_2.setBorder(new BevelBorder(BevelBorder.LOWERED, null, null, null, null));
- jScrollPane4.setViewportView(panel_2);
- panel_2.setLayout(new BoxLayout(panel_2, BoxLayout.Y_AXIS));
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
-
-
- for(Integer id : ids){
- ButtonGroup group = new ButtonGroup();
- JRadioButton r1 = new JRadioButton("1"); r1.setActionCommand("1"); r1.setBackground(Color.WHITE);
- JRadioButton r2 = new JRadioButton("2"); r2.setActionCommand("2"); r2.setBackground(Color.WHITE);
- JRadioButton r3 = new JRadioButton("3"); r3.setActionCommand("3"); r3.setBackground(Color.WHITE);
- JRadioButton r4 = new JRadioButton("4"); r4.setActionCommand("4"); r4.setBackground(Color.WHITE);
- JRadioButton r5 = new JRadioButton("5"); r5.setActionCommand("5"); r5.setBackground(Color.WHITE);
- group.add(r1);
- group.add(r2);
- group.add(r3);
- group.add(r4);
- group.add(r5);
- JPanel radio_panel = new JPanel();
- radio_panel.setLayout((new BoxLayout(radio_panel, BoxLayout.X_AXIS)));
- radio_panel.setBackground(Color.WHITE);
- radio_panel.setAlignmentX(Component.CENTER_ALIGNMENT);
- radio_panel.add(r1);
- radio_panel.add(r2);
- radio_panel.add(r3);
- radio_panel.add(r4);
- radio_panel.add(r5);
- radio_panel.doLayout();
- radio_panel.setPreferredSize(radio_panel.getPreferredSize());
- JTextArea question = new JTextArea(id + ") " + map.get(id).getQuestion());
- question.setLineWrap(true);
- question.setWrapStyleWord(true);
- question.setAlignmentX(Component.CENTER_ALIGNMENT);
- question.setFont(new Font("Tahoma", Font.PLAIN, 13));
- JPanel row_panel = new JPanel();
- row_panel.setLayout(new BoxLayout(row_panel, BoxLayout.X_AXIS));
- row_panel.add(question);
- row_panel.add(radio_panel);
-
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- panel_2.add(row_panel);
-// panel_2.add(Box.createRigidArea(new Dimension(0,5)));
-// panel_2.add(radio_panel);
- panel_2.add(new JSeparator());
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- buttonGroupMap.put(id, group);
-
- }
-
-
-
- this.setSize(new Dimension(1200, 865));
-// pack();
- }// </editor-fold>//GEN-END:initComponents
-
-
- private void submitButtonActionPerformed(java.awt.event.ActionEvent evt){
-
- try{
- answers = new HashMap<String, String>();
- StringBuilder sb = new StringBuilder();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- sb.append(q).append(",");
- sb.append(bg.getSelection().getActionCommand()).append(";");
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- String answer = sb.toString();
- Integer id_loc = null;
- for(Integer i: locations.keySet()){
- if(locations.get(i).equals(comboBox.getSelectedItem().toString()))
- id_loc = i;
- }
-
- String id_p;
- if(jComboBox1.getSelectedItem().toString().equals("Select Patient"))
- id_p = "0";
- else
- id_p = jComboBox1.getSelectedItem().toString();
-
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
-
- String reply = commHandlerAdapter.callServiceSurveyAnswer(answer, id_loc.toString(), id_p);
-
- if(reply.equals("1")){
- survey_submitted = true;
-
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Congrats! Your aswers have been sent to the SHCS datacenter.",
- "Information Message",
- JOptionPane.INFORMATION_MESSAGE);
- }
- else{
- throw new IOException();
- }
-
-
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "The SHCS datacenter does not respond. Please save the survey and send it to jean.raisaro@epfl.ch.",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
- private void savePDFButtonActionPerformed(java.awt.event.ActionEvent evt){
- try {
-
- answers = new HashMap<String, String>();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- JFileChooser chooser = new JFileChooser();
- // Note: source for ExampleFileFilter can be found in FileChooserDemo,
- // under the demo/jfc directory in the JDK.
-
- int returnVal = chooser.showSaveDialog(this);
- System.out.println(returnVal);
- if(returnVal == JFileChooser.APPROVE_OPTION) {
- System.out.println("You chose to open this file: " +
- chooser.getSelectedFile().getPath());
- quest = new Questionnaire(chooser.getSelectedFile().getPath() + ".pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }else{
- quest = new Questionnaire("outputPDF/survey.pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }
-
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (DocumentException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (NullPointerException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
-
- private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
-
- JPanel contentPanel = new JPanel();
-
- dialog.setBounds(100, 100, 410, 80);
- dialog.getContentPane().setLayout(new BorderLayout());
- contentPanel.setLayout(new FlowLayout());
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- dialog.getContentPane().add(contentPanel, BorderLayout.CENTER);
- {
- JLabel label = new JLabel("Please wait...The overall computation can take few seconds");
- label.setHorizontalAlignment(SwingConstants.CENTER);
- label.setFont(new Font("Tahoma", Font.PLAIN, 12));
- contentPanel.add(label);
- }
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
- dialog.getContentPane().add(buttonPane, BorderLayout.SOUTH);
- }
- dialog.setLocationRelativeTo(this);
- dialog.setVisible(true);
-
- GUIWorker gw = new GUIWorker(this, props);
- Thread t = new Thread(gw);
- t.start();
-
- }
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JButton jButton1;
- private javax.swing.JComboBox<String> jComboBox1;
- private javax.swing.JLabel jLabel1;
- private javax.swing.JLabel jLabel2;
- private javax.swing.JLabel jLabel3;
- private javax.swing.JLabel jLabel4;
- private javax.swing.JMenu jMenu1;
- private javax.swing.JMenu jMenu2;
- private javax.swing.JMenuBar jMenuBar1;
- private javax.swing.JMenuItem jMenuItem1;
- private javax.swing.JPanel jPanel1;
- private javax.swing.JPanel jPanel2;
- private javax.swing.JScrollPane jScrollPane3;
- private javax.swing.JTabbedPane tabbedPane;
- private javax.swing.JScrollPane jScrollPane2;
- private javax.swing.JScrollPane jScrollPane4;
- private JPanel panel;
- private JPanel panel_1;
- private JPanel panel_2;
- private JLabel lblDearDoctor;
- private JLabel lblNewLabel_1;
- private JLabel lblNewLabel_2;
- private JLabel lblNewLabel_3;
- private JComboBox<String> comboBox;
- private Component rigidArea;
-
- // End of variables declaration//GEN-END:variables
-
-
- class GUIWorker implements Runnable{
-
- private JFrame mainFrame;
- private ClientProperties props;
- private MedUnit mu;
-
- public GUIWorker(GUI gui, ClientProperties props) {
- mainFrame = gui;
-
- this.props = props;
- this.mu = new MedUnit(props, 0);
- }
-
- @Override
- public void run() {
-
- try{
- int patientId = Integer.parseInt((String) jComboBox1.getSelectedItem());
-
- // convert selected tests to test identifiers
- ArrayList<TestName> selectedTests = new ArrayList<TestName>();
- for (String currentName : getSelectedTests()) {
- TestName currentTest = testsByName.get(currentName);
-
- if (currentTest == null) {
- throw new IllegalStateException("Trying to run unknown test: " + currentTest);
- }
-
- selectedTests.add(currentTest);
- }
-
- // run tests
- Diagnostic diagnostic = mu.runTests(patientId, selectedTests);
-
- // warn for tests with missing material
- warnFailedTests(diagnostic, selectedTests);
-
- // create report
- mu.createReport(patientId, selectedTests, diagnostic);
-
- dialog.setVisible(false);
-
- // specify file you wish to open (JPedal handles getting the byte data)
- String filepathReport = props.getPathPDF() + patientId + ".pdf";
-
- // open generated PDF
- // object must be either String in full filepath, or
- // File object which can be relative
- Object[] input = new Object[]{ new File(filepathReport) };
- viewer.executeCommand(Commands.OPENFILE, input);
-
- // display CAD result as bar plot
- if (diagnostic.hasCAD()) {
- System.out.println("CAD = " + diagnostic.getResultCAD());
- BarPlotFrame frame = new BarPlotFrame(diagnostic.getResultCAD(), patientId);
- frame.setVisible(true);
- frame.setAlwaysOnTop(true);
- }
-
-
- } catch (SQLException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Please select a patient.");
- }
-
- }
-
- private void warnFailedTests(Diagnostic diagnostic, ArrayList<TestName> selectedTests) {
- ArrayList<Integer> failedTests = diagnostic.getInvalidTests();
-
- if (!failedTests.isEmpty()) {
- String msg = "Could not complete tests: ";
- boolean first = true;
- for (TestName testName : selectedTests) {
- if (failedTests.contains(testName.getId())) {
- if (first) {
- first = false;
- } else {
- msg += ", ";
- }
- msg += testName.getName();
- }
- }
- displayError(msg);
- }
-
- }
-
- private void displayError(String msg) {
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- mainFrame,
- msg,
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
-
- private ArrayList<String> getSelectedTests() {
- ArrayList<String> tests = new ArrayList<String>();
-
- for (TreePath treePath : jTree.getSelectionPaths()) {
- tests.addAll(getChildrenTests(jTree.getModel(), treePath.getLastPathComponent()));
- }
-
- return tests;
- }
-
- private ArrayList<String> getChildrenTests(TreeModel model, Object node) {
- ArrayList<String> tests = new ArrayList<String>();
-
- if (model.isLeaf(node)) { // leaf
- DefaultMutableTreeNode leaf = (DefaultMutableTreeNode) node;
- tests.add(leaf.toString());
- }
- else { // iterate over children
- for (int i = 0; i < model.getChildCount(node); i++) {
- tests.addAll(getChildrenTests(model, model.getChild(node, i)));
- }
- }
-
- return tests;
- }
-
- }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/b5/c0d5b5080fa70014162f978bbd19228b b/.metadata/.plugins/org.eclipse.core.resources/.history/b5/c0d5b5080fa70014162f978bbd19228b
deleted file mode 100644
index 8e81c69..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/b5/c0d5b5080fa70014162f978bbd19228b
+++ /dev/null
@@ -1,259 +0,0 @@
-package io;
-
-import java.awt.BorderLayout;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.util.Map;
-import java.util.Set;
-
-import com.itextpdf.text.BaseColor;
-import com.itextpdf.text.Document;
-import com.itextpdf.text.DocumentException;
-import com.itextpdf.text.Element;
-import com.itextpdf.text.ExceptionConverter;
-import com.itextpdf.text.Font;
-import com.itextpdf.text.Font.FontFamily;
-import com.itextpdf.text.FontFactory;
-import com.itextpdf.text.Image;
-import com.itextpdf.text.PageSize;
-import com.itextpdf.text.Paragraph;
-import com.itextpdf.text.Phrase;
-import com.itextpdf.text.Rectangle;
-import com.itextpdf.text.pdf.BaseFont;
-import com.itextpdf.text.pdf.ColumnText;
-import com.itextpdf.text.pdf.GrayColor;
-import com.itextpdf.text.pdf.PdfBorderDictionary;
-import com.itextpdf.text.pdf.PdfContentByte;
-import com.itextpdf.text.pdf.PdfFormField;
-import com.itextpdf.text.pdf.PdfPCell;
-import com.itextpdf.text.pdf.PdfPCellEvent;
-import com.itextpdf.text.pdf.PdfPTable;
-import com.itextpdf.text.pdf.PdfWriter;
-import com.itextpdf.text.pdf.RadioCheckField;
-import com.itextpdf.text.pdf.TextField;
-
-import framework.Question;
-
-public class Questionnaire implements PdfPCellEvent{
-
- /** The path output file. */
- String pathOutputFile;
-
- /** The document. */
- Document document;
-
- int tf;
-
- public Questionnaire(String path){
- pathOutputFile = path;
- document = new Document(PageSize.A4, 25, 25, 50, 50);
- }
- public Questionnaire(int tf){
- this.tf = tf;
- }
-
- /** The resulting PDF. */
- public static final String RESULT1 = "outputPDF/buttons.pdf";
- /** The resulting PDF. */
- public static final String RESULT2 = "outputPDF/buttons_filled.pdf";
- /** Path to a JavaScript resource. */
- public static final String RESOURCE = "res/buttons.js";
- /** Path to an image used as button icon. */
- public static final String IMAGE = "res/info.png";
- /** Possible values of a radio field / checkboxes */
- public static final String[] LANGUAGES = { "English", "German", "French", "Spanish", "Dutch" };
-
- /**
- * Creates a PDF document.
- * @param filename the path to the new PDF document
- * @throws DocumentException
- * @throws IOException
- */
- public void createPdf(Map<Integer, Question> map, Set<Integer> ids) throws IOException, DocumentException {
-
- @SuppressWarnings("unused")
- PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(pathOutputFile));
-
-
- document.open();
- Image logo = Image.getInstance("res/shcs_logo2.gif");
-
- logo.scalePercent(30f);
- float[] columnWidths1 = {0.2f, 0.8f};
- PdfPTable table_title = new PdfPTable(columnWidths1);
- PdfPCell c01 = new PdfPCell(logo, false);
- PdfPCell c02 = new PdfPCell(new Paragraph("HIV Pharmacogenomic report | Project #693 | Survey",
- FontFactory.getFont(FontFactory.HELVETICA, 20, Font.BOLD, BaseColor.BLACK)));
- c01.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c01.setBorder(Rectangle.NO_BORDER);
- c02.setBorder(Rectangle.NO_BORDER);
-
- table_title.addCell(c01);
- table_title.addCell(c02);
- table_title.setWidthPercentage(100);
- table_title.setSpacingBefore(0);
- table_title.setSpacingAfter(25);
- document.add(table_title);
-
-
- //----------------------------------------------------------------------------------
-
-
- PdfPTable table1 = new PdfPTable(1);
- table1.setWidthPercentage(100);
- PdfPCell c11 = new PdfPCell(new Phrase("Today you are receiving a pharmacogenetic report based on the genetic " +
- "information of your patient. Because the human genome contains extremely private and sensitive information" +
- " of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier," +
- " it must be managed with care. ",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.NORMAL, BaseColor.BLACK)));
- c11.setLeading(1.5f, 1.5f);
- c11.setPaddingBottom(8);
-
-
- table1.addCell(c11);
- table1.setSpacingAfter(10);
- document.add(table1);
-
-
- //----------------------------------------------------------------------------------
-
-// // step 4
-// // add the JavaScript
-// writer.addJavaScript(Utilities.readFileToString(RESOURCE));
-
-
-
-
- // add the radio buttons
- for(Integer id: ids){
- PdfPCell c2;
-
- PdfPTable table = new PdfPTable(1);
- table.setSpacingAfter(10);
- table.setWidthPercentage(100);
-// table.setWidths(new int[]{ 1, 2});
-
- PdfPCell c1 = new PdfPCell(new Phrase(id + ") " + map.get(id).getQuestion(),FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c1.setPaddingTop(5);
- c1.setPaddingBottom(5);
- c1.setHorizontalAlignment(Element.ALIGN_CENTER);
- c1.setBorder(Rectangle.BOX);
- table.addCell(c1);
-
- c2 = new PdfPCell(new Phrase(" 1" +
- " 2" +
- " 3" +
- " 4" +
- " 5",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c2.setHorizontalAlignment(Element.ALIGN_LEFT);
- c2.setCellEvent(new Questionnaire(id));
-// c2.setLeading(1.5f, 1.5f);
- c2.setBorder(Rectangle.BOTTOM);
- c2.setPaddingTop(2);
- c2.setPaddingBottom(5);
- c2.setBackgroundColor(new BaseColor(242, 242, 242));
-
- table.addCell(c2);
-
-
-
- document.add(table);
- }
-
-//
- // step 5
- document.close();
-
- }
-
- @Override
- public void cellLayout(PdfPCell cell, Rectangle position,
- PdfContentByte[] canvases) {
- PdfWriter writer = canvases[0].getPdfWriter();
- PdfFormField radiogroup = PdfFormField.createRadioButton(writer, true);
- radiogroup.setFieldName(String.valueOf(tf));
-
- float llx = position.getLeft();
- float lly = position.getBottom();
- float urx = position.getRight();
- float ury = position.getTop();
- float cell_h = cell.getHeight();
- float cell_w = cell.getWidth();
-
- Rectangle rect;
-
- for(int i=1 ; i<=5; i++){
-
-
- rect = new Rectangle(llx + (3+i)*cell_w/12, lly+cell_h/2-6, llx + (3+i)*cell_w/12+12 ,lly+cell_h/2+6);
-
- RadioCheckField radio = new RadioCheckField(writer, rect, null, String.valueOf(i));
- radio.setBorderColor(GrayColor.GRAYBLACK);
- radio.setCheckType(RadioCheckField.TYPE_SQUARE);
-
-
- try {
- PdfFormField field = radio.getRadioField();
- radiogroup.addKid(field);
-
- writer.addAnnotation(radiogroup);
- }
-
- catch(IOException ioe) {
- throw new ExceptionConverter(ioe);
- }
- catch(DocumentException de) {
- throw new ExceptionConverter(de);
- }
- }
-
-
-
- }
-
-// /**
-// * Manipulates a PDF file src with the file dest as result
-// * @param src the original PDF
-// * @param dest the resulting PDF
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public void manipulatePdf(String src, String dest) throws IOException, DocumentException {
-// PdfReader reader = new PdfReader(src);
-// PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(dest));
-// AcroFields form = stamper.getAcroFields();
-// String[] radiostates = form.getAppearanceStates("language");
-// form.setField("language", radiostates[4]);
-// for (int i = 0; i < LANGUAGES.length; i++) {
-// String[] checkboxstates = form.getAppearanceStates("English");
-// form.setField(LANGUAGES[i], checkboxstates[i % 2 == 0 ? 1 : 0]);
-// }
-// stamper.close();
-// reader.close();
-//
-// PdfReader r = new PdfReader(dest);
-// AcroFields f = r.getAcroFields();
-// Set<String> fields = form.getFields().keySet();
-// for(String key: fields){
-// if(f.getFieldType(key)==AcroFields.FIELD_TYPE_RADIOBUTTON){
-// System.out.println(key);
-// System.out.println(f.getField(key));
-//
-// }
-// }
-// r.close();
-//
-// }
-//
-// /**
-// * Main method
-// * @param args no arguments needed
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public static void main(String[] args) throws IOException, DocumentException {
-// Questionnaire buttons = new Questionnaire();
-// buttons.createPdf(RESULT1);
-// buttons.manipulatePdf(RESULT1, RESULT2);
-// }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/b5/d04cd6b0e3aa00141e3195e465ce1b27 b/.metadata/.plugins/org.eclipse.core.resources/.history/b5/d04cd6b0e3aa00141e3195e465ce1b27
deleted file mode 100644
index 1c0f89c..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/b5/d04cd6b0e3aa00141e3195e465ce1b27
+++ /dev/null
@@ -1,59 +0,0 @@
-package ui;
-
-import java.awt.BorderLayout;
-import java.awt.Color;
-
-import javax.swing.JFrame;
-import javax.swing.JPanel;
-import javax.swing.border.EmptyBorder;
-
-import org.math.plot.Plot2DPanel;
-
-@SuppressWarnings("serial")
-public class BarPlotFrame extends JFrame {
-
- private JPanel contentPane;
-
- private final double max_risk = 18.6;
- private final double highest_risk = 4.516;
- private final double average = 1.594;
-
- /**
- * Create the frame.
- */
- public BarPlotFrame(double risk, int ID_p) {
- setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
- setBounds(100, 100, 450, 300);
- contentPane = new JPanel();
- contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
- contentPane.setLayout(new BorderLayout(0, 0));
- setContentPane(contentPane);
-
- Plot2DPanel plot = new Plot2DPanel();
- plot.plotCanvas.setAxisLabels(new String[] {"","RISK"});
- plot.plotCanvas.setAxisScales(new String[] {"lin", "lin"});
-
-
- double[][] current_risk = {{1d,(100*risk/max_risk)}};
- double[][] risk_10y = {{2d,(100*(risk+2*0.76)/max_risk)}};
- double[][] average_risk = {{3d,(100*average/max_risk)}};
-
-
- double[] dX = {0.75};
-
- plot.addHistogramPlot("Average Risk",Color.BLUE, average_risk, dX);
- plot.addHistogramPlot("Current risk", Color.ORANGE, current_risk, dX);
- plot.addHistogramPlot("Risk in 10 years", Color.RED, risk_10y, dX);
- if(risk >= highest_risk)
- plot.addLabel("INCREASED RISK OF CAD", Color.RED, new double[]{2d,110d});
- plot.setFixedBounds(0, 0, 5);
- plot.setFixedBounds(1, 0, 100);
- plot.addLegend("WEST");
- plot.getAxis(0).setGridVisible(false);
- plot.includeInBounds(new double[] {0d,100d});
-
- this.setTitle("CAD risk for patient: " + ID_p);
- contentPane.add(plot);
- }
-
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/b6/20caba259da7001417ceadf0100b5ef7 b/.metadata/.plugins/org.eclipse.core.resources/.history/b6/20caba259da7001417ceadf0100b5ef7
deleted file mode 100644
index 165fd02..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/b6/20caba259da7001417ceadf0100b5ef7
+++ /dev/null
@@ -1,286 +0,0 @@
-package io;
-
-import java.awt.BorderLayout;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.util.Map;
-import java.util.Set;
-
-import com.itextpdf.text.BaseColor;
-import com.itextpdf.text.Document;
-import com.itextpdf.text.DocumentException;
-import com.itextpdf.text.Element;
-import com.itextpdf.text.ExceptionConverter;
-import com.itextpdf.text.Font;
-import com.itextpdf.text.Font.FontFamily;
-import com.itextpdf.text.FontFactory;
-import com.itextpdf.text.Image;
-import com.itextpdf.text.PageSize;
-import com.itextpdf.text.Paragraph;
-import com.itextpdf.text.Phrase;
-import com.itextpdf.text.Rectangle;
-import com.itextpdf.text.pdf.AcroFields;
-import com.itextpdf.text.pdf.BaseFont;
-import com.itextpdf.text.pdf.ColumnText;
-import com.itextpdf.text.pdf.GrayColor;
-import com.itextpdf.text.pdf.PdfBorderDictionary;
-import com.itextpdf.text.pdf.PdfContentByte;
-import com.itextpdf.text.pdf.PdfFormField;
-import com.itextpdf.text.pdf.PdfPCell;
-import com.itextpdf.text.pdf.PdfPCellEvent;
-import com.itextpdf.text.pdf.PdfPTable;
-import com.itextpdf.text.pdf.PdfReader;
-import com.itextpdf.text.pdf.PdfStamper;
-import com.itextpdf.text.pdf.PdfWriter;
-import com.itextpdf.text.pdf.RadioCheckField;
-import com.itextpdf.text.pdf.TextField;
-
-import framework.Question;
-
-public class Questionnaire implements PdfPCellEvent{
-
- /** The path output file. */
- String pathOutputFile;
-
- /** The document. */
- Document document;
-
- int tf;
-
- public Questionnaire(String path){
- pathOutputFile = path;
- document = new Document(PageSize.A4, 25, 25, 50, 50);
- }
- public Questionnaire(int tf){
- this.tf = tf;
- }
-
- /** The resulting PDF. */
- public static final String RESULT1 = "outputPDF/buttons.pdf";
- /** The resulting PDF. */
- public static final String RESULT2 = "outputPDF/buttons_filled.pdf";
- /** Path to a JavaScript resource. */
- public static final String RESOURCE = "res/buttons.js";
- /** Path to an image used as button icon. */
- public static final String IMAGE = "res/info.png";
- /** Possible values of a radio field / checkboxes */
- public static final String[] LANGUAGES = { "English", "German", "French", "Spanish", "Dutch" };
-
- /**
- * Creates a PDF document.
- * @param filename the path to the new PDF document
- * @throws DocumentException
- * @throws IOException
- */
- public void createPdf(Map<Integer, Question> map, Set<Integer> ids) throws IOException, DocumentException {
-
- @SuppressWarnings("unused")
- PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(pathOutputFile));
-
-
- document.open();
- Image logo = Image.getInstance("res/shcs_logo2.gif");
-
- logo.scalePercent(30f);
- float[] columnWidths1 = {0.2f, 0.8f};
- PdfPTable table_title = new PdfPTable(columnWidths1);
- PdfPCell c01 = new PdfPCell(logo, false);
- PdfPCell c02 = new PdfPCell(new Paragraph("Survery | Project #693",
- FontFactory.getFont(FontFactory.HELVETICA, 20, Font.BOLD, BaseColor.BLACK)));
- c01.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setHorizontalAlignment(Element.ALIGN_CENTER);
- c01.setBorder(Rectangle.NO_BORDER);
- c02.setBorder(Rectangle.NO_BORDER);
-
- table_title.addCell(c01);
- table_title.addCell(c02);
- table_title.setWidthPercentage(100);
- table_title.setSpacingBefore(0);
- table_title.setSpacingAfter(25);
- document.add(table_title);
-
-
- //----------------------------------------------------------------------------------
-
-
- PdfPTable table1 = new PdfPTable(1);
- table1.setWidthPercentage(100);
- PdfPCell c11 = new PdfPCell(new Phrase("Today you are receiving a pharmacogenetic report based on the genetic " +
- "information of your patient. Because the human genome contains extremely private and sensitive information" +
- " of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier," +
- " it must be managed with care. ",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.NORMAL, BaseColor.BLACK)));
- c11.setLeading(1.5f, 1.5f);
- c11.setPaddingBottom(8);
-
-
- table1.addCell(c11);
- table1.setSpacingAfter(10);
- document.add(table1);
-
-
- //----------------------------------------------------------------------------------
-
-// // step 4
-// // add the JavaScript
-// writer.addJavaScript(Utilities.readFileToString(RESOURCE));
-
- for(Integer id: ids){
- PdfPCell c2;
-
- PdfPTable table = new PdfPTable(1);
- table.setSpacingAfter(10);
- table.setWidthPercentage(100);
-
- PdfPCell c1 = new PdfPCell(new Phrase(id + ") " + map.get(id).getQuestion(),FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c1.setPaddingTop(5);
- c1.setPaddingBottom(5);
- c1.setHorizontalAlignment(Element.ALIGN_CENTER);
- c1.setBorder(Rectangle.NO_BORDER);
- table.addCell(c1);
-
- c2 = new PdfPCell(new Phrase(" 1" +
- " 2" +
- " 3" +
- " 4" +
- " 5",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c2.setHorizontalAlignment(Element.ALIGN_LEFT);
- c2.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c2.setCellEvent(new Questionnaire(id));
- c2.setBorder(Rectangle.TOP);
- c2.setPaddingTop(2);
- c2.setPaddingBottom(5);
- c2.setBackgroundColor(new BaseColor(242, 242, 242));
-
- table.addCell(c2);
-
-
-
- document.add(table);
- }
-
-
- //----------------------------------------------------------------------------------
-
- // step 5
- document.close();
-
- }
-
- @Override
- public void cellLayout(PdfPCell cell, Rectangle position,
- PdfContentByte[] canvases) {
- PdfWriter writer = canvases[0].getPdfWriter();
- PdfFormField radiogroup = PdfFormField.createRadioButton(writer, true);
- radiogroup.setFieldName(String.valueOf(tf));
- System.out.println(tf);
-
- float llx = position.getLeft();
- float lly = position.getBottom();
-
- float cell_h = cell.getHeight();
- float cell_w = cell.getWidth();
-
- Rectangle rect;
-
- for(int i=1 ; i<=5; i++){
-
- rect = new Rectangle(llx + (3+i)*cell_w/12, lly+cell_h/2-6, llx + (3+i)*cell_w/12+12 ,lly+cell_h/2+6);
-
- RadioCheckField radio = new RadioCheckField(writer, rect, null, String.valueOf(i));
- radio.setBorderColor(GrayColor.GRAYBLACK);
- radio.setCheckType(RadioCheckField.TYPE_SQUARE);
-
-
- try {
- PdfFormField field = radio.getRadioField();
- radiogroup.addKid(field);
-
- writer.addAnnotation(radiogroup);
- }
-
- catch(IOException ioe) {
- throw new ExceptionConverter(ioe);
- }
- catch(DocumentException de) {
- throw new ExceptionConverter(de);
- }
- }
-
-
-
- }
-
-
- public String getAnswers() throws IOException, DocumentException{
- PdfReader reader = new PdfReader(pathOutputFile);
-
- PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(pathOutputFile));
- AcroFields form = stamper.getAcroFields();
-
- StringBuilder sb = new StringBuilder();
-
-
- Set<String> fields = form.getFields().keySet();
- for(String key: fields){
- System.out.println("key = " + key);
- if(form.getFieldType(key)==AcroFields.FIELD_TYPE_RADIOBUTTON){
- sb.append(key);
- sb.append(",");
- sb.append(form.getField(key));
- sb.append(";");
- }
- }
- reader.close();
-
- return sb.toString();
-
- }
-
-
-// /**
-// * Manipulates a PDF file src with the file dest as result
-// * @param src the original PDF
-// * @param dest the resulting PDF
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public void manipulatePdf(String src, String dest) throws IOException, DocumentException {
-// PdfReader reader = new PdfReader(src);
-// PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(dest));
-// AcroFields form = stamper.getAcroFields();
-// String[] radiostates = form.getAppearanceStates("language");
-// form.setField("language", radiostates[4]);
-// for (int i = 0; i < LANGUAGES.length; i++) {
-// String[] checkboxstates = form.getAppearanceStates("English");
-// form.setField(LANGUAGES[i], checkboxstates[i % 2 == 0 ? 1 : 0]);
-// }
-// stamper.close();
-// reader.close();
-//
-// PdfReader r = new PdfReader(dest);
-// AcroFields f = r.getAcroFields();
-// Set<String> fields = form.getFields().keySet();
-// for(String key: fields){
-// if(f.getFieldType(key)==AcroFields.FIELD_TYPE_RADIOBUTTON){
-// System.out.println(key);
-// System.out.println(f.getField(key));
-//
-// }
-// }
-// r.close();
-//
-// }
-//
-// /**
-// * Main method
-// * @param args no arguments needed
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public static void main(String[] args) throws IOException, DocumentException {
-// Questionnaire buttons = new Questionnaire();
-// buttons.createPdf(RESULT1);
-// buttons.manipulatePdf(RESULT1, RESULT2);
-// }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/b7/20fee54d9da7001417ceadf0100b5ef7 b/.metadata/.plugins/org.eclipse.core.resources/.history/b7/20fee54d9da7001417ceadf0100b5ef7
deleted file mode 100644
index d507c9d..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/b7/20fee54d9da7001417ceadf0100b5ef7
+++ /dev/null
@@ -1,286 +0,0 @@
-package io;
-
-import java.awt.BorderLayout;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.util.Map;
-import java.util.Set;
-
-import com.itextpdf.text.BaseColor;
-import com.itextpdf.text.Document;
-import com.itextpdf.text.DocumentException;
-import com.itextpdf.text.Element;
-import com.itextpdf.text.ExceptionConverter;
-import com.itextpdf.text.Font;
-import com.itextpdf.text.Font.FontFamily;
-import com.itextpdf.text.FontFactory;
-import com.itextpdf.text.Image;
-import com.itextpdf.text.PageSize;
-import com.itextpdf.text.Paragraph;
-import com.itextpdf.text.Phrase;
-import com.itextpdf.text.Rectangle;
-import com.itextpdf.text.pdf.AcroFields;
-import com.itextpdf.text.pdf.BaseFont;
-import com.itextpdf.text.pdf.ColumnText;
-import com.itextpdf.text.pdf.GrayColor;
-import com.itextpdf.text.pdf.PdfBorderDictionary;
-import com.itextpdf.text.pdf.PdfContentByte;
-import com.itextpdf.text.pdf.PdfFormField;
-import com.itextpdf.text.pdf.PdfPCell;
-import com.itextpdf.text.pdf.PdfPCellEvent;
-import com.itextpdf.text.pdf.PdfPTable;
-import com.itextpdf.text.pdf.PdfReader;
-import com.itextpdf.text.pdf.PdfStamper;
-import com.itextpdf.text.pdf.PdfWriter;
-import com.itextpdf.text.pdf.RadioCheckField;
-import com.itextpdf.text.pdf.TextField;
-
-import framework.Question;
-
-public class Questionnaire implements PdfPCellEvent{
-
- /** The path output file. */
- String pathOutputFile;
-
- /** The document. */
- Document document;
-
- int tf;
-
- public Questionnaire(String path){
- pathOutputFile = path;
- document = new Document(PageSize.A4, 25, 25, 50, 50);
- }
- public Questionnaire(int tf){
- this.tf = tf;
- }
-
- /** The resulting PDF. */
- public static final String RESULT1 = "outputPDF/buttons.pdf";
- /** The resulting PDF. */
- public static final String RESULT2 = "outputPDF/buttons_filled.pdf";
- /** Path to a JavaScript resource. */
- public static final String RESOURCE = "res/buttons.js";
- /** Path to an image used as button icon. */
- public static final String IMAGE = "res/info.png";
- /** Possible values of a radio field / checkboxes */
- public static final String[] LANGUAGES = { "English", "German", "French", "Spanish", "Dutch" };
-
- /**
- * Creates a PDF document.
- * @param filename the path to the new PDF document
- * @throws DocumentException
- * @throws IOException
- */
- public void createPdf(Map<Integer, Question> map, Set<Integer> ids) throws IOException, DocumentException {
-
- @SuppressWarnings("unused")
- PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(pathOutputFile));
-
-
- document.open();
- Image logo = Image.getInstance("res/shcs_logo2.gif");
-
- logo.scalePercent(30f);
- float[] columnWidths1 = {0.2f, 0.8f};
- PdfPTable table_title = new PdfPTable(columnWidths1);
- PdfPCell c01 = new PdfPCell(logo, false);
- PdfPCell c02 = new PdfPCell(new Paragraph("Survery | Project #693",
- FontFactory.getFont(FontFactory.HELVETICA, 20, Font.BOLD, BaseColor.BLACK)));
- c01.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setHorizontalAlignment(Element.ALIGN_CENTER);
- c01.setBorder(Rectangle.NO_BORDER);
- c02.setBorder(Rectangle.NO_BORDER);
-
- table_title.addCell(c01);
- table_title.addCell(c02);
- table_title.setWidthPercentage(100);
- table_title.setSpacingBefore(0);
- table_title.setSpacingAfter(25);
- document.add(table_title);
-
-
- //----------------------------------------------------------------------------------
-
-
- PdfPTable table1 = new PdfPTable(1);
- table1.setWidthPercentage(100);
- PdfPCell c11 = new PdfPCell(new Phrase("Today you are receiving a pharmacogenetic report based on the genetic " +
- "information of your patient. Because the human genome contains extremely private and sensitive information" +
- " of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier," +
- " it must be managed with care. ",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.NORMAL, BaseColor.BLACK)));
- c11.setLeading(1.5f, 1.5f);
- c11.setPaddingBottom(8);
-
-
- table1.addCell(c11);
- table1.setSpacingAfter(10);
- document.add(table1);
-
-
- //----------------------------------------------------------------------------------
-
-// // step 4
-// // add the JavaScript
-// writer.addJavaScript(Utilities.readFileToString(RESOURCE));
-
- for(Integer id: ids){
- PdfPCell c2;
-
- PdfPTable table = new PdfPTable(1);
- table.setSpacingAfter(10);
- table.setWidthPercentage(100);
-
- PdfPCell c1 = new PdfPCell(new Phrase(id + ") " + map.get(id).getQuestion(),FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c1.setPaddingTop(5);
- c1.setPaddingBottom(5);
- c1.setHorizontalAlignment(Element.ALIGN_CENTER);
- c1.setBorder(Rectangle.NO_BORDER);
- table.addCell(c1);
-
- c2 = new PdfPCell(new Phrase(" 1" +
- " 2" +
- " 3" +
- " 4" +
- " 5",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c2.setHorizontalAlignment(Element.ALIGN_LEFT);
- c2.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c2.setCellEvent(new Questionnaire(id));
- c2.setBorder(Rectangle.TOP);
- c2.setPaddingTop(2);
- c2.setPaddingBottom(5);
- c2.setBackgroundColor(new BaseColor(242, 242, 242));
-
- table.addCell(c2);
-
-
-
- document.add(table);
- }
-
-
- //----------------------------------------------------------------------------------
-
- // step 5
- document.close();
-
- }
-
- @Override
- public void cellLayout(PdfPCell cell, Rectangle position,
- PdfContentByte[] canvases) {
- PdfWriter writer = canvases[0].getPdfWriter();
- PdfFormField radiogroup = PdfFormField.createRadioButton(writer, true);
- radiogroup.setFieldName(String.valueOf(tf));
- System.out.println(tf);
-
- float llx = position.getLeft();
- float lly = position.getBottom();
-
- float cell_h = cell.getHeight();
- float cell_w = cell.getWidth();
-
- Rectangle rect;
-
- for(int i=1 ; i<=5; i++){
-
- rect = new Rectangle(llx + (3+i)*cell_w/12, lly+cell_h/2-6, llx + (3+i)*cell_w/12+12 ,lly+cell_h/2+6);
-
- RadioCheckField radio = new RadioCheckField(writer, rect, null, String.valueOf(i));
- radio.setBorderColor(GrayColor.GRAYBLACK);
- radio.setCheckType(RadioCheckField.TYPE_SQUARE);
-
-
- try {
- PdfFormField field = radio.getRadioField();
- radiogroup.addKid(field);
-
- writer.addAnnotation(radiogroup);
- }
-
- catch(IOException ioe) {
- throw new ExceptionConverter(ioe);
- }
- catch(DocumentException de) {
- throw new ExceptionConverter(de);
- }
- }
-
-
-
- }
-
-
- public String getAnswers() throws IOException, DocumentException{
- PdfReader reader = new PdfReader(pathOutputFile);
-
- PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(pathOutputFile));
- AcroFields form = reader.getAcroFields();
-
- StringBuilder sb = new StringBuilder();
-
-
- Set<String> fields = form.getFields().keySet();
- for(String key: fields){
- System.out.println("key = " + key);
- if(form.getFieldType(key)==AcroFields.FIELD_TYPE_RADIOBUTTON){
- sb.append(key);
- sb.append(",");
- sb.append(form.getAppearanceStates(key)[0]);
- sb.append(";");
- }
- }
- reader.close();
-
- return sb.toString();
-
- }
-
-
-// /**
-// * Manipulates a PDF file src with the file dest as result
-// * @param src the original PDF
-// * @param dest the resulting PDF
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public void manipulatePdf(String src, String dest) throws IOException, DocumentException {
-// PdfReader reader = new PdfReader(src);
-// PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(dest));
-// AcroFields form = stamper.getAcroFields();
-// String[] radiostates = form.getAppearanceStates("language");
-// form.setField("language", radiostates[4]);
-// for (int i = 0; i < LANGUAGES.length; i++) {
-// String[] checkboxstates = form.getAppearanceStates("English");
-// form.setField(LANGUAGES[i], checkboxstates[i % 2 == 0 ? 1 : 0]);
-// }
-// stamper.close();
-// reader.close();
-//
-// PdfReader r = new PdfReader(dest);
-// AcroFields f = r.getAcroFields();
-// Set<String> fields = form.getFields().keySet();
-// for(String key: fields){
-// if(f.getFieldType(key)==AcroFields.FIELD_TYPE_RADIOBUTTON){
-// System.out.println(key);
-// System.out.println(f.getField(key));
-//
-// }
-// }
-// r.close();
-//
-// }
-//
-// /**
-// * Main method
-// * @param args no arguments needed
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public static void main(String[] args) throws IOException, DocumentException {
-// Questionnaire buttons = new Questionnaire();
-// buttons.createPdf(RESULT1);
-// buttons.manipulatePdf(RESULT1, RESULT2);
-// }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/b7/f0c918db55ac001410e2e30aa85db9d1 b/.metadata/.plugins/org.eclipse.core.resources/.history/b7/f0c918db55ac001410e2e30aa85db9d1
deleted file mode 100644
index beef44b..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/b7/f0c918db55ac001410e2e30aa85db9d1
+++ /dev/null
@@ -1,927 +0,0 @@
-package ui;
-
-import io.ClientConnection;
-import io.CommAdapter;
-import io.Questionnaire;
-
-import java.awt.BorderLayout;
-import java.awt.Color;
-import java.awt.Component;
-import java.awt.Dimension;
-import java.awt.FlowLayout;
-import java.awt.Font;
-import java.awt.SystemColor;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.awt.event.WindowAdapter;
-import java.io.File;
-import java.io.IOException;
-import java.sql.SQLException;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.LinkedList;
-import java.util.Map;
-import java.util.Set;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
-import javax.swing.Box;
-import javax.swing.BoxLayout;
-import javax.swing.ButtonGroup;
-import javax.swing.DefaultComboBoxModel;
-import javax.swing.GroupLayout;
-import javax.swing.GroupLayout.Alignment;
-import javax.swing.ImageIcon;
-import javax.swing.JButton;
-import javax.swing.JComboBox;
-import javax.swing.JDialog;
-import javax.swing.JFileChooser;
-import javax.swing.JFrame;
-import javax.swing.JLabel;
-import javax.swing.JOptionPane;
-import javax.swing.JPanel;
-import javax.swing.JRadioButton;
-import javax.swing.JScrollPane;
-import javax.swing.JSeparator;
-import javax.swing.JTabbedPane;
-import javax.swing.JTextArea;
-import javax.swing.JTextPane;
-import javax.swing.JTree;
-import javax.swing.LayoutStyle.ComponentPlacement;
-import javax.swing.SwingConstants;
-import javax.swing.border.EmptyBorder;
-import javax.swing.border.LineBorder;
-import javax.swing.tree.DefaultMutableTreeNode;
-import javax.swing.tree.TreeModel;
-import javax.swing.tree.TreePath;
-
-import org.jpedal.examples.viewer.Commands;
-import org.jpedal.examples.viewer.Viewer;
-
-import utils.ClientProperties;
-
-import com.itextpdf.text.DocumentException;
-
-import database.DBconnectorClient;
-import framework.Diagnostic;
-import framework.MedUnit;
-import framework.Question;
-import framework.reply.ReplySurvey;
-import framework.test.TestName;
-
-/**
- *
- * @author youssef, raisaro
- */
-public class GUI extends javax.swing.JFrame {
-
- private static final Logger LOGGER = Logger.getLogger(GUI.class.getName());
-
- private static final long serialVersionUID = -4582280515597700650L;
-
- // configuration
- private ClientProperties props;
-
- private JTree jTree;
- private DBconnectorClient connectorClientDB;
- private LinkedList<Integer> patients;
-
- /** List of all relevant tests */
- private HashMap<String, TestName> testsByName;
- private Viewer viewer;
- private JDialog dialog;
- private JFrame frame;
- private boolean survey_submitted;
- private int close_trials;
- private Map<Integer, ButtonGroup> buttonGroupMap;
- private Questionnaire quest;
- private Map<Integer, Question> map;
- private Set<Integer> ids;
- private Map<String,String> answers;
- private Map<Integer, String> locations;
-
-
- /**
- * Creates new form GUI
- */
- public GUI(ClientProperties props){
-
- frame = this;
- this.props = props;
- this.connectorClientDB = new DBconnectorClient(props.getDbMsAccess());
- survey_submitted = false;
- close_trials = 0;
-
-
- try {
- initComponents();
-
- viewer = new Viewer(jScrollPane2, null);
- viewer.setupViewer();
-
- // create questionnare
-
-
- System.out.println("#of questions: " + ids.size());
-
-// viewer_q = new Viewer(jScrollPane4, null);
-// viewer_q.setupViewer();
-//
-// // specify file you wish to open (JPedal handles getting the byte data)
-// String filepathReport = "outputPDF/buttons_filled.pdf";
-//
-// // open generated PDF
-// // object must be either String in full filepath, or
-// // File object which can be relative
-// Object[] input = new Object[]{ new File(filepathReport) };
-// viewer_q.executeCommand(Commands.OPENFILE, input);
-
- JButton btnSubmitQuestionnaire = new JButton("Submit Questionnaire");
- btnSubmitQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- btnSubmitQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- submitButtonActionPerformed(arg0);
- }
- });
- JButton btnResetQuestionnaire = new JButton("Save as PDF");
- btnResetQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- savePDFButtonActionPerformed(arg0);
- }
- });
- btnResetQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- JPanel panel_button = new JPanel();
- panel_button.setLayout(new BoxLayout(panel_button, BoxLayout.X_AXIS));
-
- lblNewLabel_3 = new JLabel("");
- lblNewLabel_3.setIcon(new ImageIcon("res/location_icon.png"));
- panel_button.add(lblNewLabel_3);
-
-
-
- comboBox = new JComboBox<String>();
- comboBox.setFont(new Font("Tahoma", Font.BOLD, 12));
- comboBox.setModel(new DefaultComboBoxModel<String>(new String[] {"Select Location"}));
- for(Integer id_loc : locations.keySet()){
- comboBox.addItem(locations.get(id_loc));
- }
-
-
- panel_button.add(comboBox);
-
- rigidArea = Box.createRigidArea(new Dimension(10, 0));
- panel_button.add(rigidArea);
-
- lblNewLabel_1 = new JLabel("");
- lblNewLabel_1.setIcon(new ImageIcon("res/submit.png"));
- panel_button.add(lblNewLabel_1);
- panel_button.add(btnSubmitQuestionnaire);
-
- panel_button.add(Box.createRigidArea(new Dimension(10,0)));
-
- lblNewLabel_2 = new JLabel("");
- lblNewLabel_2.setIcon(new ImageIcon("res/pdf.png"));
- panel_button.add(lblNewLabel_2);
- panel_button.add(btnResetQuestionnaire);
- panel_button.setPreferredSize(new Dimension(211, 35));
- panel_button.validate();
-
- JPanel panel_3 = new JPanel();
- GroupLayout gl_panel = new GroupLayout(panel);
- gl_panel.setHorizontalGroup(
- gl_panel.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(63)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addGap(103)
- .addComponent(panel_button, GroupLayout.DEFAULT_SIZE, 498, Short.MAX_VALUE)
- .addGap(241))
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(41)
- .addGroup(gl_panel.createParallelGroup(Alignment.TRAILING)
- .addComponent(jScrollPane4, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE)
- .addComponent(panel_1, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE))
- .addGap(32))
- );
- gl_panel.setVerticalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(22)
- .addComponent(panel_1, GroupLayout.PREFERRED_SIZE, 235, GroupLayout.PREFERRED_SIZE)
- .addGap(37)
- .addComponent(jScrollPane4, GroupLayout.DEFAULT_SIZE, 379, Short.MAX_VALUE)
- .addGap(26)
- .addGroup(gl_panel.createParallelGroup(Alignment.LEADING)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(panel_button, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE)))
- );
- panel_3.setLayout(new BoxLayout(panel_3, BoxLayout.X_AXIS));
-
-
- panel.setLayout(gl_panel);
-
-
-
-
-
-
- /////////////////////////////////////////////////////////
- // display the tests available
-
- // get the tests
- HashMap<String, ArrayList<TestName>> testsRelevantByGroup = connectorClientDB.getRelevantTestsByGroup();
- ArrayList<String> groups = new ArrayList<String>(testsRelevantByGroup.keySet());
-
- // flatten hashmap into linkedlist
-// tests = new LinkedList<>();
- testsByName = new HashMap<String, TestName>();
- for (String group : groups) {
-// tests.addAll(testsRelevantByGroup.get(group));
- for (TestName test : testsRelevantByGroup.get(group)) {
- testsByName.put(test.getName(), test);
- }
- }
-
- // define tree structure of the tests
- DefaultMutableTreeNode root = new DefaultMutableTreeNode("All");
-
- for (String group : groups) {
- DefaultMutableTreeNode child = new DefaultMutableTreeNode(group);
- root.add(child);
-
- for (TestName test : testsRelevantByGroup.get(group)) {
- DefaultMutableTreeNode grandChild = new DefaultMutableTreeNode(test.getName());
- child.add(grandChild);
- }
- }
-
- // define swing object
- jTree = new JTree(root);
-
- for(int i=0;i<jTree.getRowCount();i++){
- jTree.expandRow(i);
- }
-
- jScrollPane3.setViewportView(jTree);
-// jTree.addTreeSelectionListener(new TreeSelectionListener() {
-//
-// @Override
-// public void valueChanged(TreeSelectionEvent e) {
-// tp = jTree.getSelectionPaths();
-// }
-// });
- jScrollPane3.setViewportView(jTree);
-
- /////////////////////////////////////////////////////////
- // display the patients registered
-
- patients = connectorClientDB.getPatients();
- for (Integer patientId : patients) {
- jComboBox1.addItem(patientId.toString());
- }
-
- } catch (SQLException ex) {
- Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex);
- ex.printStackTrace();
-// } catch (IOException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
-// } catch (DocumentException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
- }
-
- }
-
- /**
- * 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() {
-
- jPanel1 = new javax.swing.JPanel();
- jLabel2 = new javax.swing.JLabel();
- jLabel1 = new javax.swing.JLabel();
- jPanel2 = new javax.swing.JPanel();
- jComboBox1 = new javax.swing.JComboBox<String>();
- jButton1 = new javax.swing.JButton();
- jButton1.setFont(new Font("Tahoma", Font.BOLD, 12));
- jLabel3 = new javax.swing.JLabel();
- jLabel4 = new javax.swing.JLabel();
- jScrollPane3 = new javax.swing.JScrollPane();
- jScrollPane2 = new javax.swing.JScrollPane();
- jMenuBar1 = new javax.swing.JMenuBar();
- jMenu1 = new javax.swing.JMenu();
- jMenuItem1 = new javax.swing.JMenuItem();
- jMenu2 = new javax.swing.JMenu();
- dialog = new JDialog();
- tabbedPane = new JTabbedPane(JTabbedPane.TOP);
-
- setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
- addWindowListener(new WindowAdapter() {
- @Override
- public void windowClosing(java.awt.event.WindowEvent windowEvent) {
- if (!survey_submitted && close_trials <= 2){
- JOptionPane.showMessageDialog(frame, "Before closing the application, please fill in and submit the questionnaire.");
- close_trials++;
- tabbedPane.setSelectedIndex(1);
- }else{
- System.exit(0);
- }
- }
- });
- setTitle("HIV Pharmacogenomics\n");
-
- jLabel2.setIcon(new javax.swing.ImageIcon("res/shcs_logo2_small.gif")); // NOI18N
-
- jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
- jLabel1.setText("HIV Pharmacogenomics | Project #693");
-
- javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
- jPanel1.setLayout(jPanel1Layout);
- jPanel1Layout.setHorizontalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap(71, Short.MAX_VALUE)
- .addComponent(jLabel1)
- .addGap(18, 18, 18)
- .addComponent(jLabel2))
- );
- jPanel1Layout.setVerticalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jLabel1)
- .addGap(11, 11, 11))
- .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)
- );
-
- jPanel2.setBackground(new java.awt.Color(255, 255, 255));
- jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
-
- jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<String>(new String[]{"Select Patient"}));
-
- jButton1.setText("Run Test");
- jButton1.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton1ActionPerformed(evt);
- }
- });
-
- JLabel lblNewLabel = new JLabel("");
- lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
- lblNewLabel.setIcon(new javax.swing.ImageIcon("res/gears.png"));
-
-
-
- javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
- jPanel2Layout.setHorizontalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addComponent(jComboBox1, 0, 248, Short.MAX_VALUE)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addGap(75)
- .addGroup(jPanel2Layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jButton1)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 75, GroupLayout.PREFERRED_SIZE))
- .addContainerGap(98, Short.MAX_VALUE))
- );
- jPanel2Layout.setVerticalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addComponent(jComboBox1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED, 223, Short.MAX_VALUE)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jButton1)
- .addGap(19))
- );
- jPanel2.setLayout(jPanel2Layout);
-
- jLabel3.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel3.setText("Select Patient");
-
- jLabel4.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel4.setText("Select Test");
-
- jScrollPane3.setBackground(new java.awt.Color(255, 255, 255));
-
- jMenu1.setText("File");
-
- jMenuItem1.setText("Exit");
- jMenu1.add(jMenuItem1);
-
- jMenuBar1.add(jMenu1);
-
- jMenu2.setText("Edit");
- jMenuBar1.add(jMenu2);
-
- setJMenuBar(jMenuBar1);
-
-
-
- javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
- layout.setHorizontalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(layout.createParallelGroup(Alignment.LEADING, false)
- .addComponent(jLabel3)
- .addComponent(jLabel4)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, 244, Short.MAX_VALUE)
- .addComponent(jScrollPane3))
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 970, Short.MAX_VALUE))
- .addContainerGap())
- );
- layout.setVerticalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel4))
- .addPreferredGap(ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addComponent(jScrollPane3, GroupLayout.PREFERRED_SIZE, 388, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jLabel3)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 785, Short.MAX_VALUE))
- .addContainerGap())
- );
-
-
- jScrollPane2.setAutoscrolls(true);
- jScrollPane3.setAutoscrolls(true);
- tabbedPane.addTab("Report", new ImageIcon("res/report_icon.gif"), jScrollPane2, null);
- tabbedPane.setBackgroundAt(0, new Color(255, 255, 255));
-
- panel = new JPanel();
- tabbedPane.addTab("Survey", new ImageIcon("res/survey_icon.png"), panel, null);
- tabbedPane.setBackgroundAt(1, new Color(255, 255, 255));
- tabbedPane.setEnabledAt(1, true);
-
- panel_1 = new JPanel();
- panel_1.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
- panel_1.setBackground(SystemColor.control);
-
- JLabel label = new JLabel("");
- label.setIcon(new ImageIcon("res/shcs_logo2_medium.gif"));
-
- lblDearDoctor = new JLabel("Dear Doctor,");
- lblDearDoctor.setFont(new Font("Tahoma", Font.BOLD, 14));
-
- JScrollPane scrollPane = new JScrollPane();
- scrollPane.setBorder(null);
- GroupLayout gl_panel_1 = new GroupLayout(panel_1);
- gl_panel_1.setHorizontalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(Alignment.LEADING, gl_panel_1.createSequentialGroup()
- .addGap(25)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addComponent(lblDearDoctor)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 661, Short.MAX_VALUE))
- .addContainerGap())
- );
- gl_panel_1.setVerticalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addContainerGap()
- .addComponent(lblDearDoctor)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 203, Short.MAX_VALUE))
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(36)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 96, GroupLayout.PREFERRED_SIZE)))
- .addContainerGap())
- );
-
- JTextPane txtpnTodayYouAre = new JTextPane();
- txtpnTodayYouAre.setBorder(null);
- txtpnTodayYouAre.setText("Today you are receiving a pharmacogenetics report based on the genome of your patient. Because of its highly sensitive nature, " +
- "the genetic information you are provided with is processed in a privacy-preserving way. In particular, to protect patients’ genomic privacy, " +
- "their genetic and clinical data is stored encrypted at the SHCS data center, and securely analyzed through a sophisticated algorithm designed and developed at EPFL [1, 2]. " +
- "The actual clinical and genetic information is never revealed. Only the authorized users, such as you, can get some processed information, for example, the final result of a " +
- "pharmacogenetics risk test.\nThis mechanism protects the data against insiders or hackers trying to illegally access patients’ medical information, while still allowing authorized " +
- "users to obtain the information they need." +
- "\n\nTo help us understanding the importance of genomic privacy in the medical domain, and the impact of privacy-enhancing technologies in daily clinical practice, please complete the following survey.");
- txtpnTodayYouAre.setFont(new Font("Tahoma", Font.PLAIN, 13));
- txtpnTodayYouAre.setEditable(false);
- txtpnTodayYouAre.setBackground(SystemColor.control);
- scrollPane.setViewportView(txtpnTodayYouAre);
- panel_1.setLayout(gl_panel_1);
- jScrollPane4 = new javax.swing.JScrollPane();
- jScrollPane4.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
- getContentPane().setLayout(layout);
-
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
- ReplySurvey replySurvey = commHandlerAdapter.callServiceSurvey();
-
- map = replySurvey.getQuestions();
- ids = map.keySet();
- locations = replySurvey.getLocations();
-
- panel_2 = new JPanel();
- panel_2.setBackground(Color.WHITE);
- panel_2.setBorder(null);
- jScrollPane4.setViewportView(panel_2);
- panel_2.setLayout(new BoxLayout(panel_2, BoxLayout.Y_AXIS));
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
-
- int type = 0;
- for(Integer id : ids){
- ButtonGroup group = new ButtonGroup();
- JRadioButton r1 = new JRadioButton("1"); r1.setActionCommand("1"); r1.setBackground(Color.WHITE);
- JRadioButton r2 = new JRadioButton("2"); r2.setActionCommand("2"); r2.setBackground(Color.WHITE);
- JRadioButton r3 = new JRadioButton("3"); r3.setActionCommand("3"); r3.setBackground(Color.WHITE);
- JRadioButton r4 = new JRadioButton("4"); r4.setActionCommand("4"); r4.setBackground(Color.WHITE);
- JRadioButton r5 = new JRadioButton("5"); r5.setActionCommand("5"); r5.setBackground(Color.WHITE);
- group.add(r1);
- group.add(r2);
- group.add(r3);
- group.add(r4);
- group.add(r5);
- JPanel radio_panel = new JPanel();
- radio_panel.setLayout((new BoxLayout(radio_panel, BoxLayout.X_AXIS)));
- radio_panel.setBackground(Color.WHITE);
- radio_panel.setAlignmentX(Component.CENTER_ALIGNMENT);
- radio_panel.add(r1);
- radio_panel.add(r2);
- radio_panel.add(r3);
- radio_panel.add(r4);
- radio_panel.add(r5);
- radio_panel.doLayout();
- radio_panel.setPreferredSize(radio_panel.getPreferredSize());
- JTextArea question = new JTextArea(id + ") " + map.get(id).getQuestion());
- question.setEditable(false);
- question.setLineWrap(true);
- question.setWrapStyleWord(true);
-
-
- JPanel row_panel = new JPanel();
- row_panel.setLayout(new BoxLayout(row_panel, BoxLayout.X_AXIS));
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.add(question);
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.add(radio_panel);
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.setBackground(Color.WHITE);
-
- int type_new = map.get(id).getType();
-
- if(type_new != type){
- type = type_new;
- JLabel question_group = new JLabel("");
- switch(type){
- case 1:
- question_group.setText("Clinical Utility");
- break;
- case 2:
- question_group.setText("Privacy Concerns");
- break;
- case 3:
- question_group.setText("Usability Assessment");
- break;
- }
- question_group.setAlignmentX(Component.CENTER_ALIGNMENT);
- question_group.setFont(new Font("Tahoma", Font.BOLD, 13));
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- panel_2.add(question_group);
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- panel_2.add(new JSeparator());
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- }
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- panel_2.add(row_panel);
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
-// panel_2.add(radio_panel);
- panel_2.add(new JSeparator());
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
-// panel_2.setPreferredSize(panel_2.getPreferredSize());
- buttonGroupMap.put(id, group);
-
- }
-
-
-
- this.setSize(new Dimension(1300, 865));
-// pack();
- }// </editor-fold>//GEN-END:initComponents
-
-
- private void submitButtonActionPerformed(java.awt.event.ActionEvent evt){
-
- try{
- answers = new HashMap<String, String>();
- StringBuilder sb = new StringBuilder();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- sb.append(q).append(",");
- sb.append(bg.getSelection().getActionCommand()).append(";");
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- String answer = sb.toString();
- Integer id_loc = null;
- for(Integer i: locations.keySet()){
- if(locations.get(i).equals(comboBox.getSelectedItem().toString()))
- id_loc = i;
- }
-
- String id_p;
- if(jComboBox1.getSelectedItem().toString().equals("Select Patient"))
- id_p = "0";
- else
- id_p = jComboBox1.getSelectedItem().toString();
-
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
-
- String reply = commHandlerAdapter.callServiceSurveyAnswer(answer, id_loc.toString(), id_p);
-
- if(reply.equals("1")){
- survey_submitted = true;
-
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Congrats! Your aswers have been sent to the SHCS datacenter.",
- "Information Message",
- JOptionPane.INFORMATION_MESSAGE);
- }
- else{
- throw new IOException();
- }
-
-
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "The SHCS datacenter does not respond. Please save the survey and send it to jean.raisaro@epfl.ch.",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
- private void savePDFButtonActionPerformed(java.awt.event.ActionEvent evt){
- try {
-
- answers = new HashMap<String, String>();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- JFileChooser chooser = new JFileChooser();
- // Note: source for ExampleFileFilter can be found in FileChooserDemo,
- // under the demo/jfc directory in the JDK.
-
- int returnVal = chooser.showSaveDialog(this);
- System.out.println(returnVal);
- if(returnVal == JFileChooser.APPROVE_OPTION) {
- System.out.println("You chose to open this file: " +
- chooser.getSelectedFile().getPath());
- quest = new Questionnaire(chooser.getSelectedFile().getPath() + ".pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }else{
- quest = new Questionnaire("outputPDF/survey.pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }
-
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (DocumentException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (NullPointerException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
-
- private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
-
- JPanel contentPanel = new JPanel();
-
- dialog.setBounds(100, 100, 410, 80);
- dialog.getContentPane().setLayout(new BorderLayout());
- contentPanel.setLayout(new FlowLayout());
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- dialog.getContentPane().add(contentPanel, BorderLayout.CENTER);
- {
- JLabel label = new JLabel("Please wait...The overall computation can take few seconds");
- label.setHorizontalAlignment(SwingConstants.CENTER);
- label.setFont(new Font("Tahoma", Font.PLAIN, 12));
- contentPanel.add(label);
- }
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
- dialog.getContentPane().add(buttonPane, BorderLayout.SOUTH);
- }
- dialog.setLocationRelativeTo(this);
- dialog.setVisible(true);
-
- GUIWorker gw = new GUIWorker(this, props);
- Thread t = new Thread(gw);
- t.start();
-
- }
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JButton jButton1;
- private javax.swing.JComboBox<String> jComboBox1;
- private javax.swing.JLabel jLabel1;
- private javax.swing.JLabel jLabel2;
- private javax.swing.JLabel jLabel3;
- private javax.swing.JLabel jLabel4;
- private javax.swing.JMenu jMenu1;
- private javax.swing.JMenu jMenu2;
- private javax.swing.JMenuBar jMenuBar1;
- private javax.swing.JMenuItem jMenuItem1;
- private javax.swing.JPanel jPanel1;
- private javax.swing.JPanel jPanel2;
- private javax.swing.JScrollPane jScrollPane3;
- private javax.swing.JTabbedPane tabbedPane;
- private javax.swing.JScrollPane jScrollPane2;
- private javax.swing.JScrollPane jScrollPane4;
- private JPanel panel;
- private JPanel panel_1;
- private JPanel panel_2;
- private JLabel lblDearDoctor;
- private JLabel lblNewLabel_1;
- private JLabel lblNewLabel_2;
- private JLabel lblNewLabel_3;
- private JComboBox<String> comboBox;
- private Component rigidArea;
-
- // End of variables declaration//GEN-END:variables
-
-
- class GUIWorker implements Runnable{
-
- private JFrame mainFrame;
- private ClientProperties props;
- private MedUnit mu;
-
- public GUIWorker(GUI gui, ClientProperties props) {
- mainFrame = gui;
-
- this.props = props;
- this.mu = new MedUnit(props, 0);
- }
-
- @Override
- public void run() {
-
- try{
- int patientId = Integer.parseInt((String) jComboBox1.getSelectedItem());
-
- // convert selected tests to test identifiers
- ArrayList<TestName> selectedTests = new ArrayList<TestName>();
- for (String currentName : getSelectedTests()) {
- TestName currentTest = testsByName.get(currentName);
-
- if (currentTest == null) {
- throw new IllegalStateException("Trying to run unknown test: " + currentTest);
- }
-
- selectedTests.add(currentTest);
- }
-
- // run tests
- Diagnostic diagnostic = mu.runTests(patientId, selectedTests);
-
- // warn for tests with missing material
- warnFailedTests(diagnostic, selectedTests);
-
- // create report
- mu.createReport(patientId, selectedTests, diagnostic);
-
- dialog.setVisible(false);
-
- // specify file you wish to open (JPedal handles getting the byte data)
- String filepathReport = props.getPathPDF() + patientId + ".pdf";
-
- // open generated PDF
- // object must be either String in full filepath, or
- // File object which can be relative
- Object[] input = new Object[]{ new File(filepathReport) };
- viewer.executeCommand(Commands.OPENFILE, input);
-
- // display CAD result as bar plot
- if (diagnostic.hasCAD()) {
- System.out.println("CAD = " + diagnostic.getResultCAD());
- BarPlotFrame frame = new BarPlotFrame(diagnostic.getResultCAD(), patientId);
- frame.setVisible(true);
- frame.setAlwaysOnTop(true);
- }
-
-
- } catch (SQLException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Please select a patient.");
- }
-
- }
-
- private void warnFailedTests(Diagnostic diagnostic, ArrayList<TestName> selectedTests) {
- ArrayList<Integer> failedTests = diagnostic.getInvalidTests();
-
- if (!failedTests.isEmpty()) {
- String msg = "Could not complete tests: ";
- boolean first = true;
- for (TestName testName : selectedTests) {
- if (failedTests.contains(testName.getId())) {
- if (first) {
- first = false;
- } else {
- msg += ", ";
- }
- msg += testName.getName();
- }
- }
- displayError(msg);
- }
-
- }
-
- private void displayError(String msg) {
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- mainFrame,
- msg,
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
-
- private ArrayList<String> getSelectedTests() {
- ArrayList<String> tests = new ArrayList<String>();
-
- for (TreePath treePath : jTree.getSelectionPaths()) {
- tests.addAll(getChildrenTests(jTree.getModel(), treePath.getLastPathComponent()));
- }
-
- return tests;
- }
-
- private ArrayList<String> getChildrenTests(TreeModel model, Object node) {
- ArrayList<String> tests = new ArrayList<String>();
-
- if (model.isLeaf(node)) { // leaf
- DefaultMutableTreeNode leaf = (DefaultMutableTreeNode) node;
- tests.add(leaf.toString());
- }
- else { // iterate over children
- for (int i = 0; i < model.getChildCount(node); i++) {
- tests.addAll(getChildrenTests(model, model.getChild(node, i)));
- }
- }
-
- return tests;
- }
-
- }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/b9/6027b958a1a7001417ceadf0100b5ef7 b/.metadata/.plugins/org.eclipse.core.resources/.history/b9/6027b958a1a7001417ceadf0100b5ef7
deleted file mode 100644
index 37b75d6..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/b9/6027b958a1a7001417ceadf0100b5ef7
+++ /dev/null
@@ -1,288 +0,0 @@
-package io;
-
-import java.awt.BorderLayout;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.util.Map;
-import java.util.Set;
-
-import com.itextpdf.text.BaseColor;
-import com.itextpdf.text.Document;
-import com.itextpdf.text.DocumentException;
-import com.itextpdf.text.Element;
-import com.itextpdf.text.ExceptionConverter;
-import com.itextpdf.text.Font;
-import com.itextpdf.text.Font.FontFamily;
-import com.itextpdf.text.FontFactory;
-import com.itextpdf.text.Image;
-import com.itextpdf.text.PageSize;
-import com.itextpdf.text.Paragraph;
-import com.itextpdf.text.Phrase;
-import com.itextpdf.text.Rectangle;
-import com.itextpdf.text.pdf.AcroFields;
-import com.itextpdf.text.pdf.BaseFont;
-import com.itextpdf.text.pdf.ColumnText;
-import com.itextpdf.text.pdf.GrayColor;
-import com.itextpdf.text.pdf.PdfBorderDictionary;
-import com.itextpdf.text.pdf.PdfContentByte;
-import com.itextpdf.text.pdf.PdfFormField;
-import com.itextpdf.text.pdf.PdfPCell;
-import com.itextpdf.text.pdf.PdfPCellEvent;
-import com.itextpdf.text.pdf.PdfPTable;
-import com.itextpdf.text.pdf.PdfReader;
-import com.itextpdf.text.pdf.PdfStamper;
-import com.itextpdf.text.pdf.PdfWriter;
-import com.itextpdf.text.pdf.RadioCheckField;
-import com.itextpdf.text.pdf.TextField;
-
-import framework.Question;
-
-public class Questionnaire implements PdfPCellEvent{
-
- /** The path output file. */
- String pathOutputFile;
-
- /** The document. */
- Document document;
-
- int tf;
-
- public Questionnaire(String path){
- pathOutputFile = path;
- document = new Document(PageSize.A4, 25, 25, 50, 50);
- }
- public Questionnaire(int tf){
- this.tf = tf;
- }
-
- /** The resulting PDF. */
- public static final String RESULT1 = "outputPDF/buttons.pdf";
- /** The resulting PDF. */
- public static final String RESULT2 = "outputPDF/buttons_filled.pdf";
- /** Path to a JavaScript resource. */
- public static final String RESOURCE = "res/buttons.js";
- /** Path to an image used as button icon. */
- public static final String IMAGE = "res/info.png";
- /** Possible values of a radio field / checkboxes */
- public static final String[] LANGUAGES = { "English", "German", "French", "Spanish", "Dutch" };
-
- /**
- * Creates a PDF document.
- * @param filename the path to the new PDF document
- * @throws DocumentException
- * @throws IOException
- */
- public void createPdf(Map<Integer, Question> map, Set<Integer> ids) throws IOException, DocumentException {
-
- @SuppressWarnings("unused")
- PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(pathOutputFile));
-
-
- document.open();
- Image logo = Image.getInstance("res/shcs_logo2.gif");
-
- logo.scalePercent(30f);
- float[] columnWidths1 = {0.2f, 0.8f};
- PdfPTable table_title = new PdfPTable(columnWidths1);
- PdfPCell c01 = new PdfPCell(logo, false);
- PdfPCell c02 = new PdfPCell(new Paragraph("Survery | Project #693",
- FontFactory.getFont(FontFactory.HELVETICA, 20, Font.BOLD, BaseColor.BLACK)));
- c01.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setHorizontalAlignment(Element.ALIGN_CENTER);
- c01.setBorder(Rectangle.NO_BORDER);
- c02.setBorder(Rectangle.NO_BORDER);
-
- table_title.addCell(c01);
- table_title.addCell(c02);
- table_title.setWidthPercentage(100);
- table_title.setSpacingBefore(0);
- table_title.setSpacingAfter(25);
- document.add(table_title);
-
-
- //----------------------------------------------------------------------------------
-
-
- PdfPTable table1 = new PdfPTable(1);
- table1.setWidthPercentage(100);
- PdfPCell c11 = new PdfPCell(new Phrase("Today you are receiving a pharmacogenetic report based on the genetic " +
- "information of your patient. Because the human genome contains extremely private and sensitive information" +
- " of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier," +
- " it must be managed with care. ",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.NORMAL, BaseColor.BLACK)));
- c11.setLeading(1.5f, 1.5f);
- c11.setPaddingBottom(8);
-
-
- table1.addCell(c11);
- table1.setSpacingAfter(10);
- document.add(table1);
-
-
- //----------------------------------------------------------------------------------
-
-// // step 4
-// // add the JavaScript
-// writer.addJavaScript(Utilities.readFileToString(RESOURCE));
-
- for(Integer id: ids){
- PdfPCell c2;
-
- PdfPTable table = new PdfPTable(1);
- table.setSpacingAfter(10);
- table.setWidthPercentage(100);
-
- PdfPCell c1 = new PdfPCell(new Phrase(id + ") " + map.get(id).getQuestion(),FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c1.setPaddingTop(5);
- c1.setPaddingBottom(5);
- c1.setHorizontalAlignment(Element.ALIGN_CENTER);
- c1.setBorder(Rectangle.NO_BORDER);
- table.addCell(c1);
-
- c2 = new PdfPCell(new Phrase(" 1" +
- " 2" +
- " 3" +
- " 4" +
- " 5",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c2.setHorizontalAlignment(Element.ALIGN_LEFT);
- c2.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c2.setCellEvent(new Questionnaire(id));
- c2.setBorder(Rectangle.TOP);
- c2.setPaddingTop(2);
- c2.setPaddingBottom(5);
- c2.setBackgroundColor(new BaseColor(242, 242, 242));
-
- table.addCell(c2);
-
-
-
- document.add(table);
- }
-
-
- //----------------------------------------------------------------------------------
-
- // step 5
- document.close();
-
- }
-
- @Override
- public void cellLayout(PdfPCell cell, Rectangle position,
- PdfContentByte[] canvases) {
- PdfWriter writer = canvases[0].getPdfWriter();
- PdfFormField radiogroup = PdfFormField.createRadioButton(writer, true);
- radiogroup.setFieldName(String.valueOf(tf));
- System.out.println(tf);
-
- float llx = position.getLeft();
- float lly = position.getBottom();
-
- float cell_h = cell.getHeight();
- float cell_w = cell.getWidth();
-
- Rectangle rect;
-
- for(int i=1 ; i<=5; i++){
-
- rect = new Rectangle(llx + (3+i)*cell_w/12, lly+cell_h/2-6, llx + (3+i)*cell_w/12+12 ,lly+cell_h/2+6);
-
- RadioCheckField radio = new RadioCheckField(writer, rect, null, String.valueOf(i));
- radio.setBorderColor(GrayColor.GRAYBLACK);
- radio.setCheckType(RadioCheckField.TYPE_SQUARE);
-
-
- try {
- PdfFormField field = radio.getRadioField();
- radiogroup.addKid(field);
-
- writer.addAnnotation(radiogroup);
- }
-
- catch(IOException ioe) {
- throw new ExceptionConverter(ioe);
- }
- catch(DocumentException de) {
- throw new ExceptionConverter(de);
- }
- }
-
-
-
- }
-
-
- public String getAnswers() throws IOException, DocumentException{
- PdfReader reader = new PdfReader(pathOutputFile);
-
-// PdfStamper stamper = new PdfStamper(reader, new FileOutputStream("outputPDF/buttons_filled2.pdf"));
- AcroFields form = reader.getAcroFields();
-
- StringBuilder sb = new StringBuilder();
-
-
- Set<String> fields = form.getFields().keySet();
- for(String key: fields){
- System.out.println("key = " + key);
- if(form.getFieldType(key)==AcroFields.FIELD_TYPE_RADIOBUTTON){
- sb.append(key);
- sb.append(",");
- sb.append(form.getFieldRichValue(key));
- sb.append(";");
- }
- }
-// stamper.close();
- reader.close();
-
-
- return sb.toString();
-
- }
-
-
-// /**
-// * Manipulates a PDF file src with the file dest as result
-// * @param src the original PDF
-// * @param dest the resulting PDF
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public void manipulatePdf(String src, String dest) throws IOException, DocumentException {
-// PdfReader reader = new PdfReader(src);
-// PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(dest));
-// AcroFields form = stamper.getAcroFields();
-// String[] radiostates = form.getAppearanceStates("language");
-// form.setField("language", radiostates[4]);
-// for (int i = 0; i < LANGUAGES.length; i++) {
-// String[] checkboxstates = form.getAppearanceStates("English");
-// form.setField(LANGUAGES[i], checkboxstates[i % 2 == 0 ? 1 : 0]);
-// }
-// stamper.close();
-// reader.close();
-//
-// PdfReader r = new PdfReader(dest);
-// AcroFields f = r.getAcroFields();
-// Set<String> fields = form.getFields().keySet();
-// for(String key: fields){
-// if(f.getFieldType(key)==AcroFields.FIELD_TYPE_RADIOBUTTON){
-// System.out.println(key);
-// System.out.println(f.getField(key));
-//
-// }
-// }
-// r.close();
-//
-// }
-//
-// /**
-// * Main method
-// * @param args no arguments needed
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public static void main(String[] args) throws IOException, DocumentException {
-// Questionnaire buttons = new Questionnaire();
-// buttons.createPdf(RESULT1);
-// buttons.manipulatePdf(RESULT1, RESULT2);
-// }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/e2/70e70c886cac00141cc3aa66275e9c24 b/.metadata/.plugins/org.eclipse.core.resources/.history/bb/500be70253b80014199a8682e9990d0e
similarity index 74%
copy from .metadata/.plugins/org.eclipse.core.resources/.history/e2/70e70c886cac00141cc3aa66275e9c24
copy to .metadata/.plugins/org.eclipse.core.resources/.history/bb/500be70253b80014199a8682e9990d0e
index 8b30fef..2fb48fe 100644
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/e2/70e70c886cac00141cc3aa66275e9c24
+++ b/.metadata/.plugins/org.eclipse.core.resources/.history/bb/500be70253b80014199a8682e9990d0e
@@ -1,927 +1,942 @@
package ui;
import io.ClientConnection;
import io.CommAdapter;
import io.Questionnaire;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Font;
import java.awt.SystemColor;
+import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowAdapter;
import java.io.File;
import java.io.IOException;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.Map;
import java.util.Set;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.Box;
import javax.swing.BoxLayout;
import javax.swing.ButtonGroup;
import javax.swing.DefaultComboBoxModel;
import javax.swing.GroupLayout;
import javax.swing.GroupLayout.Alignment;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JDialog;
import javax.swing.JFileChooser;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JRadioButton;
import javax.swing.JScrollPane;
import javax.swing.JSeparator;
import javax.swing.JTabbedPane;
import javax.swing.JTextArea;
import javax.swing.JTextPane;
import javax.swing.JTree;
import javax.swing.LayoutStyle.ComponentPlacement;
import javax.swing.SwingConstants;
import javax.swing.border.EmptyBorder;
import javax.swing.border.LineBorder;
import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.tree.TreeModel;
import javax.swing.tree.TreePath;
import org.jpedal.examples.viewer.Commands;
import org.jpedal.examples.viewer.Viewer;
import utils.ClientProperties;
import com.itextpdf.text.DocumentException;
import database.DBconnectorClient;
import framework.Diagnostic;
import framework.MedUnit;
import framework.Question;
import framework.reply.ReplySurvey;
import framework.test.TestName;
+import javax.swing.JSplitPane;
+import java.awt.event.MouseAdapter;
+import java.awt.event.MouseEvent;
/**
*
- * @author youssef, raisaro
+ * @author raisaro
*/
public class GUI extends javax.swing.JFrame {
private static final Logger LOGGER = Logger.getLogger(GUI.class.getName());
private static final long serialVersionUID = -4582280515597700650L;
// configuration
private ClientProperties props;
private JTree jTree;
private DBconnectorClient connectorClientDB;
private LinkedList<Integer> patients;
/** List of all relevant tests */
private HashMap<String, TestName> testsByName;
private Viewer viewer;
private JDialog dialog;
private JFrame frame;
private boolean survey_submitted;
private int close_trials;
private Map<Integer, ButtonGroup> buttonGroupMap;
private Questionnaire quest;
private Map<Integer, Question> map;
private Set<Integer> ids;
private Map<String,String> answers;
private Map<Integer, String> locations;
+ private JButton btnSubmitQuestionnaire;
/**
* Creates new form GUI
*/
public GUI(ClientProperties props){
+ setLocationByPlatform(true);
+ setIconImage(Toolkit.getDefaultToolkit().getImage("res/shcs_logo2_icon.png"));
frame = this;
this.props = props;
this.connectorClientDB = new DBconnectorClient(props.getDbMsAccess());
survey_submitted = false;
close_trials = 0;
try {
initComponents();
viewer = new Viewer(jScrollPane2, null);
viewer.setupViewer();
- // create questionnare
-
+ // create questionnare
+
System.out.println("#of questions: " + ids.size());
-// viewer_q = new Viewer(jScrollPane4, null);
-// viewer_q.setupViewer();
-//
-// // specify file you wish to open (JPedal handles getting the byte data)
-// String filepathReport = "outputPDF/buttons_filled.pdf";
-//
-// // open generated PDF
-// // object must be either String in full filepath, or
-// // File object which can be relative
-// Object[] input = new Object[]{ new File(filepathReport) };
-// viewer_q.executeCommand(Commands.OPENFILE, input);
-
- JButton btnSubmitQuestionnaire = new JButton("Submit Questionnaire");
+
+ btnSubmitQuestionnaire = new JButton("Submit Questionnaire");
btnSubmitQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
btnSubmitQuestionnaire.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
submitButtonActionPerformed(arg0);
}
});
JButton btnResetQuestionnaire = new JButton("Save as PDF");
btnResetQuestionnaire.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
savePDFButtonActionPerformed(arg0);
}
});
btnResetQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
JPanel panel_button = new JPanel();
panel_button.setLayout(new BoxLayout(panel_button, BoxLayout.X_AXIS));
lblNewLabel_3 = new JLabel("");
lblNewLabel_3.setIcon(new ImageIcon("res/location_icon.png"));
panel_button.add(lblNewLabel_3);
comboBox = new JComboBox<String>();
comboBox.setFont(new Font("Tahoma", Font.BOLD, 12));
comboBox.setModel(new DefaultComboBoxModel<String>(new String[] {"Select Location"}));
for(Integer id_loc : locations.keySet()){
comboBox.addItem(locations.get(id_loc));
}
panel_button.add(comboBox);
rigidArea = Box.createRigidArea(new Dimension(10, 0));
panel_button.add(rigidArea);
lblNewLabel_1 = new JLabel("");
lblNewLabel_1.setIcon(new ImageIcon("res/submit.png"));
panel_button.add(lblNewLabel_1);
panel_button.add(btnSubmitQuestionnaire);
panel_button.add(Box.createRigidArea(new Dimension(10,0)));
lblNewLabel_2 = new JLabel("");
lblNewLabel_2.setIcon(new ImageIcon("res/pdf.png"));
panel_button.add(lblNewLabel_2);
panel_button.add(btnResetQuestionnaire);
panel_button.setPreferredSize(new Dimension(211, 35));
panel_button.validate();
- JPanel panel_3 = new JPanel();
+ splitPane = new JSplitPane();
+ splitPane.setOneTouchExpandable(true);
+ splitPane.setResizeWeight(0.52);
+ splitPane.setOrientation(JSplitPane.VERTICAL_SPLIT);
+
GroupLayout gl_panel = new GroupLayout(panel);
gl_panel.setHorizontalGroup(
- gl_panel.createParallelGroup(Alignment.TRAILING)
+ gl_panel.createParallelGroup(Alignment.LEADING)
.addGroup(gl_panel.createSequentialGroup()
- .addGap(63)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addGap(103)
- .addComponent(panel_button, GroupLayout.DEFAULT_SIZE, 498, Short.MAX_VALUE)
- .addGap(241))
+ .addGap(165)
+ .addComponent(panel_button, GroupLayout.DEFAULT_SIZE, 421, Short.MAX_VALUE)
+ .addGap(242))
.addGroup(gl_panel.createSequentialGroup()
- .addGap(41)
- .addGroup(gl_panel.createParallelGroup(Alignment.TRAILING)
- .addComponent(jScrollPane4, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE)
- .addComponent(panel_1, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE))
- .addGap(32))
+ .addContainerGap()
+ .addComponent(splitPane, GroupLayout.DEFAULT_SIZE, 738, Short.MAX_VALUE)
+ .addGap(80))
);
gl_panel.setVerticalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
+ gl_panel.createParallelGroup(Alignment.TRAILING)
.addGroup(gl_panel.createSequentialGroup()
- .addGap(22)
- .addComponent(panel_1, GroupLayout.PREFERRED_SIZE, 235, GroupLayout.PREFERRED_SIZE)
- .addGap(37)
- .addComponent(jScrollPane4, GroupLayout.DEFAULT_SIZE, 379, Short.MAX_VALUE)
- .addGap(26)
- .addGroup(gl_panel.createParallelGroup(Alignment.LEADING)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(panel_button, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE)))
+ .addContainerGap()
+ .addComponent(splitPane, GroupLayout.DEFAULT_SIZE, 603, Short.MAX_VALUE)
+ .addPreferredGap(ComponentPlacement.RELATED)
+ .addComponent(panel_button, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE)
+ .addGap(11))
+ );
+
+ panel_1 = new JPanel();
+ panel_1.setMinimumSize(new Dimension(10, 0));
+ panel_1.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
+ panel_1.setBackground(SystemColor.menu);
+ splitPane.setLeftComponent(panel_1);
+
+ label_1 = new JLabel("");
+ label_1.setIcon(new ImageIcon("res/shcs_logo2_medium.gif"));
+
+ label_2 = new JLabel("");
+ label_2.setIcon(new ImageIcon("res/EPFL_logo.png"));
+
+ label_3 = new JLabel("");
+ label_3.setIcon(new ImageIcon("res/chuv_logo.png"));
+
+ label_4 = new JLabel("Dear Doctor,");
+ label_4.setFont(new Font("Tahoma", Font.BOLD, 14));
+
+ scrollPane = new JScrollPane();
+ scrollPane.setBorder(null);
+ GroupLayout gl_panel_1 = new GroupLayout(panel_1);
+ gl_panel_1.setHorizontalGroup(
+ gl_panel_1.createParallelGroup(Alignment.LEADING)
+ .addGroup(gl_panel_1.createSequentialGroup()
+ .addGap(25)
+ .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
+ .addComponent(label_3)
+ .addComponent(label_2)
+ .addComponent(label_1, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE))
+ .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
+ .addGroup(gl_panel_1.createSequentialGroup()
+ .addGap(20)
+ .addComponent(label_4)
+ .addGap(109))
+ .addGroup(gl_panel_1.createSequentialGroup()
+ .addGap(10)
+ .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 557, Short.MAX_VALUE)
+ .addContainerGap())))
);
- panel_3.setLayout(new BoxLayout(panel_3, BoxLayout.X_AXIS));
+ gl_panel_1.setVerticalGroup(
+ gl_panel_1.createParallelGroup(Alignment.LEADING)
+ .addGroup(gl_panel_1.createSequentialGroup()
+ .addContainerGap()
+ .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
+ .addGroup(gl_panel_1.createSequentialGroup()
+ .addComponent(label_4)
+ .addPreferredGap(ComponentPlacement.UNRELATED)
+ .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 416, Short.MAX_VALUE))
+ .addGroup(gl_panel_1.createSequentialGroup()
+ .addGap(9)
+ .addComponent(label_1, GroupLayout.PREFERRED_SIZE, 96, GroupLayout.PREFERRED_SIZE)
+ .addGap(18)
+ .addComponent(label_2)
+ .addGap(28)
+ .addComponent(label_3)))
+ .addContainerGap(114, GroupLayout.PREFERRED_SIZE))
+ );
+
+ introduction = new JTextPane();
+ introduction.setBackground(SystemColor.control);
+ introduction.setContentType("text/html");
+ introduction.setText("You are receiving a pharmacogenetics report based on the genome of your patient. Because of its highly sensitive nature, the genetic information you are provided with is processed in a privacy-preserving way. In particular, to protect patients\u2019 genomic privacy, their genetic and clinical data are stored encrypted at the SHCS data center, and securely analyzed through a sophisticated algorithm designed and developed at EPFL [1, 2]. The actual clinical and genetic information is never revealed. Only the authorized users, such as you, can get some processed information, for example, the interpreted final result of a pharmacogenetics risk test.\r\nThis mechanism protects the data against insiders or hackers trying to illegally access patients\u2019 medical information, while still allowing authorized users to obtain the information they need.\r\n<br><br>\r\n<b>To help us better understanding the importance of genomic privacy in the medical domain, and the impact of privacy-enhancing technologies in daily clinical practice, please complete the following survey. Answers are on a scale from 1 (Strongly Disagree) to 5 (Strongly Agree).</b>\r\n<font size=\"2\">\r\n<br><br>\r\nNote: this work is part of Project #693, funded by the Swiss HIV Cohort. PIs: Prof. A. Telenti, formerly at CHUV, and Prof. J.-P. Hubaux, at EPFL.\r\n<br><br>\r\n[1] J. L. Raisaro, E. Ayday, P. J. McLaren, J.-P. Hubaux, and A. Telenti. Privacy-Preserving HIV Pharmacogenetics: A Real Use Case of Genomic Data Protection. GenoPri 2014<br>\r\n[2] E. Ayday, J. L. Raisaro, J. Rougemont, and J.-P. Hubaux. Protecting and Evaluating Genomic Privacy in Medical Tests and Personalized Medicine. WPES 2013\r\n</font>");
+ scrollPane.setViewportView(introduction);
+ panel_1.setLayout(gl_panel_1);
+
+ jScrollPane4 = new JScrollPane();
+ jScrollPane4.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
+ splitPane.setRightComponent(jScrollPane4);
+
+
+ jScrollPane4.setViewportView(panel_2);
+ javax.swing.SwingUtilities.invokeLater(new Runnable() {
+ public void run() {
+ jScrollPane4.getVerticalScrollBar().setValue(0);
+ }
+ });
+ introduction.setCaretPosition(0);
panel.setLayout(gl_panel);
/////////////////////////////////////////////////////////
// display the tests available
// get the tests
HashMap<String, ArrayList<TestName>> testsRelevantByGroup = connectorClientDB.getRelevantTestsByGroup();
ArrayList<String> groups = new ArrayList<String>(testsRelevantByGroup.keySet());
// flatten hashmap into linkedlist
// tests = new LinkedList<>();
testsByName = new HashMap<String, TestName>();
for (String group : groups) {
// tests.addAll(testsRelevantByGroup.get(group));
for (TestName test : testsRelevantByGroup.get(group)) {
testsByName.put(test.getName(), test);
}
}
// define tree structure of the tests
DefaultMutableTreeNode root = new DefaultMutableTreeNode("All");
for (String group : groups) {
DefaultMutableTreeNode child = new DefaultMutableTreeNode(group);
root.add(child);
for (TestName test : testsRelevantByGroup.get(group)) {
DefaultMutableTreeNode grandChild = new DefaultMutableTreeNode(test.getName());
child.add(grandChild);
}
}
// define swing object
jTree = new JTree(root);
+ jTree.setFont(new Font("Tahoma", Font.PLAIN, 11));
for(int i=0;i<jTree.getRowCount();i++){
jTree.expandRow(i);
}
jScrollPane3.setViewportView(jTree);
// jTree.addTreeSelectionListener(new TreeSelectionListener() {
//
// @Override
// public void valueChanged(TreeSelectionEvent e) {
// tp = jTree.getSelectionPaths();
// }
// });
jScrollPane3.setViewportView(jTree);
/////////////////////////////////////////////////////////
// display the patients registered
patients = connectorClientDB.getPatients();
for (Integer patientId : patients) {
jComboBox1.addItem(patientId.toString());
}
} catch (SQLException ex) {
Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex);
ex.printStackTrace();
// } catch (IOException e) {
// // TODO Auto-generated catch block
// e.printStackTrace();
// } catch (DocumentException e) {
// // TODO Auto-generated catch block
// e.printStackTrace();
}
}
/**
* 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() {
-
- jPanel1 = new javax.swing.JPanel();
- jLabel2 = new javax.swing.JLabel();
- jLabel1 = new javax.swing.JLabel();
jPanel2 = new javax.swing.JPanel();
jComboBox1 = new javax.swing.JComboBox<String>();
+ jComboBox1.setFont(new Font("Tahoma", Font.BOLD, 12));
jButton1 = new javax.swing.JButton();
jButton1.setFont(new Font("Tahoma", Font.BOLD, 12));
jLabel3 = new javax.swing.JLabel();
jLabel4 = new javax.swing.JLabel();
jScrollPane3 = new javax.swing.JScrollPane();
jScrollPane2 = new javax.swing.JScrollPane();
+ jScrollPane2.setMinimumSize(new Dimension(5, 5));
jMenuBar1 = new javax.swing.JMenuBar();
jMenu1 = new javax.swing.JMenu();
jMenuItem1 = new javax.swing.JMenuItem();
jMenu2 = new javax.swing.JMenu();
dialog = new JDialog();
tabbedPane = new JTabbedPane(JTabbedPane.TOP);
+ tabbedPane.setFont(new Font("Tahoma", Font.BOLD, 12));
setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
addWindowListener(new WindowAdapter() {
@Override
public void windowClosing(java.awt.event.WindowEvent windowEvent) {
if (!survey_submitted && close_trials <= 2){
JOptionPane.showMessageDialog(frame, "Before closing the application, please fill in and submit the questionnaire.");
close_trials++;
tabbedPane.setSelectedIndex(1);
}else{
System.exit(0);
}
}
});
- setTitle("HIV Pharmacogenomics\n");
-
- jLabel2.setIcon(new javax.swing.ImageIcon("res/shcs_logo2_small.gif")); // NOI18N
-
- jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
- jLabel1.setText("HIV Pharmacogenomics | Project #693");
-
- javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
- jPanel1.setLayout(jPanel1Layout);
- jPanel1Layout.setHorizontalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap(71, Short.MAX_VALUE)
- .addComponent(jLabel1)
- .addGap(18, 18, 18)
- .addComponent(jLabel2))
- );
- jPanel1Layout.setVerticalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jLabel1)
- .addGap(11, 11, 11))
- .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)
- );
+ setTitle("Privacy-Preserving HIV Pharmacogenomics\r\n");
jPanel2.setBackground(new java.awt.Color(255, 255, 255));
jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<String>(new String[]{"Select Patient"}));
jButton1.setText("Run Test");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});
JLabel lblNewLabel = new JLabel("");
lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
lblNewLabel.setIcon(new javax.swing.ImageIcon("res/gears.png"));
javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
jPanel2Layout.setHorizontalGroup(
jPanel2Layout.createParallelGroup(Alignment.LEADING)
.addComponent(jComboBox1, 0, 248, Short.MAX_VALUE)
.addGroup(jPanel2Layout.createSequentialGroup()
.addGap(75)
.addGroup(jPanel2Layout.createParallelGroup(Alignment.TRAILING)
.addComponent(jButton1)
.addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 75, GroupLayout.PREFERRED_SIZE))
.addContainerGap(98, Short.MAX_VALUE))
);
jPanel2Layout.setVerticalGroup(
jPanel2Layout.createParallelGroup(Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addComponent(jComboBox1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
.addPreferredGap(ComponentPlacement.RELATED, 223, Short.MAX_VALUE)
.addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE)
.addPreferredGap(ComponentPlacement.RELATED)
.addComponent(jButton1)
.addGap(19))
);
jPanel2.setLayout(jPanel2Layout);
jLabel3.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
jLabel3.setText("Select Patient");
jLabel4.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
jLabel4.setText("Select Test");
jScrollPane3.setBackground(new java.awt.Color(255, 255, 255));
jMenu1.setText("File");
jMenuItem1.setText("Exit");
jMenu1.add(jMenuItem1);
jMenuBar1.add(jMenu1);
jMenu2.setText("Edit");
jMenuBar1.add(jMenu2);
setJMenuBar(jMenuBar1);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
layout.setHorizontalGroup(
layout.createParallelGroup(Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addGroup(layout.createParallelGroup(Alignment.LEADING, false)
- .addComponent(jLabel3)
.addComponent(jLabel4)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, 244, Short.MAX_VALUE)
- .addComponent(jScrollPane3))
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 970, Short.MAX_VALUE))
- .addContainerGap())
+ .addComponent(jLabel3)
+ .addComponent(jScrollPane3, GroupLayout.DEFAULT_SIZE, 234, Short.MAX_VALUE)
+ .addComponent(jPanel2, 0, 0, Short.MAX_VALUE))
+ .addPreferredGap(ComponentPlacement.RELATED)
+ .addComponent(tabbedPane, GroupLayout.PREFERRED_SIZE, 751, Short.MAX_VALUE)
+ .addGap(19))
);
layout.setVerticalGroup(
- layout.createParallelGroup(Alignment.LEADING)
+ layout.createParallelGroup(Alignment.TRAILING)
.addGroup(layout.createSequentialGroup()
+ .addContainerGap()
.addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel4))
- .addPreferredGap(ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(Alignment.LEADING)
+ .addComponent(tabbedPane, Alignment.LEADING, GroupLayout.PREFERRED_SIZE, 687, Short.MAX_VALUE)
.addGroup(layout.createSequentialGroup()
- .addComponent(jScrollPane3, GroupLayout.PREFERRED_SIZE, 388, GroupLayout.PREFERRED_SIZE)
+ .addComponent(jLabel4)
+ .addPreferredGap(ComponentPlacement.RELATED)
+ .addComponent(jScrollPane3, GroupLayout.PREFERRED_SIZE, 356, GroupLayout.PREFERRED_SIZE)
.addPreferredGap(ComponentPlacement.RELATED)
.addComponent(jLabel3)
.addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 785, Short.MAX_VALUE))
+ .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, 283, Short.MAX_VALUE)))
.addContainerGap())
);
jScrollPane2.setAutoscrolls(true);
jScrollPane3.setAutoscrolls(true);
tabbedPane.addTab("Report", new ImageIcon("res/report_icon.gif"), jScrollPane2, null);
tabbedPane.setBackgroundAt(0, new Color(255, 255, 255));
panel = new JPanel();
+ panel.setPreferredSize(new Dimension(0, 0));
tabbedPane.addTab("Survey", new ImageIcon("res/survey_icon.png"), panel, null);
tabbedPane.setBackgroundAt(1, new Color(255, 255, 255));
tabbedPane.setEnabledAt(1, true);
-
- panel_1 = new JPanel();
- panel_1.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
- panel_1.setBackground(SystemColor.control);
-
- JLabel label = new JLabel("");
- label.setIcon(new ImageIcon("res/shcs_logo2_medium.gif"));
-
- lblDearDoctor = new JLabel("Dear Doctor,");
- lblDearDoctor.setFont(new Font("Tahoma", Font.BOLD, 14));
-
- JScrollPane scrollPane = new JScrollPane();
- scrollPane.setBorder(null);
- GroupLayout gl_panel_1 = new GroupLayout(panel_1);
- gl_panel_1.setHorizontalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(Alignment.LEADING, gl_panel_1.createSequentialGroup()
- .addGap(25)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addComponent(lblDearDoctor)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 661, Short.MAX_VALUE))
- .addContainerGap())
- );
- gl_panel_1.setVerticalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addContainerGap()
- .addComponent(lblDearDoctor)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 203, Short.MAX_VALUE))
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(36)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 96, GroupLayout.PREFERRED_SIZE)))
- .addContainerGap())
- );
-
- JTextPane txtpnTodayYouAre = new JTextPane();
- txtpnTodayYouAre.setBorder(null);
- txtpnTodayYouAre.setText("Today you are receiving a pharmacogenetics report based on the genome of your patient. Because of its highly sensitive nature, " +
- "the genetic information you are provided with is processed in a privacy-preserving way. In particular, to protect patients’ genomic privacy, " +
- "their genetic and clinical data is stored encrypted at the SHCS data center, and securely analyzed through a sophisticated algorithm designed and developed at EPFL [1, 2]. " +
- "The actual clinical and genetic information is never revealed. Only the authorized users, such as you, can get some processed information, for example, the final result of a " +
- "pharmacogenetics risk test.\nThis mechanism protects the data against insiders or hackers trying to illegally access patients’ medical information, while still allowing authorized " +
- "users to obtain the information they need." +
- "\n\nTo help us understanding the importance of genomic privacy in the medical domain, and the impact of privacy-enhancing technologies in daily clinical practice, please complete the following survey.");
- txtpnTodayYouAre.setFont(new Font("Tahoma", Font.PLAIN, 13));
- txtpnTodayYouAre.setEditable(false);
- txtpnTodayYouAre.setBackground(SystemColor.control);
- scrollPane.setViewportView(txtpnTodayYouAre);
- panel_1.setLayout(gl_panel_1);
- jScrollPane4 = new javax.swing.JScrollPane();
- jScrollPane4.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
getContentPane().setLayout(layout);
buttonGroupMap = new HashMap<Integer, ButtonGroup>();
ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
CommAdapter commHandlerAdapter = new CommAdapter(connection);
ReplySurvey replySurvey = commHandlerAdapter.callServiceSurvey();
map = replySurvey.getQuestions();
ids = map.keySet();
locations = replySurvey.getLocations();
+ buttonGroupMap = new HashMap<Integer, ButtonGroup>();
+
panel_2 = new JPanel();
- panel_2.setBackground(Color.WHITE);
+ panel_2.addMouseListener(new MouseAdapter() {
+ @Override
+ public void mouseClicked(MouseEvent arg0) {
+ splitPane.setDividerLocation(0.0);
+ }
+ });
panel_2.setBorder(null);
- jScrollPane4.setViewportView(panel_2);
+ panel_2.setBackground(Color.WHITE);
panel_2.setLayout(new BoxLayout(panel_2, BoxLayout.Y_AXIS));
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
-
+
+ JComboBox<String> ageBox = new JComboBox<String>();
+ ageBox.setFont(new Font("Tahoma", Font.BOLD, 12));
+ ageBox.setModel(new DefaultComboBoxModel<String>(new String[] {"Select Age"}));
+ panel_2.add(ageBox);
+
+
+ //dynamic question generation
int type = 0;
for(Integer id : ids){
ButtonGroup group = new ButtonGroup();
- JRadioButton r1 = new JRadioButton("1"); r1.setActionCommand("1"); r1.setBackground(Color.WHITE);
- JRadioButton r2 = new JRadioButton("2"); r2.setActionCommand("2"); r2.setBackground(Color.WHITE);
- JRadioButton r3 = new JRadioButton("3"); r3.setActionCommand("3"); r3.setBackground(Color.WHITE);
- JRadioButton r4 = new JRadioButton("4"); r4.setActionCommand("4"); r4.setBackground(Color.WHITE);
- JRadioButton r5 = new JRadioButton("5"); r5.setActionCommand("5"); r5.setBackground(Color.WHITE);
+ JRadioButton r1 = new JRadioButton("1"); r1.setActionCommand("1"); r1.setBackground(Color.WHITE);
+ JRadioButton r2 = new JRadioButton("2"); r2.setActionCommand("2"); r2.setBackground(Color.WHITE);
+ JRadioButton r3 = new JRadioButton("3"); r3.setActionCommand("3"); r3.setBackground(Color.WHITE);
+ JRadioButton r4 = new JRadioButton("4"); r4.setActionCommand("4"); r4.setBackground(Color.WHITE);
+ JRadioButton r5 = new JRadioButton("5"); r5.setActionCommand("5"); r5.setBackground(Color.WHITE);
group.add(r1);
group.add(r2);
group.add(r3);
group.add(r4);
group.add(r5);
JPanel radio_panel = new JPanel();
radio_panel.setLayout((new BoxLayout(radio_panel, BoxLayout.X_AXIS)));
radio_panel.setBackground(Color.WHITE);
radio_panel.setAlignmentX(Component.CENTER_ALIGNMENT);
radio_panel.add(r1);
radio_panel.add(r2);
radio_panel.add(r3);
radio_panel.add(r4);
radio_panel.add(r5);
radio_panel.doLayout();
radio_panel.setPreferredSize(radio_panel.getPreferredSize());
JTextArea question = new JTextArea(id + ") " + map.get(id).getQuestion());
question.setEditable(false);
question.setLineWrap(true);
question.setWrapStyleWord(true);
question.setFont(new Font("Tahoma", Font.PLAIN, 13));
JPanel row_panel = new JPanel();
row_panel.setLayout(new BoxLayout(row_panel, BoxLayout.X_AXIS));
row_panel.add(Box.createRigidArea(new Dimension(20,0)));
row_panel.add(question);
row_panel.add(Box.createRigidArea(new Dimension(20,0)));
row_panel.add(radio_panel);
row_panel.add(Box.createRigidArea(new Dimension(20,0)));
row_panel.setBackground(Color.WHITE);
int type_new = map.get(id).getType();
if(type_new != type){
type = type_new;
JLabel question_group = new JLabel("");
switch(type){
case 1:
question_group.setText("Clinical Utility");
break;
case 2:
question_group.setText("Privacy Concerns");
break;
case 3:
question_group.setText("Usability Assessment");
break;
}
question_group.setAlignmentX(Component.CENTER_ALIGNMENT);
question_group.setFont(new Font("Tahoma", Font.BOLD, 13));
+ panel_2.add(new JSeparator());
panel_2.add(Box.createRigidArea(new Dimension(0,5)));
panel_2.add(question_group);
panel_2.add(Box.createRigidArea(new Dimension(0,5)));
panel_2.add(new JSeparator());
panel_2.add(Box.createRigidArea(new Dimension(0,5)));
}
panel_2.add(Box.createRigidArea(new Dimension(0,5)));
panel_2.add(row_panel);
panel_2.add(Box.createRigidArea(new Dimension(0,5)));
// panel_2.add(radio_panel);
- panel_2.add(new JSeparator());
+// panel_2.add(new JSeparator());
panel_2.add(Box.createRigidArea(new Dimension(0,5)));
// panel_2.setPreferredSize(panel_2.getPreferredSize());
buttonGroupMap.put(id, group);
}
+
+
+
-
- this.setSize(new Dimension(1300, 865));
-// pack();
+ this.setSize(new Dimension(1118, 768));
+// this.pack();
}// </editor-fold>//GEN-END:initComponents
private void submitButtonActionPerformed(java.awt.event.ActionEvent evt){
try{
answers = new HashMap<String, String>();
StringBuilder sb = new StringBuilder();
Set<Integer> questions_id = buttonGroupMap.keySet();
for(Integer q: questions_id){
ButtonGroup bg = buttonGroupMap.get(q);
sb.append(q).append(",");
sb.append(bg.getSelection().getActionCommand()).append(";");
answers.put(q.toString(),bg.getSelection().getActionCommand());
}
String answer = sb.toString();
Integer id_loc = null;
for(Integer i: locations.keySet()){
if(locations.get(i).equals(comboBox.getSelectedItem().toString()))
id_loc = i;
}
String id_p;
if(jComboBox1.getSelectedItem().toString().equals("Select Patient"))
id_p = "0";
else
id_p = jComboBox1.getSelectedItem().toString();
ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
CommAdapter commHandlerAdapter = new CommAdapter(connection);
String reply = commHandlerAdapter.callServiceSurveyAnswer(answer, id_loc.toString(), id_p);
if(reply.equals("1")){
survey_submitted = true;
dialog.setVisible(false);
JOptionPane.showMessageDialog(
this,
"Congrats! Your aswers have been sent to the SHCS datacenter.",
"Information Message",
JOptionPane.INFORMATION_MESSAGE);
+ btnSubmitQuestionnaire.setEnabled(false);
}
else{
throw new IOException();
}
} catch (NullPointerException e){
LOGGER.log(Level.SEVERE, null, e);
dialog.setVisible(false);
JOptionPane.showMessageDialog(
this,
"Please respond to all the questions!",
"Error Message",
JOptionPane.ERROR_MESSAGE);
} catch (IOException e) {
LOGGER.log(Level.SEVERE, null, e);
dialog.setVisible(false);
JOptionPane.showMessageDialog(
this,
"The SHCS datacenter does not respond. Please save the survey and send it to jean.raisaro@epfl.ch.",
"Error Message",
JOptionPane.ERROR_MESSAGE);
}
}
private void savePDFButtonActionPerformed(java.awt.event.ActionEvent evt){
try {
answers = new HashMap<String, String>();
Set<Integer> questions_id = buttonGroupMap.keySet();
for(Integer q: questions_id){
ButtonGroup bg = buttonGroupMap.get(q);
answers.put(q.toString(),bg.getSelection().getActionCommand());
}
JFileChooser chooser = new JFileChooser();
// Note: source for ExampleFileFilter can be found in FileChooserDemo,
// under the demo/jfc directory in the JDK.
int returnVal = chooser.showSaveDialog(this);
System.out.println(returnVal);
if(returnVal == JFileChooser.APPROVE_OPTION) {
System.out.println("You chose to open this file: " +
chooser.getSelectedFile().getPath());
quest = new Questionnaire(chooser.getSelectedFile().getPath() + ".pdf");
quest.createPdf(map, ids);
quest.writeAnswers(answers);
survey_submitted = true;
}else{
quest = new Questionnaire("outputPDF/survey.pdf");
quest.createPdf(map, ids);
quest.writeAnswers(answers);
survey_submitted = true;
}
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (DocumentException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (NullPointerException e) {
LOGGER.log(Level.SEVERE, null, e);
dialog.setVisible(false);
JOptionPane.showMessageDialog(
this,
"Please respond to all the questions!",
"Error Message",
JOptionPane.ERROR_MESSAGE);
}
}
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
JPanel contentPanel = new JPanel();
- dialog.setBounds(100, 100, 410, 80);
+ dialog.setBounds(100, 100, 420, 100);
dialog.getContentPane().setLayout(new BorderLayout());
contentPanel.setLayout(new FlowLayout());
contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
dialog.getContentPane().add(contentPanel, BorderLayout.CENTER);
{
- JLabel label = new JLabel("Please wait...The overall computation can take few seconds");
+ JLabel label = new JLabel("Please wait...The overall computation can take some seconds!");
+ JLabel label2 = new JLabel("Cryptographic operations are being performed at the SHCS...");
label.setHorizontalAlignment(SwingConstants.CENTER);
- label.setFont(new Font("Tahoma", Font.PLAIN, 12));
+ label.setFont(new Font("Tahoma", Font.BOLD, 12));
+ label2.setHorizontalAlignment(SwingConstants.CENTER);
+ label2.setFont(new Font("Tahoma", Font.PLAIN, 12));
contentPanel.add(label);
+ contentPanel.add(label2);
}
{
JPanel buttonPane = new JPanel();
buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
dialog.getContentPane().add(buttonPane, BorderLayout.SOUTH);
}
dialog.setLocationRelativeTo(this);
dialog.setVisible(true);
GUIWorker gw = new GUIWorker(this, props);
Thread t = new Thread(gw);
t.start();
}
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JButton jButton1;
private javax.swing.JComboBox<String> jComboBox1;
- private javax.swing.JLabel jLabel1;
- private javax.swing.JLabel jLabel2;
private javax.swing.JLabel jLabel3;
private javax.swing.JLabel jLabel4;
private javax.swing.JMenu jMenu1;
private javax.swing.JMenu jMenu2;
private javax.swing.JMenuBar jMenuBar1;
private javax.swing.JMenuItem jMenuItem1;
- private javax.swing.JPanel jPanel1;
private javax.swing.JPanel jPanel2;
private javax.swing.JScrollPane jScrollPane3;
private javax.swing.JTabbedPane tabbedPane;
private javax.swing.JScrollPane jScrollPane2;
- private javax.swing.JScrollPane jScrollPane4;
private JPanel panel;
- private JPanel panel_1;
- private JPanel panel_2;
- private JLabel lblDearDoctor;
private JLabel lblNewLabel_1;
private JLabel lblNewLabel_2;
private JLabel lblNewLabel_3;
private JComboBox<String> comboBox;
private Component rigidArea;
+ private JSplitPane splitPane;
+ private JPanel panel_1;
+ private JLabel label_1;
+ private JLabel label_2;
+ private JLabel label_3;
+ private JLabel label_4;
+ private JScrollPane scrollPane;
+ private JTextPane introduction;
+ private JScrollPane jScrollPane4;
+ private JPanel panel_2;
// End of variables declaration//GEN-END:variables
class GUIWorker implements Runnable{
private JFrame mainFrame;
private ClientProperties props;
private MedUnit mu;
public GUIWorker(GUI gui, ClientProperties props) {
mainFrame = gui;
this.props = props;
this.mu = new MedUnit(props, 0);
}
@Override
public void run() {
try{
int patientId = Integer.parseInt((String) jComboBox1.getSelectedItem());
// convert selected tests to test identifiers
ArrayList<TestName> selectedTests = new ArrayList<TestName>();
for (String currentName : getSelectedTests()) {
TestName currentTest = testsByName.get(currentName);
if (currentTest == null) {
throw new IllegalStateException("Trying to run unknown test: " + currentTest);
}
selectedTests.add(currentTest);
}
// run tests
Diagnostic diagnostic = mu.runTests(patientId, selectedTests);
// warn for tests with missing material
warnFailedTests(diagnostic, selectedTests);
// create report
mu.createReport(patientId, selectedTests, diagnostic);
dialog.setVisible(false);
// specify file you wish to open (JPedal handles getting the byte data)
String filepathReport = props.getPathPDF() + patientId + ".pdf";
// open generated PDF
// object must be either String in full filepath, or
// File object which can be relative
Object[] input = new Object[]{ new File(filepathReport) };
viewer.executeCommand(Commands.OPENFILE, input);
// display CAD result as bar plot
if (diagnostic.hasCAD()) {
System.out.println("CAD = " + diagnostic.getResultCAD());
BarPlotFrame frame = new BarPlotFrame(diagnostic.getResultCAD(), patientId);
frame.setVisible(true);
frame.setAlwaysOnTop(true);
}
} catch (SQLException e) {
LOGGER.log(Level.SEVERE, null, e);
displayError("Not able to connect to service. Please try again.");
} catch (IOException e) {
LOGGER.log(Level.SEVERE, null, e);
displayError("Not able to connect to service. Please try again.");
} catch (NullPointerException e){
LOGGER.log(Level.SEVERE, null, e);
- displayError("Please select a patient.");
+ displayError("Please select a patient and one or multiple tests.");
+ } catch (NumberFormatException e){
+ LOGGER.log(Level.SEVERE, null, e);
+ displayError("Please select a patient and one or multiple tests.");
}
}
private void warnFailedTests(Diagnostic diagnostic, ArrayList<TestName> selectedTests) {
ArrayList<Integer> failedTests = diagnostic.getInvalidTests();
if (!failedTests.isEmpty()) {
String msg = "Could not complete tests: ";
boolean first = true;
for (TestName testName : selectedTests) {
if (failedTests.contains(testName.getId())) {
if (first) {
first = false;
} else {
msg += ", ";
}
msg += testName.getName();
}
}
displayError(msg);
}
}
private void displayError(String msg) {
dialog.setVisible(false);
JOptionPane.showMessageDialog(
mainFrame,
msg,
"Error Message",
JOptionPane.ERROR_MESSAGE);
}
private ArrayList<String> getSelectedTests() {
ArrayList<String> tests = new ArrayList<String>();
for (TreePath treePath : jTree.getSelectionPaths()) {
tests.addAll(getChildrenTests(jTree.getModel(), treePath.getLastPathComponent()));
}
return tests;
}
private ArrayList<String> getChildrenTests(TreeModel model, Object node) {
ArrayList<String> tests = new ArrayList<String>();
if (model.isLeaf(node)) { // leaf
DefaultMutableTreeNode leaf = (DefaultMutableTreeNode) node;
tests.add(leaf.toString());
}
else { // iterate over children
for (int i = 0; i < model.getChildCount(node); i++) {
tests.addAll(getChildrenTests(model, model.getChild(node, i)));
}
}
return tests;
}
}
}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/bb/50522d62a4a7001417ceadf0100b5ef7 b/.metadata/.plugins/org.eclipse.core.resources/.history/bb/50522d62a4a7001417ceadf0100b5ef7
deleted file mode 100644
index e69de29..0000000
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/be/5043631c68a8001419a38fd8608ce0e6 b/.metadata/.plugins/org.eclipse.core.resources/.history/be/5043631c68a8001419a38fd8608ce0e6
deleted file mode 100644
index 40a415c..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/be/5043631c68a8001419a38fd8608ce0e6
+++ /dev/null
@@ -1,291 +0,0 @@
-package io;
-
-import java.awt.BorderLayout;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.util.Map;
-import java.util.Set;
-
-import com.itextpdf.text.BaseColor;
-import com.itextpdf.text.Document;
-import com.itextpdf.text.DocumentException;
-import com.itextpdf.text.Element;
-import com.itextpdf.text.ExceptionConverter;
-import com.itextpdf.text.Font;
-import com.itextpdf.text.Font.FontFamily;
-import com.itextpdf.text.FontFactory;
-import com.itextpdf.text.Image;
-import com.itextpdf.text.PageSize;
-import com.itextpdf.text.Paragraph;
-import com.itextpdf.text.Phrase;
-import com.itextpdf.text.Rectangle;
-import com.itextpdf.text.pdf.AcroFields;
-import com.itextpdf.text.pdf.BaseFont;
-import com.itextpdf.text.pdf.ColumnText;
-import com.itextpdf.text.pdf.GrayColor;
-import com.itextpdf.text.pdf.PdfAction;
-import com.itextpdf.text.pdf.PdfBorderDictionary;
-import com.itextpdf.text.pdf.PdfContentByte;
-import com.itextpdf.text.pdf.PdfFormField;
-import com.itextpdf.text.pdf.PdfPCell;
-import com.itextpdf.text.pdf.PdfPCellEvent;
-import com.itextpdf.text.pdf.PdfPTable;
-import com.itextpdf.text.pdf.PdfReader;
-import com.itextpdf.text.pdf.PdfStamper;
-import com.itextpdf.text.pdf.PdfWriter;
-import com.itextpdf.text.pdf.PushbuttonField;
-import com.itextpdf.text.pdf.RadioCheckField;
-import com.itextpdf.text.pdf.TextField;
-
-import framework.Question;
-
-public class Questionnaire implements PdfPCellEvent{
-
- /** The path output file. */
- String pathOutputFile;
-
- /** The document. */
- Document document;
-
-
-
- int tf;
-
- public Questionnaire(String path){
- pathOutputFile = path;
- document = new Document(PageSize.A4, 25, 25, 50, 50);
- }
- public Questionnaire(int tf){
- this.tf = tf;
-
- }
-
- /** The resulting PDF. */
- public static final String RESULT1 = "outputPDF/buttons.pdf";
- /** The resulting PDF. */
- public static final String RESULT2 = "outputPDF/buttons_filled.pdf";
- /** Path to a JavaScript resource. */
- public static final String RESOURCE = "res/buttons.js";
- /** Path to an image used as button icon. */
- public static final String IMAGE = "res/info.png";
- /** Possible values of a radio field / checkboxes */
- public static final String[] LANGUAGES = { "English", "German", "French", "Spanish", "Dutch" };
-
- /**
- * Creates a PDF document.
- * @param filename the path to the new PDF document
- * @throws DocumentException
- * @throws IOException
- */
- public void createPdf(Map<Integer, Question> map, Set<Integer> ids) throws IOException, DocumentException {
-
- @SuppressWarnings("unused")
- PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream("outputPDF/temp.pdf"));
-
-
- document.open();
- Image logo = Image.getInstance("res/shcs_logo2.gif");
-
- logo.scalePercent(30f);
- float[] columnWidths1 = {0.2f, 0.8f};
- PdfPTable table_title = new PdfPTable(columnWidths1);
- PdfPCell c01 = new PdfPCell(logo, false);
- PdfPCell c02 = new PdfPCell(new Paragraph("Survery | Project #693",
- FontFactory.getFont(FontFactory.HELVETICA, 20, Font.BOLD, BaseColor.BLACK)));
- c01.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setHorizontalAlignment(Element.ALIGN_CENTER);
- c01.setBorder(Rectangle.NO_BORDER);
- c02.setBorder(Rectangle.NO_BORDER);
-
- table_title.addCell(c01);
- table_title.addCell(c02);
- table_title.setWidthPercentage(100);
- table_title.setSpacingBefore(0);
- table_title.setSpacingAfter(25);
- document.add(table_title);
-
-
- //----------------------------------------------------------------------------------
-
-
- PdfPTable table1 = new PdfPTable(1);
- table1.setWidthPercentage(100);
- PdfPCell c11 = new PdfPCell(new Phrase("Today you are receiving a pharmacogenetic report based on the genetic " +
- "information of your patient. Because the human genome contains extremely private and sensitive information" +
- " of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier," +
- " it must be managed with care. ",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.NORMAL, BaseColor.BLACK)));
- c11.setLeading(1.5f, 1.5f);
- c11.setPaddingBottom(8);
-
-
- table1.addCell(c11);
- table1.setSpacingAfter(10);
- document.add(table1);
-
-
- //----------------------------------------------------------------------------------
-
-// // step 4
-// // add the JavaScript
-// writer.addJavaScript(Utilities.readFileToString(RESOURCE));
-
- for(Integer id: ids){
- PdfPCell c2;
-
- PdfPTable table = new PdfPTable(1);
- table.setSpacingAfter(10);
- table.setWidthPercentage(100);
-
- PdfPCell c1 = new PdfPCell(new Phrase(id + ") " + map.get(id).getQuestion(),FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c1.setPaddingTop(5);
- c1.setPaddingBottom(5);
- c1.setHorizontalAlignment(Element.ALIGN_CENTER);
- c1.setBorder(Rectangle.NO_BORDER);
- table.addCell(c1);
-
- c2 = new PdfPCell(new Phrase(" 1" +
- " 2" +
- " 3" +
- " 4" +
- " 5",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c2.setHorizontalAlignment(Element.ALIGN_LEFT);
- c2.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c2.setCellEvent(new Questionnaire(id));
- c2.setBorder(Rectangle.TOP);
- c2.setPaddingTop(2);
- c2.setPaddingBottom(5);
- c2.setBackgroundColor(new BaseColor(242, 242, 242));
-
- table.addCell(c2);
-
-
-
- document.add(table);
- }
-
-
- //----------------------------------------------------------------------------------
-
- // step 5
- document.close();
-
-
-
- }
-
- @Override
- public void cellLayout(PdfPCell cell, Rectangle position,
- PdfContentByte[] canvases) {
- PdfWriter writer = canvases[0].getPdfWriter();
- PdfFormField radiogroup = PdfFormField.createRadioButton(writer, true);
- radiogroup.setFieldName(String.valueOf(tf));
- System.out.println(tf);
-
- float llx = position.getLeft();
- float lly = position.getBottom();
-
- float cell_h = cell.getHeight();
- float cell_w = cell.getWidth();
-
- Rectangle rect;
-
- for(int i=1 ; i<=5; i++){
-
- rect = new Rectangle(llx + (3+i)*cell_w/12, lly+cell_h/2-6, llx + (3+i)*cell_w/12+12 ,lly+cell_h/2+6);
-
- RadioCheckField radio = new RadioCheckField(writer, rect, String.valueOf(i), String.valueOf(i));
- radio.setBorderColor(GrayColor.GRAYBLACK);
- radio.setCheckType(RadioCheckField.TYPE_SQUARE);
-
-
- try {
- PdfFormField field = radio.getRadioField();
- radiogroup.addKid(field);
-
- writer.addAnnotation(radiogroup);
- }
-
- catch(IOException ioe) {
- throw new ExceptionConverter(ioe);
- }
- catch(DocumentException de) {
- throw new ExceptionConverter(de);
- }
- }
-
-
-
- }
-
-
- public void writeAnswers(Map<String, String> answers) throws IOException, DocumentException{
-
- PdfReader reader = new PdfReader("outputPDF/temp.pdf");
- PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(pathOutputFile));
-
-
- AcroFields form = stamper.getAcroFields();
-
-
-
-
- Set<String> fields = form.getFields().keySet();
- for(String key: fields){
-
- if(answers.containsKey(key)){
- form.setField(key, answers.get(key));
- }
- }
- stamper.close();
- reader.close();
-
- }
-
-
-// /**
-// * Manipulates a PDF file src with the file dest as result
-// * @param src the original PDF
-// * @param dest the resulting PDF
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public void manipulatePdf(String src, String dest) throws IOException, DocumentException {
-// PdfReader reader = new PdfReader(src);
-// PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(dest));
-// AcroFields form = stamper.getAcroFields();
-// String[] radiostates = form.getAppearanceStates("language");
-// form.setField("language", radiostates[4]);
-// for (int i = 0; i < LANGUAGES.length; i++) {
-// String[] checkboxstates = form.getAppearanceStates("English");
-// form.setField(LANGUAGES[i], checkboxstates[i % 2 == 0 ? 1 : 0]);
-// }
-// stamper.close();
-// reader.close();
-//
-// PdfReader r = new PdfReader(dest);
-// AcroFields f = r.getAcroFields();
-// Set<String> fields = form.getFields().keySet();
-// for(String key: fields){
-// if(f.getFieldType(key)==AcroFields.FIELD_TYPE_RADIOBUTTON){
-// System.out.println(key);
-// System.out.println(f.getField(key));
-//
-// }
-// }
-// r.close();
-//
-// }
-//
-// /**
-// * Main method
-// * @param args no arguments needed
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public static void main(String[] args) throws IOException, DocumentException {
-// Questionnaire buttons = new Questionnaire();
-// buttons.createPdf(RESULT1);
-// buttons.manipulatePdf(RESULT1, RESULT2);
-// }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/be/70a0e04cbba70014153e8739f9242ea5 b/.metadata/.plugins/org.eclipse.core.resources/.history/be/70a0e04cbba70014153e8739f9242ea5
deleted file mode 100644
index 2c7ffdb..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/be/70a0e04cbba70014153e8739f9242ea5
+++ /dev/null
@@ -1,48 +0,0 @@
-
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
-import javax.swing.UnsupportedLookAndFeelException;
-
-import ui.GUIbis;
-import utils.ClientProperties;
-
-
-public class ClientApp {
-
- private final static Logger LOGGER = Logger.getLogger(ClientApp.class.getName());
-
- public static void main(String args[]) {
-// Handler handler = new ConsoleHandler();
-// handler.setLevel(Level.FINEST);
-// Logger.getLogger("").addHandler(handler);
-
- // set LookAndFeel
- try {
- for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
- if ("Windows".equals(info.getName())) {
- javax.swing.UIManager.setLookAndFeel(info.getClassName());
- break;
- }
- }
- } catch (ClassNotFoundException e) {
- LOGGER.log(Level.SEVERE, null, e);
- } catch (InstantiationException e) {
- LOGGER.log(Level.SEVERE, null, e);
- } catch (IllegalAccessException e) {
- LOGGER.log(Level.SEVERE, null, e);
- } catch (UnsupportedLookAndFeelException e) {
- LOGGER.log(Level.SEVERE, null, e);
- }
-
- java.awt.EventQueue.invokeLater(new Runnable() {
- public void run() {
- // get client configuration
- ClientProperties props = new ClientProperties("config/config_client.fry.properties");
-// ClientProperties props = new ClientProperties("config/config_client.properties");
-
- new GUI(props).setVisible(true);
- }
- });
- }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/be/9012b5dad5a700141a6b8b802f4728c1 b/.metadata/.plugins/org.eclipse.core.resources/.history/be/9012b5dad5a700141a6b8b802f4728c1
deleted file mode 100644
index a1c932e..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/be/9012b5dad5a700141a6b8b802f4728c1
+++ /dev/null
@@ -1,59 +0,0 @@
-package io;
-
-import io.serializer.url.URLParserDecrypt;
-import io.serializer.url.URLParserMaterial;
-import io.serializer.xml.XMLParserDecrypt;
-import io.serializer.xml.XMLParserMaterial;
-import io.serializer.xml.XMLParserSurvey;
-
-import java.util.logging.Logger;
-
-import framework.Type;
-import framework.reply.ReplyDecryption;
-import framework.reply.ReplyMaterial;
-import framework.reply.ReplySurvey;
-import framework.request.RequestDecryption;
-import framework.request.RequestMaterial;
-
-public class CommAdapter {
-
- @SuppressWarnings("unused")
- private static final Logger LOGGER = Logger.getLogger(CommAdapter.class.getName());
-
- public ClientConnection connectSPU = null;
-
- public CommAdapter(ClientConnection connectSPU) {
- this.connectSPU = connectSPU;
- }
-
- public ReplyDecryption callServiceDecrypt(RequestDecryption rqtDecrypt) {
- String requestString = URLParserDecrypt.requestToString(rqtDecrypt);
-// String replyString = "<awr_decrypt><patient>30351</patient><v_timestamp>1417188729390</v_timestamp><decrypt_val>,,,,,,,,,,,,,,,,2,AwHR3OO0/hkwgEHluLDFLtn4aaTBAwBEJjJpMegGa29ASgtyt1ha2OOyxvEvNgkIaY0xWXtTmqrqhSBKDG6J7Lps0g==,AwE/oifhonvUZDA4mqRK8K1WCkoepEuL9SidjdFXMNNZQXCMUvVN6pBUYVFgJeFX6mT2jruK8ic3y6yI14PfKl/Pvg==,AgBHs6HGF9AYNc5RlFTGv025WEaT91i/MPy+HXqhvHOrp0Ol9/aKyvv2BgAzeAdsdSEbVs2sahiyL/kbKjeUoI9tsA==,,,,,,,,,,,,,2,AgHIofEmf4aJMLBnKAY3/8WcLXUETF4y/68fzZR6hsS5btZTyI0E4ZTltDzV6hBzIT14cC4S/BMclo1aoLt5C9f+Cg==,AgDOXZAZAwO4KXslqU1wKctrVlH8CcGvpO8gGrPl3YjrY8SR3a6gStvZvjcUKXhvtDkRwSLAIkD3lFrKSXWestHSqQ==,AgG7Y5so9ZTRng2Xm3ziWx3+7zfaVLkIJ2v7g+qEUx5Vl2/udDOcg/was8W6qbKYeo/W0EGTlNXKTOdIatGVxyuoZA==,,,,,2,AgDAVy0/nE6X4iAengG9lCiYEBMtK6rAAiy7OwC7U/QSbokiEzH0RafH7rb+5L5R/ii9/3kZCcKmgOIoPzkmeloDfg==,AgHuvmLAeIFYm4ObEBO2v9xTK6tjYfdh+x4kwULBpDNlUiW4kNNaeoeziRA7nlRvcSfxPlR070N/3qzBMu3EKZ2csQ==,AgDk/CzCL4XUobuNaLsvrH5s0COMKYBqY/18YRR0d7mIsVVYrKVGF+IWnEluhbLt+BoRBdvL5UElgroyORJpiKz06w==,,,,,2,AgH0nW+2h+vcOZgPe3uR7jEHmEPi+g4izQ3OIU9An2vekwbG1liBFgTo33pEhyXhNWPhGCbSb73sJ7pt0JLL+hhWMw==,AgHG039OnpvmllkV6QBsmoMdqISrRuW2q5M3jfUp5TUbU6F/3S2FK1iSVKWgTsI291re6lz6KH5d8rWrnoCAozhIeg==,AwGjmnLUMd42F7a/tsSkeqcxoHMAXNKdvF4kOXoAxmc6ZSxaUhzkGkcgNOO8SFNiWqTKgtZCffJ7hfI0voAUX0TD1w==,,,,,2,AwHfYRjQFscHzOvVozackTaM3sybOjyd2aLc4B+WQ7KiWHoGKkzQScoDiy8hiA2cJpv8ngfitTqJRLlyegvuM+Ietw==,AwAP92OqrJFpFmdrMUUx6FeFhwVLYtAsfw3sem2RYu7ljPry+uJnvluuzTvVaFhs8BAAD8VBFs1vqrSHyQEq8Ocsmw==,AwDNXg/JA4QXA6wu30DUE7peOk1a10aHbd38iwjN1Q0DKy3BqS36+EQKg5hbwELxN2+/Yu4UA1IKWYJI0zNs6TJUtA==,,,,,2,AwBWFv3ivyQz4CGIilJ7CVtpQGOs1tnIW+0uxQyiWIO3HDjJtfxPyQ1AJWPsBQ9eYmaoKmPnN+euPCm7bP0LxBL/Tg==,AwHg7AZb5DV5OJrl0omtKx2OqckXcQEUT8pZ+Bmo9AyULgL5HOq2AVU04qhvbdy0W4OMYqxF3uBwqT6dNhFptsKEKQ==,AwG9dyMbI5EI8UCXuj5JkQRMimcT1u6zCBAfmRvANtT54yDtC8KS6VeOr7h/NP4qrf/mbl5tMaePbkkHrc6E39ntsA==,,,,,2,AwHkMyCOJm/RlYOybGhX3DchR/wSN2L3PuXKalMszgk3WOCiWSpYlP3SOPLWvJTRQaTxoN+oA5IkCTvlp02+Mduaxg==,AgHhR8HjavXjnsy+rHptc/JSI5pLFjM0RczUygxTX7vqV/yqwZ280Rq7YpXKp2GBfiZvFf0qIQoWe4vx5DBxwvHkdA==,AwEf2yisEpflVm8R2X08SCJM89apu7tUFzbpndsTIt5o9/xdoXKomMUk9REz+yrpkd+jFhlkJMQHHVMhgjiWYCEdpQ==,,,,,2,AwBaIc8ZWFm4O9QO0ofJeS9Q7tki7CAscBXRDnajEp7rmKNgrpRyyu1ezSpborwaloWR9kDKPLdYVV8SNk2V/1EudA==,AwGE8MPAnPKKXF15EyrAx1bRinwgoqYVO4Junz5IXQjGLyQpSr5NwO/hqu5E5egHte20jm380Wn2Qy6GgKNiRLy/gQ==,AwCAOjOQNdMN5uIB0POFzYS/fpxZ0Q5KfhlP5fijNmc/daO5frSrwhgcMH5lMKL4EGjBI1p6JMe3fuMqb5t1ImeTBg==,,,,,2,AgARSg2izcK6iZLFe4YkIS6yZgnt8cd9DFqpQ37gNmcccZwBI+mpsaijTUPo1GT+QUD8zC+6qr/GrzG9q+q7BPxpVw==,AwGM/jFdtoNViQXxgqeL27ZKobjsfyeuXrx8re3UfIe3c4XN16srSpcTfxEZNXDKo1Ff9fRvDVBOwdS6XU2nvo++ng==,AwAtK0eOqcVfzkdJIIkk7BORWwSDTAjtx4aEXwyZ0bla+2rIWDgXi3U5xlgnjeXJNtGsLokkvvX92BOBIw9SuCGhnw==,2,AgCWAAWTW+7jv2a2lc4pGFnumEgyH59wSDRXEYUASCVB249JBmeKFWRKNFTQlph5hTR5Rb+YHFP/qvzmwU11Hs2b0w==,AgANdxpkN+DS4De3aokNjt+e/Ou8GT+p8pUJA+6LHrDBXAddoCR8KpeXW7mESokq6BTEVQXxU3TdqavRkqaeFmpXkw==,AgDDDSEO3e8DCsm1n6dbj2PB9Z/tUzluDCt/utdSLrYFfdFY+Y5K7Vxo9F5/17CzaUbX172SGLt8TfCfuYBrtupgAg==,2,AgB1OG6bj+6kfRvLj8yjMQbl80FdZHZrRVRUfNVRwvjvvbRa5f9s9fNZ8J0a3s3hH+RyfZmGJ4Ufjh5mMiQkwiur6w==,AwBX4GFZNjUdtRdwtWgxyQz7h8Hk0ztaZeM8/e+8ll0o+RjYN+CNP8+lnXEw7wpuC4wcMX05mrjPvHOuy0hOFVNkhQ==,AgDf3el4vbMYIAFEH9WV151/uzl+gkfTQ79T8Iu4KxEVo6UJvCfqkjETlR6aXUJiqaCbSV5odMT50lURsmfgALf6AQ==,,,,,2,AgENmnviZkgQWXZ5QDgCCE2zq0IiXURTqK2UNPtEg3o64yjlrQQUd2rO/KgKolyCQcKYTVoMj7k2VeCSSVRr8KGC7w==,AwFv6ZJzhpV/Ms00QkrkNiCKVRFczn/yqnkiBFUHC1RQv3tqzzYSEUeXmDHmm0/kEBtnfgRWjHQm9zxS8Jzy7srDLQ==,AwB8aS5KA1dFLKCA1a/7Wsjhef+6kkNAB/GO9AOvRZbFW/dhl5fx04Alh+g78fwcVMX+eEIEJgSyH0jhv7kmiQh4ew==,,,,,2,AgG8fXrCra6UgP5G89TaE6PH5E0TANb/PJPbKwzdi78XEHRUmcTz6PIhYtclTmcdq5TH0IwQv+ra5ppf4qR4LtkGig==,AgEKzsmZrikmXzJywMpzkAdG9hAPlOiRY9oXKf4Sh50CL8btUItjfVJWg3ubNhotzJK+fnNlRrcMkWQEBD/aGKpf8A==,AwFi+2cGpuvVdR+pT1P9Ur8jAkzmjJK2XmUQbFpyMi5Jc9a5/fPnBWCxmTX8CH5wks0PicYC6rzZC3NEIt0EoM1Qfg==,,,,,2,AgHbTZgTAv8lLBsoX06Hkm9XPU+crlRqKl0xL8v18xeUUPY1YAvUYf2OAutmTtPRycXyzrDWSpn2h5xfk/dtq/BICg==,AwAjPydfoUhfSVFKWNI4Ox4a/psZGDIGzEEWh9HyVtAmjdNb5ctr/S6z+akiRfPlNCsVf6TdkzJ2Su6BO4sOX/SHKA==,AwBVmjn7AitCe4zQ/Fl0sYW2XqXkJxJBDviwl9jYhoq29v90n9escDsiA3Cy+1uW69MezdZBEszFdEWlX0EzbQZQ6A==,,,,,2,AwCG0RBHwHuame/1G7qtUjmwz0gkCP1tyZiEgm7aTKpsCjt7UsMirMmx/ZrNlvSzkGuVbRO97Szzr+9fo4baH1rEZA==,AwHyMK/q8FUUvoHTt7O7KJUxYz/ZHF6SntbmKfbygLVw4HWc/eFic4DXHKbEGWvrMO5b37GksqxfQHc2xlAuj8ZRIw==,AgB5x0BxqiMYxRvzlq0+/RkbOuNA7hYuMG+7D6wlMOxSskgqyfwA0MfW+AkXFqnqfqsoJRpDy15bABWhH6MIdJsPEA==,,,,,2,AwAS/nCH0pcrsllSy2duadUs1rMtL6vtz7VTUAVhn1/YYlZ068ysBi1Mdz9gJFewdyeGLnFhyg+W15rFB317nyeGHg==,AwBh6f5UVRMM5ekWqkrx6XiVOK/BL0TinjsSLna8BjkQPXU2DvGxiKPhA03/GtBdEpihEX4bVaHQhiOupTf7wh6bCQ==,AgGPDFH8Kv8hz2aUJ955nHu8NiAoTmDjqhlXuJ1T83h+O0sc2GieLhmXmpEjxjEAyxkqjb2nFxvDhi+YGs4MqI4S5A==,,,,,2,AwDqwFv6bqpM/6PTCJ/wgRALYVT+Rn54HIB2icP6ODNexaoqILBS9p1k1QENbQsBZ9LmJJwngRQXi07Q4P8br76Qfw==,AgG8yTiO8tFWZqQELBr+Zt1fKKA3bl08836nUEEpD55Sid0ZywCrWe+Va58xbMIWscISLPbBvXIdO48ZgoHsLgA7Jw==,AwCI1Ud0GJLnS86mSC58HNB91lH9kPpQbufGn+WJErGxAQubtSFBc3rnT0SNE3CbW+1MPjYBbdCgxpHjN/iQf96++w==,,,,;2,AgB9YhljgPngkwwYTBMUaMGR+rWMjvlK0tgrzkG8OT9NGNJfaaLP6AzfhWrT5oe9NRnabU25pQvDhAIGZCajDy8N2g==,AwE5Irce6LOSxfLgn4PZh1PeDPjAHb5wPTNfmQoWFY83dNQLYN44FupJaQRRUqBqyGNB0SL76GKzr8G9tKLAHOxRSQ==,BAG5iWHEhlWkvtyAlQy4bwKa1iNRzJq8WJTh2GE9oT4DeJRmO1pCHy9P+9YktDT+4RgV9s8AzOYih1LmHW14uP27HQGg1nTdHyab9/nFUe9BFxIi8xQTPG8et9++5I+gKIeWGCXBL31sBhpaMewvVhDjl2d3+7H2PUv9IY3lyIRFA6N16A==,2,AwAPIoQJqSbXFKXQAIG9J+/+/41NLX0rDINImk4eBgAnZ4V0R8YSqkHD3nd0IrEMyK7OpkCXkxTzOlwJlfEfti+vew==,AwAQ8KdMYsEOqM3eyGv/XbHnGf+TqCAG39Gz/juBcioOOJmLOFjl6oCITozJOyPusbTRXZ4eIwgQYkl12mt6saTpgQ==,BACkTO+3rRUF81w5yzZskFiIRyVxc6sdJfDFX6C+Jy5A+s/sfHskrFx2GYNklZaYztP0/B64a6v6HvFWVz8GuYj2wgHhiCL+QwLThFpaRxh8kUMSrt4VuXSIjtHwRXzhSdEbG2T6C/+CJZxIFh/ugEV9SS51l1HrLdnJDb2Kdu3QC3lRkQ==;2,AgC99VyiRLJ2kFf3oCkb+JPVV7B4tXVGI2NVT7fdKtB+gEjCcdkbS5YEXm/Sq6NAJEOKilMTFUDLYFDOe+7JHj/4pw==,AgAbT080sbKVHH9lim3tVCYS4cMz+rLownRKqtYZ7AfR8qy819R1GFywQ0kImgcdjEey5C4m0OPTwgtkO+C5uWtKfQ==,BADKYt9i0zTJeh3H8t6d8pZdncz3f28v1oWrssLZwAutkIcF3XKkPNmK3X75K3sImUSch//IIRIB1Yi5/MrZZeDrxQHhQZEg6AA8bDxgt0JdOEX2t4crzDu3gW5I8y+Ya0fZr1RmxvfMr2UxRhSsNsz949v/g+GPfsrEfDqIWTiNlJfwyg==,2,AgEPMjgCfgGRaZ/5I1hLqDoJ8nXYeTlnt9YeK4K8w+HnRAoAD09zkPcLMWajIjupe/CUFrHz00sAvs+vOPeKxGrLiQ==,AgDy7g2DcDwmIW7LtTTteHExD/cyP4BMWimEAM1RfAd/Y6P8XkmRGgglfdLJ7RGTR2YIMB1lxQ/LQUbmzyjTiiuWow==,BAHJ7oHVr/0wweyGlg4f9Dqmx8h0m35jMdrEFwVY8l/ENKpOTxG/oh9vAvo1uw39wUOn4CWGBmAFE2lsvWFW18gt+gHPFt5/9ihUFN9mtxFLT1Q3W4Uf8IdekHPMbNlxEp1wId7EH3XsAox3Eo8b3XnYpwfsAXoDwQa2wyiO5h104Ptvsg==;2,AwClCMGcHdd7rD8sYDC/GXyAtLmZ/JI4v+aOK4PXzjWJi/zvcsXT5dJUOm9bW6AAtzgOKPd0WwU3hSytJ+ATy146Uw==,AgADzN6ysOIC9GAuMF9suYNfkR027H/9OcpeVJb4HRHfZ/EOmQWSdJmJFw3F/NLUrreNnFCvuF1+1bbmHa3tvznjeA==,BADwaRJF9z3DW7HE3qhGu6Yd9d2WBfWy8opd7Mhkg7TpAQsn9oA3UcpCarn4DMSnVGG94Y3Pxsj5vlm5G7GMKiGoxAERnETH6pVgBxhtrnBU6l4vHl+X4rd8I/zheZiG0EFKJza41rmwKHTY4+42PJ8/3Y2rCanbY1RSAJEgiZR89k6nGg==,2,AgCK80PhKSC23aVKQ8uYm+79GWZiwpbV5lc8Fzcpwu8hdKGAMH4f62Y//cmrQmCIltm03PTVPMn6rMwkfoz+9M2LDQ==,AgH5aXThIKUjENFTGCGwcTRql7xIe8vR9h78KikTYkD8itQ+YBDrnx5OaNyWRjpIJHAZ2B61W2aVjZ5Rmo0d1B1Pcw==,BAAEZsEKw59QSRxN1QmWcx4X2LaK4+zBuawh+2CIRPljWyxK6XhIM6EEalr44Klce4OTK2QbxT5n3Kjnh5jNuwCOawAH/wiNrx09+HY8SZrRjCjv1+Lnicybrqg/IFDNoAGT5aguaGRIMmGOLe0QFJr0T0iW3RnYGlmSd/r6ex8+MpOgLw==</decrypt_val></awr_decrypt>";
- String replyString = connectSPU.sendReceive(Type.DECRYPT, requestString);
- System.out.println("REQUEST URL: " + requestString);
- System.out.println("REPLY: " + replyString);
- ReplyDecryption reply = (new XMLParserDecrypt()).stringToReply(replyString);
- return reply;
- }
-
- public ReplyMaterial callServiceMaterial(RequestMaterial rqtMaterial) {
- String requestString = URLParserMaterial.requestToString(rqtMaterial);
- String replyString = connectSPU.sendReceive(Type.MATERIAL, requestString);
-
- System.out.println("Material request:");
- System.out.println(replyString);
-
- ReplyMaterial reply = (new XMLParserMaterial()).stringToReply(replyString);
- return reply;
- }
-
- public ReplySurvey callServiceSurvey(){
-
-// String replyString = connectSPU.sendReceive(Type.SURVEY,"");
- //4::What's your name?::1;5::Where are you from?::2;6::How old are you?::3;7::What's your name?::1;8::Where are you from?::2;9::How old are you?::3;10::What's your name?::1;11::Where are you from?::2;12::How old are you?::3;13::What's your name?::1;14::Where are you from?::2;15::How old are you?::3
- String replyString ="<awr_survey><v_questions>1::What's your name?::1;2::Where are you from?::2;3::How old are you?::3</v_questions><v_locations>Lausanne;Basel;Zurich</v_locations></awr_survey>";
- ReplySurvey reply = (new XMLParserSurvey()).stringToReply(replyString);
- return reply;
- }
-
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/bf/8094abb849ac001410e2e30aa85db9d1 b/.metadata/.plugins/org.eclipse.core.resources/.history/bf/8094abb849ac001410e2e30aa85db9d1
deleted file mode 100644
index 5bece51..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/bf/8094abb849ac001410e2e30aa85db9d1
+++ /dev/null
@@ -1,71 +0,0 @@
-package io;
-
-import io.serializer.url.URLParserDecrypt;
-import io.serializer.url.URLParserMaterial;
-import io.serializer.xml.XMLParserDecrypt;
-import io.serializer.xml.XMLParserMaterial;
-import io.serializer.xml.XMLParserSurvey;
-
-import java.util.logging.Logger;
-
-import framework.Type;
-import framework.reply.ReplyDecryption;
-import framework.reply.ReplyMaterial;
-import framework.reply.ReplySurvey;
-import framework.request.RequestDecryption;
-import framework.request.RequestMaterial;
-
-public class CommAdapter {
-
- @SuppressWarnings("unused")
- private static final Logger LOGGER = Logger.getLogger(CommAdapter.class.getName());
-
- public ClientConnection connectSPU = null;
-
- public CommAdapter(ClientConnection connectSPU) {
- this.connectSPU = connectSPU;
- }
-
- public ReplyDecryption callServiceDecrypt(RequestDecryption rqtDecrypt) {
- String requestString = URLParserDecrypt.requestToString(rqtDecrypt);
-// String replyString = "<awr_decrypt><patient>30351</patient><v_timestamp>1417188729390</v_timestamp><decrypt_val>,,,,,,,,,,,,,,,,2,AwHR3OO0/hkwgEHluLDFLtn4aaTBAwBEJjJpMegGa29ASgtyt1ha2OOyxvEvNgkIaY0xWXtTmqrqhSBKDG6J7Lps0g==,AwE/oifhonvUZDA4mqRK8K1WCkoepEuL9SidjdFXMNNZQXCMUvVN6pBUYVFgJeFX6mT2jruK8ic3y6yI14PfKl/Pvg==,AgBHs6HGF9AYNc5RlFTGv025WEaT91i/MPy+HXqhvHOrp0Ol9/aKyvv2BgAzeAdsdSEbVs2sahiyL/kbKjeUoI9tsA==,,,,,,,,,,,,,2,AgHIofEmf4aJMLBnKAY3/8WcLXUETF4y/68fzZR6hsS5btZTyI0E4ZTltDzV6hBzIT14cC4S/BMclo1aoLt5C9f+Cg==,AgDOXZAZAwO4KXslqU1wKctrVlH8CcGvpO8gGrPl3YjrY8SR3a6gStvZvjcUKXhvtDkRwSLAIkD3lFrKSXWestHSqQ==,AgG7Y5so9ZTRng2Xm3ziWx3+7zfaVLkIJ2v7g+qEUx5Vl2/udDOcg/was8W6qbKYeo/W0EGTlNXKTOdIatGVxyuoZA==,,,,,2,AgDAVy0/nE6X4iAengG9lCiYEBMtK6rAAiy7OwC7U/QSbokiEzH0RafH7rb+5L5R/ii9/3kZCcKmgOIoPzkmeloDfg==,AgHuvmLAeIFYm4ObEBO2v9xTK6tjYfdh+x4kwULBpDNlUiW4kNNaeoeziRA7nlRvcSfxPlR070N/3qzBMu3EKZ2csQ==,AgDk/CzCL4XUobuNaLsvrH5s0COMKYBqY/18YRR0d7mIsVVYrKVGF+IWnEluhbLt+BoRBdvL5UElgroyORJpiKz06w==,,,,,2,AgH0nW+2h+vcOZgPe3uR7jEHmEPi+g4izQ3OIU9An2vekwbG1liBFgTo33pEhyXhNWPhGCbSb73sJ7pt0JLL+hhWMw==,AgHG039OnpvmllkV6QBsmoMdqISrRuW2q5M3jfUp5TUbU6F/3S2FK1iSVKWgTsI291re6lz6KH5d8rWrnoCAozhIeg==,AwGjmnLUMd42F7a/tsSkeqcxoHMAXNKdvF4kOXoAxmc6ZSxaUhzkGkcgNOO8SFNiWqTKgtZCffJ7hfI0voAUX0TD1w==,,,,,2,AwHfYRjQFscHzOvVozackTaM3sybOjyd2aLc4B+WQ7KiWHoGKkzQScoDiy8hiA2cJpv8ngfitTqJRLlyegvuM+Ietw==,AwAP92OqrJFpFmdrMUUx6FeFhwVLYtAsfw3sem2RYu7ljPry+uJnvluuzTvVaFhs8BAAD8VBFs1vqrSHyQEq8Ocsmw==,AwDNXg/JA4QXA6wu30DUE7peOk1a10aHbd38iwjN1Q0DKy3BqS36+EQKg5hbwELxN2+/Yu4UA1IKWYJI0zNs6TJUtA==,,,,,2,AwBWFv3ivyQz4CGIilJ7CVtpQGOs1tnIW+0uxQyiWIO3HDjJtfxPyQ1AJWPsBQ9eYmaoKmPnN+euPCm7bP0LxBL/Tg==,AwHg7AZb5DV5OJrl0omtKx2OqckXcQEUT8pZ+Bmo9AyULgL5HOq2AVU04qhvbdy0W4OMYqxF3uBwqT6dNhFptsKEKQ==,AwG9dyMbI5EI8UCXuj5JkQRMimcT1u6zCBAfmRvANtT54yDtC8KS6VeOr7h/NP4qrf/mbl5tMaePbkkHrc6E39ntsA==,,,,,2,AwHkMyCOJm/RlYOybGhX3DchR/wSN2L3PuXKalMszgk3WOCiWSpYlP3SOPLWvJTRQaTxoN+oA5IkCTvlp02+Mduaxg==,AgHhR8HjavXjnsy+rHptc/JSI5pLFjM0RczUygxTX7vqV/yqwZ280Rq7YpXKp2GBfiZvFf0qIQoWe4vx5DBxwvHkdA==,AwEf2yisEpflVm8R2X08SCJM89apu7tUFzbpndsTIt5o9/xdoXKomMUk9REz+yrpkd+jFhlkJMQHHVMhgjiWYCEdpQ==,,,,,2,AwBaIc8ZWFm4O9QO0ofJeS9Q7tki7CAscBXRDnajEp7rmKNgrpRyyu1ezSpborwaloWR9kDKPLdYVV8SNk2V/1EudA==,AwGE8MPAnPKKXF15EyrAx1bRinwgoqYVO4Junz5IXQjGLyQpSr5NwO/hqu5E5egHte20jm380Wn2Qy6GgKNiRLy/gQ==,AwCAOjOQNdMN5uIB0POFzYS/fpxZ0Q5KfhlP5fijNmc/daO5frSrwhgcMH5lMKL4EGjBI1p6JMe3fuMqb5t1ImeTBg==,,,,,2,AgARSg2izcK6iZLFe4YkIS6yZgnt8cd9DFqpQ37gNmcccZwBI+mpsaijTUPo1GT+QUD8zC+6qr/GrzG9q+q7BPxpVw==,AwGM/jFdtoNViQXxgqeL27ZKobjsfyeuXrx8re3UfIe3c4XN16srSpcTfxEZNXDKo1Ff9fRvDVBOwdS6XU2nvo++ng==,AwAtK0eOqcVfzkdJIIkk7BORWwSDTAjtx4aEXwyZ0bla+2rIWDgXi3U5xlgnjeXJNtGsLokkvvX92BOBIw9SuCGhnw==,2,AgCWAAWTW+7jv2a2lc4pGFnumEgyH59wSDRXEYUASCVB249JBmeKFWRKNFTQlph5hTR5Rb+YHFP/qvzmwU11Hs2b0w==,AgANdxpkN+DS4De3aokNjt+e/Ou8GT+p8pUJA+6LHrDBXAddoCR8KpeXW7mESokq6BTEVQXxU3TdqavRkqaeFmpXkw==,AgDDDSEO3e8DCsm1n6dbj2PB9Z/tUzluDCt/utdSLrYFfdFY+Y5K7Vxo9F5/17CzaUbX172SGLt8TfCfuYBrtupgAg==,2,AgB1OG6bj+6kfRvLj8yjMQbl80FdZHZrRVRUfNVRwvjvvbRa5f9s9fNZ8J0a3s3hH+RyfZmGJ4Ufjh5mMiQkwiur6w==,AwBX4GFZNjUdtRdwtWgxyQz7h8Hk0ztaZeM8/e+8ll0o+RjYN+CNP8+lnXEw7wpuC4wcMX05mrjPvHOuy0hOFVNkhQ==,AgDf3el4vbMYIAFEH9WV151/uzl+gkfTQ79T8Iu4KxEVo6UJvCfqkjETlR6aXUJiqaCbSV5odMT50lURsmfgALf6AQ==,,,,,2,AgENmnviZkgQWXZ5QDgCCE2zq0IiXURTqK2UNPtEg3o64yjlrQQUd2rO/KgKolyCQcKYTVoMj7k2VeCSSVRr8KGC7w==,AwFv6ZJzhpV/Ms00QkrkNiCKVRFczn/yqnkiBFUHC1RQv3tqzzYSEUeXmDHmm0/kEBtnfgRWjHQm9zxS8Jzy7srDLQ==,AwB8aS5KA1dFLKCA1a/7Wsjhef+6kkNAB/GO9AOvRZbFW/dhl5fx04Alh+g78fwcVMX+eEIEJgSyH0jhv7kmiQh4ew==,,,,,2,AgG8fXrCra6UgP5G89TaE6PH5E0TANb/PJPbKwzdi78XEHRUmcTz6PIhYtclTmcdq5TH0IwQv+ra5ppf4qR4LtkGig==,AgEKzsmZrikmXzJywMpzkAdG9hAPlOiRY9oXKf4Sh50CL8btUItjfVJWg3ubNhotzJK+fnNlRrcMkWQEBD/aGKpf8A==,AwFi+2cGpuvVdR+pT1P9Ur8jAkzmjJK2XmUQbFpyMi5Jc9a5/fPnBWCxmTX8CH5wks0PicYC6rzZC3NEIt0EoM1Qfg==,,,,,2,AgHbTZgTAv8lLBsoX06Hkm9XPU+crlRqKl0xL8v18xeUUPY1YAvUYf2OAutmTtPRycXyzrDWSpn2h5xfk/dtq/BICg==,AwAjPydfoUhfSVFKWNI4Ox4a/psZGDIGzEEWh9HyVtAmjdNb5ctr/S6z+akiRfPlNCsVf6TdkzJ2Su6BO4sOX/SHKA==,AwBVmjn7AitCe4zQ/Fl0sYW2XqXkJxJBDviwl9jYhoq29v90n9escDsiA3Cy+1uW69MezdZBEszFdEWlX0EzbQZQ6A==,,,,,2,AwCG0RBHwHuame/1G7qtUjmwz0gkCP1tyZiEgm7aTKpsCjt7UsMirMmx/ZrNlvSzkGuVbRO97Szzr+9fo4baH1rEZA==,AwHyMK/q8FUUvoHTt7O7KJUxYz/ZHF6SntbmKfbygLVw4HWc/eFic4DXHKbEGWvrMO5b37GksqxfQHc2xlAuj8ZRIw==,AgB5x0BxqiMYxRvzlq0+/RkbOuNA7hYuMG+7D6wlMOxSskgqyfwA0MfW+AkXFqnqfqsoJRpDy15bABWhH6MIdJsPEA==,,,,,2,AwAS/nCH0pcrsllSy2duadUs1rMtL6vtz7VTUAVhn1/YYlZ068ysBi1Mdz9gJFewdyeGLnFhyg+W15rFB317nyeGHg==,AwBh6f5UVRMM5ekWqkrx6XiVOK/BL0TinjsSLna8BjkQPXU2DvGxiKPhA03/GtBdEpihEX4bVaHQhiOupTf7wh6bCQ==,AgGPDFH8Kv8hz2aUJ955nHu8NiAoTmDjqhlXuJ1T83h+O0sc2GieLhmXmpEjxjEAyxkqjb2nFxvDhi+YGs4MqI4S5A==,,,,,2,AwDqwFv6bqpM/6PTCJ/wgRALYVT+Rn54HIB2icP6ODNexaoqILBS9p1k1QENbQsBZ9LmJJwngRQXi07Q4P8br76Qfw==,AgG8yTiO8tFWZqQELBr+Zt1fKKA3bl08836nUEEpD55Sid0ZywCrWe+Va58xbMIWscISLPbBvXIdO48ZgoHsLgA7Jw==,AwCI1Ud0GJLnS86mSC58HNB91lH9kPpQbufGn+WJErGxAQubtSFBc3rnT0SNE3CbW+1MPjYBbdCgxpHjN/iQf96++w==,,,,;2,AgB9YhljgPngkwwYTBMUaMGR+rWMjvlK0tgrzkG8OT9NGNJfaaLP6AzfhWrT5oe9NRnabU25pQvDhAIGZCajDy8N2g==,AwE5Irce6LOSxfLgn4PZh1PeDPjAHb5wPTNfmQoWFY83dNQLYN44FupJaQRRUqBqyGNB0SL76GKzr8G9tKLAHOxRSQ==,BAG5iWHEhlWkvtyAlQy4bwKa1iNRzJq8WJTh2GE9oT4DeJRmO1pCHy9P+9YktDT+4RgV9s8AzOYih1LmHW14uP27HQGg1nTdHyab9/nFUe9BFxIi8xQTPG8et9++5I+gKIeWGCXBL31sBhpaMewvVhDjl2d3+7H2PUv9IY3lyIRFA6N16A==,2,AwAPIoQJqSbXFKXQAIG9J+/+/41NLX0rDINImk4eBgAnZ4V0R8YSqkHD3nd0IrEMyK7OpkCXkxTzOlwJlfEfti+vew==,AwAQ8KdMYsEOqM3eyGv/XbHnGf+TqCAG39Gz/juBcioOOJmLOFjl6oCITozJOyPusbTRXZ4eIwgQYkl12mt6saTpgQ==,BACkTO+3rRUF81w5yzZskFiIRyVxc6sdJfDFX6C+Jy5A+s/sfHskrFx2GYNklZaYztP0/B64a6v6HvFWVz8GuYj2wgHhiCL+QwLThFpaRxh8kUMSrt4VuXSIjtHwRXzhSdEbG2T6C/+CJZxIFh/ugEV9SS51l1HrLdnJDb2Kdu3QC3lRkQ==;2,AgC99VyiRLJ2kFf3oCkb+JPVV7B4tXVGI2NVT7fdKtB+gEjCcdkbS5YEXm/Sq6NAJEOKilMTFUDLYFDOe+7JHj/4pw==,AgAbT080sbKVHH9lim3tVCYS4cMz+rLownRKqtYZ7AfR8qy819R1GFywQ0kImgcdjEey5C4m0OPTwgtkO+C5uWtKfQ==,BADKYt9i0zTJeh3H8t6d8pZdncz3f28v1oWrssLZwAutkIcF3XKkPNmK3X75K3sImUSch//IIRIB1Yi5/MrZZeDrxQHhQZEg6AA8bDxgt0JdOEX2t4crzDu3gW5I8y+Ya0fZr1RmxvfMr2UxRhSsNsz949v/g+GPfsrEfDqIWTiNlJfwyg==,2,AgEPMjgCfgGRaZ/5I1hLqDoJ8nXYeTlnt9YeK4K8w+HnRAoAD09zkPcLMWajIjupe/CUFrHz00sAvs+vOPeKxGrLiQ==,AgDy7g2DcDwmIW7LtTTteHExD/cyP4BMWimEAM1RfAd/Y6P8XkmRGgglfdLJ7RGTR2YIMB1lxQ/LQUbmzyjTiiuWow==,BAHJ7oHVr/0wweyGlg4f9Dqmx8h0m35jMdrEFwVY8l/ENKpOTxG/oh9vAvo1uw39wUOn4CWGBmAFE2lsvWFW18gt+gHPFt5/9ihUFN9mtxFLT1Q3W4Uf8IdekHPMbNlxEp1wId7EH3XsAox3Eo8b3XnYpwfsAXoDwQa2wyiO5h104Ptvsg==;2,AwClCMGcHdd7rD8sYDC/GXyAtLmZ/JI4v+aOK4PXzjWJi/zvcsXT5dJUOm9bW6AAtzgOKPd0WwU3hSytJ+ATy146Uw==,AgADzN6ysOIC9GAuMF9suYNfkR027H/9OcpeVJb4HRHfZ/EOmQWSdJmJFw3F/NLUrreNnFCvuF1+1bbmHa3tvznjeA==,BADwaRJF9z3DW7HE3qhGu6Yd9d2WBfWy8opd7Mhkg7TpAQsn9oA3UcpCarn4DMSnVGG94Y3Pxsj5vlm5G7GMKiGoxAERnETH6pVgBxhtrnBU6l4vHl+X4rd8I/zheZiG0EFKJza41rmwKHTY4+42PJ8/3Y2rCanbY1RSAJEgiZR89k6nGg==,2,AgCK80PhKSC23aVKQ8uYm+79GWZiwpbV5lc8Fzcpwu8hdKGAMH4f62Y//cmrQmCIltm03PTVPMn6rMwkfoz+9M2LDQ==,AgH5aXThIKUjENFTGCGwcTRql7xIe8vR9h78KikTYkD8itQ+YBDrnx5OaNyWRjpIJHAZ2B61W2aVjZ5Rmo0d1B1Pcw==,BAAEZsEKw59QSRxN1QmWcx4X2LaK4+zBuawh+2CIRPljWyxK6XhIM6EEalr44Klce4OTK2QbxT5n3Kjnh5jNuwCOawAH/wiNrx09+HY8SZrRjCjv1+Lnicybrqg/IFDNoAGT5aguaGRIMmGOLe0QFJr0T0iW3RnYGlmSd/r6ex8+MpOgLw==</decrypt_val></awr_decrypt>";
- String replyString = connectSPU.sendReceive(Type.DECRYPT, requestString);
- System.out.println("REQUEST URL: " + requestString);
- System.out.println("REPLY: " + replyString);
- ReplyDecryption reply = (new XMLParserDecrypt()).stringToReply(replyString);
- return reply;
- }
-
- public ReplyMaterial callServiceMaterial(RequestMaterial rqtMaterial) {
- String requestString = URLParserMaterial.requestToString(rqtMaterial);
- String replyString = connectSPU.sendReceive(Type.MATERIAL, requestString);
-
- System.out.println("Material request:");
- System.out.println(replyString);
-
- ReplyMaterial reply = (new XMLParserMaterial()).stringToReply(replyString);
- return reply;
- }
-
- public ReplySurvey callServiceSurvey(){
-
-// String replyString = connectSPU.sendReceive(Type.SURVEY_Q,"");
- //4::What's your name?::1;5::Where are you from?::2;6::How old are you?::3;7::What's your name?::1;8::Where are you from?::2;9::How old are you?::3;10::What's your name?::1;11::Where are you from?::2;12::How old are you?::3;13::What's your name?::1;14::Where are you from?::2;15::How old are you?::3
- String replyString ="<awr_survey><v_questions>1::What's your name?::1;2::Where are you from?::2;3::How old are you?::3;4::5. A hacker or a disgruntled employee steals from a hospital database the unprotected genome of a known personality. He finds out this person's ethnicity and predisposition to diseases. As a result, he sells this information to tabloids and newspapers. Theft of unprotected medical data is an important concern and hospitals should take more steps to make sure that unauthorized people cannot access personal information in their computers.::3</v_questions><v_locations>Lausanne;Basel;Zurich</v_locations></awr_survey>";
- ReplySurvey reply = (new XMLParserSurvey()).stringToReply(replyString);
- return reply;
- }
-
- public String callServiceSurveyAnswer(String survey, String id_loc, String id_p){
-
- StringBuilder sb = new StringBuilder();
- sb.append("id_p=").append(id_p);
- sb.append("&timestamp=").append(System.currentTimeMillis());
- sb.append("&id_loc=").append(id_loc);
- sb.append("&answer=").append(survey);
- String replyString = connectSPU.sendReceive(Type.SURVEY_A, sb.toString());
- return replyString;
-
- }
-
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/c/b09033ac4cac001410e2e30aa85db9d1 b/.metadata/.plugins/org.eclipse.core.resources/.history/c/b09033ac4cac001410e2e30aa85db9d1
deleted file mode 100644
index 1afb2ca..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/c/b09033ac4cac001410e2e30aa85db9d1
+++ /dev/null
@@ -1,71 +0,0 @@
-package io;
-
-import io.serializer.url.URLParserDecrypt;
-import io.serializer.url.URLParserMaterial;
-import io.serializer.xml.XMLParserDecrypt;
-import io.serializer.xml.XMLParserMaterial;
-import io.serializer.xml.XMLParserSurvey;
-
-import java.util.logging.Logger;
-
-import framework.Type;
-import framework.reply.ReplyDecryption;
-import framework.reply.ReplyMaterial;
-import framework.reply.ReplySurvey;
-import framework.request.RequestDecryption;
-import framework.request.RequestMaterial;
-
-public class CommAdapter {
-
- @SuppressWarnings("unused")
- private static final Logger LOGGER = Logger.getLogger(CommAdapter.class.getName());
-
- public ClientConnection connectSPU = null;
-
- public CommAdapter(ClientConnection connectSPU) {
- this.connectSPU = connectSPU;
- }
-
- public ReplyDecryption callServiceDecrypt(RequestDecryption rqtDecrypt) {
- String requestString = URLParserDecrypt.requestToString(rqtDecrypt);
-// String replyString = "<awr_decrypt><patient>30351</patient><v_timestamp>1417188729390</v_timestamp><decrypt_val>,,,,,,,,,,,,,,,,2,AwHR3OO0/hkwgEHluLDFLtn4aaTBAwBEJjJpMegGa29ASgtyt1ha2OOyxvEvNgkIaY0xWXtTmqrqhSBKDG6J7Lps0g==,AwE/oifhonvUZDA4mqRK8K1WCkoepEuL9SidjdFXMNNZQXCMUvVN6pBUYVFgJeFX6mT2jruK8ic3y6yI14PfKl/Pvg==,AgBHs6HGF9AYNc5RlFTGv025WEaT91i/MPy+HXqhvHOrp0Ol9/aKyvv2BgAzeAdsdSEbVs2sahiyL/kbKjeUoI9tsA==,,,,,,,,,,,,,2,AgHIofEmf4aJMLBnKAY3/8WcLXUETF4y/68fzZR6hsS5btZTyI0E4ZTltDzV6hBzIT14cC4S/BMclo1aoLt5C9f+Cg==,AgDOXZAZAwO4KXslqU1wKctrVlH8CcGvpO8gGrPl3YjrY8SR3a6gStvZvjcUKXhvtDkRwSLAIkD3lFrKSXWestHSqQ==,AgG7Y5so9ZTRng2Xm3ziWx3+7zfaVLkIJ2v7g+qEUx5Vl2/udDOcg/was8W6qbKYeo/W0EGTlNXKTOdIatGVxyuoZA==,,,,,2,AgDAVy0/nE6X4iAengG9lCiYEBMtK6rAAiy7OwC7U/QSbokiEzH0RafH7rb+5L5R/ii9/3kZCcKmgOIoPzkmeloDfg==,AgHuvmLAeIFYm4ObEBO2v9xTK6tjYfdh+x4kwULBpDNlUiW4kNNaeoeziRA7nlRvcSfxPlR070N/3qzBMu3EKZ2csQ==,AgDk/CzCL4XUobuNaLsvrH5s0COMKYBqY/18YRR0d7mIsVVYrKVGF+IWnEluhbLt+BoRBdvL5UElgroyORJpiKz06w==,,,,,2,AgH0nW+2h+vcOZgPe3uR7jEHmEPi+g4izQ3OIU9An2vekwbG1liBFgTo33pEhyXhNWPhGCbSb73sJ7pt0JLL+hhWMw==,AgHG039OnpvmllkV6QBsmoMdqISrRuW2q5M3jfUp5TUbU6F/3S2FK1iSVKWgTsI291re6lz6KH5d8rWrnoCAozhIeg==,AwGjmnLUMd42F7a/tsSkeqcxoHMAXNKdvF4kOXoAxmc6ZSxaUhzkGkcgNOO8SFNiWqTKgtZCffJ7hfI0voAUX0TD1w==,,,,,2,AwHfYRjQFscHzOvVozackTaM3sybOjyd2aLc4B+WQ7KiWHoGKkzQScoDiy8hiA2cJpv8ngfitTqJRLlyegvuM+Ietw==,AwAP92OqrJFpFmdrMUUx6FeFhwVLYtAsfw3sem2RYu7ljPry+uJnvluuzTvVaFhs8BAAD8VBFs1vqrSHyQEq8Ocsmw==,AwDNXg/JA4QXA6wu30DUE7peOk1a10aHbd38iwjN1Q0DKy3BqS36+EQKg5hbwELxN2+/Yu4UA1IKWYJI0zNs6TJUtA==,,,,,2,AwBWFv3ivyQz4CGIilJ7CVtpQGOs1tnIW+0uxQyiWIO3HDjJtfxPyQ1AJWPsBQ9eYmaoKmPnN+euPCm7bP0LxBL/Tg==,AwHg7AZb5DV5OJrl0omtKx2OqckXcQEUT8pZ+Bmo9AyULgL5HOq2AVU04qhvbdy0W4OMYqxF3uBwqT6dNhFptsKEKQ==,AwG9dyMbI5EI8UCXuj5JkQRMimcT1u6zCBAfmRvANtT54yDtC8KS6VeOr7h/NP4qrf/mbl5tMaePbkkHrc6E39ntsA==,,,,,2,AwHkMyCOJm/RlYOybGhX3DchR/wSN2L3PuXKalMszgk3WOCiWSpYlP3SOPLWvJTRQaTxoN+oA5IkCTvlp02+Mduaxg==,AgHhR8HjavXjnsy+rHptc/JSI5pLFjM0RczUygxTX7vqV/yqwZ280Rq7YpXKp2GBfiZvFf0qIQoWe4vx5DBxwvHkdA==,AwEf2yisEpflVm8R2X08SCJM89apu7tUFzbpndsTIt5o9/xdoXKomMUk9REz+yrpkd+jFhlkJMQHHVMhgjiWYCEdpQ==,,,,,2,AwBaIc8ZWFm4O9QO0ofJeS9Q7tki7CAscBXRDnajEp7rmKNgrpRyyu1ezSpborwaloWR9kDKPLdYVV8SNk2V/1EudA==,AwGE8MPAnPKKXF15EyrAx1bRinwgoqYVO4Junz5IXQjGLyQpSr5NwO/hqu5E5egHte20jm380Wn2Qy6GgKNiRLy/gQ==,AwCAOjOQNdMN5uIB0POFzYS/fpxZ0Q5KfhlP5fijNmc/daO5frSrwhgcMH5lMKL4EGjBI1p6JMe3fuMqb5t1ImeTBg==,,,,,2,AgARSg2izcK6iZLFe4YkIS6yZgnt8cd9DFqpQ37gNmcccZwBI+mpsaijTUPo1GT+QUD8zC+6qr/GrzG9q+q7BPxpVw==,AwGM/jFdtoNViQXxgqeL27ZKobjsfyeuXrx8re3UfIe3c4XN16srSpcTfxEZNXDKo1Ff9fRvDVBOwdS6XU2nvo++ng==,AwAtK0eOqcVfzkdJIIkk7BORWwSDTAjtx4aEXwyZ0bla+2rIWDgXi3U5xlgnjeXJNtGsLokkvvX92BOBIw9SuCGhnw==,2,AgCWAAWTW+7jv2a2lc4pGFnumEgyH59wSDRXEYUASCVB249JBmeKFWRKNFTQlph5hTR5Rb+YHFP/qvzmwU11Hs2b0w==,AgANdxpkN+DS4De3aokNjt+e/Ou8GT+p8pUJA+6LHrDBXAddoCR8KpeXW7mESokq6BTEVQXxU3TdqavRkqaeFmpXkw==,AgDDDSEO3e8DCsm1n6dbj2PB9Z/tUzluDCt/utdSLrYFfdFY+Y5K7Vxo9F5/17CzaUbX172SGLt8TfCfuYBrtupgAg==,2,AgB1OG6bj+6kfRvLj8yjMQbl80FdZHZrRVRUfNVRwvjvvbRa5f9s9fNZ8J0a3s3hH+RyfZmGJ4Ufjh5mMiQkwiur6w==,AwBX4GFZNjUdtRdwtWgxyQz7h8Hk0ztaZeM8/e+8ll0o+RjYN+CNP8+lnXEw7wpuC4wcMX05mrjPvHOuy0hOFVNkhQ==,AgDf3el4vbMYIAFEH9WV151/uzl+gkfTQ79T8Iu4KxEVo6UJvCfqkjETlR6aXUJiqaCbSV5odMT50lURsmfgALf6AQ==,,,,,2,AgENmnviZkgQWXZ5QDgCCE2zq0IiXURTqK2UNPtEg3o64yjlrQQUd2rO/KgKolyCQcKYTVoMj7k2VeCSSVRr8KGC7w==,AwFv6ZJzhpV/Ms00QkrkNiCKVRFczn/yqnkiBFUHC1RQv3tqzzYSEUeXmDHmm0/kEBtnfgRWjHQm9zxS8Jzy7srDLQ==,AwB8aS5KA1dFLKCA1a/7Wsjhef+6kkNAB/GO9AOvRZbFW/dhl5fx04Alh+g78fwcVMX+eEIEJgSyH0jhv7kmiQh4ew==,,,,,2,AgG8fXrCra6UgP5G89TaE6PH5E0TANb/PJPbKwzdi78XEHRUmcTz6PIhYtclTmcdq5TH0IwQv+ra5ppf4qR4LtkGig==,AgEKzsmZrikmXzJywMpzkAdG9hAPlOiRY9oXKf4Sh50CL8btUItjfVJWg3ubNhotzJK+fnNlRrcMkWQEBD/aGKpf8A==,AwFi+2cGpuvVdR+pT1P9Ur8jAkzmjJK2XmUQbFpyMi5Jc9a5/fPnBWCxmTX8CH5wks0PicYC6rzZC3NEIt0EoM1Qfg==,,,,,2,AgHbTZgTAv8lLBsoX06Hkm9XPU+crlRqKl0xL8v18xeUUPY1YAvUYf2OAutmTtPRycXyzrDWSpn2h5xfk/dtq/BICg==,AwAjPydfoUhfSVFKWNI4Ox4a/psZGDIGzEEWh9HyVtAmjdNb5ctr/S6z+akiRfPlNCsVf6TdkzJ2Su6BO4sOX/SHKA==,AwBVmjn7AitCe4zQ/Fl0sYW2XqXkJxJBDviwl9jYhoq29v90n9escDsiA3Cy+1uW69MezdZBEszFdEWlX0EzbQZQ6A==,,,,,2,AwCG0RBHwHuame/1G7qtUjmwz0gkCP1tyZiEgm7aTKpsCjt7UsMirMmx/ZrNlvSzkGuVbRO97Szzr+9fo4baH1rEZA==,AwHyMK/q8FUUvoHTt7O7KJUxYz/ZHF6SntbmKfbygLVw4HWc/eFic4DXHKbEGWvrMO5b37GksqxfQHc2xlAuj8ZRIw==,AgB5x0BxqiMYxRvzlq0+/RkbOuNA7hYuMG+7D6wlMOxSskgqyfwA0MfW+AkXFqnqfqsoJRpDy15bABWhH6MIdJsPEA==,,,,,2,AwAS/nCH0pcrsllSy2duadUs1rMtL6vtz7VTUAVhn1/YYlZ068ysBi1Mdz9gJFewdyeGLnFhyg+W15rFB317nyeGHg==,AwBh6f5UVRMM5ekWqkrx6XiVOK/BL0TinjsSLna8BjkQPXU2DvGxiKPhA03/GtBdEpihEX4bVaHQhiOupTf7wh6bCQ==,AgGPDFH8Kv8hz2aUJ955nHu8NiAoTmDjqhlXuJ1T83h+O0sc2GieLhmXmpEjxjEAyxkqjb2nFxvDhi+YGs4MqI4S5A==,,,,,2,AwDqwFv6bqpM/6PTCJ/wgRALYVT+Rn54HIB2icP6ODNexaoqILBS9p1k1QENbQsBZ9LmJJwngRQXi07Q4P8br76Qfw==,AgG8yTiO8tFWZqQELBr+Zt1fKKA3bl08836nUEEpD55Sid0ZywCrWe+Va58xbMIWscISLPbBvXIdO48ZgoHsLgA7Jw==,AwCI1Ud0GJLnS86mSC58HNB91lH9kPpQbufGn+WJErGxAQubtSFBc3rnT0SNE3CbW+1MPjYBbdCgxpHjN/iQf96++w==,,,,;2,AgB9YhljgPngkwwYTBMUaMGR+rWMjvlK0tgrzkG8OT9NGNJfaaLP6AzfhWrT5oe9NRnabU25pQvDhAIGZCajDy8N2g==,AwE5Irce6LOSxfLgn4PZh1PeDPjAHb5wPTNfmQoWFY83dNQLYN44FupJaQRRUqBqyGNB0SL76GKzr8G9tKLAHOxRSQ==,BAG5iWHEhlWkvtyAlQy4bwKa1iNRzJq8WJTh2GE9oT4DeJRmO1pCHy9P+9YktDT+4RgV9s8AzOYih1LmHW14uP27HQGg1nTdHyab9/nFUe9BFxIi8xQTPG8et9++5I+gKIeWGCXBL31sBhpaMewvVhDjl2d3+7H2PUv9IY3lyIRFA6N16A==,2,AwAPIoQJqSbXFKXQAIG9J+/+/41NLX0rDINImk4eBgAnZ4V0R8YSqkHD3nd0IrEMyK7OpkCXkxTzOlwJlfEfti+vew==,AwAQ8KdMYsEOqM3eyGv/XbHnGf+TqCAG39Gz/juBcioOOJmLOFjl6oCITozJOyPusbTRXZ4eIwgQYkl12mt6saTpgQ==,BACkTO+3rRUF81w5yzZskFiIRyVxc6sdJfDFX6C+Jy5A+s/sfHskrFx2GYNklZaYztP0/B64a6v6HvFWVz8GuYj2wgHhiCL+QwLThFpaRxh8kUMSrt4VuXSIjtHwRXzhSdEbG2T6C/+CJZxIFh/ugEV9SS51l1HrLdnJDb2Kdu3QC3lRkQ==;2,AgC99VyiRLJ2kFf3oCkb+JPVV7B4tXVGI2NVT7fdKtB+gEjCcdkbS5YEXm/Sq6NAJEOKilMTFUDLYFDOe+7JHj/4pw==,AgAbT080sbKVHH9lim3tVCYS4cMz+rLownRKqtYZ7AfR8qy819R1GFywQ0kImgcdjEey5C4m0OPTwgtkO+C5uWtKfQ==,BADKYt9i0zTJeh3H8t6d8pZdncz3f28v1oWrssLZwAutkIcF3XKkPNmK3X75K3sImUSch//IIRIB1Yi5/MrZZeDrxQHhQZEg6AA8bDxgt0JdOEX2t4crzDu3gW5I8y+Ya0fZr1RmxvfMr2UxRhSsNsz949v/g+GPfsrEfDqIWTiNlJfwyg==,2,AgEPMjgCfgGRaZ/5I1hLqDoJ8nXYeTlnt9YeK4K8w+HnRAoAD09zkPcLMWajIjupe/CUFrHz00sAvs+vOPeKxGrLiQ==,AgDy7g2DcDwmIW7LtTTteHExD/cyP4BMWimEAM1RfAd/Y6P8XkmRGgglfdLJ7RGTR2YIMB1lxQ/LQUbmzyjTiiuWow==,BAHJ7oHVr/0wweyGlg4f9Dqmx8h0m35jMdrEFwVY8l/ENKpOTxG/oh9vAvo1uw39wUOn4CWGBmAFE2lsvWFW18gt+gHPFt5/9ihUFN9mtxFLT1Q3W4Uf8IdekHPMbNlxEp1wId7EH3XsAox3Eo8b3XnYpwfsAXoDwQa2wyiO5h104Ptvsg==;2,AwClCMGcHdd7rD8sYDC/GXyAtLmZ/JI4v+aOK4PXzjWJi/zvcsXT5dJUOm9bW6AAtzgOKPd0WwU3hSytJ+ATy146Uw==,AgADzN6ysOIC9GAuMF9suYNfkR027H/9OcpeVJb4HRHfZ/EOmQWSdJmJFw3F/NLUrreNnFCvuF1+1bbmHa3tvznjeA==,BADwaRJF9z3DW7HE3qhGu6Yd9d2WBfWy8opd7Mhkg7TpAQsn9oA3UcpCarn4DMSnVGG94Y3Pxsj5vlm5G7GMKiGoxAERnETH6pVgBxhtrnBU6l4vHl+X4rd8I/zheZiG0EFKJza41rmwKHTY4+42PJ8/3Y2rCanbY1RSAJEgiZR89k6nGg==,2,AgCK80PhKSC23aVKQ8uYm+79GWZiwpbV5lc8Fzcpwu8hdKGAMH4f62Y//cmrQmCIltm03PTVPMn6rMwkfoz+9M2LDQ==,AgH5aXThIKUjENFTGCGwcTRql7xIe8vR9h78KikTYkD8itQ+YBDrnx5OaNyWRjpIJHAZ2B61W2aVjZ5Rmo0d1B1Pcw==,BAAEZsEKw59QSRxN1QmWcx4X2LaK4+zBuawh+2CIRPljWyxK6XhIM6EEalr44Klce4OTK2QbxT5n3Kjnh5jNuwCOawAH/wiNrx09+HY8SZrRjCjv1+Lnicybrqg/IFDNoAGT5aguaGRIMmGOLe0QFJr0T0iW3RnYGlmSd/r6ex8+MpOgLw==</decrypt_val></awr_decrypt>";
- String replyString = connectSPU.sendReceive(Type.DECRYPT, requestString);
- System.out.println("REQUEST URL: " + requestString);
- System.out.println("REPLY: " + replyString);
- ReplyDecryption reply = (new XMLParserDecrypt()).stringToReply(replyString);
- return reply;
- }
-
- public ReplyMaterial callServiceMaterial(RequestMaterial rqtMaterial) {
- String requestString = URLParserMaterial.requestToString(rqtMaterial);
- String replyString = connectSPU.sendReceive(Type.MATERIAL, requestString);
-
- System.out.println("Material request:");
- System.out.println(replyString);
-
- ReplyMaterial reply = (new XMLParserMaterial()).stringToReply(replyString);
- return reply;
- }
-
- public ReplySurvey callServiceSurvey(){
-
-// String replyString = connectSPU.sendReceive(Type.SURVEY_Q,"");
- //4::What's your name?::1;5::Where are you from?::2;6::How old are you?::3;7::What's your name?::1;8::Where are you from?::2;9::How old are you?::3;10::What's your name?::1;11::Where are you from?::2;12::How old are you?::3;13::What's your name?::1;14::Where are you from?::2;15::How old are you?::3
- String replyString ="<awr_survey><v_questions>1::What's your name?::1;2::Where are you from?::2;3::How old are you?::3;4::A hacker or a disgruntled employee steals from a hospital database the unprotected genome of a known personality. He finds out this person's ethnicity and predisposition to diseases. As a result, he sells this information to tabloids and newspapers. Theft of unprotected medical data is an important concern and hospitals should take more steps to make sure that unauthorized people cannot access personal information in their computers.::3;</v_questions><v_locations>50::Lausanne;60::Basel;70::Zurich;</v_locations></awr_survey>";
- ReplySurvey reply = (new XMLParserSurvey()).stringToReply(replyString);
- return reply;
- }
-
- public String callServiceSurveyAnswer(String survey, String id_loc, String id_p){
-
- StringBuilder sb = new StringBuilder();
- sb.append("id_p=").append(id_p);
- sb.append("&timestamp=").append(System.currentTimeMillis());
- sb.append("&id_loc=").append(id_loc);
- sb.append("&answer=").append(survey);
- String replyString = connectSPU.sendReceive(Type.SURVEY_A, sb.toString());
- return replyString;
-
- }
-
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/e2/70e70c886cac00141cc3aa66275e9c24 b/.metadata/.plugins/org.eclipse.core.resources/.history/c1/d06ecfb155b80014199a8682e9990d0e
similarity index 74%
copy from .metadata/.plugins/org.eclipse.core.resources/.history/e2/70e70c886cac00141cc3aa66275e9c24
copy to .metadata/.plugins/org.eclipse.core.resources/.history/c1/d06ecfb155b80014199a8682e9990d0e
index 8b30fef..eb4bbf7 100644
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/e2/70e70c886cac00141cc3aa66275e9c24
+++ b/.metadata/.plugins/org.eclipse.core.resources/.history/c1/d06ecfb155b80014199a8682e9990d0e
@@ -1,927 +1,944 @@
package ui;
import io.ClientConnection;
import io.CommAdapter;
import io.Questionnaire;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Font;
import java.awt.SystemColor;
+import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowAdapter;
import java.io.File;
import java.io.IOException;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.Map;
import java.util.Set;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.Box;
import javax.swing.BoxLayout;
import javax.swing.ButtonGroup;
import javax.swing.DefaultComboBoxModel;
import javax.swing.GroupLayout;
import javax.swing.GroupLayout.Alignment;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JDialog;
import javax.swing.JFileChooser;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JRadioButton;
import javax.swing.JScrollPane;
import javax.swing.JSeparator;
import javax.swing.JTabbedPane;
import javax.swing.JTextArea;
import javax.swing.JTextPane;
import javax.swing.JTree;
import javax.swing.LayoutStyle.ComponentPlacement;
import javax.swing.SwingConstants;
import javax.swing.border.EmptyBorder;
import javax.swing.border.LineBorder;
import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.tree.TreeModel;
import javax.swing.tree.TreePath;
import org.jpedal.examples.viewer.Commands;
import org.jpedal.examples.viewer.Viewer;
import utils.ClientProperties;
import com.itextpdf.text.DocumentException;
import database.DBconnectorClient;
import framework.Diagnostic;
import framework.MedUnit;
import framework.Question;
import framework.reply.ReplySurvey;
import framework.test.TestName;
+import javax.swing.JSplitPane;
+import java.awt.event.MouseAdapter;
+import java.awt.event.MouseEvent;
/**
*
- * @author youssef, raisaro
+ * @author raisaro
*/
public class GUI extends javax.swing.JFrame {
private static final Logger LOGGER = Logger.getLogger(GUI.class.getName());
private static final long serialVersionUID = -4582280515597700650L;
// configuration
private ClientProperties props;
private JTree jTree;
private DBconnectorClient connectorClientDB;
private LinkedList<Integer> patients;
/** List of all relevant tests */
private HashMap<String, TestName> testsByName;
private Viewer viewer;
private JDialog dialog;
private JFrame frame;
private boolean survey_submitted;
private int close_trials;
private Map<Integer, ButtonGroup> buttonGroupMap;
private Questionnaire quest;
private Map<Integer, Question> map;
private Set<Integer> ids;
private Map<String,String> answers;
private Map<Integer, String> locations;
+ private JButton btnSubmitQuestionnaire;
/**
* Creates new form GUI
*/
public GUI(ClientProperties props){
+ setLocationByPlatform(true);
+ setIconImage(Toolkit.getDefaultToolkit().getImage("res/shcs_logo2_icon.png"));
frame = this;
this.props = props;
this.connectorClientDB = new DBconnectorClient(props.getDbMsAccess());
survey_submitted = false;
close_trials = 0;
try {
initComponents();
viewer = new Viewer(jScrollPane2, null);
viewer.setupViewer();
- // create questionnare
-
+ // create questionnare
+
System.out.println("#of questions: " + ids.size());
-// viewer_q = new Viewer(jScrollPane4, null);
-// viewer_q.setupViewer();
-//
-// // specify file you wish to open (JPedal handles getting the byte data)
-// String filepathReport = "outputPDF/buttons_filled.pdf";
-//
-// // open generated PDF
-// // object must be either String in full filepath, or
-// // File object which can be relative
-// Object[] input = new Object[]{ new File(filepathReport) };
-// viewer_q.executeCommand(Commands.OPENFILE, input);
-
- JButton btnSubmitQuestionnaire = new JButton("Submit Questionnaire");
+
+ btnSubmitQuestionnaire = new JButton("Submit Questionnaire");
btnSubmitQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
btnSubmitQuestionnaire.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
submitButtonActionPerformed(arg0);
}
});
JButton btnResetQuestionnaire = new JButton("Save as PDF");
btnResetQuestionnaire.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
savePDFButtonActionPerformed(arg0);
}
});
btnResetQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
JPanel panel_button = new JPanel();
panel_button.setLayout(new BoxLayout(panel_button, BoxLayout.X_AXIS));
lblNewLabel_3 = new JLabel("");
lblNewLabel_3.setIcon(new ImageIcon("res/location_icon.png"));
panel_button.add(lblNewLabel_3);
comboBox = new JComboBox<String>();
comboBox.setFont(new Font("Tahoma", Font.BOLD, 12));
comboBox.setModel(new DefaultComboBoxModel<String>(new String[] {"Select Location"}));
for(Integer id_loc : locations.keySet()){
comboBox.addItem(locations.get(id_loc));
}
panel_button.add(comboBox);
rigidArea = Box.createRigidArea(new Dimension(10, 0));
panel_button.add(rigidArea);
lblNewLabel_1 = new JLabel("");
lblNewLabel_1.setIcon(new ImageIcon("res/submit.png"));
panel_button.add(lblNewLabel_1);
panel_button.add(btnSubmitQuestionnaire);
panel_button.add(Box.createRigidArea(new Dimension(10,0)));
lblNewLabel_2 = new JLabel("");
lblNewLabel_2.setIcon(new ImageIcon("res/pdf.png"));
panel_button.add(lblNewLabel_2);
panel_button.add(btnResetQuestionnaire);
panel_button.setPreferredSize(new Dimension(211, 35));
panel_button.validate();
- JPanel panel_3 = new JPanel();
+ splitPane = new JSplitPane();
+ splitPane.setOneTouchExpandable(true);
+ splitPane.setResizeWeight(0.52);
+ splitPane.setOrientation(JSplitPane.VERTICAL_SPLIT);
+
GroupLayout gl_panel = new GroupLayout(panel);
gl_panel.setHorizontalGroup(
- gl_panel.createParallelGroup(Alignment.TRAILING)
+ gl_panel.createParallelGroup(Alignment.LEADING)
.addGroup(gl_panel.createSequentialGroup()
- .addGap(63)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addGap(103)
- .addComponent(panel_button, GroupLayout.DEFAULT_SIZE, 498, Short.MAX_VALUE)
- .addGap(241))
+ .addGap(165)
+ .addComponent(panel_button, GroupLayout.DEFAULT_SIZE, 421, Short.MAX_VALUE)
+ .addGap(242))
.addGroup(gl_panel.createSequentialGroup()
- .addGap(41)
- .addGroup(gl_panel.createParallelGroup(Alignment.TRAILING)
- .addComponent(jScrollPane4, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE)
- .addComponent(panel_1, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE))
- .addGap(32))
+ .addContainerGap()
+ .addComponent(splitPane, GroupLayout.DEFAULT_SIZE, 738, Short.MAX_VALUE)
+ .addGap(80))
);
gl_panel.setVerticalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
+ gl_panel.createParallelGroup(Alignment.TRAILING)
.addGroup(gl_panel.createSequentialGroup()
- .addGap(22)
- .addComponent(panel_1, GroupLayout.PREFERRED_SIZE, 235, GroupLayout.PREFERRED_SIZE)
- .addGap(37)
- .addComponent(jScrollPane4, GroupLayout.DEFAULT_SIZE, 379, Short.MAX_VALUE)
- .addGap(26)
- .addGroup(gl_panel.createParallelGroup(Alignment.LEADING)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(panel_button, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE)))
+ .addContainerGap()
+ .addComponent(splitPane, GroupLayout.DEFAULT_SIZE, 603, Short.MAX_VALUE)
+ .addPreferredGap(ComponentPlacement.RELATED)
+ .addComponent(panel_button, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE)
+ .addGap(11))
+ );
+
+ panel_1 = new JPanel();
+ panel_1.setMinimumSize(new Dimension(10, 0));
+ panel_1.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
+ panel_1.setBackground(SystemColor.menu);
+ splitPane.setLeftComponent(panel_1);
+
+ label_1 = new JLabel("");
+ label_1.setIcon(new ImageIcon("res/shcs_logo2_medium.gif"));
+
+ label_2 = new JLabel("");
+ label_2.setIcon(new ImageIcon("res/EPFL_logo.png"));
+
+ label_3 = new JLabel("");
+ label_3.setIcon(new ImageIcon("res/chuv_logo.png"));
+
+ label_4 = new JLabel("Dear Doctor,");
+ label_4.setFont(new Font("Tahoma", Font.BOLD, 14));
+
+ scrollPane = new JScrollPane();
+ scrollPane.setBorder(null);
+ GroupLayout gl_panel_1 = new GroupLayout(panel_1);
+ gl_panel_1.setHorizontalGroup(
+ gl_panel_1.createParallelGroup(Alignment.LEADING)
+ .addGroup(gl_panel_1.createSequentialGroup()
+ .addGap(25)
+ .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
+ .addComponent(label_3)
+ .addComponent(label_2)
+ .addComponent(label_1, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE))
+ .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
+ .addGroup(gl_panel_1.createSequentialGroup()
+ .addGap(20)
+ .addComponent(label_4)
+ .addGap(109))
+ .addGroup(gl_panel_1.createSequentialGroup()
+ .addGap(10)
+ .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 557, Short.MAX_VALUE)
+ .addContainerGap())))
);
- panel_3.setLayout(new BoxLayout(panel_3, BoxLayout.X_AXIS));
+ gl_panel_1.setVerticalGroup(
+ gl_panel_1.createParallelGroup(Alignment.LEADING)
+ .addGroup(gl_panel_1.createSequentialGroup()
+ .addContainerGap()
+ .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
+ .addGroup(gl_panel_1.createSequentialGroup()
+ .addComponent(label_4)
+ .addPreferredGap(ComponentPlacement.UNRELATED)
+ .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 416, Short.MAX_VALUE))
+ .addGroup(gl_panel_1.createSequentialGroup()
+ .addGap(9)
+ .addComponent(label_1, GroupLayout.PREFERRED_SIZE, 96, GroupLayout.PREFERRED_SIZE)
+ .addGap(18)
+ .addComponent(label_2)
+ .addGap(28)
+ .addComponent(label_3)))
+ .addContainerGap(114, GroupLayout.PREFERRED_SIZE))
+ );
+
+ introduction = new JTextPane();
+ introduction.setBackground(SystemColor.control);
+ introduction.setContentType("text/html");
+ introduction.setText("You are receiving a pharmacogenetics report based on the genome of your patient. Because of its highly sensitive nature, the genetic information you are provided with is processed in a privacy-preserving way. In particular, to protect patients\u2019 genomic privacy, their genetic and clinical data are stored encrypted at the SHCS data center, and securely analyzed through a sophisticated algorithm designed and developed at EPFL [1, 2]. The actual clinical and genetic information is never revealed. Only the authorized users, such as you, can get some processed information, for example, the interpreted final result of a pharmacogenetics risk test.\r\nThis mechanism protects the data against insiders or hackers trying to illegally access patients\u2019 medical information, while still allowing authorized users to obtain the information they need.\r\n<br><br>\r\n<b>To help us better understanding the importance of genomic privacy in the medical domain, and the impact of privacy-enhancing technologies in daily clinical practice, please complete the following survey. Answers are on a scale from 1 (Strongly Disagree) to 5 (Strongly Agree).</b>\r\n<font size=\"2\">\r\n<br><br>\r\nNote: this work is part of Project #693, funded by the Swiss HIV Cohort. PIs: Prof. A. Telenti, formerly at CHUV, and Prof. J.-P. Hubaux, at EPFL.\r\n<br><br>\r\n[1] J. L. Raisaro, E. Ayday, P. J. McLaren, J.-P. Hubaux, and A. Telenti. Privacy-Preserving HIV Pharmacogenetics: A Real Use Case of Genomic Data Protection. GenoPri 2014<br>\r\n[2] E. Ayday, J. L. Raisaro, J. Rougemont, and J.-P. Hubaux. Protecting and Evaluating Genomic Privacy in Medical Tests and Personalized Medicine. WPES 2013\r\n</font>");
+ scrollPane.setViewportView(introduction);
+ panel_1.setLayout(gl_panel_1);
+
+ jScrollPane4 = new JScrollPane();
+ jScrollPane4.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
+ splitPane.setRightComponent(jScrollPane4);
+
+
+ jScrollPane4.setViewportView(panel_2);
+ javax.swing.SwingUtilities.invokeLater(new Runnable() {
+ public void run() {
+ jScrollPane4.getVerticalScrollBar().setValue(0);
+ }
+ });
+ introduction.setCaretPosition(0);
panel.setLayout(gl_panel);
/////////////////////////////////////////////////////////
// display the tests available
// get the tests
HashMap<String, ArrayList<TestName>> testsRelevantByGroup = connectorClientDB.getRelevantTestsByGroup();
ArrayList<String> groups = new ArrayList<String>(testsRelevantByGroup.keySet());
// flatten hashmap into linkedlist
// tests = new LinkedList<>();
testsByName = new HashMap<String, TestName>();
for (String group : groups) {
// tests.addAll(testsRelevantByGroup.get(group));
for (TestName test : testsRelevantByGroup.get(group)) {
testsByName.put(test.getName(), test);
}
}
// define tree structure of the tests
DefaultMutableTreeNode root = new DefaultMutableTreeNode("All");
for (String group : groups) {
DefaultMutableTreeNode child = new DefaultMutableTreeNode(group);
root.add(child);
for (TestName test : testsRelevantByGroup.get(group)) {
DefaultMutableTreeNode grandChild = new DefaultMutableTreeNode(test.getName());
child.add(grandChild);
}
}
// define swing object
jTree = new JTree(root);
+ jTree.setFont(new Font("Tahoma", Font.PLAIN, 11));
for(int i=0;i<jTree.getRowCount();i++){
jTree.expandRow(i);
}
jScrollPane3.setViewportView(jTree);
// jTree.addTreeSelectionListener(new TreeSelectionListener() {
//
// @Override
// public void valueChanged(TreeSelectionEvent e) {
// tp = jTree.getSelectionPaths();
// }
// });
jScrollPane3.setViewportView(jTree);
/////////////////////////////////////////////////////////
// display the patients registered
patients = connectorClientDB.getPatients();
for (Integer patientId : patients) {
jComboBox1.addItem(patientId.toString());
}
} catch (SQLException ex) {
Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex);
ex.printStackTrace();
// } catch (IOException e) {
// // TODO Auto-generated catch block
// e.printStackTrace();
// } catch (DocumentException e) {
// // TODO Auto-generated catch block
// e.printStackTrace();
}
}
/**
* 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() {
-
- jPanel1 = new javax.swing.JPanel();
- jLabel2 = new javax.swing.JLabel();
- jLabel1 = new javax.swing.JLabel();
jPanel2 = new javax.swing.JPanel();
jComboBox1 = new javax.swing.JComboBox<String>();
+ jComboBox1.setFont(new Font("Tahoma", Font.BOLD, 12));
jButton1 = new javax.swing.JButton();
jButton1.setFont(new Font("Tahoma", Font.BOLD, 12));
jLabel3 = new javax.swing.JLabel();
jLabel4 = new javax.swing.JLabel();
jScrollPane3 = new javax.swing.JScrollPane();
jScrollPane2 = new javax.swing.JScrollPane();
+ jScrollPane2.setMinimumSize(new Dimension(5, 5));
jMenuBar1 = new javax.swing.JMenuBar();
jMenu1 = new javax.swing.JMenu();
jMenuItem1 = new javax.swing.JMenuItem();
jMenu2 = new javax.swing.JMenu();
dialog = new JDialog();
tabbedPane = new JTabbedPane(JTabbedPane.TOP);
+ tabbedPane.setFont(new Font("Tahoma", Font.BOLD, 12));
setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
addWindowListener(new WindowAdapter() {
@Override
public void windowClosing(java.awt.event.WindowEvent windowEvent) {
if (!survey_submitted && close_trials <= 2){
JOptionPane.showMessageDialog(frame, "Before closing the application, please fill in and submit the questionnaire.");
close_trials++;
tabbedPane.setSelectedIndex(1);
}else{
System.exit(0);
}
}
});
- setTitle("HIV Pharmacogenomics\n");
-
- jLabel2.setIcon(new javax.swing.ImageIcon("res/shcs_logo2_small.gif")); // NOI18N
-
- jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
- jLabel1.setText("HIV Pharmacogenomics | Project #693");
-
- javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
- jPanel1.setLayout(jPanel1Layout);
- jPanel1Layout.setHorizontalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap(71, Short.MAX_VALUE)
- .addComponent(jLabel1)
- .addGap(18, 18, 18)
- .addComponent(jLabel2))
- );
- jPanel1Layout.setVerticalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jLabel1)
- .addGap(11, 11, 11))
- .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)
- );
+ setTitle("Privacy-Preserving HIV Pharmacogenomics\r\n");
jPanel2.setBackground(new java.awt.Color(255, 255, 255));
jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<String>(new String[]{"Select Patient"}));
jButton1.setText("Run Test");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});
JLabel lblNewLabel = new JLabel("");
lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
lblNewLabel.setIcon(new javax.swing.ImageIcon("res/gears.png"));
javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
jPanel2Layout.setHorizontalGroup(
jPanel2Layout.createParallelGroup(Alignment.LEADING)
.addComponent(jComboBox1, 0, 248, Short.MAX_VALUE)
.addGroup(jPanel2Layout.createSequentialGroup()
.addGap(75)
.addGroup(jPanel2Layout.createParallelGroup(Alignment.TRAILING)
.addComponent(jButton1)
.addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 75, GroupLayout.PREFERRED_SIZE))
.addContainerGap(98, Short.MAX_VALUE))
);
jPanel2Layout.setVerticalGroup(
jPanel2Layout.createParallelGroup(Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addComponent(jComboBox1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
.addPreferredGap(ComponentPlacement.RELATED, 223, Short.MAX_VALUE)
.addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE)
.addPreferredGap(ComponentPlacement.RELATED)
.addComponent(jButton1)
.addGap(19))
);
jPanel2.setLayout(jPanel2Layout);
jLabel3.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
jLabel3.setText("Select Patient");
jLabel4.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
jLabel4.setText("Select Test");
jScrollPane3.setBackground(new java.awt.Color(255, 255, 255));
jMenu1.setText("File");
jMenuItem1.setText("Exit");
jMenu1.add(jMenuItem1);
jMenuBar1.add(jMenu1);
jMenu2.setText("Edit");
jMenuBar1.add(jMenu2);
setJMenuBar(jMenuBar1);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
layout.setHorizontalGroup(
layout.createParallelGroup(Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addGroup(layout.createParallelGroup(Alignment.LEADING, false)
- .addComponent(jLabel3)
.addComponent(jLabel4)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, 244, Short.MAX_VALUE)
- .addComponent(jScrollPane3))
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 970, Short.MAX_VALUE))
- .addContainerGap())
+ .addComponent(jLabel3)
+ .addComponent(jScrollPane3, GroupLayout.DEFAULT_SIZE, 234, Short.MAX_VALUE)
+ .addComponent(jPanel2, 0, 0, Short.MAX_VALUE))
+ .addPreferredGap(ComponentPlacement.RELATED)
+ .addComponent(tabbedPane, GroupLayout.PREFERRED_SIZE, 751, Short.MAX_VALUE)
+ .addGap(19))
);
layout.setVerticalGroup(
- layout.createParallelGroup(Alignment.LEADING)
+ layout.createParallelGroup(Alignment.TRAILING)
.addGroup(layout.createSequentialGroup()
+ .addContainerGap()
.addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel4))
- .addPreferredGap(ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(Alignment.LEADING)
+ .addComponent(tabbedPane, Alignment.LEADING, GroupLayout.PREFERRED_SIZE, 687, Short.MAX_VALUE)
.addGroup(layout.createSequentialGroup()
- .addComponent(jScrollPane3, GroupLayout.PREFERRED_SIZE, 388, GroupLayout.PREFERRED_SIZE)
+ .addComponent(jLabel4)
+ .addPreferredGap(ComponentPlacement.RELATED)
+ .addComponent(jScrollPane3, GroupLayout.PREFERRED_SIZE, 356, GroupLayout.PREFERRED_SIZE)
.addPreferredGap(ComponentPlacement.RELATED)
.addComponent(jLabel3)
.addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 785, Short.MAX_VALUE))
+ .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, 283, Short.MAX_VALUE)))
.addContainerGap())
);
jScrollPane2.setAutoscrolls(true);
jScrollPane3.setAutoscrolls(true);
tabbedPane.addTab("Report", new ImageIcon("res/report_icon.gif"), jScrollPane2, null);
tabbedPane.setBackgroundAt(0, new Color(255, 255, 255));
panel = new JPanel();
+ panel.setPreferredSize(new Dimension(0, 0));
tabbedPane.addTab("Survey", new ImageIcon("res/survey_icon.png"), panel, null);
tabbedPane.setBackgroundAt(1, new Color(255, 255, 255));
tabbedPane.setEnabledAt(1, true);
-
- panel_1 = new JPanel();
- panel_1.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
- panel_1.setBackground(SystemColor.control);
-
- JLabel label = new JLabel("");
- label.setIcon(new ImageIcon("res/shcs_logo2_medium.gif"));
-
- lblDearDoctor = new JLabel("Dear Doctor,");
- lblDearDoctor.setFont(new Font("Tahoma", Font.BOLD, 14));
-
- JScrollPane scrollPane = new JScrollPane();
- scrollPane.setBorder(null);
- GroupLayout gl_panel_1 = new GroupLayout(panel_1);
- gl_panel_1.setHorizontalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(Alignment.LEADING, gl_panel_1.createSequentialGroup()
- .addGap(25)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addComponent(lblDearDoctor)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 661, Short.MAX_VALUE))
- .addContainerGap())
- );
- gl_panel_1.setVerticalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addContainerGap()
- .addComponent(lblDearDoctor)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 203, Short.MAX_VALUE))
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(36)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 96, GroupLayout.PREFERRED_SIZE)))
- .addContainerGap())
- );
-
- JTextPane txtpnTodayYouAre = new JTextPane();
- txtpnTodayYouAre.setBorder(null);
- txtpnTodayYouAre.setText("Today you are receiving a pharmacogenetics report based on the genome of your patient. Because of its highly sensitive nature, " +
- "the genetic information you are provided with is processed in a privacy-preserving way. In particular, to protect patients’ genomic privacy, " +
- "their genetic and clinical data is stored encrypted at the SHCS data center, and securely analyzed through a sophisticated algorithm designed and developed at EPFL [1, 2]. " +
- "The actual clinical and genetic information is never revealed. Only the authorized users, such as you, can get some processed information, for example, the final result of a " +
- "pharmacogenetics risk test.\nThis mechanism protects the data against insiders or hackers trying to illegally access patients’ medical information, while still allowing authorized " +
- "users to obtain the information they need." +
- "\n\nTo help us understanding the importance of genomic privacy in the medical domain, and the impact of privacy-enhancing technologies in daily clinical practice, please complete the following survey.");
- txtpnTodayYouAre.setFont(new Font("Tahoma", Font.PLAIN, 13));
- txtpnTodayYouAre.setEditable(false);
- txtpnTodayYouAre.setBackground(SystemColor.control);
- scrollPane.setViewportView(txtpnTodayYouAre);
- panel_1.setLayout(gl_panel_1);
- jScrollPane4 = new javax.swing.JScrollPane();
- jScrollPane4.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
getContentPane().setLayout(layout);
buttonGroupMap = new HashMap<Integer, ButtonGroup>();
ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
CommAdapter commHandlerAdapter = new CommAdapter(connection);
ReplySurvey replySurvey = commHandlerAdapter.callServiceSurvey();
map = replySurvey.getQuestions();
ids = map.keySet();
locations = replySurvey.getLocations();
+ buttonGroupMap = new HashMap<Integer, ButtonGroup>();
+
panel_2 = new JPanel();
- panel_2.setBackground(Color.WHITE);
+ panel_2.addMouseListener(new MouseAdapter() {
+ @Override
+ public void mouseClicked(MouseEvent arg0) {
+ splitPane.setDividerLocation(0.0);
+ }
+ });
panel_2.setBorder(null);
- jScrollPane4.setViewportView(panel_2);
+ panel_2.setBackground(Color.WHITE);
panel_2.setLayout(new BoxLayout(panel_2, BoxLayout.Y_AXIS));
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
-
+
+ JLabel expand_icon = new JLabel("ciao");
+ expand_icon.setVerticalAlignment(SwingConstants.TOP);
+ expand_icon.setHorizontalAlignment(SwingConstants.LEFT);
+ expand_icon.setAlignmentY(Component.TOP_ALIGNMENT);
+ expand_icon.setAlignmentX(Component.LEFT_ALIGNMENT);
+ expand_icon.setIcon(new ImageIcon("C:\\Users\\raisaro\\workspace\\yussef\\project\\PPPClient\\res\\expand_icon.jpg"));
+ panel_2.add(expand_icon);
+
+ //dynamic question generation
int type = 0;
for(Integer id : ids){
ButtonGroup group = new ButtonGroup();
- JRadioButton r1 = new JRadioButton("1"); r1.setActionCommand("1"); r1.setBackground(Color.WHITE);
- JRadioButton r2 = new JRadioButton("2"); r2.setActionCommand("2"); r2.setBackground(Color.WHITE);
- JRadioButton r3 = new JRadioButton("3"); r3.setActionCommand("3"); r3.setBackground(Color.WHITE);
- JRadioButton r4 = new JRadioButton("4"); r4.setActionCommand("4"); r4.setBackground(Color.WHITE);
- JRadioButton r5 = new JRadioButton("5"); r5.setActionCommand("5"); r5.setBackground(Color.WHITE);
+ JRadioButton r1 = new JRadioButton("1"); r1.setActionCommand("1"); r1.setBackground(Color.WHITE);
+ JRadioButton r2 = new JRadioButton("2"); r2.setActionCommand("2"); r2.setBackground(Color.WHITE);
+ JRadioButton r3 = new JRadioButton("3"); r3.setActionCommand("3"); r3.setBackground(Color.WHITE);
+ JRadioButton r4 = new JRadioButton("4"); r4.setActionCommand("4"); r4.setBackground(Color.WHITE);
+ JRadioButton r5 = new JRadioButton("5"); r5.setActionCommand("5"); r5.setBackground(Color.WHITE);
group.add(r1);
group.add(r2);
group.add(r3);
group.add(r4);
group.add(r5);
JPanel radio_panel = new JPanel();
radio_panel.setLayout((new BoxLayout(radio_panel, BoxLayout.X_AXIS)));
radio_panel.setBackground(Color.WHITE);
radio_panel.setAlignmentX(Component.CENTER_ALIGNMENT);
radio_panel.add(r1);
radio_panel.add(r2);
radio_panel.add(r3);
radio_panel.add(r4);
radio_panel.add(r5);
radio_panel.doLayout();
radio_panel.setPreferredSize(radio_panel.getPreferredSize());
JTextArea question = new JTextArea(id + ") " + map.get(id).getQuestion());
question.setEditable(false);
question.setLineWrap(true);
question.setWrapStyleWord(true);
question.setFont(new Font("Tahoma", Font.PLAIN, 13));
JPanel row_panel = new JPanel();
row_panel.setLayout(new BoxLayout(row_panel, BoxLayout.X_AXIS));
row_panel.add(Box.createRigidArea(new Dimension(20,0)));
row_panel.add(question);
row_panel.add(Box.createRigidArea(new Dimension(20,0)));
row_panel.add(radio_panel);
row_panel.add(Box.createRigidArea(new Dimension(20,0)));
row_panel.setBackground(Color.WHITE);
int type_new = map.get(id).getType();
if(type_new != type){
type = type_new;
JLabel question_group = new JLabel("");
switch(type){
case 1:
question_group.setText("Clinical Utility");
break;
case 2:
question_group.setText("Privacy Concerns");
break;
case 3:
question_group.setText("Usability Assessment");
break;
}
question_group.setAlignmentX(Component.CENTER_ALIGNMENT);
question_group.setFont(new Font("Tahoma", Font.BOLD, 13));
+ panel_2.add(new JSeparator());
panel_2.add(Box.createRigidArea(new Dimension(0,5)));
panel_2.add(question_group);
panel_2.add(Box.createRigidArea(new Dimension(0,5)));
panel_2.add(new JSeparator());
panel_2.add(Box.createRigidArea(new Dimension(0,5)));
}
panel_2.add(Box.createRigidArea(new Dimension(0,5)));
panel_2.add(row_panel);
panel_2.add(Box.createRigidArea(new Dimension(0,5)));
// panel_2.add(radio_panel);
- panel_2.add(new JSeparator());
+// panel_2.add(new JSeparator());
panel_2.add(Box.createRigidArea(new Dimension(0,5)));
// panel_2.setPreferredSize(panel_2.getPreferredSize());
buttonGroupMap.put(id, group);
}
+
+
+
-
- this.setSize(new Dimension(1300, 865));
-// pack();
+ this.setSize(new Dimension(1118, 768));
+// this.pack();
}// </editor-fold>//GEN-END:initComponents
private void submitButtonActionPerformed(java.awt.event.ActionEvent evt){
try{
answers = new HashMap<String, String>();
StringBuilder sb = new StringBuilder();
Set<Integer> questions_id = buttonGroupMap.keySet();
for(Integer q: questions_id){
ButtonGroup bg = buttonGroupMap.get(q);
sb.append(q).append(",");
sb.append(bg.getSelection().getActionCommand()).append(";");
answers.put(q.toString(),bg.getSelection().getActionCommand());
}
String answer = sb.toString();
Integer id_loc = null;
for(Integer i: locations.keySet()){
if(locations.get(i).equals(comboBox.getSelectedItem().toString()))
id_loc = i;
}
String id_p;
if(jComboBox1.getSelectedItem().toString().equals("Select Patient"))
id_p = "0";
else
id_p = jComboBox1.getSelectedItem().toString();
ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
CommAdapter commHandlerAdapter = new CommAdapter(connection);
String reply = commHandlerAdapter.callServiceSurveyAnswer(answer, id_loc.toString(), id_p);
if(reply.equals("1")){
survey_submitted = true;
dialog.setVisible(false);
JOptionPane.showMessageDialog(
this,
"Congrats! Your aswers have been sent to the SHCS datacenter.",
"Information Message",
JOptionPane.INFORMATION_MESSAGE);
+ btnSubmitQuestionnaire.setEnabled(false);
}
else{
throw new IOException();
}
} catch (NullPointerException e){
LOGGER.log(Level.SEVERE, null, e);
dialog.setVisible(false);
JOptionPane.showMessageDialog(
this,
"Please respond to all the questions!",
"Error Message",
JOptionPane.ERROR_MESSAGE);
} catch (IOException e) {
LOGGER.log(Level.SEVERE, null, e);
dialog.setVisible(false);
JOptionPane.showMessageDialog(
this,
"The SHCS datacenter does not respond. Please save the survey and send it to jean.raisaro@epfl.ch.",
"Error Message",
JOptionPane.ERROR_MESSAGE);
}
}
private void savePDFButtonActionPerformed(java.awt.event.ActionEvent evt){
try {
answers = new HashMap<String, String>();
Set<Integer> questions_id = buttonGroupMap.keySet();
for(Integer q: questions_id){
ButtonGroup bg = buttonGroupMap.get(q);
answers.put(q.toString(),bg.getSelection().getActionCommand());
}
JFileChooser chooser = new JFileChooser();
// Note: source for ExampleFileFilter can be found in FileChooserDemo,
// under the demo/jfc directory in the JDK.
int returnVal = chooser.showSaveDialog(this);
System.out.println(returnVal);
if(returnVal == JFileChooser.APPROVE_OPTION) {
System.out.println("You chose to open this file: " +
chooser.getSelectedFile().getPath());
quest = new Questionnaire(chooser.getSelectedFile().getPath() + ".pdf");
quest.createPdf(map, ids);
quest.writeAnswers(answers);
survey_submitted = true;
}else{
quest = new Questionnaire("outputPDF/survey.pdf");
quest.createPdf(map, ids);
quest.writeAnswers(answers);
survey_submitted = true;
}
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (DocumentException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (NullPointerException e) {
LOGGER.log(Level.SEVERE, null, e);
dialog.setVisible(false);
JOptionPane.showMessageDialog(
this,
"Please respond to all the questions!",
"Error Message",
JOptionPane.ERROR_MESSAGE);
}
}
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
JPanel contentPanel = new JPanel();
- dialog.setBounds(100, 100, 410, 80);
+ dialog.setBounds(100, 100, 420, 100);
dialog.getContentPane().setLayout(new BorderLayout());
contentPanel.setLayout(new FlowLayout());
contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
dialog.getContentPane().add(contentPanel, BorderLayout.CENTER);
{
- JLabel label = new JLabel("Please wait...The overall computation can take few seconds");
+ JLabel label = new JLabel("Please wait...The overall computation can take some seconds!");
+ JLabel label2 = new JLabel("Cryptographic operations are being performed at the SHCS...");
label.setHorizontalAlignment(SwingConstants.CENTER);
- label.setFont(new Font("Tahoma", Font.PLAIN, 12));
+ label.setFont(new Font("Tahoma", Font.BOLD, 12));
+ label2.setHorizontalAlignment(SwingConstants.CENTER);
+ label2.setFont(new Font("Tahoma", Font.PLAIN, 12));
contentPanel.add(label);
+ contentPanel.add(label2);
}
{
JPanel buttonPane = new JPanel();
buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
dialog.getContentPane().add(buttonPane, BorderLayout.SOUTH);
}
dialog.setLocationRelativeTo(this);
dialog.setVisible(true);
GUIWorker gw = new GUIWorker(this, props);
Thread t = new Thread(gw);
t.start();
}
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JButton jButton1;
private javax.swing.JComboBox<String> jComboBox1;
- private javax.swing.JLabel jLabel1;
- private javax.swing.JLabel jLabel2;
private javax.swing.JLabel jLabel3;
private javax.swing.JLabel jLabel4;
private javax.swing.JMenu jMenu1;
private javax.swing.JMenu jMenu2;
private javax.swing.JMenuBar jMenuBar1;
private javax.swing.JMenuItem jMenuItem1;
- private javax.swing.JPanel jPanel1;
private javax.swing.JPanel jPanel2;
private javax.swing.JScrollPane jScrollPane3;
private javax.swing.JTabbedPane tabbedPane;
private javax.swing.JScrollPane jScrollPane2;
- private javax.swing.JScrollPane jScrollPane4;
private JPanel panel;
- private JPanel panel_1;
- private JPanel panel_2;
- private JLabel lblDearDoctor;
private JLabel lblNewLabel_1;
private JLabel lblNewLabel_2;
private JLabel lblNewLabel_3;
private JComboBox<String> comboBox;
private Component rigidArea;
+ private JSplitPane splitPane;
+ private JPanel panel_1;
+ private JLabel label_1;
+ private JLabel label_2;
+ private JLabel label_3;
+ private JLabel label_4;
+ private JScrollPane scrollPane;
+ private JTextPane introduction;
+ private JScrollPane jScrollPane4;
+ private JPanel panel_2;
// End of variables declaration//GEN-END:variables
class GUIWorker implements Runnable{
private JFrame mainFrame;
private ClientProperties props;
private MedUnit mu;
public GUIWorker(GUI gui, ClientProperties props) {
mainFrame = gui;
this.props = props;
this.mu = new MedUnit(props, 0);
}
@Override
public void run() {
try{
int patientId = Integer.parseInt((String) jComboBox1.getSelectedItem());
// convert selected tests to test identifiers
ArrayList<TestName> selectedTests = new ArrayList<TestName>();
for (String currentName : getSelectedTests()) {
TestName currentTest = testsByName.get(currentName);
if (currentTest == null) {
throw new IllegalStateException("Trying to run unknown test: " + currentTest);
}
selectedTests.add(currentTest);
}
// run tests
Diagnostic diagnostic = mu.runTests(patientId, selectedTests);
// warn for tests with missing material
warnFailedTests(diagnostic, selectedTests);
// create report
mu.createReport(patientId, selectedTests, diagnostic);
dialog.setVisible(false);
// specify file you wish to open (JPedal handles getting the byte data)
String filepathReport = props.getPathPDF() + patientId + ".pdf";
// open generated PDF
// object must be either String in full filepath, or
// File object which can be relative
Object[] input = new Object[]{ new File(filepathReport) };
viewer.executeCommand(Commands.OPENFILE, input);
// display CAD result as bar plot
if (diagnostic.hasCAD()) {
System.out.println("CAD = " + diagnostic.getResultCAD());
BarPlotFrame frame = new BarPlotFrame(diagnostic.getResultCAD(), patientId);
frame.setVisible(true);
frame.setAlwaysOnTop(true);
}
} catch (SQLException e) {
LOGGER.log(Level.SEVERE, null, e);
displayError("Not able to connect to service. Please try again.");
} catch (IOException e) {
LOGGER.log(Level.SEVERE, null, e);
displayError("Not able to connect to service. Please try again.");
} catch (NullPointerException e){
LOGGER.log(Level.SEVERE, null, e);
- displayError("Please select a patient.");
+ displayError("Please select a patient and one or multiple tests.");
+ } catch (NumberFormatException e){
+ LOGGER.log(Level.SEVERE, null, e);
+ displayError("Please select a patient and one or multiple tests.");
}
}
private void warnFailedTests(Diagnostic diagnostic, ArrayList<TestName> selectedTests) {
ArrayList<Integer> failedTests = diagnostic.getInvalidTests();
if (!failedTests.isEmpty()) {
String msg = "Could not complete tests: ";
boolean first = true;
for (TestName testName : selectedTests) {
if (failedTests.contains(testName.getId())) {
if (first) {
first = false;
} else {
msg += ", ";
}
msg += testName.getName();
}
}
displayError(msg);
}
}
private void displayError(String msg) {
dialog.setVisible(false);
JOptionPane.showMessageDialog(
mainFrame,
msg,
"Error Message",
JOptionPane.ERROR_MESSAGE);
}
private ArrayList<String> getSelectedTests() {
ArrayList<String> tests = new ArrayList<String>();
for (TreePath treePath : jTree.getSelectionPaths()) {
tests.addAll(getChildrenTests(jTree.getModel(), treePath.getLastPathComponent()));
}
return tests;
}
private ArrayList<String> getChildrenTests(TreeModel model, Object node) {
ArrayList<String> tests = new ArrayList<String>();
if (model.isLeaf(node)) { // leaf
DefaultMutableTreeNode leaf = (DefaultMutableTreeNode) node;
tests.add(leaf.toString());
}
else { // iterate over children
for (int i = 0; i < model.getChildCount(node); i++) {
tests.addAll(getChildrenTests(model, model.getChild(node, i)));
}
}
return tests;
}
}
}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/c2/40ca5c7e5ea8001419a38fd8608ce0e6 b/.metadata/.plugins/org.eclipse.core.resources/.history/c2/40ca5c7e5ea8001419a38fd8608ce0e6
deleted file mode 100644
index cdc4f60..0000000
Binary files a/.metadata/.plugins/org.eclipse.core.resources/.history/c2/40ca5c7e5ea8001419a38fd8608ce0e6 and /dev/null differ
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/c3/104c7c3a0fa70014162f978bbd19228b b/.metadata/.plugins/org.eclipse.core.resources/.history/c3/104c7c3a0fa70014162f978bbd19228b
deleted file mode 100644
index 3433914..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/c3/104c7c3a0fa70014162f978bbd19228b
+++ /dev/null
@@ -1,260 +0,0 @@
-package io;
-
-import java.awt.BorderLayout;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.util.Map;
-import java.util.Set;
-
-import com.itextpdf.text.BaseColor;
-import com.itextpdf.text.Document;
-import com.itextpdf.text.DocumentException;
-import com.itextpdf.text.Element;
-import com.itextpdf.text.ExceptionConverter;
-import com.itextpdf.text.Font;
-import com.itextpdf.text.Font.FontFamily;
-import com.itextpdf.text.FontFactory;
-import com.itextpdf.text.Image;
-import com.itextpdf.text.PageSize;
-import com.itextpdf.text.Paragraph;
-import com.itextpdf.text.Phrase;
-import com.itextpdf.text.Rectangle;
-import com.itextpdf.text.pdf.BaseFont;
-import com.itextpdf.text.pdf.ColumnText;
-import com.itextpdf.text.pdf.GrayColor;
-import com.itextpdf.text.pdf.PdfBorderDictionary;
-import com.itextpdf.text.pdf.PdfContentByte;
-import com.itextpdf.text.pdf.PdfFormField;
-import com.itextpdf.text.pdf.PdfPCell;
-import com.itextpdf.text.pdf.PdfPCellEvent;
-import com.itextpdf.text.pdf.PdfPTable;
-import com.itextpdf.text.pdf.PdfWriter;
-import com.itextpdf.text.pdf.RadioCheckField;
-import com.itextpdf.text.pdf.TextField;
-
-import framework.Question;
-
-public class Questionnaire implements PdfPCellEvent{
-
- /** The path output file. */
- String pathOutputFile;
-
- /** The document. */
- Document document;
-
- int tf;
-
- public Questionnaire(String path){
- pathOutputFile = path;
- document = new Document(PageSize.A4, 25, 25, 50, 50);
- }
- public Questionnaire(int tf){
- this.tf = tf;
- }
-
- /** The resulting PDF. */
- public static final String RESULT1 = "outputPDF/buttons.pdf";
- /** The resulting PDF. */
- public static final String RESULT2 = "outputPDF/buttons_filled.pdf";
- /** Path to a JavaScript resource. */
- public static final String RESOURCE = "res/buttons.js";
- /** Path to an image used as button icon. */
- public static final String IMAGE = "res/info.png";
- /** Possible values of a radio field / checkboxes */
- public static final String[] LANGUAGES = { "English", "German", "French", "Spanish", "Dutch" };
-
- /**
- * Creates a PDF document.
- * @param filename the path to the new PDF document
- * @throws DocumentException
- * @throws IOException
- */
- public void createPdf(Map<Integer, Question> map, Set<Integer> ids) throws IOException, DocumentException {
-
- @SuppressWarnings("unused")
- PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(pathOutputFile));
-
-
- document.open();
- Image logo = Image.getInstance("res/shcs_logo2.gif");
-
- logo.scalePercent(30f);
- float[] columnWidths1 = {0.2f, 0.8f};
- PdfPTable table_title = new PdfPTable(columnWidths1);
- PdfPCell c01 = new PdfPCell(logo, false);
- PdfPCell c02 = new PdfPCell(new Paragraph("HIV Pharmacogenomic report | Project #693 | Survey",
- FontFactory.getFont(FontFactory.HELVETICA, 20, Font.BOLD, BaseColor.BLACK)));
- c01.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c01.setBorder(Rectangle.NO_BORDER);
- c02.setBorder(Rectangle.NO_BORDER);
-
- table_title.addCell(c01);
- table_title.addCell(c02);
- table_title.setWidthPercentage(100);
- table_title.setSpacingBefore(0);
- table_title.setSpacingAfter(25);
- document.add(table_title);
-
-
- //----------------------------------------------------------------------------------
-
-
- PdfPTable table1 = new PdfPTable(1);
- table1.setWidthPercentage(100);
- PdfPCell c11 = new PdfPCell(new Phrase("Today you are receiving a pharmacogenetic report based on the genetic " +
- "information of your patient. Because the human genome contains extremely private and sensitive information" +
- " of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier," +
- " it must be managed with care. ",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.NORMAL, BaseColor.BLACK)));
- c11.setLeading(1.5f, 1.5f);
- c11.setPaddingBottom(8);
-
-
- table1.addCell(c11);
- table1.setSpacingAfter(10);
- document.add(table1);
-
-
- //----------------------------------------------------------------------------------
-
-// // step 4
-// // add the JavaScript
-// writer.addJavaScript(Utilities.readFileToString(RESOURCE));
-
-
-
-
- // add the radio buttons
- for(Integer id: ids){
- PdfPCell c2;
-
- PdfPTable table = new PdfPTable(1);
- table.setSpacingAfter(10);
- table.setWidthPercentage(100);
-// table.setWidths(new int[]{ 1, 2});
-
- PdfPCell c1 = new PdfPCell(new Phrase(id + ") " + map.get(id).getQuestion(),FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c1.setPaddingTop(5);
- c1.setPaddingBottom(5);
- c1.setHorizontalAlignment(Element.ALIGN_CENTER);
- c1.setBorder(Rectangle.BOX);
- table.addCell(c1);
-
- c2 = new PdfPCell(new Phrase(" 1" +
- " 2" +
- " 3" +
- " 4" +
- " 5",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c2.setHorizontalAlignment(Element.ALIGN_LEFT);
- c2.setCellEvent(new Questionnaire(id));
-// c2.setLeading(1.5f, 1.5f);
- c2.setBorder(Rectangle.LEFT);
- c2.setBorder(Rectangle.RIGHT);
- c2.setPaddingTop(2);
- c2.setPaddingBottom(5);
- c2.setBackgroundColor(new BaseColor(242, 242, 242));
-
- table.addCell(c2);
-
-
-
- document.add(table);
- }
-
-//
- // step 5
- document.close();
-
- }
-
- @Override
- public void cellLayout(PdfPCell cell, Rectangle position,
- PdfContentByte[] canvases) {
- PdfWriter writer = canvases[0].getPdfWriter();
- PdfFormField radiogroup = PdfFormField.createRadioButton(writer, true);
- radiogroup.setFieldName(String.valueOf(tf));
-
- float llx = position.getLeft();
- float lly = position.getBottom();
- float urx = position.getRight();
- float ury = position.getTop();
- float cell_h = cell.getHeight();
- float cell_w = cell.getWidth();
-
- Rectangle rect;
-
- for(int i=1 ; i<=5; i++){
-
-
- rect = new Rectangle(llx + (3+i)*cell_w/12, lly+cell_h/2-6, llx + (3+i)*cell_w/12+12 ,lly+cell_h/2+6);
-
- RadioCheckField radio = new RadioCheckField(writer, rect, null, String.valueOf(i));
- radio.setBorderColor(GrayColor.GRAYBLACK);
- radio.setCheckType(RadioCheckField.TYPE_SQUARE);
-
-
- try {
- PdfFormField field = radio.getRadioField();
- radiogroup.addKid(field);
-
- writer.addAnnotation(radiogroup);
- }
-
- catch(IOException ioe) {
- throw new ExceptionConverter(ioe);
- }
- catch(DocumentException de) {
- throw new ExceptionConverter(de);
- }
- }
-
-
-
- }
-
-// /**
-// * Manipulates a PDF file src with the file dest as result
-// * @param src the original PDF
-// * @param dest the resulting PDF
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public void manipulatePdf(String src, String dest) throws IOException, DocumentException {
-// PdfReader reader = new PdfReader(src);
-// PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(dest));
-// AcroFields form = stamper.getAcroFields();
-// String[] radiostates = form.getAppearanceStates("language");
-// form.setField("language", radiostates[4]);
-// for (int i = 0; i < LANGUAGES.length; i++) {
-// String[] checkboxstates = form.getAppearanceStates("English");
-// form.setField(LANGUAGES[i], checkboxstates[i % 2 == 0 ? 1 : 0]);
-// }
-// stamper.close();
-// reader.close();
-//
-// PdfReader r = new PdfReader(dest);
-// AcroFields f = r.getAcroFields();
-// Set<String> fields = form.getFields().keySet();
-// for(String key: fields){
-// if(f.getFieldType(key)==AcroFields.FIELD_TYPE_RADIOBUTTON){
-// System.out.println(key);
-// System.out.println(f.getField(key));
-//
-// }
-// }
-// r.close();
-//
-// }
-//
-// /**
-// * Main method
-// * @param args no arguments needed
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public static void main(String[] args) throws IOException, DocumentException {
-// Questionnaire buttons = new Questionnaire();
-// buttons.createPdf(RESULT1);
-// buttons.manipulatePdf(RESULT1, RESULT2);
-// }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/c3/20f16cb8a4a7001417ceadf0100b5ef7 b/.metadata/.plugins/org.eclipse.core.resources/.history/c3/20f16cb8a4a7001417ceadf0100b5ef7
deleted file mode 100644
index 55f7cf2..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/c3/20f16cb8a4a7001417ceadf0100b5ef7
+++ /dev/null
@@ -1,47 +0,0 @@
-package io;
-
-import com.itextpdf.text.ExceptionConverter;
-import com.itextpdf.text.Rectangle;
-import com.itextpdf.text.pdf.PdfAnnotation;
-import com.itextpdf.text.pdf.PdfContentByte;
-import com.itextpdf.text.pdf.PdfFormField;
-import com.itextpdf.text.pdf.PdfPCell;
-import com.itextpdf.text.pdf.PdfPCellEvent;
-
-public class ChildFieldEvent implements PdfPCellEvent {
-
- /** A parent field to which a child field has to be added. */
- protected PdfFormField parent;
- /** The child field that has to be added */
- protected PdfFormField kid;
- /** The padding of the field inside the cell */
- protected float padding;
-
- /**
- * Creates a ChildFieldEvent.
- * @param parent the parent field
- * @param kid the child field
- * @param padding a padding
- */
- public ChildFieldEvent(PdfFormField parent, PdfFormField kid, float padding) {
- this.parent = parent;
- this.kid = kid;
- this.padding = padding;
- }
-
- /**
- * Add the child field to the parent, and sets the coordinates of the child field.
- * @see com.lowagie.text.pdf.PdfPCellEvent#cellLayout(com.lowagie.text.pdf.PdfPCell,
- * com.lowagie.text.Rectangle, com.lowagie.text.pdf.PdfContentByte[])
- */
- public void cellLayout(PdfPCell cell, Rectangle rect, PdfContentByte[] cb) {
- try {
- parent.addKid(kid);
- kid.setWidget(new Rectangle(rect.getLeft(padding), rect.getBottom(padding),
- rect.getRight(padding), rect.getTop(padding)),
- PdfAnnotation.HIGHLIGHT_INVERT);
- } catch (Exception e) {
- throw new ExceptionConverter(e);
- }
- }
-}
\ No newline at end of file
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/c5/3056cff54eac001410e2e30aa85db9d1 b/.metadata/.plugins/org.eclipse.core.resources/.history/c5/3056cff54eac001410e2e30aa85db9d1
deleted file mode 100644
index c07d468..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/c5/3056cff54eac001410e2e30aa85db9d1
+++ /dev/null
@@ -1,893 +0,0 @@
-package ui;
-
-import io.ClientConnection;
-import io.CommAdapter;
-import io.Questionnaire;
-
-import java.awt.BorderLayout;
-import java.awt.Color;
-import java.awt.Component;
-import java.awt.Dimension;
-import java.awt.FlowLayout;
-import java.awt.Font;
-import java.awt.SystemColor;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.awt.event.WindowAdapter;
-import java.io.File;
-import java.io.IOException;
-import java.sql.SQLException;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.LinkedList;
-import java.util.Map;
-import java.util.Set;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
-import javax.swing.Box;
-import javax.swing.BoxLayout;
-import javax.swing.ButtonGroup;
-import javax.swing.DefaultComboBoxModel;
-import javax.swing.GroupLayout;
-import javax.swing.GroupLayout.Alignment;
-import javax.swing.ImageIcon;
-import javax.swing.JButton;
-import javax.swing.JComboBox;
-import javax.swing.JDialog;
-import javax.swing.JFileChooser;
-import javax.swing.JFrame;
-import javax.swing.JLabel;
-import javax.swing.JOptionPane;
-import javax.swing.JPanel;
-import javax.swing.JRadioButton;
-import javax.swing.JScrollPane;
-import javax.swing.JSeparator;
-import javax.swing.JTabbedPane;
-import javax.swing.JTextArea;
-import javax.swing.JTextPane;
-import javax.swing.JTree;
-import javax.swing.LayoutStyle.ComponentPlacement;
-import javax.swing.SwingConstants;
-import javax.swing.UIManager;
-import javax.swing.border.BevelBorder;
-import javax.swing.border.EmptyBorder;
-import javax.swing.border.EtchedBorder;
-import javax.swing.tree.DefaultMutableTreeNode;
-import javax.swing.tree.TreeModel;
-import javax.swing.tree.TreePath;
-
-import org.jpedal.examples.viewer.Commands;
-import org.jpedal.examples.viewer.Viewer;
-
-import utils.ClientProperties;
-
-import com.itextpdf.text.DocumentException;
-
-import database.DBconnectorClient;
-import framework.Diagnostic;
-import framework.MedUnit;
-import framework.Question;
-import framework.reply.ReplySurvey;
-import framework.test.TestName;
-
-/**
- *
- * @author youssef, raisaro
- */
-public class GUI extends javax.swing.JFrame {
-
- private static final Logger LOGGER = Logger.getLogger(GUI.class.getName());
-
- private static final long serialVersionUID = -4582280515597700650L;
-
- // configuration
- private ClientProperties props;
-
- private JTree jTree;
- private DBconnectorClient connectorClientDB;
- private LinkedList<Integer> patients;
-
- /** List of all relevant tests */
- private HashMap<String, TestName> testsByName;
- private Viewer viewer;
- private JDialog dialog;
- private JFrame frame;
- private boolean survey_submitted;
- private int close_trials;
- private Map<Integer, ButtonGroup> buttonGroupMap;
- private Questionnaire quest;
- private Map<Integer, Question> map;
- private Set<Integer> ids;
- private Map<String,String> answers;
- private Map<Integer, String> locations;
-
-
- /**
- * Creates new form GUI
- */
- public GUI(ClientProperties props){
-
- frame = this;
- this.props = props;
- this.connectorClientDB = new DBconnectorClient(props.getDbMsAccess());
- survey_submitted = false;
- close_trials = 0;
-
-
- try {
- initComponents();
-
- viewer = new Viewer(jScrollPane2, null);
- viewer.setupViewer();
-
- // create questionnare
-
-
- System.out.println("#of questions: " + ids.size());
-
-// viewer_q = new Viewer(jScrollPane4, null);
-// viewer_q.setupViewer();
-//
-// // specify file you wish to open (JPedal handles getting the byte data)
-// String filepathReport = "outputPDF/buttons_filled.pdf";
-//
-// // open generated PDF
-// // object must be either String in full filepath, or
-// // File object which can be relative
-// Object[] input = new Object[]{ new File(filepathReport) };
-// viewer_q.executeCommand(Commands.OPENFILE, input);
-
- JButton btnSubmitQuestionnaire = new JButton("Submit Questionnaire");
- btnSubmitQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- btnSubmitQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- submitButtonActionPerformed(arg0);
- }
- });
- JButton btnResetQuestionnaire = new JButton("Save as PDF");
- btnResetQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- savePDFButtonActionPerformed(arg0);
- }
- });
- btnResetQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- JPanel panel_button = new JPanel();
- panel_button.setLayout(new BoxLayout(panel_button, BoxLayout.X_AXIS));
-
- lblNewLabel_3 = new JLabel("");
- lblNewLabel_3.setIcon(new ImageIcon("res/location_icon.png"));
- panel_button.add(lblNewLabel_3);
-
-
-
- comboBox = new JComboBox<String>();
- comboBox.setFont(new Font("Tahoma", Font.BOLD, 12));
- comboBox.setModel(new DefaultComboBoxModel<String>(new String[] {"Select Location"}));
- for(Integer id_loc : locations.keySet()){
- comboBox.addItem(locations.get(id_loc));
- }
-
-
- panel_button.add(comboBox);
-
- rigidArea = Box.createRigidArea(new Dimension(10, 0));
- panel_button.add(rigidArea);
-
- lblNewLabel_1 = new JLabel("");
- lblNewLabel_1.setIcon(new ImageIcon("res/submit.png"));
- panel_button.add(lblNewLabel_1);
- panel_button.add(btnSubmitQuestionnaire);
-
- panel_button.add(Box.createRigidArea(new Dimension(10,0)));
-
- lblNewLabel_2 = new JLabel("");
- lblNewLabel_2.setIcon(new ImageIcon("res/pdf.png"));
- panel_button.add(lblNewLabel_2);
- panel_button.add(btnResetQuestionnaire);
- panel_button.setPreferredSize(new Dimension(211, 35));
- panel_button.validate();
-
- JPanel panel_3 = new JPanel();
- GroupLayout gl_panel = new GroupLayout(panel);
- gl_panel.setHorizontalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(41)
- .addGroup(gl_panel.createParallelGroup(Alignment.TRAILING)
- .addComponent(jScrollPane4, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE)
- .addComponent(panel_1, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE))
- .addGap(32))
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(63)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addGap(103)
- .addComponent(panel_button, GroupLayout.DEFAULT_SIZE, 488, Short.MAX_VALUE)
- .addGap(241))
- );
- gl_panel.setVerticalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(22)
- .addComponent(panel_1, GroupLayout.DEFAULT_SIZE, 192, Short.MAX_VALUE)
- .addGap(18)
- .addComponent(jScrollPane4, GroupLayout.DEFAULT_SIZE, 437, Short.MAX_VALUE)
- .addGap(26)
- .addGroup(gl_panel.createParallelGroup(Alignment.LEADING)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(panel_button, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE)))
- );
- panel_3.setLayout(new BoxLayout(panel_3, BoxLayout.X_AXIS));
-
-
- panel.setLayout(gl_panel);
-
-
-
-
-
-
- /////////////////////////////////////////////////////////
- // display the tests available
-
- // get the tests
- HashMap<String, ArrayList<TestName>> testsRelevantByGroup = connectorClientDB.getRelevantTestsByGroup();
- ArrayList<String> groups = new ArrayList<String>(testsRelevantByGroup.keySet());
-
- // flatten hashmap into linkedlist
-// tests = new LinkedList<>();
- testsByName = new HashMap<String, TestName>();
- for (String group : groups) {
-// tests.addAll(testsRelevantByGroup.get(group));
- for (TestName test : testsRelevantByGroup.get(group)) {
- testsByName.put(test.getName(), test);
- }
- }
-
- // define tree structure of the tests
- DefaultMutableTreeNode root = new DefaultMutableTreeNode("All");
-
- for (String group : groups) {
- DefaultMutableTreeNode child = new DefaultMutableTreeNode(group);
- root.add(child);
-
- for (TestName test : testsRelevantByGroup.get(group)) {
- DefaultMutableTreeNode grandChild = new DefaultMutableTreeNode(test.getName());
- child.add(grandChild);
- }
- }
-
- // define swing object
- jTree = new JTree(root);
-
- for(int i=0;i<jTree.getRowCount();i++){
- jTree.expandRow(i);
- }
-
- jScrollPane3.setViewportView(jTree);
-// jTree.addTreeSelectionListener(new TreeSelectionListener() {
-//
-// @Override
-// public void valueChanged(TreeSelectionEvent e) {
-// tp = jTree.getSelectionPaths();
-// }
-// });
- jScrollPane3.setViewportView(jTree);
-
- /////////////////////////////////////////////////////////
- // display the patients registered
-
- patients = connectorClientDB.getPatients();
- for (Integer patientId : patients) {
- jComboBox1.addItem(patientId.toString());
- }
-
- } catch (SQLException ex) {
- Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex);
- ex.printStackTrace();
-// } catch (IOException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
-// } catch (DocumentException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
- }
-
- }
-
- /**
- * 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() {
-
- jPanel1 = new javax.swing.JPanel();
- jLabel2 = new javax.swing.JLabel();
- jLabel1 = new javax.swing.JLabel();
- jPanel2 = new javax.swing.JPanel();
- jComboBox1 = new javax.swing.JComboBox<String>();
- jButton1 = new javax.swing.JButton();
- jButton1.setFont(new Font("Tahoma", Font.BOLD, 12));
- jLabel3 = new javax.swing.JLabel();
- jLabel4 = new javax.swing.JLabel();
- jScrollPane3 = new javax.swing.JScrollPane();
- jScrollPane2 = new javax.swing.JScrollPane();
- jMenuBar1 = new javax.swing.JMenuBar();
- jMenu1 = new javax.swing.JMenu();
- jMenuItem1 = new javax.swing.JMenuItem();
- jMenu2 = new javax.swing.JMenu();
- dialog = new JDialog();
- tabbedPane = new JTabbedPane(JTabbedPane.TOP);
-
- setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
- addWindowListener(new WindowAdapter() {
- @Override
- public void windowClosing(java.awt.event.WindowEvent windowEvent) {
- if (!survey_submitted && close_trials <= 2){
- JOptionPane.showMessageDialog(frame, "Before closing the application, please fill in and submit the questionnaire.");
- close_trials++;
- tabbedPane.setSelectedIndex(1);
- }else{
- System.exit(0);
- }
- }
- });
- setTitle("HIV Pharmacogenomics\n");
-
- jLabel2.setIcon(new javax.swing.ImageIcon("res/shcs_logo2_small.gif")); // NOI18N
-
- jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
- jLabel1.setText("HIV Pharmacogenomics | Project #693");
-
- javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
- jPanel1.setLayout(jPanel1Layout);
- jPanel1Layout.setHorizontalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap(71, Short.MAX_VALUE)
- .addComponent(jLabel1)
- .addGap(18, 18, 18)
- .addComponent(jLabel2))
- );
- jPanel1Layout.setVerticalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jLabel1)
- .addGap(11, 11, 11))
- .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)
- );
-
- jPanel2.setBackground(new java.awt.Color(255, 255, 255));
- jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
-
- jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<String>(new String[]{"Select Patient"}));
-
- jButton1.setText("Run Test");
- jButton1.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton1ActionPerformed(evt);
- }
- });
-
- JLabel lblNewLabel = new JLabel("");
- lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
- lblNewLabel.setIcon(new javax.swing.ImageIcon("res/gears.png"));
-
-
-
- javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
- jPanel2Layout.setHorizontalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addComponent(jComboBox1, 0, 248, Short.MAX_VALUE)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addGap(75)
- .addGroup(jPanel2Layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jButton1)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 75, GroupLayout.PREFERRED_SIZE))
- .addContainerGap(98, Short.MAX_VALUE))
- );
- jPanel2Layout.setVerticalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addComponent(jComboBox1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED, 223, Short.MAX_VALUE)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jButton1)
- .addGap(19))
- );
- jPanel2.setLayout(jPanel2Layout);
-
- jLabel3.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel3.setText("Select Patient");
-
- jLabel4.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel4.setText("Select Test");
-
- jScrollPane3.setBackground(new java.awt.Color(255, 255, 255));
-
- jMenu1.setText("File");
-
- jMenuItem1.setText("Exit");
- jMenu1.add(jMenuItem1);
-
- jMenuBar1.add(jMenu1);
-
- jMenu2.setText("Edit");
- jMenuBar1.add(jMenu2);
-
- setJMenuBar(jMenuBar1);
-
-
-
- javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
- layout.setHorizontalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(layout.createParallelGroup(Alignment.LEADING, false)
- .addComponent(jLabel3)
- .addComponent(jLabel4)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, 244, Short.MAX_VALUE)
- .addComponent(jScrollPane3))
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 970, Short.MAX_VALUE))
- .addContainerGap())
- );
- layout.setVerticalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel4))
- .addPreferredGap(ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addComponent(jScrollPane3, GroupLayout.PREFERRED_SIZE, 388, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jLabel3)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 785, Short.MAX_VALUE))
- .addContainerGap())
- );
-
-
- jScrollPane2.setAutoscrolls(true);
- jScrollPane3.setAutoscrolls(true);
- tabbedPane.addTab("Report", new ImageIcon("res/report_icon.gif"), jScrollPane2, null);
- tabbedPane.setBackgroundAt(0, new Color(255, 255, 255));
-
- panel = new JPanel();
- tabbedPane.addTab("Survey", new ImageIcon("res/survey_icon.png"), panel, null);
- tabbedPane.setBackgroundAt(1, new Color(255, 255, 255));
- tabbedPane.setEnabledAt(1, true);
-
- panel_1 = new JPanel();
- panel_1.setBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null));
- panel_1.setBackground(UIManager.getColor("Button.background"));
-
- JLabel label = new JLabel("");
- label.setIcon(new ImageIcon("res/shcs_logo2_medium.gif"));
-
- lblDearDoctor = new JLabel("Dear Doctor,");
- lblDearDoctor.setFont(new Font("Tahoma", Font.BOLD, 14));
-
- JScrollPane scrollPane = new JScrollPane();
- scrollPane.setBorder(null);
- GroupLayout gl_panel_1 = new GroupLayout(panel_1);
- gl_panel_1.setHorizontalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(25)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 666, Short.MAX_VALUE)
- .addComponent(lblDearDoctor))
- .addContainerGap())
- );
- gl_panel_1.setVerticalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(22)
- .addComponent(lblDearDoctor)
- .addGap(18)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 120, Short.MAX_VALUE)
- .addContainerGap())
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(36)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 96, GroupLayout.PREFERRED_SIZE)
- .addContainerGap(56, Short.MAX_VALUE))
- );
-
- JTextPane txtpnTodayYouAre = new JTextPane();
- txtpnTodayYouAre.setBorder(null);
- txtpnTodayYouAre.setText("Today you are receiving a pharmacogenetic report based on the genetic information of your patient. Because the human genome contains extremely private and sensitive information of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier, it must be managed with care.\r\nToday you are receiving a pharmacogenetic report based on the genetic information of your patient. Because the human genome contains extremely private and sensitive information of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier, it must be managed with care.\r\nToday you are receiving a pharmacogenetic report based on the genetic information of your patient. Because the human genome contains extremely private and sensitive information of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier, it must be managed with care.");
- txtpnTodayYouAre.setFont(new Font("Tahoma", Font.PLAIN, 13));
- txtpnTodayYouAre.setEditable(false);
- txtpnTodayYouAre.setBackground(SystemColor.menu);
- scrollPane.setViewportView(txtpnTodayYouAre);
- panel_1.setLayout(gl_panel_1);
- jScrollPane4 = new javax.swing.JScrollPane();
- getContentPane().setLayout(layout);
-
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
- ReplySurvey replySurvey = commHandlerAdapter.callServiceSurvey();
-
- map = replySurvey.getQuestions();
- ids = map.keySet();
- locations = replySurvey.getLocations();
-
- panel_2 = new JPanel();
- panel_2.setBackground(Color.WHITE);
- panel_2.setBorder(new BevelBorder(BevelBorder.LOWERED, null, null, null, null));
- jScrollPane4.setViewportView(panel_2);
- panel_2.setLayout(new BoxLayout(panel_2, BoxLayout.Y_AXIS));
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
-
-
- for(Integer id : ids){
- ButtonGroup group = new ButtonGroup();
- JRadioButton r1 = new JRadioButton("1"); r1.setActionCommand("1"); r1.setBackground(Color.WHITE);
- JRadioButton r2 = new JRadioButton("2"); r2.setActionCommand("2"); r2.setBackground(Color.WHITE);
- JRadioButton r3 = new JRadioButton("3"); r3.setActionCommand("3"); r3.setBackground(Color.WHITE);
- JRadioButton r4 = new JRadioButton("4"); r4.setActionCommand("4"); r4.setBackground(Color.WHITE);
- JRadioButton r5 = new JRadioButton("5"); r5.setActionCommand("5"); r5.setBackground(Color.WHITE);
- group.add(r1);
- group.add(r2);
- group.add(r3);
- group.add(r4);
- group.add(r5);
- JPanel radio_panel = new JPanel();
- radio_panel.setLayout((new BoxLayout(radio_panel, BoxLayout.X_AXIS)));
- radio_panel.setBackground(Color.WHITE);
- radio_panel.setAlignmentX(Component.CENTER_ALIGNMENT);
- radio_panel.add(r1);
- radio_panel.add(r2);
- radio_panel.add(r3);
- radio_panel.add(r4);
- radio_panel.add(r5);
- radio_panel.doLayout();
- radio_panel.setPreferredSize(radio_panel.getPreferredSize());
- JTextArea question = new JTextArea(id + ") " + map.get(id).getQuestion());
- question.setLineWrap(true);
- question.setWrapStyleWord(true);
- question.setAlignmentX(Component.CENTER_ALIGNMENT);
- question.setFont(new Font("Tahoma", Font.PLAIN, 13));
- JPanel row_panel = new JPanel();
- row_panel.setLayout(new BoxLayout(row_panel, BoxLayout.X_AXIS));
- row_panel.add(question);
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.add(radio_panel);
-
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- panel_2.add(row_panel);
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
-// panel_2.add(radio_panel);
- panel_2.add(new JSeparator());
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
-// panel_2.setPreferredSize(panel_2.getPreferredSize());
- buttonGroupMap.put(id, group);
-
- }
-
-
-
- this.setSize(new Dimension(1200, 865));
-// pack();
- }// </editor-fold>//GEN-END:initComponents
-
-
- private void submitButtonActionPerformed(java.awt.event.ActionEvent evt){
-
- try{
- answers = new HashMap<String, String>();
- StringBuilder sb = new StringBuilder();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- sb.append(q).append(",");
- sb.append(bg.getSelection().getActionCommand()).append(";");
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- String answer = sb.toString();
- Integer id_loc = null;
- for(Integer i: locations.keySet()){
- if(locations.get(i).equals(comboBox.getSelectedItem().toString()))
- id_loc = i;
- }
-
- String id_p;
- if(jComboBox1.getSelectedItem().toString().equals("Select Patient"))
- id_p = "0";
- else
- id_p = jComboBox1.getSelectedItem().toString();
-
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
-
- String reply = commHandlerAdapter.callServiceSurveyAnswer(answer, id_loc.toString(), id_p);
-
- if(reply.equals("1")){
- survey_submitted = true;
-
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Congrats! Your aswers have been sent to the SHCS datacenter.",
- "Information Message",
- JOptionPane.INFORMATION_MESSAGE);
- }
- else{
- throw new IOException();
- }
-
-
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "The SHCS datacenter does not respond. Please save the survey and send it to jean.raisaro@epfl.ch.",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
- private void savePDFButtonActionPerformed(java.awt.event.ActionEvent evt){
- try {
-
- answers = new HashMap<String, String>();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- JFileChooser chooser = new JFileChooser();
- // Note: source for ExampleFileFilter can be found in FileChooserDemo,
- // under the demo/jfc directory in the JDK.
-
- int returnVal = chooser.showSaveDialog(this);
- System.out.println(returnVal);
- if(returnVal == JFileChooser.APPROVE_OPTION) {
- System.out.println("You chose to open this file: " +
- chooser.getSelectedFile().getPath());
- quest = new Questionnaire(chooser.getSelectedFile().getPath() + ".pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }else{
- quest = new Questionnaire("outputPDF/survey.pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }
-
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (DocumentException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (NullPointerException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
-
- private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
-
- JPanel contentPanel = new JPanel();
-
- dialog.setBounds(100, 100, 410, 80);
- dialog.getContentPane().setLayout(new BorderLayout());
- contentPanel.setLayout(new FlowLayout());
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- dialog.getContentPane().add(contentPanel, BorderLayout.CENTER);
- {
- JLabel label = new JLabel("Please wait...The overall computation can take few seconds");
- label.setHorizontalAlignment(SwingConstants.CENTER);
- label.setFont(new Font("Tahoma", Font.PLAIN, 12));
- contentPanel.add(label);
- }
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
- dialog.getContentPane().add(buttonPane, BorderLayout.SOUTH);
- }
- dialog.setLocationRelativeTo(this);
- dialog.setVisible(true);
-
- GUIWorker gw = new GUIWorker(this, props);
- Thread t = new Thread(gw);
- t.start();
-
- }
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JButton jButton1;
- private javax.swing.JComboBox<String> jComboBox1;
- private javax.swing.JLabel jLabel1;
- private javax.swing.JLabel jLabel2;
- private javax.swing.JLabel jLabel3;
- private javax.swing.JLabel jLabel4;
- private javax.swing.JMenu jMenu1;
- private javax.swing.JMenu jMenu2;
- private javax.swing.JMenuBar jMenuBar1;
- private javax.swing.JMenuItem jMenuItem1;
- private javax.swing.JPanel jPanel1;
- private javax.swing.JPanel jPanel2;
- private javax.swing.JScrollPane jScrollPane3;
- private javax.swing.JTabbedPane tabbedPane;
- private javax.swing.JScrollPane jScrollPane2;
- private javax.swing.JScrollPane jScrollPane4;
- private JPanel panel;
- private JPanel panel_1;
- private JPanel panel_2;
- private JLabel lblDearDoctor;
- private JLabel lblNewLabel_1;
- private JLabel lblNewLabel_2;
- private JLabel lblNewLabel_3;
- private JComboBox<String> comboBox;
- private Component rigidArea;
-
- // End of variables declaration//GEN-END:variables
-
-
- class GUIWorker implements Runnable{
-
- private JFrame mainFrame;
- private ClientProperties props;
- private MedUnit mu;
-
- public GUIWorker(GUI gui, ClientProperties props) {
- mainFrame = gui;
-
- this.props = props;
- this.mu = new MedUnit(props, 0);
- }
-
- @Override
- public void run() {
-
- try{
- int patientId = Integer.parseInt((String) jComboBox1.getSelectedItem());
-
- // convert selected tests to test identifiers
- ArrayList<TestName> selectedTests = new ArrayList<TestName>();
- for (String currentName : getSelectedTests()) {
- TestName currentTest = testsByName.get(currentName);
-
- if (currentTest == null) {
- throw new IllegalStateException("Trying to run unknown test: " + currentTest);
- }
-
- selectedTests.add(currentTest);
- }
-
- // run tests
- Diagnostic diagnostic = mu.runTests(patientId, selectedTests);
-
- // warn for tests with missing material
- warnFailedTests(diagnostic, selectedTests);
-
- // create report
- mu.createReport(patientId, selectedTests, diagnostic);
-
- dialog.setVisible(false);
-
- // specify file you wish to open (JPedal handles getting the byte data)
- String filepathReport = props.getPathPDF() + patientId + ".pdf";
-
- // open generated PDF
- // object must be either String in full filepath, or
- // File object which can be relative
- Object[] input = new Object[]{ new File(filepathReport) };
- viewer.executeCommand(Commands.OPENFILE, input);
-
- // display CAD result as bar plot
- if (diagnostic.hasCAD()) {
- System.out.println("CAD = " + diagnostic.getResultCAD());
- BarPlotFrame frame = new BarPlotFrame(diagnostic.getResultCAD(), patientId);
- frame.setVisible(true);
- frame.setAlwaysOnTop(true);
- }
-
-
- } catch (SQLException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Please select a patient.");
- }
-
- }
-
- private void warnFailedTests(Diagnostic diagnostic, ArrayList<TestName> selectedTests) {
- ArrayList<Integer> failedTests = diagnostic.getInvalidTests();
-
- if (!failedTests.isEmpty()) {
- String msg = "Could not complete tests: ";
- boolean first = true;
- for (TestName testName : selectedTests) {
- if (failedTests.contains(testName.getId())) {
- if (first) {
- first = false;
- } else {
- msg += ", ";
- }
- msg += testName.getName();
- }
- }
- displayError(msg);
- }
-
- }
-
- private void displayError(String msg) {
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- mainFrame,
- msg,
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
-
- private ArrayList<String> getSelectedTests() {
- ArrayList<String> tests = new ArrayList<String>();
-
- for (TreePath treePath : jTree.getSelectionPaths()) {
- tests.addAll(getChildrenTests(jTree.getModel(), treePath.getLastPathComponent()));
- }
-
- return tests;
- }
-
- private ArrayList<String> getChildrenTests(TreeModel model, Object node) {
- ArrayList<String> tests = new ArrayList<String>();
-
- if (model.isLeaf(node)) { // leaf
- DefaultMutableTreeNode leaf = (DefaultMutableTreeNode) node;
- tests.add(leaf.toString());
- }
- else { // iterate over children
- for (int i = 0; i < model.getChildCount(node); i++) {
- tests.addAll(getChildrenTests(model, model.getChild(node, i)));
- }
- }
-
- return tests;
- }
-
- }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/c8/70819f2656ac001410e2e30aa85db9d1 b/.metadata/.plugins/org.eclipse.core.resources/.history/c8/70819f2656ac001410e2e30aa85db9d1
deleted file mode 100644
index 5d424ed..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/c8/70819f2656ac001410e2e30aa85db9d1
+++ /dev/null
@@ -1,270 +0,0 @@
-package io;
-
-import java.awt.BorderLayout;
-import java.io.File;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.util.Map;
-import java.util.Set;
-
-import com.itextpdf.text.BaseColor;
-import com.itextpdf.text.Document;
-import com.itextpdf.text.DocumentException;
-import com.itextpdf.text.Element;
-import com.itextpdf.text.ExceptionConverter;
-import com.itextpdf.text.Font;
-import com.itextpdf.text.Font.FontFamily;
-import com.itextpdf.text.FontFactory;
-import com.itextpdf.text.Image;
-import com.itextpdf.text.PageSize;
-import com.itextpdf.text.Paragraph;
-import com.itextpdf.text.Phrase;
-import com.itextpdf.text.Rectangle;
-import com.itextpdf.text.pdf.AcroFields;
-import com.itextpdf.text.pdf.BaseFont;
-import com.itextpdf.text.pdf.ColumnText;
-import com.itextpdf.text.pdf.GrayColor;
-import com.itextpdf.text.pdf.PdfAction;
-import com.itextpdf.text.pdf.PdfBorderDictionary;
-import com.itextpdf.text.pdf.PdfContentByte;
-import com.itextpdf.text.pdf.PdfFormField;
-import com.itextpdf.text.pdf.PdfPCell;
-import com.itextpdf.text.pdf.PdfPCellEvent;
-import com.itextpdf.text.pdf.PdfPTable;
-import com.itextpdf.text.pdf.PdfReader;
-import com.itextpdf.text.pdf.PdfStamper;
-import com.itextpdf.text.pdf.PdfWriter;
-import com.itextpdf.text.pdf.PushbuttonField;
-import com.itextpdf.text.pdf.RadioCheckField;
-import com.itextpdf.text.pdf.TextField;
-
-import framework.Question;
-
-public class Questionnaire implements PdfPCellEvent{
-
- /** The path output file. */
- String pathOutputFile;
-
- /** The document. */
- Document document;
-
-
-
- int tf;
-
- public Questionnaire(String path){
- pathOutputFile = path;
- document = new Document(PageSize.A4, 25, 25, 50, 50);
- }
- public Questionnaire(int tf){
- this.tf = tf;
-
- }
-
- /** The resulting PDF. */
- public static final String RESULT1 = "outputPDF/buttons.pdf";
- /** The resulting PDF. */
- public static final String RESULT2 = "outputPDF/buttons_filled.pdf";
- /** Path to a JavaScript resource. */
- public static final String RESOURCE = "res/buttons.js";
- /** Path to an image used as button icon. */
- public static final String IMAGE = "res/info.png";
- /** Possible values of a radio field / checkboxes */
- public static final String[] LANGUAGES = { "English", "German", "French", "Spanish", "Dutch" };
-
- /**
- * Creates a PDF document.
- * @param filename the path to the new PDF document
- * @throws DocumentException
- * @throws IOException
- */
- public void createPdf(Map<Integer, Question> map, Set<Integer> ids) throws IOException, DocumentException {
-
- @SuppressWarnings("unused")
- PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream("outputPDF/temp.pdf"));
-
-
- document.open();
- Image logo = Image.getInstance("res/shcs_logo2.gif");
-
- logo.scalePercent(30f);
- float[] columnWidths1 = {0.2f, 0.8f};
- PdfPTable table_title = new PdfPTable(columnWidths1);
- PdfPCell c01 = new PdfPCell(logo, false);
- PdfPCell c02 = new PdfPCell(new Paragraph("Survery | Project #693",
- FontFactory.getFont(FontFactory.HELVETICA, 20, Font.BOLD, BaseColor.BLACK)));
- c01.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setHorizontalAlignment(Element.ALIGN_CENTER);
- c01.setBorder(Rectangle.NO_BORDER);
- c02.setBorder(Rectangle.NO_BORDER);
-
- table_title.addCell(c01);
- table_title.addCell(c02);
- table_title.setWidthPercentage(100);
- table_title.setSpacingBefore(0);
- table_title.setSpacingAfter(25);
- document.add(table_title);
-
-
- //----------------------------------------------------------------------------------
-
-
- PdfPTable table1 = new PdfPTable(1);
- table1.setWidthPercentage(100);
- PdfPCell c11 = new PdfPCell(new Phrase("Today you are receiving a pharmacogenetics report based on the genome of your patient. Because of its highly sensitive nature, the genetic information you are provided with is processed in a privacy-preserving way. In particular, to protect patients’ genomic privacy, their genetic and clinical data is stored encrypted at the SHCS data center, and securely analyzed through a sophisticated algorithm designed and developed at EPFL [1, 2]. The actual clinical and genetic information is never revealed. Only the authorized users, such as you, can get some processed information, for example, the final result of a pharmacogenetics risk test. " +
- "This mechanism protects the data against insiders or hackers trying to illegally access patients’ medical information, while still allowing authorized users to obtain the information they need. " +
- "To help us understanding the importance of genomic privacy in the medical domain, and the impact of privacy-enhancing technologies in daily clinical practice, please complete the following survey."
- ,FontFactory.getFont(FontFactory.HELVETICA, 10, Font.NORMAL, BaseColor.BLACK)));
- c11.setLeading(1.5f, 1.5f);
- c11.setPaddingBottom(8);
-
-
- table1.addCell(c11);
- table1.setSpacingAfter(10);
- document.add(table1);
-
-
- //----------------------------------------------------------------------------------
-
-// // step 4
-// // add the JavaScript
-// writer.addJavaScript(Utilities.readFileToString(RESOURCE));
-
- for(Integer id: ids){
- PdfPCell c2;
-
- PdfPTable table = new PdfPTable(1);
- table.setSpacingAfter(10);
- table.setWidthPercentage(100);
-
- PdfPCell c1 = new PdfPCell(new Phrase(id + ") " + map.get(id).getQuestion(),FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c1.setPaddingTop(5);
- c1.setPaddingBottom(5);
- c1.setHorizontalAlignment(Element.ALIGN_CENTER);
- c1.setBorder(Rectangle.NO_BORDER);
- table.addCell(c1);
-
- c2 = new PdfPCell(new Phrase(" 1" +
- " 2" +
- " 3" +
- " 4" +
- " 5",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c2.setHorizontalAlignment(Element.ALIGN_LEFT);
- c2.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c2.setCellEvent(new Questionnaire(id));
- c2.setBorder(Rectangle.TOP);
- c2.setPaddingTop(2);
- c2.setPaddingBottom(5);
- c2.setBackgroundColor(new BaseColor(242, 242, 242));
-
- table.addCell(c2);
-
-
-
- document.add(table);
- }
-
-
- //----------------------------------------------------------------------------------
-
- // step 5
- document.close();
-
-
-
- }
-
- @Override
- public void cellLayout(PdfPCell cell, Rectangle position,
- PdfContentByte[] canvases) {
- PdfWriter writer = canvases[0].getPdfWriter();
- PdfFormField radiogroup = PdfFormField.createRadioButton(writer, true);
- radiogroup.setFieldName(String.valueOf(tf));
-
- float llx = position.getLeft();
- float lly = position.getBottom();
-
- float cell_h = cell.getHeight();
- float cell_w = cell.getWidth();
-
- Rectangle rect;
-
- for(int i=1 ; i<=5; i++){
-
- rect = new Rectangle(llx + (3+i)*cell_w/12, lly+cell_h/2-6, llx + (3+i)*cell_w/12+12 ,lly+cell_h/2+6);
-
- RadioCheckField radio = new RadioCheckField(writer, rect, String.valueOf(i), String.valueOf(i));
- radio.setBorderColor(GrayColor.GRAYBLACK);
- radio.setCheckType(RadioCheckField.TYPE_SQUARE);
-
-
- try {
- PdfFormField field = radio.getRadioField();
- radiogroup.addKid(field);
-
- writer.addAnnotation(radiogroup);
- }
-
- catch(IOException ioe) {
- throw new ExceptionConverter(ioe);
- }
- catch(DocumentException de) {
- throw new ExceptionConverter(de);
- }
- }
-
-
-
- }
-
-
- public void writeAnswers(Map<String, String> answers) throws IOException, DocumentException{
-
- PdfReader reader = new PdfReader("outputPDF/temp.pdf");
- PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(pathOutputFile));
-
- AcroFields form = stamper.getAcroFields();
-
- Set<String> fields = form.getFields().keySet();
- for(String key: fields){
-
- if(answers.containsKey(key)){
- form.setField(key, answers.get(key));
- }
- }
- stamper.close();
- reader.close();
- deleteFile("outputPDF/temp.pdf");
-
- }
-
-
- private void deleteFile(String fileName){
- // A File object to represent the filename
- File f = new File(fileName);
-
- // Make sure the file or directory exists and isn't write protected
- if (!f.exists())
- throw new IllegalArgumentException(
- "Delete: no such file or directory: " + fileName);
-
- if (!f.canWrite())
- throw new IllegalArgumentException("Delete: write protected: "
- + fileName);
-
- // If it is a directory, make sure it is empty
- if (f.isDirectory()) {
- String[] files = f.list();
- if (files.length > 0)
- throw new IllegalArgumentException(
- "Delete: directory not empty: " + fileName);
- }
-
- // Attempt to delete it
- boolean success = f.delete();
-
- if (!success)
- throw new IllegalArgumentException("Delete: deletion failed");
- }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/c8/80f5f2d2b3a7001417ceadf0100b5ef7 b/.metadata/.plugins/org.eclipse.core.resources/.history/c8/80f5f2d2b3a7001417ceadf0100b5ef7
deleted file mode 100644
index ddd043a..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/c8/80f5f2d2b3a7001417ceadf0100b5ef7
+++ /dev/null
@@ -1,96 +0,0 @@
-package testpdf;
-
-import java.io.FileOutputStream;
-import java.io.IOException;
-
-import com.itextpdf.text.DocumentException;
-import com.itextpdf.text.Rectangle;
-import com.itextpdf.text.pdf.GrayColor;
-import com.itextpdf.text.pdf.PdfAction;
-import com.itextpdf.text.pdf.PdfFormField;
-import com.itextpdf.text.pdf.PdfReader;
-import com.itextpdf.text.pdf.PdfStamper;
-import com.itextpdf.text.pdf.PushbuttonField;
-
-public class SubmitForm {
-
- /** The resulting PDF file. */
- public static final String RESULT
- = "outputPDF/submit_me.pdf";
-
- /**
- * Manipulates a PDF file src with the file dest as result
- * @param src the original PDF
- * @param dest the resulting PDF
- * @throws IOException
- * @throws DocumentException
- */
- public void manipulatePdf(String src, String dest)
- throws IOException, DocumentException {
- // create a reader
- PdfReader reader = new PdfReader(src);
- // create a stamper
- PdfStamper stamper = new PdfStamper(reader,
- new FileOutputStream(dest));
- // create a submit button that posts the form as an HTML query string
- PushbuttonField button1 = new PushbuttonField(
- stamper.getWriter(), new Rectangle(90, 660, 140, 690), "post");
- button1.setText("POST");
- button1.setBackgroundColor(new GrayColor(0.7f));
- button1.setVisibility(PushbuttonField.VISIBLE_BUT_DOES_NOT_PRINT);
- PdfFormField submit1 = button1.getField();
- submit1.setAction(PdfAction.createSubmitForm(
- "/request", null,
- PdfAction.SUBMIT_HTML_FORMAT | PdfAction.SUBMIT_COORDINATES));
- // add the button
- stamper.addAnnotation(submit1, 1);
- // create a submit button that posts the form as FDF
- PushbuttonField button2 = new PushbuttonField(
- stamper.getWriter(), new Rectangle(200, 660, 250, 690), "FDF");
- button2.setBackgroundColor(new GrayColor(0.7f));
- button2.setText("FDF");
- button2.setVisibility(PushbuttonField.VISIBLE_BUT_DOES_NOT_PRINT);
- PdfFormField submit2 = button2.getField();
- submit2.setAction(PdfAction.createSubmitForm(
- "/request", null, PdfAction.SUBMIT_EXCL_F_KEY));
- // add the button
- stamper.addAnnotation(submit2, 1);
- // create a submit button that posts the form as XFDF
- PushbuttonField button3 = new PushbuttonField(
- stamper.getWriter(), new Rectangle(310, 660, 360, 690), "XFDF");
- button3.setBackgroundColor(new GrayColor(0.7f));
- button3.setText("XFDF");
- button3.setVisibility(PushbuttonField.VISIBLE_BUT_DOES_NOT_PRINT);
- PdfFormField submit3 = button3.getField();
- submit3.setAction(PdfAction.createSubmitForm(
- "/request", null, PdfAction.SUBMIT_XFDF));
- // add the button
- stamper.addAnnotation(submit3, 1);
- // create a reset button
- PushbuttonField button4 = new PushbuttonField(
- stamper.getWriter(), new Rectangle(420, 660, 470, 690), "reset");
- button4.setBackgroundColor(new GrayColor(0.7f));
- button4.setText("RESET");
- button4.setVisibility(PushbuttonField.VISIBLE_BUT_DOES_NOT_PRINT);
- PdfFormField reset = button4.getField();
- reset.setAction(PdfAction.createResetForm(null, 0));
- // add the button
- stamper.addAnnotation(reset, 1);
- // close the stamper
- stamper.close();
- reader.close();
- }
-
- /**
- * Main method.
- *
- * @param args no arguments needed
- * @throws DocumentException
- * @throws IOException
- */
- public static void main(String[] args)
- throws IOException, DocumentException {
- new Subscribe().createPdf(Subscribe.FORM);
- new SubmitForm().manipulatePdf(Subscribe.FORM, RESULT);
- }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/c9/e0947242a7a7001417ceadf0100b5ef7 b/.metadata/.plugins/org.eclipse.core.resources/.history/c9/e0947242a7a7001417ceadf0100b5ef7
deleted file mode 100644
index 5b76b2b..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/c9/e0947242a7a7001417ceadf0100b5ef7
+++ /dev/null
@@ -1,308 +0,0 @@
-package io;
-
-import java.awt.BorderLayout;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.util.Map;
-import java.util.Set;
-
-import com.itextpdf.text.BaseColor;
-import com.itextpdf.text.Document;
-import com.itextpdf.text.DocumentException;
-import com.itextpdf.text.Element;
-import com.itextpdf.text.ExceptionConverter;
-import com.itextpdf.text.Font;
-import com.itextpdf.text.Font.FontFamily;
-import com.itextpdf.text.FontFactory;
-import com.itextpdf.text.Image;
-import com.itextpdf.text.PageSize;
-import com.itextpdf.text.Paragraph;
-import com.itextpdf.text.Phrase;
-import com.itextpdf.text.Rectangle;
-import com.itextpdf.text.pdf.AcroFields;
-import com.itextpdf.text.pdf.BaseFont;
-import com.itextpdf.text.pdf.ColumnText;
-import com.itextpdf.text.pdf.GrayColor;
-import com.itextpdf.text.pdf.PdfAction;
-import com.itextpdf.text.pdf.PdfBorderDictionary;
-import com.itextpdf.text.pdf.PdfContentByte;
-import com.itextpdf.text.pdf.PdfFormField;
-import com.itextpdf.text.pdf.PdfPCell;
-import com.itextpdf.text.pdf.PdfPCellEvent;
-import com.itextpdf.text.pdf.PdfPTable;
-import com.itextpdf.text.pdf.PdfReader;
-import com.itextpdf.text.pdf.PdfStamper;
-import com.itextpdf.text.pdf.PdfWriter;
-import com.itextpdf.text.pdf.PushbuttonField;
-import com.itextpdf.text.pdf.RadioCheckField;
-import com.itextpdf.text.pdf.TextField;
-
-import framework.Question;
-
-public class Questionnaire implements PdfPCellEvent{
-
- /** The path output file. */
- String pathOutputFile;
-
- /** The document. */
- Document document;
-
- int tf;
-
- public Questionnaire(String path){
- pathOutputFile = path;
- document = new Document(PageSize.A4, 25, 25, 50, 50);
- }
- public Questionnaire(int tf){
- this.tf = tf;
- }
-
- /** The resulting PDF. */
- public static final String RESULT1 = "outputPDF/buttons.pdf";
- /** The resulting PDF. */
- public static final String RESULT2 = "outputPDF/buttons_filled.pdf";
- /** Path to a JavaScript resource. */
- public static final String RESOURCE = "res/buttons.js";
- /** Path to an image used as button icon. */
- public static final String IMAGE = "res/info.png";
- /** Possible values of a radio field / checkboxes */
- public static final String[] LANGUAGES = { "English", "German", "French", "Spanish", "Dutch" };
-
- /**
- * Creates a PDF document.
- * @param filename the path to the new PDF document
- * @throws DocumentException
- * @throws IOException
- */
- public void createPdf(Map<Integer, Question> map, Set<Integer> ids) throws IOException, DocumentException {
-
- @SuppressWarnings("unused")
- PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(pathOutputFile));
-
-
- document.open();
- Image logo = Image.getInstance("res/shcs_logo2.gif");
-
- logo.scalePercent(30f);
- float[] columnWidths1 = {0.2f, 0.8f};
- PdfPTable table_title = new PdfPTable(columnWidths1);
- PdfPCell c01 = new PdfPCell(logo, false);
- PdfPCell c02 = new PdfPCell(new Paragraph("Survery | Project #693",
- FontFactory.getFont(FontFactory.HELVETICA, 20, Font.BOLD, BaseColor.BLACK)));
- c01.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setHorizontalAlignment(Element.ALIGN_CENTER);
- c01.setBorder(Rectangle.NO_BORDER);
- c02.setBorder(Rectangle.NO_BORDER);
-
- table_title.addCell(c01);
- table_title.addCell(c02);
- table_title.setWidthPercentage(100);
- table_title.setSpacingBefore(0);
- table_title.setSpacingAfter(25);
- document.add(table_title);
-
-
- //----------------------------------------------------------------------------------
-
-
- PdfPTable table1 = new PdfPTable(1);
- table1.setWidthPercentage(100);
- PdfPCell c11 = new PdfPCell(new Phrase("Today you are receiving a pharmacogenetic report based on the genetic " +
- "information of your patient. Because the human genome contains extremely private and sensitive information" +
- " of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier," +
- " it must be managed with care. ",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.NORMAL, BaseColor.BLACK)));
- c11.setLeading(1.5f, 1.5f);
- c11.setPaddingBottom(8);
-
-
- table1.addCell(c11);
- table1.setSpacingAfter(10);
- document.add(table1);
-
-
- //----------------------------------------------------------------------------------
-
-// // step 4
-// // add the JavaScript
-// writer.addJavaScript(Utilities.readFileToString(RESOURCE));
-
- for(Integer id: ids){
- PdfPCell c2;
-
- PdfPTable table = new PdfPTable(1);
- table.setSpacingAfter(10);
- table.setWidthPercentage(100);
-
- PdfPCell c1 = new PdfPCell(new Phrase(id + ") " + map.get(id).getQuestion(),FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c1.setPaddingTop(5);
- c1.setPaddingBottom(5);
- c1.setHorizontalAlignment(Element.ALIGN_CENTER);
- c1.setBorder(Rectangle.NO_BORDER);
- table.addCell(c1);
-
- c2 = new PdfPCell(new Phrase(" 1" +
- " 2" +
- " 3" +
- " 4" +
- " 5",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c2.setHorizontalAlignment(Element.ALIGN_LEFT);
- c2.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c2.setCellEvent(new Questionnaire(id));
- c2.setBorder(Rectangle.TOP);
- c2.setPaddingTop(2);
- c2.setPaddingBottom(5);
- c2.setBackgroundColor(new BaseColor(242, 242, 242));
-
- table.addCell(c2);
-
-
-
- document.add(table);
- }
-
-
- //----------------------------------------------------------------------------------
-
- // step 5
- document.close();
-
- }
-
- @Override
- public void cellLayout(PdfPCell cell, Rectangle position,
- PdfContentByte[] canvases) {
- PdfWriter writer = canvases[0].getPdfWriter();
- PdfFormField radiogroup = PdfFormField.createRadioButton(writer, true);
- radiogroup.setFieldName(String.valueOf(tf));
- System.out.println(tf);
-
- float llx = position.getLeft();
- float lly = position.getBottom();
-
- float cell_h = cell.getHeight();
- float cell_w = cell.getWidth();
-
- Rectangle rect;
-
- for(int i=1 ; i<=5; i++){
-
- rect = new Rectangle(llx + (3+i)*cell_w/12, lly+cell_h/2-6, llx + (3+i)*cell_w/12+12 ,lly+cell_h/2+6);
-
- RadioCheckField radio = new RadioCheckField(writer, rect, null, String.valueOf(i));
- radio.setBorderColor(GrayColor.GRAYBLACK);
- radio.setCheckType(RadioCheckField.TYPE_SQUARE);
-
-
- try {
- PdfFormField field = radio.getRadioField();
- radiogroup.addKid(field);
-
- writer.addAnnotation(radiogroup);
- }
-
- catch(IOException ioe) {
- throw new ExceptionConverter(ioe);
- }
- catch(DocumentException de) {
- throw new ExceptionConverter(de);
- }
- }
-
-
-
- }
-
-
- public String getAnswers() throws IOException, DocumentException{
- PdfReader reader = new PdfReader(pathOutputFile);
- reader.removeUsageRights();
- PdfStamper stamper = new PdfStamper(reader, new FileOutputStream("outputPDF/buttons_filled2.pdf"));
-
-
-
- // create a submit button that posts the form as an HTML query string
- PushbuttonField button1 = new PushbuttonField(
- stamper.getWriter(), new Rectangle(90, 660, 140, 690), "post");
- button1.setText("POST");
- button1.setBackgroundColor(new GrayColor(0.7f));
- button1.setVisibility(PushbuttonField.VISIBLE_BUT_DOES_NOT_PRINT);
- PdfFormField submit1 = button1.getField();
- submit1.setAction(PdfAction.createSubmitForm(
- "outputPDF/request", null,
- PdfAction.SUBMIT_HTML_FORMAT | PdfAction.SUBMIT_COORDINATES));
- // add the button
- stamper.addAnnotation(submit1, 1);
-
-
-
- AcroFields form = reader.getAcroFields();
-
- StringBuilder sb = new StringBuilder();
-
-
- Set<String> fields = form.getFields().keySet();
- for(String key: fields){
- System.out.println("key = " + key);
- if(form.getFieldType(key)==AcroFields.FIELD_TYPE_RADIOBUTTON){
- sb.append(key);
- sb.append(",");
- sb.append(form.getField(key));
- sb.append(";");
- }
- }
-// stamper.close();
- reader.close();
-
-
- return sb.toString();
-
- }
-
-
-// /**
-// * Manipulates a PDF file src with the file dest as result
-// * @param src the original PDF
-// * @param dest the resulting PDF
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public void manipulatePdf(String src, String dest) throws IOException, DocumentException {
-// PdfReader reader = new PdfReader(src);
-// PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(dest));
-// AcroFields form = stamper.getAcroFields();
-// String[] radiostates = form.getAppearanceStates("language");
-// form.setField("language", radiostates[4]);
-// for (int i = 0; i < LANGUAGES.length; i++) {
-// String[] checkboxstates = form.getAppearanceStates("English");
-// form.setField(LANGUAGES[i], checkboxstates[i % 2 == 0 ? 1 : 0]);
-// }
-// stamper.close();
-// reader.close();
-//
-// PdfReader r = new PdfReader(dest);
-// AcroFields f = r.getAcroFields();
-// Set<String> fields = form.getFields().keySet();
-// for(String key: fields){
-// if(f.getFieldType(key)==AcroFields.FIELD_TYPE_RADIOBUTTON){
-// System.out.println(key);
-// System.out.println(f.getField(key));
-//
-// }
-// }
-// r.close();
-//
-// }
-//
-// /**
-// * Main method
-// * @param args no arguments needed
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public static void main(String[] args) throws IOException, DocumentException {
-// Questionnaire buttons = new Questionnaire();
-// buttons.createPdf(RESULT1);
-// buttons.manipulatePdf(RESULT1, RESULT2);
-// }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/ca/e034bc20b2a7001417ceadf0100b5ef7 b/.metadata/.plugins/org.eclipse.core.resources/.history/ca/e034bc20b2a7001417ceadf0100b5ef7
deleted file mode 100644
index 11f5964..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/ca/e034bc20b2a7001417ceadf0100b5ef7
+++ /dev/null
@@ -1,98 +0,0 @@
-package testpdf;
-
-import java.io.FileOutputStream;
-import java.io.IOException;
-
-import part2.chapter08.Subscribe;
-
-import com.itextpdf.text.DocumentException;
-import com.itextpdf.text.Rectangle;
-import com.itextpdf.text.pdf.GrayColor;
-import com.itextpdf.text.pdf.PdfAction;
-import com.itextpdf.text.pdf.PdfFormField;
-import com.itextpdf.text.pdf.PdfReader;
-import com.itextpdf.text.pdf.PdfStamper;
-import com.itextpdf.text.pdf.PushbuttonField;
-
-public class SubmitForm {
-
- /** The resulting PDF file. */
- public static final String RESULT
- = "results/part3/chapter09/submit_me.pdf";
-
- /**
- * Manipulates a PDF file src with the file dest as result
- * @param src the original PDF
- * @param dest the resulting PDF
- * @throws IOException
- * @throws DocumentException
- */
- public void manipulatePdf(String src, String dest)
- throws IOException, DocumentException {
- // create a reader
- PdfReader reader = new PdfReader(src);
- // create a stamper
- PdfStamper stamper = new PdfStamper(reader,
- new FileOutputStream(dest));
- // create a submit button that posts the form as an HTML query string
- PushbuttonField button1 = new PushbuttonField(
- stamper.getWriter(), new Rectangle(90, 660, 140, 690), "post");
- button1.setText("POST");
- button1.setBackgroundColor(new GrayColor(0.7f));
- button1.setVisibility(PushbuttonField.VISIBLE_BUT_DOES_NOT_PRINT);
- PdfFormField submit1 = button1.getField();
- submit1.setAction(PdfAction.createSubmitForm(
- "/book/request", null,
- PdfAction.SUBMIT_HTML_FORMAT | PdfAction.SUBMIT_COORDINATES));
- // add the button
- stamper.addAnnotation(submit1, 1);
- // create a submit button that posts the form as FDF
- PushbuttonField button2 = new PushbuttonField(
- stamper.getWriter(), new Rectangle(200, 660, 250, 690), "FDF");
- button2.setBackgroundColor(new GrayColor(0.7f));
- button2.setText("FDF");
- button2.setVisibility(PushbuttonField.VISIBLE_BUT_DOES_NOT_PRINT);
- PdfFormField submit2 = button2.getField();
- submit2.setAction(PdfAction.createSubmitForm(
- "/book/request", null, PdfAction.SUBMIT_EXCL_F_KEY));
- // add the button
- stamper.addAnnotation(submit2, 1);
- // create a submit button that posts the form as XFDF
- PushbuttonField button3 = new PushbuttonField(
- stamper.getWriter(), new Rectangle(310, 660, 360, 690), "XFDF");
- button3.setBackgroundColor(new GrayColor(0.7f));
- button3.setText("XFDF");
- button3.setVisibility(PushbuttonField.VISIBLE_BUT_DOES_NOT_PRINT);
- PdfFormField submit3 = button3.getField();
- submit3.setAction(PdfAction.createSubmitForm(
- "/book/request", null, PdfAction.SUBMIT_XFDF));
- // add the button
- stamper.addAnnotation(submit3, 1);
- // create a reset button
- PushbuttonField button4 = new PushbuttonField(
- stamper.getWriter(), new Rectangle(420, 660, 470, 690), "reset");
- button4.setBackgroundColor(new GrayColor(0.7f));
- button4.setText("RESET");
- button4.setVisibility(PushbuttonField.VISIBLE_BUT_DOES_NOT_PRINT);
- PdfFormField reset = button4.getField();
- reset.setAction(PdfAction.createResetForm(null, 0));
- // add the button
- stamper.addAnnotation(reset, 1);
- // close the stamper
- stamper.close();
- reader.close();
- }
-
- /**
- * Main method.
- *
- * @param args no arguments needed
- * @throws DocumentException
- * @throws IOException
- */
- public static void main(String[] args)
- throws IOException, DocumentException {
- new Subscribe().createPdf(Subscribe.FORM);
- new SubmitForm().manipulatePdf(Subscribe.FORM, RESULT);
- }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/cd/b004968785a8001419a38fd8608ce0e6 b/.metadata/.plugins/org.eclipse.core.resources/.history/cd/b004968785a8001419a38fd8608ce0e6
deleted file mode 100644
index 908c13c..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/cd/b004968785a8001419a38fd8608ce0e6
+++ /dev/null
@@ -1,72 +0,0 @@
-package io;
-
-import io.serializer.url.URLParserDecrypt;
-import io.serializer.url.URLParserMaterial;
-import io.serializer.xml.XMLParserDecrypt;
-import io.serializer.xml.XMLParserMaterial;
-import io.serializer.xml.XMLParserSurvey;
-
-import java.util.logging.Logger;
-
-import framework.Type;
-import framework.reply.ReplyDecryption;
-import framework.reply.ReplyMaterial;
-import framework.reply.ReplySurvey;
-import framework.request.RequestDecryption;
-import framework.request.RequestMaterial;
-
-public class CommAdapter {
-
- @SuppressWarnings("unused")
- private static final Logger LOGGER = Logger.getLogger(CommAdapter.class.getName());
-
- public ClientConnection connectSPU = null;
-
- public CommAdapter(ClientConnection connectSPU) {
- this.connectSPU = connectSPU;
- }
-
- public ReplyDecryption callServiceDecrypt(RequestDecryption rqtDecrypt) {
- String requestString = URLParserDecrypt.requestToString(rqtDecrypt);
-// String replyString = "<awr_decrypt><patient>30351</patient><v_timestamp>1417188729390</v_timestamp><decrypt_val>,,,,,,,,,,,,,,,,2,AwHR3OO0/hkwgEHluLDFLtn4aaTBAwBEJjJpMegGa29ASgtyt1ha2OOyxvEvNgkIaY0xWXtTmqrqhSBKDG6J7Lps0g==,AwE/oifhonvUZDA4mqRK8K1WCkoepEuL9SidjdFXMNNZQXCMUvVN6pBUYVFgJeFX6mT2jruK8ic3y6yI14PfKl/Pvg==,AgBHs6HGF9AYNc5RlFTGv025WEaT91i/MPy+HXqhvHOrp0Ol9/aKyvv2BgAzeAdsdSEbVs2sahiyL/kbKjeUoI9tsA==,,,,,,,,,,,,,2,AgHIofEmf4aJMLBnKAY3/8WcLXUETF4y/68fzZR6hsS5btZTyI0E4ZTltDzV6hBzIT14cC4S/BMclo1aoLt5C9f+Cg==,AgDOXZAZAwO4KXslqU1wKctrVlH8CcGvpO8gGrPl3YjrY8SR3a6gStvZvjcUKXhvtDkRwSLAIkD3lFrKSXWestHSqQ==,AgG7Y5so9ZTRng2Xm3ziWx3+7zfaVLkIJ2v7g+qEUx5Vl2/udDOcg/was8W6qbKYeo/W0EGTlNXKTOdIatGVxyuoZA==,,,,,2,AgDAVy0/nE6X4iAengG9lCiYEBMtK6rAAiy7OwC7U/QSbokiEzH0RafH7rb+5L5R/ii9/3kZCcKmgOIoPzkmeloDfg==,AgHuvmLAeIFYm4ObEBO2v9xTK6tjYfdh+x4kwULBpDNlUiW4kNNaeoeziRA7nlRvcSfxPlR070N/3qzBMu3EKZ2csQ==,AgDk/CzCL4XUobuNaLsvrH5s0COMKYBqY/18YRR0d7mIsVVYrKVGF+IWnEluhbLt+BoRBdvL5UElgroyORJpiKz06w==,,,,,2,AgH0nW+2h+vcOZgPe3uR7jEHmEPi+g4izQ3OIU9An2vekwbG1liBFgTo33pEhyXhNWPhGCbSb73sJ7pt0JLL+hhWMw==,AgHG039OnpvmllkV6QBsmoMdqISrRuW2q5M3jfUp5TUbU6F/3S2FK1iSVKWgTsI291re6lz6KH5d8rWrnoCAozhIeg==,AwGjmnLUMd42F7a/tsSkeqcxoHMAXNKdvF4kOXoAxmc6ZSxaUhzkGkcgNOO8SFNiWqTKgtZCffJ7hfI0voAUX0TD1w==,,,,,2,AwHfYRjQFscHzOvVozackTaM3sybOjyd2aLc4B+WQ7KiWHoGKkzQScoDiy8hiA2cJpv8ngfitTqJRLlyegvuM+Ietw==,AwAP92OqrJFpFmdrMUUx6FeFhwVLYtAsfw3sem2RYu7ljPry+uJnvluuzTvVaFhs8BAAD8VBFs1vqrSHyQEq8Ocsmw==,AwDNXg/JA4QXA6wu30DUE7peOk1a10aHbd38iwjN1Q0DKy3BqS36+EQKg5hbwELxN2+/Yu4UA1IKWYJI0zNs6TJUtA==,,,,,2,AwBWFv3ivyQz4CGIilJ7CVtpQGOs1tnIW+0uxQyiWIO3HDjJtfxPyQ1AJWPsBQ9eYmaoKmPnN+euPCm7bP0LxBL/Tg==,AwHg7AZb5DV5OJrl0omtKx2OqckXcQEUT8pZ+Bmo9AyULgL5HOq2AVU04qhvbdy0W4OMYqxF3uBwqT6dNhFptsKEKQ==,AwG9dyMbI5EI8UCXuj5JkQRMimcT1u6zCBAfmRvANtT54yDtC8KS6VeOr7h/NP4qrf/mbl5tMaePbkkHrc6E39ntsA==,,,,,2,AwHkMyCOJm/RlYOybGhX3DchR/wSN2L3PuXKalMszgk3WOCiWSpYlP3SOPLWvJTRQaTxoN+oA5IkCTvlp02+Mduaxg==,AgHhR8HjavXjnsy+rHptc/JSI5pLFjM0RczUygxTX7vqV/yqwZ280Rq7YpXKp2GBfiZvFf0qIQoWe4vx5DBxwvHkdA==,AwEf2yisEpflVm8R2X08SCJM89apu7tUFzbpndsTIt5o9/xdoXKomMUk9REz+yrpkd+jFhlkJMQHHVMhgjiWYCEdpQ==,,,,,2,AwBaIc8ZWFm4O9QO0ofJeS9Q7tki7CAscBXRDnajEp7rmKNgrpRyyu1ezSpborwaloWR9kDKPLdYVV8SNk2V/1EudA==,AwGE8MPAnPKKXF15EyrAx1bRinwgoqYVO4Junz5IXQjGLyQpSr5NwO/hqu5E5egHte20jm380Wn2Qy6GgKNiRLy/gQ==,AwCAOjOQNdMN5uIB0POFzYS/fpxZ0Q5KfhlP5fijNmc/daO5frSrwhgcMH5lMKL4EGjBI1p6JMe3fuMqb5t1ImeTBg==,,,,,2,AgARSg2izcK6iZLFe4YkIS6yZgnt8cd9DFqpQ37gNmcccZwBI+mpsaijTUPo1GT+QUD8zC+6qr/GrzG9q+q7BPxpVw==,AwGM/jFdtoNViQXxgqeL27ZKobjsfyeuXrx8re3UfIe3c4XN16srSpcTfxEZNXDKo1Ff9fRvDVBOwdS6XU2nvo++ng==,AwAtK0eOqcVfzkdJIIkk7BORWwSDTAjtx4aEXwyZ0bla+2rIWDgXi3U5xlgnjeXJNtGsLokkvvX92BOBIw9SuCGhnw==,2,AgCWAAWTW+7jv2a2lc4pGFnumEgyH59wSDRXEYUASCVB249JBmeKFWRKNFTQlph5hTR5Rb+YHFP/qvzmwU11Hs2b0w==,AgANdxpkN+DS4De3aokNjt+e/Ou8GT+p8pUJA+6LHrDBXAddoCR8KpeXW7mESokq6BTEVQXxU3TdqavRkqaeFmpXkw==,AgDDDSEO3e8DCsm1n6dbj2PB9Z/tUzluDCt/utdSLrYFfdFY+Y5K7Vxo9F5/17CzaUbX172SGLt8TfCfuYBrtupgAg==,2,AgB1OG6bj+6kfRvLj8yjMQbl80FdZHZrRVRUfNVRwvjvvbRa5f9s9fNZ8J0a3s3hH+RyfZmGJ4Ufjh5mMiQkwiur6w==,AwBX4GFZNjUdtRdwtWgxyQz7h8Hk0ztaZeM8/e+8ll0o+RjYN+CNP8+lnXEw7wpuC4wcMX05mrjPvHOuy0hOFVNkhQ==,AgDf3el4vbMYIAFEH9WV151/uzl+gkfTQ79T8Iu4KxEVo6UJvCfqkjETlR6aXUJiqaCbSV5odMT50lURsmfgALf6AQ==,,,,,2,AgENmnviZkgQWXZ5QDgCCE2zq0IiXURTqK2UNPtEg3o64yjlrQQUd2rO/KgKolyCQcKYTVoMj7k2VeCSSVRr8KGC7w==,AwFv6ZJzhpV/Ms00QkrkNiCKVRFczn/yqnkiBFUHC1RQv3tqzzYSEUeXmDHmm0/kEBtnfgRWjHQm9zxS8Jzy7srDLQ==,AwB8aS5KA1dFLKCA1a/7Wsjhef+6kkNAB/GO9AOvRZbFW/dhl5fx04Alh+g78fwcVMX+eEIEJgSyH0jhv7kmiQh4ew==,,,,,2,AgG8fXrCra6UgP5G89TaE6PH5E0TANb/PJPbKwzdi78XEHRUmcTz6PIhYtclTmcdq5TH0IwQv+ra5ppf4qR4LtkGig==,AgEKzsmZrikmXzJywMpzkAdG9hAPlOiRY9oXKf4Sh50CL8btUItjfVJWg3ubNhotzJK+fnNlRrcMkWQEBD/aGKpf8A==,AwFi+2cGpuvVdR+pT1P9Ur8jAkzmjJK2XmUQbFpyMi5Jc9a5/fPnBWCxmTX8CH5wks0PicYC6rzZC3NEIt0EoM1Qfg==,,,,,2,AgHbTZgTAv8lLBsoX06Hkm9XPU+crlRqKl0xL8v18xeUUPY1YAvUYf2OAutmTtPRycXyzrDWSpn2h5xfk/dtq/BICg==,AwAjPydfoUhfSVFKWNI4Ox4a/psZGDIGzEEWh9HyVtAmjdNb5ctr/S6z+akiRfPlNCsVf6TdkzJ2Su6BO4sOX/SHKA==,AwBVmjn7AitCe4zQ/Fl0sYW2XqXkJxJBDviwl9jYhoq29v90n9escDsiA3Cy+1uW69MezdZBEszFdEWlX0EzbQZQ6A==,,,,,2,AwCG0RBHwHuame/1G7qtUjmwz0gkCP1tyZiEgm7aTKpsCjt7UsMirMmx/ZrNlvSzkGuVbRO97Szzr+9fo4baH1rEZA==,AwHyMK/q8FUUvoHTt7O7KJUxYz/ZHF6SntbmKfbygLVw4HWc/eFic4DXHKbEGWvrMO5b37GksqxfQHc2xlAuj8ZRIw==,AgB5x0BxqiMYxRvzlq0+/RkbOuNA7hYuMG+7D6wlMOxSskgqyfwA0MfW+AkXFqnqfqsoJRpDy15bABWhH6MIdJsPEA==,,,,,2,AwAS/nCH0pcrsllSy2duadUs1rMtL6vtz7VTUAVhn1/YYlZ068ysBi1Mdz9gJFewdyeGLnFhyg+W15rFB317nyeGHg==,AwBh6f5UVRMM5ekWqkrx6XiVOK/BL0TinjsSLna8BjkQPXU2DvGxiKPhA03/GtBdEpihEX4bVaHQhiOupTf7wh6bCQ==,AgGPDFH8Kv8hz2aUJ955nHu8NiAoTmDjqhlXuJ1T83h+O0sc2GieLhmXmpEjxjEAyxkqjb2nFxvDhi+YGs4MqI4S5A==,,,,,2,AwDqwFv6bqpM/6PTCJ/wgRALYVT+Rn54HIB2icP6ODNexaoqILBS9p1k1QENbQsBZ9LmJJwngRQXi07Q4P8br76Qfw==,AgG8yTiO8tFWZqQELBr+Zt1fKKA3bl08836nUEEpD55Sid0ZywCrWe+Va58xbMIWscISLPbBvXIdO48ZgoHsLgA7Jw==,AwCI1Ud0GJLnS86mSC58HNB91lH9kPpQbufGn+WJErGxAQubtSFBc3rnT0SNE3CbW+1MPjYBbdCgxpHjN/iQf96++w==,,,,;2,AgB9YhljgPngkwwYTBMUaMGR+rWMjvlK0tgrzkG8OT9NGNJfaaLP6AzfhWrT5oe9NRnabU25pQvDhAIGZCajDy8N2g==,AwE5Irce6LOSxfLgn4PZh1PeDPjAHb5wPTNfmQoWFY83dNQLYN44FupJaQRRUqBqyGNB0SL76GKzr8G9tKLAHOxRSQ==,BAG5iWHEhlWkvtyAlQy4bwKa1iNRzJq8WJTh2GE9oT4DeJRmO1pCHy9P+9YktDT+4RgV9s8AzOYih1LmHW14uP27HQGg1nTdHyab9/nFUe9BFxIi8xQTPG8et9++5I+gKIeWGCXBL31sBhpaMewvVhDjl2d3+7H2PUv9IY3lyIRFA6N16A==,2,AwAPIoQJqSbXFKXQAIG9J+/+/41NLX0rDINImk4eBgAnZ4V0R8YSqkHD3nd0IrEMyK7OpkCXkxTzOlwJlfEfti+vew==,AwAQ8KdMYsEOqM3eyGv/XbHnGf+TqCAG39Gz/juBcioOOJmLOFjl6oCITozJOyPusbTRXZ4eIwgQYkl12mt6saTpgQ==,BACkTO+3rRUF81w5yzZskFiIRyVxc6sdJfDFX6C+Jy5A+s/sfHskrFx2GYNklZaYztP0/B64a6v6HvFWVz8GuYj2wgHhiCL+QwLThFpaRxh8kUMSrt4VuXSIjtHwRXzhSdEbG2T6C/+CJZxIFh/ugEV9SS51l1HrLdnJDb2Kdu3QC3lRkQ==;2,AgC99VyiRLJ2kFf3oCkb+JPVV7B4tXVGI2NVT7fdKtB+gEjCcdkbS5YEXm/Sq6NAJEOKilMTFUDLYFDOe+7JHj/4pw==,AgAbT080sbKVHH9lim3tVCYS4cMz+rLownRKqtYZ7AfR8qy819R1GFywQ0kImgcdjEey5C4m0OPTwgtkO+C5uWtKfQ==,BADKYt9i0zTJeh3H8t6d8pZdncz3f28v1oWrssLZwAutkIcF3XKkPNmK3X75K3sImUSch//IIRIB1Yi5/MrZZeDrxQHhQZEg6AA8bDxgt0JdOEX2t4crzDu3gW5I8y+Ya0fZr1RmxvfMr2UxRhSsNsz949v/g+GPfsrEfDqIWTiNlJfwyg==,2,AgEPMjgCfgGRaZ/5I1hLqDoJ8nXYeTlnt9YeK4K8w+HnRAoAD09zkPcLMWajIjupe/CUFrHz00sAvs+vOPeKxGrLiQ==,AgDy7g2DcDwmIW7LtTTteHExD/cyP4BMWimEAM1RfAd/Y6P8XkmRGgglfdLJ7RGTR2YIMB1lxQ/LQUbmzyjTiiuWow==,BAHJ7oHVr/0wweyGlg4f9Dqmx8h0m35jMdrEFwVY8l/ENKpOTxG/oh9vAvo1uw39wUOn4CWGBmAFE2lsvWFW18gt+gHPFt5/9ihUFN9mtxFLT1Q3W4Uf8IdekHPMbNlxEp1wId7EH3XsAox3Eo8b3XnYpwfsAXoDwQa2wyiO5h104Ptvsg==;2,AwClCMGcHdd7rD8sYDC/GXyAtLmZ/JI4v+aOK4PXzjWJi/zvcsXT5dJUOm9bW6AAtzgOKPd0WwU3hSytJ+ATy146Uw==,AgADzN6ysOIC9GAuMF9suYNfkR027H/9OcpeVJb4HRHfZ/EOmQWSdJmJFw3F/NLUrreNnFCvuF1+1bbmHa3tvznjeA==,BADwaRJF9z3DW7HE3qhGu6Yd9d2WBfWy8opd7Mhkg7TpAQsn9oA3UcpCarn4DMSnVGG94Y3Pxsj5vlm5G7GMKiGoxAERnETH6pVgBxhtrnBU6l4vHl+X4rd8I/zheZiG0EFKJza41rmwKHTY4+42PJ8/3Y2rCanbY1RSAJEgiZR89k6nGg==,2,AgCK80PhKSC23aVKQ8uYm+79GWZiwpbV5lc8Fzcpwu8hdKGAMH4f62Y//cmrQmCIltm03PTVPMn6rMwkfoz+9M2LDQ==,AgH5aXThIKUjENFTGCGwcTRql7xIe8vR9h78KikTYkD8itQ+YBDrnx5OaNyWRjpIJHAZ2B61W2aVjZ5Rmo0d1B1Pcw==,BAAEZsEKw59QSRxN1QmWcx4X2LaK4+zBuawh+2CIRPljWyxK6XhIM6EEalr44Klce4OTK2QbxT5n3Kjnh5jNuwCOawAH/wiNrx09+HY8SZrRjCjv1+Lnicybrqg/IFDNoAGT5aguaGRIMmGOLe0QFJr0T0iW3RnYGlmSd/r6ex8+MpOgLw==</decrypt_val></awr_decrypt>";
- String replyString = connectSPU.sendReceive(Type.DECRYPT, requestString);
- System.out.println("REQUEST URL: " + requestString);
- System.out.println("REPLY: " + replyString);
- ReplyDecryption reply = (new XMLParserDecrypt()).stringToReply(replyString);
- return reply;
- }
-
- public ReplyMaterial callServiceMaterial(RequestMaterial rqtMaterial) {
- String requestString = URLParserMaterial.requestToString(rqtMaterial);
- String replyString = connectSPU.sendReceive(Type.MATERIAL, requestString);
-
- System.out.println("Material request:");
- System.out.println(replyString);
-
- ReplyMaterial reply = (new XMLParserMaterial()).stringToReply(replyString);
- return reply;
- }
-
- public ReplySurvey callServiceSurvey(){
-
- String replyString = connectSPU.sendReceive(Type.SURVEY_Q,"");
- //4::What's your name?::1;5::Where are you from?::2;6::How old are you?::3;7::What's your name?::1;8::Where are you from?::2;9::How old are you?::3;10::What's your name?::1;11::Where are you from?::2;12::How old are you?::3;13::What's your name?::1;14::Where are you from?::2;15::How old are you?::3
-// String replyString ="<awr_survey><v_questions>1::What's your name?::1;2::Where are you from?::2;3::How old are you?::3</v_questions><v_locations>Lausanne;Basel;Zurich</v_locations></awr_survey>";
- ReplySurvey reply = (new XMLParserSurvey()).stringToReply(replyString);
- return reply;
- }
-
- public String callServiceSurveyAnswer(String survey, String id_loc, String id_p){
-
- StringBuilder sb = new StringBuilder();
- sb.append("id_p=").append(id_p);
- sb.append("&timestamp=").append(System.currentTimeMillis());
- sb.append("&id_loc=").append(id_loc);
- sb.append("&answer=").append(survey);
- String replyString = connectSPU.sendReceive(Type.SURVEY_A, sb.toString());
-
- return replyString;
-
- }
-
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/ce/60f74c190fa70014162f978bbd19228b b/.metadata/.plugins/org.eclipse.core.resources/.history/ce/60f74c190fa70014162f978bbd19228b
deleted file mode 100644
index 953515d..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/ce/60f74c190fa70014162f978bbd19228b
+++ /dev/null
@@ -1,259 +0,0 @@
-package io;
-
-import java.awt.BorderLayout;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.util.Map;
-import java.util.Set;
-
-import com.itextpdf.text.BaseColor;
-import com.itextpdf.text.Document;
-import com.itextpdf.text.DocumentException;
-import com.itextpdf.text.Element;
-import com.itextpdf.text.ExceptionConverter;
-import com.itextpdf.text.Font;
-import com.itextpdf.text.Font.FontFamily;
-import com.itextpdf.text.FontFactory;
-import com.itextpdf.text.Image;
-import com.itextpdf.text.PageSize;
-import com.itextpdf.text.Paragraph;
-import com.itextpdf.text.Phrase;
-import com.itextpdf.text.Rectangle;
-import com.itextpdf.text.pdf.BaseFont;
-import com.itextpdf.text.pdf.ColumnText;
-import com.itextpdf.text.pdf.GrayColor;
-import com.itextpdf.text.pdf.PdfBorderDictionary;
-import com.itextpdf.text.pdf.PdfContentByte;
-import com.itextpdf.text.pdf.PdfFormField;
-import com.itextpdf.text.pdf.PdfPCell;
-import com.itextpdf.text.pdf.PdfPCellEvent;
-import com.itextpdf.text.pdf.PdfPTable;
-import com.itextpdf.text.pdf.PdfWriter;
-import com.itextpdf.text.pdf.RadioCheckField;
-import com.itextpdf.text.pdf.TextField;
-
-import framework.Question;
-
-public class Questionnaire implements PdfPCellEvent{
-
- /** The path output file. */
- String pathOutputFile;
-
- /** The document. */
- Document document;
-
- int tf;
-
- public Questionnaire(String path){
- pathOutputFile = path;
- document = new Document(PageSize.A4, 25, 25, 50, 50);
- }
- public Questionnaire(int tf){
- this.tf = tf;
- }
-
- /** The resulting PDF. */
- public static final String RESULT1 = "outputPDF/buttons.pdf";
- /** The resulting PDF. */
- public static final String RESULT2 = "outputPDF/buttons_filled.pdf";
- /** Path to a JavaScript resource. */
- public static final String RESOURCE = "res/buttons.js";
- /** Path to an image used as button icon. */
- public static final String IMAGE = "res/info.png";
- /** Possible values of a radio field / checkboxes */
- public static final String[] LANGUAGES = { "English", "German", "French", "Spanish", "Dutch" };
-
- /**
- * Creates a PDF document.
- * @param filename the path to the new PDF document
- * @throws DocumentException
- * @throws IOException
- */
- public void createPdf(Map<Integer, Question> map, Set<Integer> ids) throws IOException, DocumentException {
-
- @SuppressWarnings("unused")
- PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(pathOutputFile));
-
-
- document.open();
- Image logo = Image.getInstance("res/shcs_logo2.gif");
-
- logo.scalePercent(30f);
- float[] columnWidths1 = {0.2f, 0.8f};
- PdfPTable table_title = new PdfPTable(columnWidths1);
- PdfPCell c01 = new PdfPCell(logo, false);
- PdfPCell c02 = new PdfPCell(new Paragraph("HIV Pharmacogenomic report | Project #693 | Survey",
- FontFactory.getFont(FontFactory.HELVETICA, 20, Font.BOLD, BaseColor.BLACK)));
- c01.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c01.setBorder(Rectangle.NO_BORDER);
- c02.setBorder(Rectangle.NO_BORDER);
-
- table_title.addCell(c01);
- table_title.addCell(c02);
- table_title.setWidthPercentage(100);
- table_title.setSpacingBefore(0);
- table_title.setSpacingAfter(25);
- document.add(table_title);
-
-
- //----------------------------------------------------------------------------------
-
-
- PdfPTable table1 = new PdfPTable(1);
- table1.setWidthPercentage(100);
- PdfPCell c11 = new PdfPCell(new Phrase("Today you are receiving a pharmacogenetic report based on the genetic " +
- "information of your patient. Because the human genome contains extremely private and sensitive information" +
- " of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier," +
- " it must be managed with care. ",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.NORMAL, BaseColor.BLACK)));
- c11.setLeading(1.5f, 1.5f);
- c11.setPaddingBottom(8);
-
-
- table1.addCell(c11);
- table1.setSpacingAfter(10);
- document.add(table1);
-
-
- //----------------------------------------------------------------------------------
-
-// // step 4
-// // add the JavaScript
-// writer.addJavaScript(Utilities.readFileToString(RESOURCE));
-
-
-
-
- // add the radio buttons
- for(Integer id: ids){
- PdfPCell c2;
-
- PdfPTable table = new PdfPTable(1);
- table.setSpacingAfter(10);
- table.setWidthPercentage(100);
-// table.setWidths(new int[]{ 1, 2});
-
- PdfPCell c1 = new PdfPCell(new Phrase(id + ") " + map.get(id).getQuestion(),FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c1.setPaddingTop(5);
- c1.setPaddingBottom(5);
- c1.setHorizontalAlignment(Element.ALIGN_CENTER);
- c1.setBorder(Rectangle.BOX);
- table.addCell(c1);
-
- c2 = new PdfPCell(new Phrase(" 1" +
- " 2" +
- " 3" +
- " 4" +
- " 5",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c2.setHorizontalAlignment(Element.ALIGN_LEFT);
- c2.setCellEvent(new Questionnaire(id));
-// c2.setLeading(1.5f, 1.5f);
- c2.setBorder(Rectangle.LEFT);
- c2.setPaddingTop(2);
- c2.setPaddingBottom(5);
- c2.setBackgroundColor(new BaseColor(242, 242, 242));
-
- table.addCell(c2);
-
-
-
- document.add(table);
- }
-
-//
- // step 5
- document.close();
-
- }
-
- @Override
- public void cellLayout(PdfPCell cell, Rectangle position,
- PdfContentByte[] canvases) {
- PdfWriter writer = canvases[0].getPdfWriter();
- PdfFormField radiogroup = PdfFormField.createRadioButton(writer, true);
- radiogroup.setFieldName(String.valueOf(tf));
-
- float llx = position.getLeft();
- float lly = position.getBottom();
- float urx = position.getRight();
- float ury = position.getTop();
- float cell_h = cell.getHeight();
- float cell_w = cell.getWidth();
-
- Rectangle rect;
-
- for(int i=1 ; i<=5; i++){
-
-
- rect = new Rectangle(llx + (3+i)*cell_w/12, lly+cell_h/2-6, llx + (3+i)*cell_w/12+12 ,lly+cell_h/2+6);
-
- RadioCheckField radio = new RadioCheckField(writer, rect, null, String.valueOf(i));
- radio.setBorderColor(GrayColor.GRAYBLACK);
- radio.setCheckType(RadioCheckField.TYPE_SQUARE);
-
-
- try {
- PdfFormField field = radio.getRadioField();
- radiogroup.addKid(field);
-
- writer.addAnnotation(radiogroup);
- }
-
- catch(IOException ioe) {
- throw new ExceptionConverter(ioe);
- }
- catch(DocumentException de) {
- throw new ExceptionConverter(de);
- }
- }
-
-
-
- }
-
-// /**
-// * Manipulates a PDF file src with the file dest as result
-// * @param src the original PDF
-// * @param dest the resulting PDF
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public void manipulatePdf(String src, String dest) throws IOException, DocumentException {
-// PdfReader reader = new PdfReader(src);
-// PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(dest));
-// AcroFields form = stamper.getAcroFields();
-// String[] radiostates = form.getAppearanceStates("language");
-// form.setField("language", radiostates[4]);
-// for (int i = 0; i < LANGUAGES.length; i++) {
-// String[] checkboxstates = form.getAppearanceStates("English");
-// form.setField(LANGUAGES[i], checkboxstates[i % 2 == 0 ? 1 : 0]);
-// }
-// stamper.close();
-// reader.close();
-//
-// PdfReader r = new PdfReader(dest);
-// AcroFields f = r.getAcroFields();
-// Set<String> fields = form.getFields().keySet();
-// for(String key: fields){
-// if(f.getFieldType(key)==AcroFields.FIELD_TYPE_RADIOBUTTON){
-// System.out.println(key);
-// System.out.println(f.getField(key));
-//
-// }
-// }
-// r.close();
-//
-// }
-//
-// /**
-// * Main method
-// * @param args no arguments needed
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public static void main(String[] args) throws IOException, DocumentException {
-// Questionnaire buttons = new Questionnaire();
-// buttons.createPdf(RESULT1);
-// buttons.manipulatePdf(RESULT1, RESULT2);
-// }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/d0/404d17a379a8001419a38fd8608ce0e6 b/.metadata/.plugins/org.eclipse.core.resources/.history/d0/404d17a379a8001419a38fd8608ce0e6
deleted file mode 100644
index 292b32a..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/d0/404d17a379a8001419a38fd8608ce0e6
+++ /dev/null
@@ -1,138 +0,0 @@
-package io.serializer.xml;
-
-import io.serializer.ParserNamespace;
-
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.Map;
-import java.util.Set;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
-import org.jdom2.Document;
-import org.jdom2.Element;
-import org.jdom2.JDOMException;
-
-import utils.StringUtils;
-import framework.Question;
-import framework.reply.ReplySurvey;
-
-public class XMLParserSurvey extends XMLParser{
-
- private static final Logger LOGGER = Logger.getLogger(XMLParserSurvey.class.getName());
-
- public String replyToString(ReplySurvey reply) throws IOException {
- Element elemRoot = new Element(ParserNamespace.CNAME_AWR_SURVEY);
- Document doc = new Document(elemRoot);
-
- // add questions
- Element elemQuestionList = new Element(ParserNamespace.CNAME_QUESTION_LIST);
- elemQuestionList.setText(concatQuestionList(reply.getQuestions()));
- elemRoot.addContent(elemQuestionList);
-
- // add locations
- Element elemLocationList = new Element(ParserNamespace.CNAME_LOCATION_LIST);
- elemLocationList.setText(concatLocationList(reply.getLocations()));
- elemRoot.addContent(elemLocationList);
-
-
- return documentToString(doc);
- }
-
-
- public ReplySurvey stringToReply(String replyString) {
- ReplySurvey reply = null;
-
- try {
- Document doc = stringToDocument(replyString);
- Element elemRoot = doc.getRootElement();
-
- Element elemQuestionList = elemRoot.getChild(ParserNamespace.CNAME_QUESTION_LIST);
- Element elemLocationList = elemRoot.getChild(ParserNamespace.CNAME_LOCATION_LIST);
-
-
- Map<Integer, Question> questions = parseConcatQuestionList(elemQuestionList.getText());
- ArrayList<String> locations = parseConcatLocationList(elemLocationList.getText());
-
-
- reply = new ReplySurvey(questions, locations);
- } catch (JDOMException e) {
- LOGGER.log(Level.SEVERE, null, e);
- }
-
- return reply;
- }
-
- private String concatLocationList(ArrayList<String> list) {
- if (list == null || list.isEmpty()) {
- return "";
- }
-
- return StringUtils.join(SEP_EXT, list);
- }
-
- private String concatQuestionList(Map<Integer, Question> map){
- if(map == null || map.isEmpty()){
- return "";
- }
- StringBuilder sb = new StringBuilder();
- Set<Integer> ids = map.keySet();
-
- boolean first = true;
- for (Integer id : ids) {
- if (first) {
- first = false;
- } else {
- sb.append(SEP_EXT);
- }
-
- sb.append(id).append(SEP_INT_QUESTIONS).append(map.get(id).getQuestion())
- .append(SEP_INT_QUESTIONS).append(map.get(id).getType());
-
- }
-
- return sb.toString();
-
- }
-
- private ArrayList<String> parseConcatLocationList(String val) {
- if (val.equals("")) {
- return new ArrayList<String>();
- }
- ArrayList<String> list = new ArrayList<String>();
-
- String[] strings = val.split(SEP_EXT, -1);
-
- for (int i = 0; i < strings.length; i++) {
- list.add(strings[i]);
- }
-
- return list;
- }
-
- private Map<Integer, Question> parseConcatQuestionList(String val){
- if (val.equals("")) {
- return new HashMap<Integer, Question>();
- }
-
- Map<Integer, Question> map = new HashMap<Integer, Question>();
-
- String[] strings = val.split(SEP_EXT,-1);
- System.out.println(strings[3]);
- for(int i = 0; i<strings.length; i++){
- if (strings[i].equals("")) map.put(null, null);
- else{
- String[] values = strings[i].split(SEP_INT_QUESTIONS);
- int id = Integer.parseInt(values[0]);
- String question = values[1];
- int type = Integer.parseInt(values[2]);
-
- map.put(id, new Question(type, question));
- }
- }
- return map;
-
- }
-
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/d3/0068233052ac001410e2e30aa85db9d1 b/.metadata/.plugins/org.eclipse.core.resources/.history/d3/0068233052ac001410e2e30aa85db9d1
deleted file mode 100644
index 7598528..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/d3/0068233052ac001410e2e30aa85db9d1
+++ /dev/null
@@ -1,906 +0,0 @@
-package ui;
-
-import io.ClientConnection;
-import io.CommAdapter;
-import io.Questionnaire;
-
-import java.awt.BorderLayout;
-import java.awt.Color;
-import java.awt.Component;
-import java.awt.Dimension;
-import java.awt.FlowLayout;
-import java.awt.Font;
-import java.awt.SystemColor;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.awt.event.WindowAdapter;
-import java.io.File;
-import java.io.IOException;
-import java.sql.SQLException;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.LinkedList;
-import java.util.Map;
-import java.util.Set;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
-import javax.swing.Box;
-import javax.swing.BoxLayout;
-import javax.swing.ButtonGroup;
-import javax.swing.DefaultComboBoxModel;
-import javax.swing.GroupLayout;
-import javax.swing.GroupLayout.Alignment;
-import javax.swing.ImageIcon;
-import javax.swing.JButton;
-import javax.swing.JComboBox;
-import javax.swing.JDialog;
-import javax.swing.JFileChooser;
-import javax.swing.JFrame;
-import javax.swing.JLabel;
-import javax.swing.JOptionPane;
-import javax.swing.JPanel;
-import javax.swing.JRadioButton;
-import javax.swing.JScrollPane;
-import javax.swing.JSeparator;
-import javax.swing.JTabbedPane;
-import javax.swing.JTextArea;
-import javax.swing.JTextPane;
-import javax.swing.JTree;
-import javax.swing.LayoutStyle.ComponentPlacement;
-import javax.swing.SwingConstants;
-import javax.swing.UIManager;
-import javax.swing.border.BevelBorder;
-import javax.swing.border.EmptyBorder;
-import javax.swing.border.EtchedBorder;
-import javax.swing.tree.DefaultMutableTreeNode;
-import javax.swing.tree.TreeModel;
-import javax.swing.tree.TreePath;
-
-import org.jpedal.examples.viewer.Commands;
-import org.jpedal.examples.viewer.Viewer;
-
-import utils.ClientProperties;
-
-import com.itextpdf.text.DocumentException;
-
-import database.DBconnectorClient;
-import framework.Diagnostic;
-import framework.MedUnit;
-import framework.Question;
-import framework.reply.ReplySurvey;
-import framework.test.TestName;
-import javax.swing.border.SoftBevelBorder;
-import javax.swing.border.LineBorder;
-
-/**
- *
- * @author youssef, raisaro
- */
-public class GUI extends javax.swing.JFrame {
-
- private static final Logger LOGGER = Logger.getLogger(GUI.class.getName());
-
- private static final long serialVersionUID = -4582280515597700650L;
-
- // configuration
- private ClientProperties props;
-
- private JTree jTree;
- private DBconnectorClient connectorClientDB;
- private LinkedList<Integer> patients;
-
- /** List of all relevant tests */
- private HashMap<String, TestName> testsByName;
- private Viewer viewer;
- private JDialog dialog;
- private JFrame frame;
- private boolean survey_submitted;
- private int close_trials;
- private Map<Integer, ButtonGroup> buttonGroupMap;
- private Questionnaire quest;
- private Map<Integer, Question> map;
- private Set<Integer> ids;
- private Map<String,String> answers;
- private Map<Integer, String> locations;
-
-
- /**
- * Creates new form GUI
- */
- public GUI(ClientProperties props){
-
- frame = this;
- this.props = props;
- this.connectorClientDB = new DBconnectorClient(props.getDbMsAccess());
- survey_submitted = false;
- close_trials = 0;
-
-
- try {
- initComponents();
-
- viewer = new Viewer(jScrollPane2, null);
- viewer.setupViewer();
-
- // create questionnare
-
-
- System.out.println("#of questions: " + ids.size());
-
-// viewer_q = new Viewer(jScrollPane4, null);
-// viewer_q.setupViewer();
-//
-// // specify file you wish to open (JPedal handles getting the byte data)
-// String filepathReport = "outputPDF/buttons_filled.pdf";
-//
-// // open generated PDF
-// // object must be either String in full filepath, or
-// // File object which can be relative
-// Object[] input = new Object[]{ new File(filepathReport) };
-// viewer_q.executeCommand(Commands.OPENFILE, input);
-
- JButton btnSubmitQuestionnaire = new JButton("Submit Questionnaire");
- btnSubmitQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- btnSubmitQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- submitButtonActionPerformed(arg0);
- }
- });
- JButton btnResetQuestionnaire = new JButton("Save as PDF");
- btnResetQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- savePDFButtonActionPerformed(arg0);
- }
- });
- btnResetQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- JPanel panel_button = new JPanel();
- panel_button.setLayout(new BoxLayout(panel_button, BoxLayout.X_AXIS));
-
- lblNewLabel_3 = new JLabel("");
- lblNewLabel_3.setIcon(new ImageIcon("res/location_icon.png"));
- panel_button.add(lblNewLabel_3);
-
-
-
- comboBox = new JComboBox<String>();
- comboBox.setFont(new Font("Tahoma", Font.BOLD, 12));
- comboBox.setModel(new DefaultComboBoxModel<String>(new String[] {"Select Location"}));
- for(Integer id_loc : locations.keySet()){
- comboBox.addItem(locations.get(id_loc));
- }
-
-
- panel_button.add(comboBox);
-
- rigidArea = Box.createRigidArea(new Dimension(10, 0));
- panel_button.add(rigidArea);
-
- lblNewLabel_1 = new JLabel("");
- lblNewLabel_1.setIcon(new ImageIcon("res/submit.png"));
- panel_button.add(lblNewLabel_1);
- panel_button.add(btnSubmitQuestionnaire);
-
- panel_button.add(Box.createRigidArea(new Dimension(10,0)));
-
- lblNewLabel_2 = new JLabel("");
- lblNewLabel_2.setIcon(new ImageIcon("res/pdf.png"));
- panel_button.add(lblNewLabel_2);
- panel_button.add(btnResetQuestionnaire);
- panel_button.setPreferredSize(new Dimension(211, 35));
- panel_button.validate();
-
- JPanel panel_3 = new JPanel();
- GroupLayout gl_panel = new GroupLayout(panel);
- gl_panel.setHorizontalGroup(
- gl_panel.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(63)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addGap(103)
- .addComponent(panel_button, GroupLayout.DEFAULT_SIZE, 498, Short.MAX_VALUE)
- .addGap(241))
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(41)
- .addGroup(gl_panel.createParallelGroup(Alignment.TRAILING)
- .addComponent(jScrollPane4, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE)
- .addComponent(panel_1, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE))
- .addGap(32))
- );
- gl_panel.setVerticalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(22)
- .addComponent(panel_1, GroupLayout.PREFERRED_SIZE, 235, GroupLayout.PREFERRED_SIZE)
- .addGap(37)
- .addComponent(jScrollPane4, GroupLayout.DEFAULT_SIZE, 379, Short.MAX_VALUE)
- .addGap(26)
- .addGroup(gl_panel.createParallelGroup(Alignment.LEADING)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(panel_button, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE)))
- );
- panel_3.setLayout(new BoxLayout(panel_3, BoxLayout.X_AXIS));
-
-
- panel.setLayout(gl_panel);
-
-
-
-
-
-
- /////////////////////////////////////////////////////////
- // display the tests available
-
- // get the tests
- HashMap<String, ArrayList<TestName>> testsRelevantByGroup = connectorClientDB.getRelevantTestsByGroup();
- ArrayList<String> groups = new ArrayList<String>(testsRelevantByGroup.keySet());
-
- // flatten hashmap into linkedlist
-// tests = new LinkedList<>();
- testsByName = new HashMap<String, TestName>();
- for (String group : groups) {
-// tests.addAll(testsRelevantByGroup.get(group));
- for (TestName test : testsRelevantByGroup.get(group)) {
- testsByName.put(test.getName(), test);
- }
- }
-
- // define tree structure of the tests
- DefaultMutableTreeNode root = new DefaultMutableTreeNode("All");
-
- for (String group : groups) {
- DefaultMutableTreeNode child = new DefaultMutableTreeNode(group);
- root.add(child);
-
- for (TestName test : testsRelevantByGroup.get(group)) {
- DefaultMutableTreeNode grandChild = new DefaultMutableTreeNode(test.getName());
- child.add(grandChild);
- }
- }
-
- // define swing object
- jTree = new JTree(root);
-
- for(int i=0;i<jTree.getRowCount();i++){
- jTree.expandRow(i);
- }
-
- jScrollPane3.setViewportView(jTree);
-// jTree.addTreeSelectionListener(new TreeSelectionListener() {
-//
-// @Override
-// public void valueChanged(TreeSelectionEvent e) {
-// tp = jTree.getSelectionPaths();
-// }
-// });
- jScrollPane3.setViewportView(jTree);
-
- /////////////////////////////////////////////////////////
- // display the patients registered
-
- patients = connectorClientDB.getPatients();
- for (Integer patientId : patients) {
- jComboBox1.addItem(patientId.toString());
- }
-
- } catch (SQLException ex) {
- Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex);
- ex.printStackTrace();
-// } catch (IOException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
-// } catch (DocumentException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
- }
-
- }
-
- /**
- * 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() {
-
- jPanel1 = new javax.swing.JPanel();
- jLabel2 = new javax.swing.JLabel();
- jLabel1 = new javax.swing.JLabel();
- jPanel2 = new javax.swing.JPanel();
- jComboBox1 = new javax.swing.JComboBox<String>();
- jButton1 = new javax.swing.JButton();
- jButton1.setFont(new Font("Tahoma", Font.BOLD, 12));
- jLabel3 = new javax.swing.JLabel();
- jLabel4 = new javax.swing.JLabel();
- jScrollPane3 = new javax.swing.JScrollPane();
- jScrollPane2 = new javax.swing.JScrollPane();
- jMenuBar1 = new javax.swing.JMenuBar();
- jMenu1 = new javax.swing.JMenu();
- jMenuItem1 = new javax.swing.JMenuItem();
- jMenu2 = new javax.swing.JMenu();
- dialog = new JDialog();
- tabbedPane = new JTabbedPane(JTabbedPane.TOP);
-
- setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
- addWindowListener(new WindowAdapter() {
- @Override
- public void windowClosing(java.awt.event.WindowEvent windowEvent) {
- if (!survey_submitted && close_trials <= 2){
- JOptionPane.showMessageDialog(frame, "Before closing the application, please fill in and submit the questionnaire.");
- close_trials++;
- tabbedPane.setSelectedIndex(1);
- }else{
- System.exit(0);
- }
- }
- });
- setTitle("HIV Pharmacogenomics\n");
-
- jLabel2.setIcon(new javax.swing.ImageIcon("res/shcs_logo2_small.gif")); // NOI18N
-
- jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
- jLabel1.setText("HIV Pharmacogenomics | Project #693");
-
- javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
- jPanel1.setLayout(jPanel1Layout);
- jPanel1Layout.setHorizontalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap(71, Short.MAX_VALUE)
- .addComponent(jLabel1)
- .addGap(18, 18, 18)
- .addComponent(jLabel2))
- );
- jPanel1Layout.setVerticalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jLabel1)
- .addGap(11, 11, 11))
- .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)
- );
-
- jPanel2.setBackground(new java.awt.Color(255, 255, 255));
- jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
-
- jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<String>(new String[]{"Select Patient"}));
-
- jButton1.setText("Run Test");
- jButton1.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton1ActionPerformed(evt);
- }
- });
-
- JLabel lblNewLabel = new JLabel("");
- lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
- lblNewLabel.setIcon(new javax.swing.ImageIcon("res/gears.png"));
-
-
-
- javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
- jPanel2Layout.setHorizontalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addComponent(jComboBox1, 0, 248, Short.MAX_VALUE)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addGap(75)
- .addGroup(jPanel2Layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jButton1)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 75, GroupLayout.PREFERRED_SIZE))
- .addContainerGap(98, Short.MAX_VALUE))
- );
- jPanel2Layout.setVerticalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addComponent(jComboBox1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED, 223, Short.MAX_VALUE)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jButton1)
- .addGap(19))
- );
- jPanel2.setLayout(jPanel2Layout);
-
- jLabel3.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel3.setText("Select Patient");
-
- jLabel4.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel4.setText("Select Test");
-
- jScrollPane3.setBackground(new java.awt.Color(255, 255, 255));
-
- jMenu1.setText("File");
-
- jMenuItem1.setText("Exit");
- jMenu1.add(jMenuItem1);
-
- jMenuBar1.add(jMenu1);
-
- jMenu2.setText("Edit");
- jMenuBar1.add(jMenu2);
-
- setJMenuBar(jMenuBar1);
-
-
-
- javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
- layout.setHorizontalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(layout.createParallelGroup(Alignment.LEADING, false)
- .addComponent(jLabel3)
- .addComponent(jLabel4)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, 244, Short.MAX_VALUE)
- .addComponent(jScrollPane3))
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 970, Short.MAX_VALUE))
- .addContainerGap())
- );
- layout.setVerticalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel4))
- .addPreferredGap(ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addComponent(jScrollPane3, GroupLayout.PREFERRED_SIZE, 388, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jLabel3)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 785, Short.MAX_VALUE))
- .addContainerGap())
- );
-
-
- jScrollPane2.setAutoscrolls(true);
- jScrollPane3.setAutoscrolls(true);
- tabbedPane.addTab("Report", new ImageIcon("res/report_icon.gif"), jScrollPane2, null);
- tabbedPane.setBackgroundAt(0, new Color(255, 255, 255));
-
- panel = new JPanel();
- tabbedPane.addTab("Survey", new ImageIcon("res/survey_icon.png"), panel, null);
- tabbedPane.setBackgroundAt(1, new Color(255, 255, 255));
- tabbedPane.setEnabledAt(1, true);
-
- panel_1 = new JPanel();
- panel_1.setBorder(new LineBorder(new Color(0, 0, 0), 2));
- panel_1.setBackground(SystemColor.control);
-
- JLabel label = new JLabel("");
- label.setIcon(new ImageIcon("res/shcs_logo2_medium.gif"));
-
- lblDearDoctor = new JLabel("Dear Doctor,");
- lblDearDoctor.setFont(new Font("Tahoma", Font.BOLD, 14));
-
- JScrollPane scrollPane = new JScrollPane();
- scrollPane.setBorder(null);
- GroupLayout gl_panel_1 = new GroupLayout(panel_1);
- gl_panel_1.setHorizontalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(Alignment.LEADING, gl_panel_1.createSequentialGroup()
- .addGap(25)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addComponent(lblDearDoctor)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 661, Short.MAX_VALUE))
- .addContainerGap())
- );
- gl_panel_1.setVerticalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addContainerGap()
- .addComponent(lblDearDoctor)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 203, Short.MAX_VALUE))
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(36)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 96, GroupLayout.PREFERRED_SIZE)))
- .addContainerGap())
- );
-
- JTextPane txtpnTodayYouAre = new JTextPane();
- txtpnTodayYouAre.setBorder(null);
- txtpnTodayYouAre.setText("Today you are receiving a pharmacogenetics report based on the genome of your patient. Because of its highly sensitive nature, " +
- "the genetic information you are provided with is processed in a privacy-preserving way. In particular, to protect patients’ genomic privacy, " +
- "their genetic and clinical data is stored encrypted at the SHCS data center, and securely analyzed through a sophisticated algorithm designed and developed at EPFL [1, 2]. " +
- "The actual clinical and genetic information is never revealed. Only the authorized users, such as you, can get some processed information, for example, the final result of a " +
- "pharmacogenetics risk test.\nThis mechanism protects the data against insiders or hackers trying to illegally access patients’ medical information, while still allowing authorized " +
- "users to obtain the information they need." +
- "\n\nTo help us understanding the importance of genomic privacy in the medical domain, and the impact of privacy-enhancing technologies in daily clinical practice, please complete the following survey.");
- txtpnTodayYouAre.setFont(new Font("Tahoma", Font.PLAIN, 13));
- txtpnTodayYouAre.setEditable(false);
- txtpnTodayYouAre.setBackground(SystemColor.control);
- scrollPane.setViewportView(txtpnTodayYouAre);
- panel_1.setLayout(gl_panel_1);
- jScrollPane4 = new javax.swing.JScrollPane();
- getContentPane().setLayout(layout);
-
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
- ReplySurvey replySurvey = commHandlerAdapter.callServiceSurvey();
-
- map = replySurvey.getQuestions();
- ids = map.keySet();
- locations = replySurvey.getLocations();
-
- panel_2 = new JPanel();
- panel_2.setBackground(Color.WHITE);
- panel_2.setBorder(new BevelBorder(BevelBorder.LOWERED, null, null, null, null));
- jScrollPane4.setViewportView(panel_2);
- panel_2.setLayout(new BoxLayout(panel_2, BoxLayout.Y_AXIS));
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
-
-
- for(Integer id : ids){
- ButtonGroup group = new ButtonGroup();
- JRadioButton r1 = new JRadioButton("1"); r1.setActionCommand("1"); r1.setBackground(Color.WHITE);
- JRadioButton r2 = new JRadioButton("2"); r2.setActionCommand("2"); r2.setBackground(Color.WHITE);
- JRadioButton r3 = new JRadioButton("3"); r3.setActionCommand("3"); r3.setBackground(Color.WHITE);
- JRadioButton r4 = new JRadioButton("4"); r4.setActionCommand("4"); r4.setBackground(Color.WHITE);
- JRadioButton r5 = new JRadioButton("5"); r5.setActionCommand("5"); r5.setBackground(Color.WHITE);
- group.add(r1);
- group.add(r2);
- group.add(r3);
- group.add(r4);
- group.add(r5);
- JPanel radio_panel = new JPanel();
- radio_panel.setLayout((new BoxLayout(radio_panel, BoxLayout.X_AXIS)));
- radio_panel.setBackground(Color.WHITE);
- radio_panel.setAlignmentX(Component.CENTER_ALIGNMENT);
- radio_panel.add(r1);
- radio_panel.add(r2);
- radio_panel.add(r3);
- radio_panel.add(r4);
- radio_panel.add(r5);
- radio_panel.doLayout();
- radio_panel.setPreferredSize(radio_panel.getPreferredSize());
- JTextArea question = new JTextArea(id + ") " + map.get(id).getQuestion());
- question.setLineWrap(true);
- question.setWrapStyleWord(true);
- question.setAlignmentX(Component.CENTER_ALIGNMENT);
- question.setFont(new Font("Tahoma", Font.PLAIN, 13));
-
- JPanel row_panel = new JPanel();
- row_panel.setLayout(new BoxLayout(row_panel, BoxLayout.X_AXIS));
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.add(question);
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.add(radio_panel);
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.setBackground(Color.WHITE);
-
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- panel_2.add(row_panel);
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
-// panel_2.add(radio_panel);
- panel_2.add(new JSeparator());
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
-// panel_2.setPreferredSize(panel_2.getPreferredSize());
- buttonGroupMap.put(id, group);
-
- }
-
-
-
- this.setSize(new Dimension(1200, 865));
-// pack();
- }// </editor-fold>//GEN-END:initComponents
-
-
- private void submitButtonActionPerformed(java.awt.event.ActionEvent evt){
-
- try{
- answers = new HashMap<String, String>();
- StringBuilder sb = new StringBuilder();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- sb.append(q).append(",");
- sb.append(bg.getSelection().getActionCommand()).append(";");
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- String answer = sb.toString();
- Integer id_loc = null;
- for(Integer i: locations.keySet()){
- if(locations.get(i).equals(comboBox.getSelectedItem().toString()))
- id_loc = i;
- }
-
- String id_p;
- if(jComboBox1.getSelectedItem().toString().equals("Select Patient"))
- id_p = "0";
- else
- id_p = jComboBox1.getSelectedItem().toString();
-
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
-
- String reply = commHandlerAdapter.callServiceSurveyAnswer(answer, id_loc.toString(), id_p);
-
- if(reply.equals("1")){
- survey_submitted = true;
-
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Congrats! Your aswers have been sent to the SHCS datacenter.",
- "Information Message",
- JOptionPane.INFORMATION_MESSAGE);
- }
- else{
- throw new IOException();
- }
-
-
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "The SHCS datacenter does not respond. Please save the survey and send it to jean.raisaro@epfl.ch.",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
- private void savePDFButtonActionPerformed(java.awt.event.ActionEvent evt){
- try {
-
- answers = new HashMap<String, String>();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- JFileChooser chooser = new JFileChooser();
- // Note: source for ExampleFileFilter can be found in FileChooserDemo,
- // under the demo/jfc directory in the JDK.
-
- int returnVal = chooser.showSaveDialog(this);
- System.out.println(returnVal);
- if(returnVal == JFileChooser.APPROVE_OPTION) {
- System.out.println("You chose to open this file: " +
- chooser.getSelectedFile().getPath());
- quest = new Questionnaire(chooser.getSelectedFile().getPath() + ".pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }else{
- quest = new Questionnaire("outputPDF/survey.pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }
-
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (DocumentException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (NullPointerException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
-
- private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
-
- JPanel contentPanel = new JPanel();
-
- dialog.setBounds(100, 100, 410, 80);
- dialog.getContentPane().setLayout(new BorderLayout());
- contentPanel.setLayout(new FlowLayout());
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- dialog.getContentPane().add(contentPanel, BorderLayout.CENTER);
- {
- JLabel label = new JLabel("Please wait...The overall computation can take few seconds");
- label.setHorizontalAlignment(SwingConstants.CENTER);
- label.setFont(new Font("Tahoma", Font.PLAIN, 12));
- contentPanel.add(label);
- }
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
- dialog.getContentPane().add(buttonPane, BorderLayout.SOUTH);
- }
- dialog.setLocationRelativeTo(this);
- dialog.setVisible(true);
-
- GUIWorker gw = new GUIWorker(this, props);
- Thread t = new Thread(gw);
- t.start();
-
- }
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JButton jButton1;
- private javax.swing.JComboBox<String> jComboBox1;
- private javax.swing.JLabel jLabel1;
- private javax.swing.JLabel jLabel2;
- private javax.swing.JLabel jLabel3;
- private javax.swing.JLabel jLabel4;
- private javax.swing.JMenu jMenu1;
- private javax.swing.JMenu jMenu2;
- private javax.swing.JMenuBar jMenuBar1;
- private javax.swing.JMenuItem jMenuItem1;
- private javax.swing.JPanel jPanel1;
- private javax.swing.JPanel jPanel2;
- private javax.swing.JScrollPane jScrollPane3;
- private javax.swing.JTabbedPane tabbedPane;
- private javax.swing.JScrollPane jScrollPane2;
- private javax.swing.JScrollPane jScrollPane4;
- private JPanel panel;
- private JPanel panel_1;
- private JPanel panel_2;
- private JLabel lblDearDoctor;
- private JLabel lblNewLabel_1;
- private JLabel lblNewLabel_2;
- private JLabel lblNewLabel_3;
- private JComboBox<String> comboBox;
- private Component rigidArea;
-
- // End of variables declaration//GEN-END:variables
-
-
- class GUIWorker implements Runnable{
-
- private JFrame mainFrame;
- private ClientProperties props;
- private MedUnit mu;
-
- public GUIWorker(GUI gui, ClientProperties props) {
- mainFrame = gui;
-
- this.props = props;
- this.mu = new MedUnit(props, 0);
- }
-
- @Override
- public void run() {
-
- try{
- int patientId = Integer.parseInt((String) jComboBox1.getSelectedItem());
-
- // convert selected tests to test identifiers
- ArrayList<TestName> selectedTests = new ArrayList<TestName>();
- for (String currentName : getSelectedTests()) {
- TestName currentTest = testsByName.get(currentName);
-
- if (currentTest == null) {
- throw new IllegalStateException("Trying to run unknown test: " + currentTest);
- }
-
- selectedTests.add(currentTest);
- }
-
- // run tests
- Diagnostic diagnostic = mu.runTests(patientId, selectedTests);
-
- // warn for tests with missing material
- warnFailedTests(diagnostic, selectedTests);
-
- // create report
- mu.createReport(patientId, selectedTests, diagnostic);
-
- dialog.setVisible(false);
-
- // specify file you wish to open (JPedal handles getting the byte data)
- String filepathReport = props.getPathPDF() + patientId + ".pdf";
-
- // open generated PDF
- // object must be either String in full filepath, or
- // File object which can be relative
- Object[] input = new Object[]{ new File(filepathReport) };
- viewer.executeCommand(Commands.OPENFILE, input);
-
- // display CAD result as bar plot
- if (diagnostic.hasCAD()) {
- System.out.println("CAD = " + diagnostic.getResultCAD());
- BarPlotFrame frame = new BarPlotFrame(diagnostic.getResultCAD(), patientId);
- frame.setVisible(true);
- frame.setAlwaysOnTop(true);
- }
-
-
- } catch (SQLException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Please select a patient.");
- }
-
- }
-
- private void warnFailedTests(Diagnostic diagnostic, ArrayList<TestName> selectedTests) {
- ArrayList<Integer> failedTests = diagnostic.getInvalidTests();
-
- if (!failedTests.isEmpty()) {
- String msg = "Could not complete tests: ";
- boolean first = true;
- for (TestName testName : selectedTests) {
- if (failedTests.contains(testName.getId())) {
- if (first) {
- first = false;
- } else {
- msg += ", ";
- }
- msg += testName.getName();
- }
- }
- displayError(msg);
- }
-
- }
-
- private void displayError(String msg) {
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- mainFrame,
- msg,
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
-
- private ArrayList<String> getSelectedTests() {
- ArrayList<String> tests = new ArrayList<String>();
-
- for (TreePath treePath : jTree.getSelectionPaths()) {
- tests.addAll(getChildrenTests(jTree.getModel(), treePath.getLastPathComponent()));
- }
-
- return tests;
- }
-
- private ArrayList<String> getChildrenTests(TreeModel model, Object node) {
- ArrayList<String> tests = new ArrayList<String>();
-
- if (model.isLeaf(node)) { // leaf
- DefaultMutableTreeNode leaf = (DefaultMutableTreeNode) node;
- tests.add(leaf.toString());
- }
- else { // iterate over children
- for (int i = 0; i < model.getChildCount(node); i++) {
- tests.addAll(getChildrenTests(model, model.getChild(node, i)));
- }
- }
-
- return tests;
- }
-
- }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/e2/70e70c886cac00141cc3aa66275e9c24 b/.metadata/.plugins/org.eclipse.core.resources/.history/d3/4064f6e954b80014199a8682e9990d0e
similarity index 74%
copy from .metadata/.plugins/org.eclipse.core.resources/.history/e2/70e70c886cac00141cc3aa66275e9c24
copy to .metadata/.plugins/org.eclipse.core.resources/.history/d3/4064f6e954b80014199a8682e9990d0e
index 8b30fef..79b414b 100644
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/e2/70e70c886cac00141cc3aa66275e9c24
+++ b/.metadata/.plugins/org.eclipse.core.resources/.history/d3/4064f6e954b80014199a8682e9990d0e
@@ -1,927 +1,942 @@
package ui;
import io.ClientConnection;
import io.CommAdapter;
import io.Questionnaire;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Font;
import java.awt.SystemColor;
+import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowAdapter;
import java.io.File;
import java.io.IOException;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.Map;
import java.util.Set;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.Box;
import javax.swing.BoxLayout;
import javax.swing.ButtonGroup;
import javax.swing.DefaultComboBoxModel;
import javax.swing.GroupLayout;
import javax.swing.GroupLayout.Alignment;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JDialog;
import javax.swing.JFileChooser;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JRadioButton;
import javax.swing.JScrollPane;
import javax.swing.JSeparator;
import javax.swing.JTabbedPane;
import javax.swing.JTextArea;
import javax.swing.JTextPane;
import javax.swing.JTree;
import javax.swing.LayoutStyle.ComponentPlacement;
import javax.swing.SwingConstants;
import javax.swing.border.EmptyBorder;
import javax.swing.border.LineBorder;
import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.tree.TreeModel;
import javax.swing.tree.TreePath;
import org.jpedal.examples.viewer.Commands;
import org.jpedal.examples.viewer.Viewer;
import utils.ClientProperties;
import com.itextpdf.text.DocumentException;
import database.DBconnectorClient;
import framework.Diagnostic;
import framework.MedUnit;
import framework.Question;
import framework.reply.ReplySurvey;
import framework.test.TestName;
+import javax.swing.JSplitPane;
+import java.awt.event.MouseAdapter;
+import java.awt.event.MouseEvent;
/**
*
- * @author youssef, raisaro
+ * @author raisaro
*/
public class GUI extends javax.swing.JFrame {
private static final Logger LOGGER = Logger.getLogger(GUI.class.getName());
private static final long serialVersionUID = -4582280515597700650L;
// configuration
private ClientProperties props;
private JTree jTree;
private DBconnectorClient connectorClientDB;
private LinkedList<Integer> patients;
/** List of all relevant tests */
private HashMap<String, TestName> testsByName;
private Viewer viewer;
private JDialog dialog;
private JFrame frame;
private boolean survey_submitted;
private int close_trials;
private Map<Integer, ButtonGroup> buttonGroupMap;
private Questionnaire quest;
private Map<Integer, Question> map;
private Set<Integer> ids;
private Map<String,String> answers;
private Map<Integer, String> locations;
+ private JButton btnSubmitQuestionnaire;
/**
* Creates new form GUI
*/
public GUI(ClientProperties props){
+ setLocationByPlatform(true);
+ setIconImage(Toolkit.getDefaultToolkit().getImage("res/shcs_logo2_icon.png"));
frame = this;
this.props = props;
this.connectorClientDB = new DBconnectorClient(props.getDbMsAccess());
survey_submitted = false;
close_trials = 0;
try {
initComponents();
viewer = new Viewer(jScrollPane2, null);
viewer.setupViewer();
- // create questionnare
-
+ // create questionnare
+
System.out.println("#of questions: " + ids.size());
-// viewer_q = new Viewer(jScrollPane4, null);
-// viewer_q.setupViewer();
-//
-// // specify file you wish to open (JPedal handles getting the byte data)
-// String filepathReport = "outputPDF/buttons_filled.pdf";
-//
-// // open generated PDF
-// // object must be either String in full filepath, or
-// // File object which can be relative
-// Object[] input = new Object[]{ new File(filepathReport) };
-// viewer_q.executeCommand(Commands.OPENFILE, input);
-
- JButton btnSubmitQuestionnaire = new JButton("Submit Questionnaire");
+
+ btnSubmitQuestionnaire = new JButton("Submit Questionnaire");
btnSubmitQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
btnSubmitQuestionnaire.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
submitButtonActionPerformed(arg0);
}
});
JButton btnResetQuestionnaire = new JButton("Save as PDF");
btnResetQuestionnaire.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
savePDFButtonActionPerformed(arg0);
}
});
btnResetQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
JPanel panel_button = new JPanel();
panel_button.setLayout(new BoxLayout(panel_button, BoxLayout.X_AXIS));
lblNewLabel_3 = new JLabel("");
lblNewLabel_3.setIcon(new ImageIcon("res/location_icon.png"));
panel_button.add(lblNewLabel_3);
comboBox = new JComboBox<String>();
comboBox.setFont(new Font("Tahoma", Font.BOLD, 12));
comboBox.setModel(new DefaultComboBoxModel<String>(new String[] {"Select Location"}));
for(Integer id_loc : locations.keySet()){
comboBox.addItem(locations.get(id_loc));
}
panel_button.add(comboBox);
rigidArea = Box.createRigidArea(new Dimension(10, 0));
panel_button.add(rigidArea);
lblNewLabel_1 = new JLabel("");
lblNewLabel_1.setIcon(new ImageIcon("res/submit.png"));
panel_button.add(lblNewLabel_1);
panel_button.add(btnSubmitQuestionnaire);
panel_button.add(Box.createRigidArea(new Dimension(10,0)));
lblNewLabel_2 = new JLabel("");
lblNewLabel_2.setIcon(new ImageIcon("res/pdf.png"));
panel_button.add(lblNewLabel_2);
panel_button.add(btnResetQuestionnaire);
panel_button.setPreferredSize(new Dimension(211, 35));
panel_button.validate();
- JPanel panel_3 = new JPanel();
+ splitPane = new JSplitPane();
+ splitPane.setOneTouchExpandable(true);
+ splitPane.setResizeWeight(0.52);
+ splitPane.setOrientation(JSplitPane.VERTICAL_SPLIT);
+
GroupLayout gl_panel = new GroupLayout(panel);
gl_panel.setHorizontalGroup(
- gl_panel.createParallelGroup(Alignment.TRAILING)
+ gl_panel.createParallelGroup(Alignment.LEADING)
.addGroup(gl_panel.createSequentialGroup()
- .addGap(63)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addGap(103)
- .addComponent(panel_button, GroupLayout.DEFAULT_SIZE, 498, Short.MAX_VALUE)
- .addGap(241))
+ .addGap(165)
+ .addComponent(panel_button, GroupLayout.DEFAULT_SIZE, 421, Short.MAX_VALUE)
+ .addGap(242))
.addGroup(gl_panel.createSequentialGroup()
- .addGap(41)
- .addGroup(gl_panel.createParallelGroup(Alignment.TRAILING)
- .addComponent(jScrollPane4, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE)
- .addComponent(panel_1, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE))
- .addGap(32))
+ .addContainerGap()
+ .addComponent(splitPane, GroupLayout.DEFAULT_SIZE, 738, Short.MAX_VALUE)
+ .addGap(80))
);
gl_panel.setVerticalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
+ gl_panel.createParallelGroup(Alignment.TRAILING)
.addGroup(gl_panel.createSequentialGroup()
- .addGap(22)
- .addComponent(panel_1, GroupLayout.PREFERRED_SIZE, 235, GroupLayout.PREFERRED_SIZE)
- .addGap(37)
- .addComponent(jScrollPane4, GroupLayout.DEFAULT_SIZE, 379, Short.MAX_VALUE)
- .addGap(26)
- .addGroup(gl_panel.createParallelGroup(Alignment.LEADING)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(panel_button, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE)))
+ .addContainerGap()
+ .addComponent(splitPane, GroupLayout.DEFAULT_SIZE, 603, Short.MAX_VALUE)
+ .addPreferredGap(ComponentPlacement.RELATED)
+ .addComponent(panel_button, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE)
+ .addGap(11))
+ );
+
+ panel_1 = new JPanel();
+ panel_1.setMinimumSize(new Dimension(10, 0));
+ panel_1.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
+ panel_1.setBackground(SystemColor.menu);
+ splitPane.setLeftComponent(panel_1);
+
+ label_1 = new JLabel("");
+ label_1.setIcon(new ImageIcon("res/shcs_logo2_medium.gif"));
+
+ label_2 = new JLabel("");
+ label_2.setIcon(new ImageIcon("res/EPFL_logo.png"));
+
+ label_3 = new JLabel("");
+ label_3.setIcon(new ImageIcon("res/chuv_logo.png"));
+
+ label_4 = new JLabel("Dear Doctor,");
+ label_4.setFont(new Font("Tahoma", Font.BOLD, 14));
+
+ scrollPane = new JScrollPane();
+ scrollPane.setBorder(null);
+ GroupLayout gl_panel_1 = new GroupLayout(panel_1);
+ gl_panel_1.setHorizontalGroup(
+ gl_panel_1.createParallelGroup(Alignment.LEADING)
+ .addGroup(gl_panel_1.createSequentialGroup()
+ .addGap(25)
+ .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
+ .addComponent(label_3)
+ .addComponent(label_2)
+ .addComponent(label_1, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE))
+ .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
+ .addGroup(gl_panel_1.createSequentialGroup()
+ .addGap(20)
+ .addComponent(label_4)
+ .addGap(109))
+ .addGroup(gl_panel_1.createSequentialGroup()
+ .addGap(10)
+ .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 557, Short.MAX_VALUE)
+ .addContainerGap())))
);
- panel_3.setLayout(new BoxLayout(panel_3, BoxLayout.X_AXIS));
+ gl_panel_1.setVerticalGroup(
+ gl_panel_1.createParallelGroup(Alignment.LEADING)
+ .addGroup(gl_panel_1.createSequentialGroup()
+ .addContainerGap()
+ .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
+ .addGroup(gl_panel_1.createSequentialGroup()
+ .addComponent(label_4)
+ .addPreferredGap(ComponentPlacement.UNRELATED)
+ .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 416, Short.MAX_VALUE))
+ .addGroup(gl_panel_1.createSequentialGroup()
+ .addGap(9)
+ .addComponent(label_1, GroupLayout.PREFERRED_SIZE, 96, GroupLayout.PREFERRED_SIZE)
+ .addGap(18)
+ .addComponent(label_2)
+ .addGap(28)
+ .addComponent(label_3)))
+ .addContainerGap(114, GroupLayout.PREFERRED_SIZE))
+ );
+
+ introduction = new JTextPane();
+ introduction.setBackground(SystemColor.control);
+ introduction.setContentType("text/html");
+ introduction.setText("You are receiving a pharmacogenetics report based on the genome of your patient. Because of its highly sensitive nature, the genetic information you are provided with is processed in a privacy-preserving way. In particular, to protect patients\u2019 genomic privacy, their genetic and clinical data are stored encrypted at the SHCS data center, and securely analyzed through a sophisticated algorithm designed and developed at EPFL [1, 2]. The actual clinical and genetic information is never revealed. Only the authorized users, such as you, can get some processed information, for example, the interpreted final result of a pharmacogenetics risk test.\r\nThis mechanism protects the data against insiders or hackers trying to illegally access patients\u2019 medical information, while still allowing authorized users to obtain the information they need.\r\n<br><br>\r\n<b>To help us better understanding the importance of genomic privacy in the medical domain, and the impact of privacy-enhancing technologies in daily clinical practice, please complete the following survey. Answers are on a scale from 1 (Strongly Disagree) to 5 (Strongly Agree).</b>\r\n<font size=\"2\">\r\n<br><br>\r\nNote: this work is part of Project #693, funded by the Swiss HIV Cohort. PIs: Prof. A. Telenti, formerly at CHUV, and Prof. J.-P. Hubaux, at EPFL.\r\n<br><br>\r\n[1] J. L. Raisaro, E. Ayday, P. J. McLaren, J.-P. Hubaux, and A. Telenti. Privacy-Preserving HIV Pharmacogenetics: A Real Use Case of Genomic Data Protection. GenoPri 2014<br>\r\n[2] E. Ayday, J. L. Raisaro, J. Rougemont, and J.-P. Hubaux. Protecting and Evaluating Genomic Privacy in Medical Tests and Personalized Medicine. WPES 2013\r\n</font>");
+ scrollPane.setViewportView(introduction);
+ panel_1.setLayout(gl_panel_1);
+
+ jScrollPane4 = new JScrollPane();
+ jScrollPane4.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
+ splitPane.setRightComponent(jScrollPane4);
+
+
+ jScrollPane4.setViewportView(panel_2);
+ javax.swing.SwingUtilities.invokeLater(new Runnable() {
+ public void run() {
+ jScrollPane4.getVerticalScrollBar().setValue(0);
+ }
+ });
+ introduction.setCaretPosition(0);
panel.setLayout(gl_panel);
/////////////////////////////////////////////////////////
// display the tests available
// get the tests
HashMap<String, ArrayList<TestName>> testsRelevantByGroup = connectorClientDB.getRelevantTestsByGroup();
ArrayList<String> groups = new ArrayList<String>(testsRelevantByGroup.keySet());
// flatten hashmap into linkedlist
// tests = new LinkedList<>();
testsByName = new HashMap<String, TestName>();
for (String group : groups) {
// tests.addAll(testsRelevantByGroup.get(group));
for (TestName test : testsRelevantByGroup.get(group)) {
testsByName.put(test.getName(), test);
}
}
// define tree structure of the tests
DefaultMutableTreeNode root = new DefaultMutableTreeNode("All");
for (String group : groups) {
DefaultMutableTreeNode child = new DefaultMutableTreeNode(group);
root.add(child);
for (TestName test : testsRelevantByGroup.get(group)) {
DefaultMutableTreeNode grandChild = new DefaultMutableTreeNode(test.getName());
child.add(grandChild);
}
}
// define swing object
jTree = new JTree(root);
+ jTree.setFont(new Font("Tahoma", Font.PLAIN, 11));
for(int i=0;i<jTree.getRowCount();i++){
jTree.expandRow(i);
}
jScrollPane3.setViewportView(jTree);
// jTree.addTreeSelectionListener(new TreeSelectionListener() {
//
// @Override
// public void valueChanged(TreeSelectionEvent e) {
// tp = jTree.getSelectionPaths();
// }
// });
jScrollPane3.setViewportView(jTree);
/////////////////////////////////////////////////////////
// display the patients registered
patients = connectorClientDB.getPatients();
for (Integer patientId : patients) {
jComboBox1.addItem(patientId.toString());
}
} catch (SQLException ex) {
Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex);
ex.printStackTrace();
// } catch (IOException e) {
// // TODO Auto-generated catch block
// e.printStackTrace();
// } catch (DocumentException e) {
// // TODO Auto-generated catch block
// e.printStackTrace();
}
}
/**
* 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() {
-
- jPanel1 = new javax.swing.JPanel();
- jLabel2 = new javax.swing.JLabel();
- jLabel1 = new javax.swing.JLabel();
jPanel2 = new javax.swing.JPanel();
jComboBox1 = new javax.swing.JComboBox<String>();
+ jComboBox1.setFont(new Font("Tahoma", Font.BOLD, 12));
jButton1 = new javax.swing.JButton();
jButton1.setFont(new Font("Tahoma", Font.BOLD, 12));
jLabel3 = new javax.swing.JLabel();
jLabel4 = new javax.swing.JLabel();
jScrollPane3 = new javax.swing.JScrollPane();
jScrollPane2 = new javax.swing.JScrollPane();
+ jScrollPane2.setMinimumSize(new Dimension(5, 5));
jMenuBar1 = new javax.swing.JMenuBar();
jMenu1 = new javax.swing.JMenu();
jMenuItem1 = new javax.swing.JMenuItem();
jMenu2 = new javax.swing.JMenu();
dialog = new JDialog();
tabbedPane = new JTabbedPane(JTabbedPane.TOP);
+ tabbedPane.setFont(new Font("Tahoma", Font.BOLD, 12));
setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
addWindowListener(new WindowAdapter() {
@Override
public void windowClosing(java.awt.event.WindowEvent windowEvent) {
if (!survey_submitted && close_trials <= 2){
JOptionPane.showMessageDialog(frame, "Before closing the application, please fill in and submit the questionnaire.");
close_trials++;
tabbedPane.setSelectedIndex(1);
}else{
System.exit(0);
}
}
});
- setTitle("HIV Pharmacogenomics\n");
-
- jLabel2.setIcon(new javax.swing.ImageIcon("res/shcs_logo2_small.gif")); // NOI18N
-
- jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
- jLabel1.setText("HIV Pharmacogenomics | Project #693");
-
- javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
- jPanel1.setLayout(jPanel1Layout);
- jPanel1Layout.setHorizontalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap(71, Short.MAX_VALUE)
- .addComponent(jLabel1)
- .addGap(18, 18, 18)
- .addComponent(jLabel2))
- );
- jPanel1Layout.setVerticalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jLabel1)
- .addGap(11, 11, 11))
- .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)
- );
+ setTitle("Privacy-Preserving HIV Pharmacogenomics\r\n");
jPanel2.setBackground(new java.awt.Color(255, 255, 255));
jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<String>(new String[]{"Select Patient"}));
jButton1.setText("Run Test");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});
JLabel lblNewLabel = new JLabel("");
lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
lblNewLabel.setIcon(new javax.swing.ImageIcon("res/gears.png"));
javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
jPanel2Layout.setHorizontalGroup(
jPanel2Layout.createParallelGroup(Alignment.LEADING)
.addComponent(jComboBox1, 0, 248, Short.MAX_VALUE)
.addGroup(jPanel2Layout.createSequentialGroup()
.addGap(75)
.addGroup(jPanel2Layout.createParallelGroup(Alignment.TRAILING)
.addComponent(jButton1)
.addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 75, GroupLayout.PREFERRED_SIZE))
.addContainerGap(98, Short.MAX_VALUE))
);
jPanel2Layout.setVerticalGroup(
jPanel2Layout.createParallelGroup(Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addComponent(jComboBox1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
.addPreferredGap(ComponentPlacement.RELATED, 223, Short.MAX_VALUE)
.addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE)
.addPreferredGap(ComponentPlacement.RELATED)
.addComponent(jButton1)
.addGap(19))
);
jPanel2.setLayout(jPanel2Layout);
jLabel3.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
jLabel3.setText("Select Patient");
jLabel4.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
jLabel4.setText("Select Test");
jScrollPane3.setBackground(new java.awt.Color(255, 255, 255));
jMenu1.setText("File");
jMenuItem1.setText("Exit");
jMenu1.add(jMenuItem1);
jMenuBar1.add(jMenu1);
jMenu2.setText("Edit");
jMenuBar1.add(jMenu2);
setJMenuBar(jMenuBar1);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
layout.setHorizontalGroup(
layout.createParallelGroup(Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addGroup(layout.createParallelGroup(Alignment.LEADING, false)
- .addComponent(jLabel3)
.addComponent(jLabel4)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, 244, Short.MAX_VALUE)
- .addComponent(jScrollPane3))
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 970, Short.MAX_VALUE))
- .addContainerGap())
+ .addComponent(jLabel3)
+ .addComponent(jScrollPane3, GroupLayout.DEFAULT_SIZE, 234, Short.MAX_VALUE)
+ .addComponent(jPanel2, 0, 0, Short.MAX_VALUE))
+ .addPreferredGap(ComponentPlacement.RELATED)
+ .addComponent(tabbedPane, GroupLayout.PREFERRED_SIZE, 751, Short.MAX_VALUE)
+ .addGap(19))
);
layout.setVerticalGroup(
- layout.createParallelGroup(Alignment.LEADING)
+ layout.createParallelGroup(Alignment.TRAILING)
.addGroup(layout.createSequentialGroup()
+ .addContainerGap()
.addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel4))
- .addPreferredGap(ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(Alignment.LEADING)
+ .addComponent(tabbedPane, Alignment.LEADING, GroupLayout.PREFERRED_SIZE, 687, Short.MAX_VALUE)
.addGroup(layout.createSequentialGroup()
- .addComponent(jScrollPane3, GroupLayout.PREFERRED_SIZE, 388, GroupLayout.PREFERRED_SIZE)
+ .addComponent(jLabel4)
+ .addPreferredGap(ComponentPlacement.RELATED)
+ .addComponent(jScrollPane3, GroupLayout.PREFERRED_SIZE, 356, GroupLayout.PREFERRED_SIZE)
.addPreferredGap(ComponentPlacement.RELATED)
.addComponent(jLabel3)
.addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 785, Short.MAX_VALUE))
+ .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, 283, Short.MAX_VALUE)))
.addContainerGap())
);
jScrollPane2.setAutoscrolls(true);
jScrollPane3.setAutoscrolls(true);
tabbedPane.addTab("Report", new ImageIcon("res/report_icon.gif"), jScrollPane2, null);
tabbedPane.setBackgroundAt(0, new Color(255, 255, 255));
panel = new JPanel();
+ panel.setPreferredSize(new Dimension(0, 0));
tabbedPane.addTab("Survey", new ImageIcon("res/survey_icon.png"), panel, null);
tabbedPane.setBackgroundAt(1, new Color(255, 255, 255));
tabbedPane.setEnabledAt(1, true);
-
- panel_1 = new JPanel();
- panel_1.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
- panel_1.setBackground(SystemColor.control);
-
- JLabel label = new JLabel("");
- label.setIcon(new ImageIcon("res/shcs_logo2_medium.gif"));
-
- lblDearDoctor = new JLabel("Dear Doctor,");
- lblDearDoctor.setFont(new Font("Tahoma", Font.BOLD, 14));
-
- JScrollPane scrollPane = new JScrollPane();
- scrollPane.setBorder(null);
- GroupLayout gl_panel_1 = new GroupLayout(panel_1);
- gl_panel_1.setHorizontalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(Alignment.LEADING, gl_panel_1.createSequentialGroup()
- .addGap(25)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addComponent(lblDearDoctor)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 661, Short.MAX_VALUE))
- .addContainerGap())
- );
- gl_panel_1.setVerticalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addContainerGap()
- .addComponent(lblDearDoctor)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 203, Short.MAX_VALUE))
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(36)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 96, GroupLayout.PREFERRED_SIZE)))
- .addContainerGap())
- );
-
- JTextPane txtpnTodayYouAre = new JTextPane();
- txtpnTodayYouAre.setBorder(null);
- txtpnTodayYouAre.setText("Today you are receiving a pharmacogenetics report based on the genome of your patient. Because of its highly sensitive nature, " +
- "the genetic information you are provided with is processed in a privacy-preserving way. In particular, to protect patients’ genomic privacy, " +
- "their genetic and clinical data is stored encrypted at the SHCS data center, and securely analyzed through a sophisticated algorithm designed and developed at EPFL [1, 2]. " +
- "The actual clinical and genetic information is never revealed. Only the authorized users, such as you, can get some processed information, for example, the final result of a " +
- "pharmacogenetics risk test.\nThis mechanism protects the data against insiders or hackers trying to illegally access patients’ medical information, while still allowing authorized " +
- "users to obtain the information they need." +
- "\n\nTo help us understanding the importance of genomic privacy in the medical domain, and the impact of privacy-enhancing technologies in daily clinical practice, please complete the following survey.");
- txtpnTodayYouAre.setFont(new Font("Tahoma", Font.PLAIN, 13));
- txtpnTodayYouAre.setEditable(false);
- txtpnTodayYouAre.setBackground(SystemColor.control);
- scrollPane.setViewportView(txtpnTodayYouAre);
- panel_1.setLayout(gl_panel_1);
- jScrollPane4 = new javax.swing.JScrollPane();
- jScrollPane4.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
getContentPane().setLayout(layout);
buttonGroupMap = new HashMap<Integer, ButtonGroup>();
ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
CommAdapter commHandlerAdapter = new CommAdapter(connection);
ReplySurvey replySurvey = commHandlerAdapter.callServiceSurvey();
map = replySurvey.getQuestions();
ids = map.keySet();
locations = replySurvey.getLocations();
+ buttonGroupMap = new HashMap<Integer, ButtonGroup>();
+
panel_2 = new JPanel();
- panel_2.setBackground(Color.WHITE);
+ panel_2.addMouseListener(new MouseAdapter() {
+ @Override
+ public void mouseClicked(MouseEvent arg0) {
+ splitPane.setDividerLocation(0.0);
+ }
+ });
panel_2.setBorder(null);
- jScrollPane4.setViewportView(panel_2);
+ panel_2.setBackground(Color.WHITE);
panel_2.setLayout(new BoxLayout(panel_2, BoxLayout.Y_AXIS));
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
-
+
+ JLabel expand_icon = new JLabel("");
+ expand_icon.setVerticalAlignment(SwingConstants.TOP);
+ expand_icon.setAlignmentY(Component.TOP_ALIGNMENT);
+ expand_icon.setIcon(new ImageIcon("res/expand_icon.jpg"));
+ panel_2.add(expand_icon);
+
+ //dynamic question generation
int type = 0;
for(Integer id : ids){
ButtonGroup group = new ButtonGroup();
- JRadioButton r1 = new JRadioButton("1"); r1.setActionCommand("1"); r1.setBackground(Color.WHITE);
- JRadioButton r2 = new JRadioButton("2"); r2.setActionCommand("2"); r2.setBackground(Color.WHITE);
- JRadioButton r3 = new JRadioButton("3"); r3.setActionCommand("3"); r3.setBackground(Color.WHITE);
- JRadioButton r4 = new JRadioButton("4"); r4.setActionCommand("4"); r4.setBackground(Color.WHITE);
- JRadioButton r5 = new JRadioButton("5"); r5.setActionCommand("5"); r5.setBackground(Color.WHITE);
+ JRadioButton r1 = new JRadioButton("1"); r1.setActionCommand("1"); r1.setBackground(Color.WHITE);
+ JRadioButton r2 = new JRadioButton("2"); r2.setActionCommand("2"); r2.setBackground(Color.WHITE);
+ JRadioButton r3 = new JRadioButton("3"); r3.setActionCommand("3"); r3.setBackground(Color.WHITE);
+ JRadioButton r4 = new JRadioButton("4"); r4.setActionCommand("4"); r4.setBackground(Color.WHITE);
+ JRadioButton r5 = new JRadioButton("5"); r5.setActionCommand("5"); r5.setBackground(Color.WHITE);
group.add(r1);
group.add(r2);
group.add(r3);
group.add(r4);
group.add(r5);
JPanel radio_panel = new JPanel();
radio_panel.setLayout((new BoxLayout(radio_panel, BoxLayout.X_AXIS)));
radio_panel.setBackground(Color.WHITE);
radio_panel.setAlignmentX(Component.CENTER_ALIGNMENT);
radio_panel.add(r1);
radio_panel.add(r2);
radio_panel.add(r3);
radio_panel.add(r4);
radio_panel.add(r5);
radio_panel.doLayout();
radio_panel.setPreferredSize(radio_panel.getPreferredSize());
JTextArea question = new JTextArea(id + ") " + map.get(id).getQuestion());
question.setEditable(false);
question.setLineWrap(true);
question.setWrapStyleWord(true);
question.setFont(new Font("Tahoma", Font.PLAIN, 13));
JPanel row_panel = new JPanel();
row_panel.setLayout(new BoxLayout(row_panel, BoxLayout.X_AXIS));
row_panel.add(Box.createRigidArea(new Dimension(20,0)));
row_panel.add(question);
row_panel.add(Box.createRigidArea(new Dimension(20,0)));
row_panel.add(radio_panel);
row_panel.add(Box.createRigidArea(new Dimension(20,0)));
row_panel.setBackground(Color.WHITE);
int type_new = map.get(id).getType();
if(type_new != type){
type = type_new;
JLabel question_group = new JLabel("");
switch(type){
case 1:
question_group.setText("Clinical Utility");
break;
case 2:
question_group.setText("Privacy Concerns");
break;
case 3:
question_group.setText("Usability Assessment");
break;
}
question_group.setAlignmentX(Component.CENTER_ALIGNMENT);
question_group.setFont(new Font("Tahoma", Font.BOLD, 13));
+ panel_2.add(new JSeparator());
panel_2.add(Box.createRigidArea(new Dimension(0,5)));
panel_2.add(question_group);
panel_2.add(Box.createRigidArea(new Dimension(0,5)));
panel_2.add(new JSeparator());
panel_2.add(Box.createRigidArea(new Dimension(0,5)));
}
panel_2.add(Box.createRigidArea(new Dimension(0,5)));
panel_2.add(row_panel);
panel_2.add(Box.createRigidArea(new Dimension(0,5)));
// panel_2.add(radio_panel);
- panel_2.add(new JSeparator());
+// panel_2.add(new JSeparator());
panel_2.add(Box.createRigidArea(new Dimension(0,5)));
// panel_2.setPreferredSize(panel_2.getPreferredSize());
buttonGroupMap.put(id, group);
}
+
+
+
-
- this.setSize(new Dimension(1300, 865));
-// pack();
+ this.setSize(new Dimension(1118, 768));
+// this.pack();
}// </editor-fold>//GEN-END:initComponents
private void submitButtonActionPerformed(java.awt.event.ActionEvent evt){
try{
answers = new HashMap<String, String>();
StringBuilder sb = new StringBuilder();
Set<Integer> questions_id = buttonGroupMap.keySet();
for(Integer q: questions_id){
ButtonGroup bg = buttonGroupMap.get(q);
sb.append(q).append(",");
sb.append(bg.getSelection().getActionCommand()).append(";");
answers.put(q.toString(),bg.getSelection().getActionCommand());
}
String answer = sb.toString();
Integer id_loc = null;
for(Integer i: locations.keySet()){
if(locations.get(i).equals(comboBox.getSelectedItem().toString()))
id_loc = i;
}
String id_p;
if(jComboBox1.getSelectedItem().toString().equals("Select Patient"))
id_p = "0";
else
id_p = jComboBox1.getSelectedItem().toString();
ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
CommAdapter commHandlerAdapter = new CommAdapter(connection);
String reply = commHandlerAdapter.callServiceSurveyAnswer(answer, id_loc.toString(), id_p);
if(reply.equals("1")){
survey_submitted = true;
dialog.setVisible(false);
JOptionPane.showMessageDialog(
this,
"Congrats! Your aswers have been sent to the SHCS datacenter.",
"Information Message",
JOptionPane.INFORMATION_MESSAGE);
+ btnSubmitQuestionnaire.setEnabled(false);
}
else{
throw new IOException();
}
} catch (NullPointerException e){
LOGGER.log(Level.SEVERE, null, e);
dialog.setVisible(false);
JOptionPane.showMessageDialog(
this,
"Please respond to all the questions!",
"Error Message",
JOptionPane.ERROR_MESSAGE);
} catch (IOException e) {
LOGGER.log(Level.SEVERE, null, e);
dialog.setVisible(false);
JOptionPane.showMessageDialog(
this,
"The SHCS datacenter does not respond. Please save the survey and send it to jean.raisaro@epfl.ch.",
"Error Message",
JOptionPane.ERROR_MESSAGE);
}
}
private void savePDFButtonActionPerformed(java.awt.event.ActionEvent evt){
try {
answers = new HashMap<String, String>();
Set<Integer> questions_id = buttonGroupMap.keySet();
for(Integer q: questions_id){
ButtonGroup bg = buttonGroupMap.get(q);
answers.put(q.toString(),bg.getSelection().getActionCommand());
}
JFileChooser chooser = new JFileChooser();
// Note: source for ExampleFileFilter can be found in FileChooserDemo,
// under the demo/jfc directory in the JDK.
int returnVal = chooser.showSaveDialog(this);
System.out.println(returnVal);
if(returnVal == JFileChooser.APPROVE_OPTION) {
System.out.println("You chose to open this file: " +
chooser.getSelectedFile().getPath());
quest = new Questionnaire(chooser.getSelectedFile().getPath() + ".pdf");
quest.createPdf(map, ids);
quest.writeAnswers(answers);
survey_submitted = true;
}else{
quest = new Questionnaire("outputPDF/survey.pdf");
quest.createPdf(map, ids);
quest.writeAnswers(answers);
survey_submitted = true;
}
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (DocumentException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (NullPointerException e) {
LOGGER.log(Level.SEVERE, null, e);
dialog.setVisible(false);
JOptionPane.showMessageDialog(
this,
"Please respond to all the questions!",
"Error Message",
JOptionPane.ERROR_MESSAGE);
}
}
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
JPanel contentPanel = new JPanel();
- dialog.setBounds(100, 100, 410, 80);
+ dialog.setBounds(100, 100, 420, 100);
dialog.getContentPane().setLayout(new BorderLayout());
contentPanel.setLayout(new FlowLayout());
contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
dialog.getContentPane().add(contentPanel, BorderLayout.CENTER);
{
- JLabel label = new JLabel("Please wait...The overall computation can take few seconds");
+ JLabel label = new JLabel("Please wait...The overall computation can take some seconds!");
+ JLabel label2 = new JLabel("Cryptographic operations are being performed at the SHCS...");
label.setHorizontalAlignment(SwingConstants.CENTER);
- label.setFont(new Font("Tahoma", Font.PLAIN, 12));
+ label.setFont(new Font("Tahoma", Font.BOLD, 12));
+ label2.setHorizontalAlignment(SwingConstants.CENTER);
+ label2.setFont(new Font("Tahoma", Font.PLAIN, 12));
contentPanel.add(label);
+ contentPanel.add(label2);
}
{
JPanel buttonPane = new JPanel();
buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
dialog.getContentPane().add(buttonPane, BorderLayout.SOUTH);
}
dialog.setLocationRelativeTo(this);
dialog.setVisible(true);
GUIWorker gw = new GUIWorker(this, props);
Thread t = new Thread(gw);
t.start();
}
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JButton jButton1;
private javax.swing.JComboBox<String> jComboBox1;
- private javax.swing.JLabel jLabel1;
- private javax.swing.JLabel jLabel2;
private javax.swing.JLabel jLabel3;
private javax.swing.JLabel jLabel4;
private javax.swing.JMenu jMenu1;
private javax.swing.JMenu jMenu2;
private javax.swing.JMenuBar jMenuBar1;
private javax.swing.JMenuItem jMenuItem1;
- private javax.swing.JPanel jPanel1;
private javax.swing.JPanel jPanel2;
private javax.swing.JScrollPane jScrollPane3;
private javax.swing.JTabbedPane tabbedPane;
private javax.swing.JScrollPane jScrollPane2;
- private javax.swing.JScrollPane jScrollPane4;
private JPanel panel;
- private JPanel panel_1;
- private JPanel panel_2;
- private JLabel lblDearDoctor;
private JLabel lblNewLabel_1;
private JLabel lblNewLabel_2;
private JLabel lblNewLabel_3;
private JComboBox<String> comboBox;
private Component rigidArea;
+ private JSplitPane splitPane;
+ private JPanel panel_1;
+ private JLabel label_1;
+ private JLabel label_2;
+ private JLabel label_3;
+ private JLabel label_4;
+ private JScrollPane scrollPane;
+ private JTextPane introduction;
+ private JScrollPane jScrollPane4;
+ private JPanel panel_2;
// End of variables declaration//GEN-END:variables
class GUIWorker implements Runnable{
private JFrame mainFrame;
private ClientProperties props;
private MedUnit mu;
public GUIWorker(GUI gui, ClientProperties props) {
mainFrame = gui;
this.props = props;
this.mu = new MedUnit(props, 0);
}
@Override
public void run() {
try{
int patientId = Integer.parseInt((String) jComboBox1.getSelectedItem());
// convert selected tests to test identifiers
ArrayList<TestName> selectedTests = new ArrayList<TestName>();
for (String currentName : getSelectedTests()) {
TestName currentTest = testsByName.get(currentName);
if (currentTest == null) {
throw new IllegalStateException("Trying to run unknown test: " + currentTest);
}
selectedTests.add(currentTest);
}
// run tests
Diagnostic diagnostic = mu.runTests(patientId, selectedTests);
// warn for tests with missing material
warnFailedTests(diagnostic, selectedTests);
// create report
mu.createReport(patientId, selectedTests, diagnostic);
dialog.setVisible(false);
// specify file you wish to open (JPedal handles getting the byte data)
String filepathReport = props.getPathPDF() + patientId + ".pdf";
// open generated PDF
// object must be either String in full filepath, or
// File object which can be relative
Object[] input = new Object[]{ new File(filepathReport) };
viewer.executeCommand(Commands.OPENFILE, input);
// display CAD result as bar plot
if (diagnostic.hasCAD()) {
System.out.println("CAD = " + diagnostic.getResultCAD());
BarPlotFrame frame = new BarPlotFrame(diagnostic.getResultCAD(), patientId);
frame.setVisible(true);
frame.setAlwaysOnTop(true);
}
} catch (SQLException e) {
LOGGER.log(Level.SEVERE, null, e);
displayError("Not able to connect to service. Please try again.");
} catch (IOException e) {
LOGGER.log(Level.SEVERE, null, e);
displayError("Not able to connect to service. Please try again.");
} catch (NullPointerException e){
LOGGER.log(Level.SEVERE, null, e);
- displayError("Please select a patient.");
+ displayError("Please select a patient and one or multiple tests.");
+ } catch (NumberFormatException e){
+ LOGGER.log(Level.SEVERE, null, e);
+ displayError("Please select a patient and one or multiple tests.");
}
}
private void warnFailedTests(Diagnostic diagnostic, ArrayList<TestName> selectedTests) {
ArrayList<Integer> failedTests = diagnostic.getInvalidTests();
if (!failedTests.isEmpty()) {
String msg = "Could not complete tests: ";
boolean first = true;
for (TestName testName : selectedTests) {
if (failedTests.contains(testName.getId())) {
if (first) {
first = false;
} else {
msg += ", ";
}
msg += testName.getName();
}
}
displayError(msg);
}
}
private void displayError(String msg) {
dialog.setVisible(false);
JOptionPane.showMessageDialog(
mainFrame,
msg,
"Error Message",
JOptionPane.ERROR_MESSAGE);
}
private ArrayList<String> getSelectedTests() {
ArrayList<String> tests = new ArrayList<String>();
for (TreePath treePath : jTree.getSelectionPaths()) {
tests.addAll(getChildrenTests(jTree.getModel(), treePath.getLastPathComponent()));
}
return tests;
}
private ArrayList<String> getChildrenTests(TreeModel model, Object node) {
ArrayList<String> tests = new ArrayList<String>();
if (model.isLeaf(node)) { // leaf
DefaultMutableTreeNode leaf = (DefaultMutableTreeNode) node;
tests.add(leaf.toString());
}
else { // iterate over children
for (int i = 0; i < model.getChildCount(node); i++) {
tests.addAll(getChildrenTests(model, model.getChild(node, i)));
}
}
return tests;
}
}
}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/d5/906b35a84dac001410e2e30aa85db9d1 b/.metadata/.plugins/org.eclipse.core.resources/.history/d5/906b35a84dac001410e2e30aa85db9d1
deleted file mode 100644
index f590660..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/d5/906b35a84dac001410e2e30aa85db9d1
+++ /dev/null
@@ -1,893 +0,0 @@
-package ui;
-
-import io.ClientConnection;
-import io.CommAdapter;
-import io.Questionnaire;
-
-import java.awt.BorderLayout;
-import java.awt.Color;
-import java.awt.Component;
-import java.awt.Dimension;
-import java.awt.FlowLayout;
-import java.awt.Font;
-import java.awt.SystemColor;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.awt.event.WindowAdapter;
-import java.io.File;
-import java.io.IOException;
-import java.sql.SQLException;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.LinkedList;
-import java.util.Map;
-import java.util.Set;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
-import javax.swing.Box;
-import javax.swing.BoxLayout;
-import javax.swing.ButtonGroup;
-import javax.swing.DefaultComboBoxModel;
-import javax.swing.GroupLayout;
-import javax.swing.GroupLayout.Alignment;
-import javax.swing.ImageIcon;
-import javax.swing.JButton;
-import javax.swing.JComboBox;
-import javax.swing.JDialog;
-import javax.swing.JFileChooser;
-import javax.swing.JFrame;
-import javax.swing.JLabel;
-import javax.swing.JOptionPane;
-import javax.swing.JPanel;
-import javax.swing.JRadioButton;
-import javax.swing.JScrollPane;
-import javax.swing.JSeparator;
-import javax.swing.JTabbedPane;
-import javax.swing.JTextArea;
-import javax.swing.JTextPane;
-import javax.swing.JTree;
-import javax.swing.LayoutStyle.ComponentPlacement;
-import javax.swing.SwingConstants;
-import javax.swing.UIManager;
-import javax.swing.border.BevelBorder;
-import javax.swing.border.EmptyBorder;
-import javax.swing.border.EtchedBorder;
-import javax.swing.tree.DefaultMutableTreeNode;
-import javax.swing.tree.TreeModel;
-import javax.swing.tree.TreePath;
-
-import org.jpedal.examples.viewer.Commands;
-import org.jpedal.examples.viewer.Viewer;
-
-import utils.ClientProperties;
-
-import com.itextpdf.text.DocumentException;
-
-import database.DBconnectorClient;
-import framework.Diagnostic;
-import framework.MedUnit;
-import framework.Question;
-import framework.reply.ReplySurvey;
-import framework.test.TestName;
-
-/**
- *
- * @author youssef, raisaro
- */
-public class GUI extends javax.swing.JFrame {
-
- private static final Logger LOGGER = Logger.getLogger(GUI.class.getName());
-
- private static final long serialVersionUID = -4582280515597700650L;
-
- // configuration
- private ClientProperties props;
-
- private JTree jTree;
- private DBconnectorClient connectorClientDB;
- private LinkedList<Integer> patients;
-
- /** List of all relevant tests */
- private HashMap<String, TestName> testsByName;
- private Viewer viewer;
- private JDialog dialog;
- private JFrame frame;
- private boolean survey_submitted;
- private int close_trials;
- private Map<Integer, ButtonGroup> buttonGroupMap;
- private Questionnaire quest;
- private Map<Integer, Question> map;
- private Set<Integer> ids;
- private Map<String,String> answers;
- private Map<Integer, String> locations;
-
-
- /**
- * Creates new form GUI
- */
- public GUI(ClientProperties props){
-
- frame = this;
- this.props = props;
- this.connectorClientDB = new DBconnectorClient(props.getDbMsAccess());
- survey_submitted = false;
- close_trials = 0;
-
-
- try {
- initComponents();
-
- viewer = new Viewer(jScrollPane2, null);
- viewer.setupViewer();
-
- // create questionnare
-
-
- System.out.println("#of questions: " + ids.size());
-
-// viewer_q = new Viewer(jScrollPane4, null);
-// viewer_q.setupViewer();
-//
-// // specify file you wish to open (JPedal handles getting the byte data)
-// String filepathReport = "outputPDF/buttons_filled.pdf";
-//
-// // open generated PDF
-// // object must be either String in full filepath, or
-// // File object which can be relative
-// Object[] input = new Object[]{ new File(filepathReport) };
-// viewer_q.executeCommand(Commands.OPENFILE, input);
-
- JButton btnSubmitQuestionnaire = new JButton("Submit Questionnaire");
- btnSubmitQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- btnSubmitQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- submitButtonActionPerformed(arg0);
- }
- });
- JButton btnResetQuestionnaire = new JButton("Save as PDF");
- btnResetQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- savePDFButtonActionPerformed(arg0);
- }
- });
- btnResetQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- JPanel panel_button = new JPanel();
- panel_button.setLayout(new BoxLayout(panel_button, BoxLayout.X_AXIS));
-
- lblNewLabel_3 = new JLabel("");
- lblNewLabel_3.setIcon(new ImageIcon("res/location_icon.png"));
- panel_button.add(lblNewLabel_3);
-
-
-
- comboBox = new JComboBox<String>();
- comboBox.setFont(new Font("Tahoma", Font.BOLD, 12));
- comboBox.setModel(new DefaultComboBoxModel<String>(new String[] {"Select Location"}));
- for(Integer id_loc : locations.keySet()){
- comboBox.addItem(locations.get(id_loc));
- }
-
-
- panel_button.add(comboBox);
-
- rigidArea = Box.createRigidArea(new Dimension(10, 0));
- panel_button.add(rigidArea);
-
- lblNewLabel_1 = new JLabel("");
- lblNewLabel_1.setIcon(new ImageIcon("res/submit.png"));
- panel_button.add(lblNewLabel_1);
- panel_button.add(btnSubmitQuestionnaire);
-
- panel_button.add(Box.createRigidArea(new Dimension(10,0)));
-
- lblNewLabel_2 = new JLabel("");
- lblNewLabel_2.setIcon(new ImageIcon("res/pdf.png"));
- panel_button.add(lblNewLabel_2);
- panel_button.add(btnResetQuestionnaire);
- panel_button.setPreferredSize(new Dimension(211, 35));
- panel_button.validate();
-
- JPanel panel_3 = new JPanel();
- GroupLayout gl_panel = new GroupLayout(panel);
- gl_panel.setHorizontalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(41)
- .addGroup(gl_panel.createParallelGroup(Alignment.TRAILING)
- .addComponent(jScrollPane4, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE)
- .addComponent(panel_1, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE))
- .addGap(32))
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(63)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addGap(103)
- .addComponent(panel_button, GroupLayout.DEFAULT_SIZE, 488, Short.MAX_VALUE)
- .addGap(241))
- );
- gl_panel.setVerticalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(22)
- .addComponent(panel_1, GroupLayout.DEFAULT_SIZE, 192, Short.MAX_VALUE)
- .addGap(18)
- .addComponent(jScrollPane4, GroupLayout.DEFAULT_SIZE, 437, Short.MAX_VALUE)
- .addGap(26)
- .addGroup(gl_panel.createParallelGroup(Alignment.LEADING)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(panel_button, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE)))
- );
- panel_3.setLayout(new BoxLayout(panel_3, BoxLayout.X_AXIS));
-
-
- panel.setLayout(gl_panel);
-
-
-
-
-
-
- /////////////////////////////////////////////////////////
- // display the tests available
-
- // get the tests
- HashMap<String, ArrayList<TestName>> testsRelevantByGroup = connectorClientDB.getRelevantTestsByGroup();
- ArrayList<String> groups = new ArrayList<String>(testsRelevantByGroup.keySet());
-
- // flatten hashmap into linkedlist
-// tests = new LinkedList<>();
- testsByName = new HashMap<String, TestName>();
- for (String group : groups) {
-// tests.addAll(testsRelevantByGroup.get(group));
- for (TestName test : testsRelevantByGroup.get(group)) {
- testsByName.put(test.getName(), test);
- }
- }
-
- // define tree structure of the tests
- DefaultMutableTreeNode root = new DefaultMutableTreeNode("All");
-
- for (String group : groups) {
- DefaultMutableTreeNode child = new DefaultMutableTreeNode(group);
- root.add(child);
-
- for (TestName test : testsRelevantByGroup.get(group)) {
- DefaultMutableTreeNode grandChild = new DefaultMutableTreeNode(test.getName());
- child.add(grandChild);
- }
- }
-
- // define swing object
- jTree = new JTree(root);
-
- for(int i=0;i<jTree.getRowCount();i++){
- jTree.expandRow(i);
- }
-
- jScrollPane3.setViewportView(jTree);
-// jTree.addTreeSelectionListener(new TreeSelectionListener() {
-//
-// @Override
-// public void valueChanged(TreeSelectionEvent e) {
-// tp = jTree.getSelectionPaths();
-// }
-// });
- jScrollPane3.setViewportView(jTree);
-
- /////////////////////////////////////////////////////////
- // display the patients registered
-
- patients = connectorClientDB.getPatients();
- for (Integer patientId : patients) {
- jComboBox1.addItem(patientId.toString());
- }
-
- } catch (SQLException ex) {
- Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex);
- ex.printStackTrace();
-// } catch (IOException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
-// } catch (DocumentException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
- }
-
- }
-
- /**
- * 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() {
-
- jPanel1 = new javax.swing.JPanel();
- jLabel2 = new javax.swing.JLabel();
- jLabel1 = new javax.swing.JLabel();
- jPanel2 = new javax.swing.JPanel();
- jComboBox1 = new javax.swing.JComboBox<String>();
- jButton1 = new javax.swing.JButton();
- jButton1.setFont(new Font("Tahoma", Font.BOLD, 12));
- jLabel3 = new javax.swing.JLabel();
- jLabel4 = new javax.swing.JLabel();
- jScrollPane3 = new javax.swing.JScrollPane();
- jScrollPane2 = new javax.swing.JScrollPane();
- jMenuBar1 = new javax.swing.JMenuBar();
- jMenu1 = new javax.swing.JMenu();
- jMenuItem1 = new javax.swing.JMenuItem();
- jMenu2 = new javax.swing.JMenu();
- dialog = new JDialog();
- tabbedPane = new JTabbedPane(JTabbedPane.TOP);
-
- setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
- addWindowListener(new WindowAdapter() {
- @Override
- public void windowClosing(java.awt.event.WindowEvent windowEvent) {
- if (!survey_submitted && close_trials <= 2){
- JOptionPane.showMessageDialog(frame, "Before closing the application, please fill in and submit the questionnaire.");
- close_trials++;
- tabbedPane.setSelectedIndex(1);
- }else{
- System.exit(0);
- }
- }
- });
- setTitle("HIV Pharmacogenomics\n");
-
- jLabel2.setIcon(new javax.swing.ImageIcon("res/shcs_logo2_small.gif")); // NOI18N
-
- jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
- jLabel1.setText("HIV Pharmacogenomics | Project #693");
-
- javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
- jPanel1.setLayout(jPanel1Layout);
- jPanel1Layout.setHorizontalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap(71, Short.MAX_VALUE)
- .addComponent(jLabel1)
- .addGap(18, 18, 18)
- .addComponent(jLabel2))
- );
- jPanel1Layout.setVerticalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jLabel1)
- .addGap(11, 11, 11))
- .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)
- );
-
- jPanel2.setBackground(new java.awt.Color(255, 255, 255));
- jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
-
- jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<String>(new String[]{"Select Patient"}));
-
- jButton1.setText("Run Test");
- jButton1.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton1ActionPerformed(evt);
- }
- });
-
- JLabel lblNewLabel = new JLabel("");
- lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
- lblNewLabel.setIcon(new javax.swing.ImageIcon("res/gears.png"));
-
-
-
- javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
- jPanel2Layout.setHorizontalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addComponent(jComboBox1, 0, 248, Short.MAX_VALUE)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addGap(75)
- .addGroup(jPanel2Layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jButton1)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 75, GroupLayout.PREFERRED_SIZE))
- .addContainerGap(98, Short.MAX_VALUE))
- );
- jPanel2Layout.setVerticalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addComponent(jComboBox1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED, 223, Short.MAX_VALUE)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jButton1)
- .addGap(19))
- );
- jPanel2.setLayout(jPanel2Layout);
-
- jLabel3.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel3.setText("Select Patient");
-
- jLabel4.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel4.setText("Select Test");
-
- jScrollPane3.setBackground(new java.awt.Color(255, 255, 255));
-
- jMenu1.setText("File");
-
- jMenuItem1.setText("Exit");
- jMenu1.add(jMenuItem1);
-
- jMenuBar1.add(jMenu1);
-
- jMenu2.setText("Edit");
- jMenuBar1.add(jMenu2);
-
- setJMenuBar(jMenuBar1);
-
-
-
- javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
- layout.setHorizontalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(layout.createParallelGroup(Alignment.LEADING, false)
- .addComponent(jLabel3)
- .addComponent(jLabel4)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, 244, Short.MAX_VALUE)
- .addComponent(jScrollPane3))
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 970, Short.MAX_VALUE))
- .addContainerGap())
- );
- layout.setVerticalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel4))
- .addPreferredGap(ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addComponent(jScrollPane3, GroupLayout.PREFERRED_SIZE, 388, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jLabel3)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 785, Short.MAX_VALUE))
- .addContainerGap())
- );
-
-
- jScrollPane2.setAutoscrolls(true);
- jScrollPane3.setAutoscrolls(true);
- tabbedPane.addTab("Report", new ImageIcon("res/report_icon.gif"), jScrollPane2, null);
- tabbedPane.setBackgroundAt(0, new Color(255, 255, 255));
-
- panel = new JPanel();
- tabbedPane.addTab("Survey", new ImageIcon("res/survey_icon.png"), panel, null);
- tabbedPane.setBackgroundAt(1, new Color(255, 255, 255));
- tabbedPane.setEnabledAt(1, true);
-
- panel_1 = new JPanel();
- panel_1.setBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null));
- panel_1.setBackground(UIManager.getColor("Button.background"));
-
- JLabel label = new JLabel("");
- label.setIcon(new ImageIcon("res/shcs_logo2_medium.gif"));
-
- lblDearDoctor = new JLabel("Dear Doctor,");
- lblDearDoctor.setFont(new Font("Tahoma", Font.BOLD, 14));
-
- JScrollPane scrollPane = new JScrollPane();
- scrollPane.setBorder(null);
- GroupLayout gl_panel_1 = new GroupLayout(panel_1);
- gl_panel_1.setHorizontalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(25)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 666, Short.MAX_VALUE)
- .addComponent(lblDearDoctor))
- .addContainerGap())
- );
- gl_panel_1.setVerticalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(22)
- .addComponent(lblDearDoctor)
- .addGap(18)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 120, Short.MAX_VALUE)
- .addContainerGap())
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(36)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 96, GroupLayout.PREFERRED_SIZE)
- .addContainerGap(56, Short.MAX_VALUE))
- );
-
- JTextPane txtpnTodayYouAre = new JTextPane();
- txtpnTodayYouAre.setBorder(null);
- txtpnTodayYouAre.setText("Today you are receiving a pharmacogenetic report based on the genetic information of your patient. Because the human genome contains extremely private and sensitive information of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier, it must be managed with care.\r\nToday you are receiving a pharmacogenetic report based on the genetic information of your patient. Because the human genome contains extremely private and sensitive information of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier, it must be managed with care.\r\nToday you are receiving a pharmacogenetic report based on the genetic information of your patient. Because the human genome contains extremely private and sensitive information of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier, it must be managed with care.");
- txtpnTodayYouAre.setFont(new Font("Tahoma", Font.PLAIN, 13));
- txtpnTodayYouAre.setEditable(false);
- txtpnTodayYouAre.setBackground(SystemColor.menu);
- scrollPane.setViewportView(txtpnTodayYouAre);
- panel_1.setLayout(gl_panel_1);
- jScrollPane4 = new javax.swing.JScrollPane();
- getContentPane().setLayout(layout);
-
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
- ReplySurvey replySurvey = commHandlerAdapter.callServiceSurvey();
-
- map = replySurvey.getQuestions();
- ids = map.keySet();
- locations = replySurvey.getLocations();
-
- panel_2 = new JPanel();
- panel_2.setBackground(Color.WHITE);
- panel_2.setBorder(new BevelBorder(BevelBorder.LOWERED, null, null, null, null));
- jScrollPane4.setViewportView(panel_2);
- panel_2.setLayout(new BoxLayout(panel_2, BoxLayout.Y_AXIS));
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
-
-
- for(Integer id : ids){
- ButtonGroup group = new ButtonGroup();
- JRadioButton r1 = new JRadioButton("1"); r1.setActionCommand("1"); r1.setBackground(Color.WHITE);
- JRadioButton r2 = new JRadioButton("2"); r2.setActionCommand("2"); r2.setBackground(Color.WHITE);
- JRadioButton r3 = new JRadioButton("3"); r3.setActionCommand("3"); r3.setBackground(Color.WHITE);
- JRadioButton r4 = new JRadioButton("4"); r4.setActionCommand("4"); r4.setBackground(Color.WHITE);
- JRadioButton r5 = new JRadioButton("5"); r5.setActionCommand("5"); r5.setBackground(Color.WHITE);
- group.add(r1);
- group.add(r2);
- group.add(r3);
- group.add(r4);
- group.add(r5);
- JPanel radio_panel = new JPanel();
- radio_panel.setLayout((new BoxLayout(radio_panel, BoxLayout.X_AXIS)));
- radio_panel.setBackground(Color.WHITE);
- radio_panel.setAlignmentX(Component.CENTER_ALIGNMENT);
- radio_panel.add(r1);
- radio_panel.add(r2);
- radio_panel.add(r3);
- radio_panel.add(r4);
- radio_panel.add(r5);
- radio_panel.doLayout();
- radio_panel.setPreferredSize(radio_panel.getPreferredSize());
- JTextArea question = new JTextArea(id + ") " + map.get(id).getQuestion());
- question.setLineWrap(true);
- question.setWrapStyleWord(true);
- question.setAlignmentX(Component.CENTER_ALIGNMENT);
- question.setFont(new Font("Tahoma", Font.PLAIN, 13));
-// JPanel row_panel = new JPanel();
-// row_panel.setLayout(new BoxLayout(row_panel, BoxLayout.X_AXIS));
-// row_panel.add(question);
-// row_panel.add(Box.createRigidArea(new Dimension(10,0)));
-// row_panel.add(radio_panel);
-
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- panel_2.add(row_panel);
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- panel_2.add(radio_panel);
- panel_2.add(new JSeparator());
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- panel_2.setPreferredSize(panel_2.getPreferredSize());
- buttonGroupMap.put(id, group);
-
- }
-
-
-
- this.setSize(new Dimension(1200, 865));
-// pack();
- }// </editor-fold>//GEN-END:initComponents
-
-
- private void submitButtonActionPerformed(java.awt.event.ActionEvent evt){
-
- try{
- answers = new HashMap<String, String>();
- StringBuilder sb = new StringBuilder();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- sb.append(q).append(",");
- sb.append(bg.getSelection().getActionCommand()).append(";");
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- String answer = sb.toString();
- Integer id_loc = null;
- for(Integer i: locations.keySet()){
- if(locations.get(i).equals(comboBox.getSelectedItem().toString()))
- id_loc = i;
- }
-
- String id_p;
- if(jComboBox1.getSelectedItem().toString().equals("Select Patient"))
- id_p = "0";
- else
- id_p = jComboBox1.getSelectedItem().toString();
-
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
-
- String reply = commHandlerAdapter.callServiceSurveyAnswer(answer, id_loc.toString(), id_p);
-
- if(reply.equals("1")){
- survey_submitted = true;
-
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Congrats! Your aswers have been sent to the SHCS datacenter.",
- "Information Message",
- JOptionPane.INFORMATION_MESSAGE);
- }
- else{
- throw new IOException();
- }
-
-
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "The SHCS datacenter does not respond. Please save the survey and send it to jean.raisaro@epfl.ch.",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
- private void savePDFButtonActionPerformed(java.awt.event.ActionEvent evt){
- try {
-
- answers = new HashMap<String, String>();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- JFileChooser chooser = new JFileChooser();
- // Note: source for ExampleFileFilter can be found in FileChooserDemo,
- // under the demo/jfc directory in the JDK.
-
- int returnVal = chooser.showSaveDialog(this);
- System.out.println(returnVal);
- if(returnVal == JFileChooser.APPROVE_OPTION) {
- System.out.println("You chose to open this file: " +
- chooser.getSelectedFile().getPath());
- quest = new Questionnaire(chooser.getSelectedFile().getPath() + ".pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }else{
- quest = new Questionnaire("outputPDF/survey.pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }
-
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (DocumentException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (NullPointerException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
-
- private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
-
- JPanel contentPanel = new JPanel();
-
- dialog.setBounds(100, 100, 410, 80);
- dialog.getContentPane().setLayout(new BorderLayout());
- contentPanel.setLayout(new FlowLayout());
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- dialog.getContentPane().add(contentPanel, BorderLayout.CENTER);
- {
- JLabel label = new JLabel("Please wait...The overall computation can take few seconds");
- label.setHorizontalAlignment(SwingConstants.CENTER);
- label.setFont(new Font("Tahoma", Font.PLAIN, 12));
- contentPanel.add(label);
- }
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
- dialog.getContentPane().add(buttonPane, BorderLayout.SOUTH);
- }
- dialog.setLocationRelativeTo(this);
- dialog.setVisible(true);
-
- GUIWorker gw = new GUIWorker(this, props);
- Thread t = new Thread(gw);
- t.start();
-
- }
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JButton jButton1;
- private javax.swing.JComboBox<String> jComboBox1;
- private javax.swing.JLabel jLabel1;
- private javax.swing.JLabel jLabel2;
- private javax.swing.JLabel jLabel3;
- private javax.swing.JLabel jLabel4;
- private javax.swing.JMenu jMenu1;
- private javax.swing.JMenu jMenu2;
- private javax.swing.JMenuBar jMenuBar1;
- private javax.swing.JMenuItem jMenuItem1;
- private javax.swing.JPanel jPanel1;
- private javax.swing.JPanel jPanel2;
- private javax.swing.JScrollPane jScrollPane3;
- private javax.swing.JTabbedPane tabbedPane;
- private javax.swing.JScrollPane jScrollPane2;
- private javax.swing.JScrollPane jScrollPane4;
- private JPanel panel;
- private JPanel panel_1;
- private JPanel panel_2;
- private JLabel lblDearDoctor;
- private JLabel lblNewLabel_1;
- private JLabel lblNewLabel_2;
- private JLabel lblNewLabel_3;
- private JComboBox<String> comboBox;
- private Component rigidArea;
-
- // End of variables declaration//GEN-END:variables
-
-
- class GUIWorker implements Runnable{
-
- private JFrame mainFrame;
- private ClientProperties props;
- private MedUnit mu;
-
- public GUIWorker(GUI gui, ClientProperties props) {
- mainFrame = gui;
-
- this.props = props;
- this.mu = new MedUnit(props, 0);
- }
-
- @Override
- public void run() {
-
- try{
- int patientId = Integer.parseInt((String) jComboBox1.getSelectedItem());
-
- // convert selected tests to test identifiers
- ArrayList<TestName> selectedTests = new ArrayList<TestName>();
- for (String currentName : getSelectedTests()) {
- TestName currentTest = testsByName.get(currentName);
-
- if (currentTest == null) {
- throw new IllegalStateException("Trying to run unknown test: " + currentTest);
- }
-
- selectedTests.add(currentTest);
- }
-
- // run tests
- Diagnostic diagnostic = mu.runTests(patientId, selectedTests);
-
- // warn for tests with missing material
- warnFailedTests(diagnostic, selectedTests);
-
- // create report
- mu.createReport(patientId, selectedTests, diagnostic);
-
- dialog.setVisible(false);
-
- // specify file you wish to open (JPedal handles getting the byte data)
- String filepathReport = props.getPathPDF() + patientId + ".pdf";
-
- // open generated PDF
- // object must be either String in full filepath, or
- // File object which can be relative
- Object[] input = new Object[]{ new File(filepathReport) };
- viewer.executeCommand(Commands.OPENFILE, input);
-
- // display CAD result as bar plot
- if (diagnostic.hasCAD()) {
- System.out.println("CAD = " + diagnostic.getResultCAD());
- BarPlotFrame frame = new BarPlotFrame(diagnostic.getResultCAD(), patientId);
- frame.setVisible(true);
- frame.setAlwaysOnTop(true);
- }
-
-
- } catch (SQLException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Please select a patient.");
- }
-
- }
-
- private void warnFailedTests(Diagnostic diagnostic, ArrayList<TestName> selectedTests) {
- ArrayList<Integer> failedTests = diagnostic.getInvalidTests();
-
- if (!failedTests.isEmpty()) {
- String msg = "Could not complete tests: ";
- boolean first = true;
- for (TestName testName : selectedTests) {
- if (failedTests.contains(testName.getId())) {
- if (first) {
- first = false;
- } else {
- msg += ", ";
- }
- msg += testName.getName();
- }
- }
- displayError(msg);
- }
-
- }
-
- private void displayError(String msg) {
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- mainFrame,
- msg,
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
-
- private ArrayList<String> getSelectedTests() {
- ArrayList<String> tests = new ArrayList<String>();
-
- for (TreePath treePath : jTree.getSelectionPaths()) {
- tests.addAll(getChildrenTests(jTree.getModel(), treePath.getLastPathComponent()));
- }
-
- return tests;
- }
-
- private ArrayList<String> getChildrenTests(TreeModel model, Object node) {
- ArrayList<String> tests = new ArrayList<String>();
-
- if (model.isLeaf(node)) { // leaf
- DefaultMutableTreeNode leaf = (DefaultMutableTreeNode) node;
- tests.add(leaf.toString());
- }
- else { // iterate over children
- for (int i = 0; i < model.getChildCount(node); i++) {
- tests.addAll(getChildrenTests(model, model.getChild(node, i)));
- }
- }
-
- return tests;
- }
-
- }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/d8/10de7646b2a7001417ceadf0100b5ef7 b/.metadata/.plugins/org.eclipse.core.resources/.history/d8/10de7646b2a7001417ceadf0100b5ef7
deleted file mode 100644
index e69de29..0000000
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/da/604ab29449ac001410e2e30aa85db9d1 b/.metadata/.plugins/org.eclipse.core.resources/.history/da/604ab29449ac001410e2e30aa85db9d1
deleted file mode 100644
index 211bc40..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/da/604ab29449ac001410e2e30aa85db9d1
+++ /dev/null
@@ -1,71 +0,0 @@
-package io;
-
-import io.serializer.url.URLParserDecrypt;
-import io.serializer.url.URLParserMaterial;
-import io.serializer.xml.XMLParserDecrypt;
-import io.serializer.xml.XMLParserMaterial;
-import io.serializer.xml.XMLParserSurvey;
-
-import java.util.logging.Logger;
-
-import framework.Type;
-import framework.reply.ReplyDecryption;
-import framework.reply.ReplyMaterial;
-import framework.reply.ReplySurvey;
-import framework.request.RequestDecryption;
-import framework.request.RequestMaterial;
-
-public class CommAdapter {
-
- @SuppressWarnings("unused")
- private static final Logger LOGGER = Logger.getLogger(CommAdapter.class.getName());
-
- public ClientConnection connectSPU = null;
-
- public CommAdapter(ClientConnection connectSPU) {
- this.connectSPU = connectSPU;
- }
-
- public ReplyDecryption callServiceDecrypt(RequestDecryption rqtDecrypt) {
- String requestString = URLParserDecrypt.requestToString(rqtDecrypt);
-// String replyString = "<awr_decrypt><patient>30351</patient><v_timestamp>1417188729390</v_timestamp><decrypt_val>,,,,,,,,,,,,,,,,2,AwHR3OO0/hkwgEHluLDFLtn4aaTBAwBEJjJpMegGa29ASgtyt1ha2OOyxvEvNgkIaY0xWXtTmqrqhSBKDG6J7Lps0g==,AwE/oifhonvUZDA4mqRK8K1WCkoepEuL9SidjdFXMNNZQXCMUvVN6pBUYVFgJeFX6mT2jruK8ic3y6yI14PfKl/Pvg==,AgBHs6HGF9AYNc5RlFTGv025WEaT91i/MPy+HXqhvHOrp0Ol9/aKyvv2BgAzeAdsdSEbVs2sahiyL/kbKjeUoI9tsA==,,,,,,,,,,,,,2,AgHIofEmf4aJMLBnKAY3/8WcLXUETF4y/68fzZR6hsS5btZTyI0E4ZTltDzV6hBzIT14cC4S/BMclo1aoLt5C9f+Cg==,AgDOXZAZAwO4KXslqU1wKctrVlH8CcGvpO8gGrPl3YjrY8SR3a6gStvZvjcUKXhvtDkRwSLAIkD3lFrKSXWestHSqQ==,AgG7Y5so9ZTRng2Xm3ziWx3+7zfaVLkIJ2v7g+qEUx5Vl2/udDOcg/was8W6qbKYeo/W0EGTlNXKTOdIatGVxyuoZA==,,,,,2,AgDAVy0/nE6X4iAengG9lCiYEBMtK6rAAiy7OwC7U/QSbokiEzH0RafH7rb+5L5R/ii9/3kZCcKmgOIoPzkmeloDfg==,AgHuvmLAeIFYm4ObEBO2v9xTK6tjYfdh+x4kwULBpDNlUiW4kNNaeoeziRA7nlRvcSfxPlR070N/3qzBMu3EKZ2csQ==,AgDk/CzCL4XUobuNaLsvrH5s0COMKYBqY/18YRR0d7mIsVVYrKVGF+IWnEluhbLt+BoRBdvL5UElgroyORJpiKz06w==,,,,,2,AgH0nW+2h+vcOZgPe3uR7jEHmEPi+g4izQ3OIU9An2vekwbG1liBFgTo33pEhyXhNWPhGCbSb73sJ7pt0JLL+hhWMw==,AgHG039OnpvmllkV6QBsmoMdqISrRuW2q5M3jfUp5TUbU6F/3S2FK1iSVKWgTsI291re6lz6KH5d8rWrnoCAozhIeg==,AwGjmnLUMd42F7a/tsSkeqcxoHMAXNKdvF4kOXoAxmc6ZSxaUhzkGkcgNOO8SFNiWqTKgtZCffJ7hfI0voAUX0TD1w==,,,,,2,AwHfYRjQFscHzOvVozackTaM3sybOjyd2aLc4B+WQ7KiWHoGKkzQScoDiy8hiA2cJpv8ngfitTqJRLlyegvuM+Ietw==,AwAP92OqrJFpFmdrMUUx6FeFhwVLYtAsfw3sem2RYu7ljPry+uJnvluuzTvVaFhs8BAAD8VBFs1vqrSHyQEq8Ocsmw==,AwDNXg/JA4QXA6wu30DUE7peOk1a10aHbd38iwjN1Q0DKy3BqS36+EQKg5hbwELxN2+/Yu4UA1IKWYJI0zNs6TJUtA==,,,,,2,AwBWFv3ivyQz4CGIilJ7CVtpQGOs1tnIW+0uxQyiWIO3HDjJtfxPyQ1AJWPsBQ9eYmaoKmPnN+euPCm7bP0LxBL/Tg==,AwHg7AZb5DV5OJrl0omtKx2OqckXcQEUT8pZ+Bmo9AyULgL5HOq2AVU04qhvbdy0W4OMYqxF3uBwqT6dNhFptsKEKQ==,AwG9dyMbI5EI8UCXuj5JkQRMimcT1u6zCBAfmRvANtT54yDtC8KS6VeOr7h/NP4qrf/mbl5tMaePbkkHrc6E39ntsA==,,,,,2,AwHkMyCOJm/RlYOybGhX3DchR/wSN2L3PuXKalMszgk3WOCiWSpYlP3SOPLWvJTRQaTxoN+oA5IkCTvlp02+Mduaxg==,AgHhR8HjavXjnsy+rHptc/JSI5pLFjM0RczUygxTX7vqV/yqwZ280Rq7YpXKp2GBfiZvFf0qIQoWe4vx5DBxwvHkdA==,AwEf2yisEpflVm8R2X08SCJM89apu7tUFzbpndsTIt5o9/xdoXKomMUk9REz+yrpkd+jFhlkJMQHHVMhgjiWYCEdpQ==,,,,,2,AwBaIc8ZWFm4O9QO0ofJeS9Q7tki7CAscBXRDnajEp7rmKNgrpRyyu1ezSpborwaloWR9kDKPLdYVV8SNk2V/1EudA==,AwGE8MPAnPKKXF15EyrAx1bRinwgoqYVO4Junz5IXQjGLyQpSr5NwO/hqu5E5egHte20jm380Wn2Qy6GgKNiRLy/gQ==,AwCAOjOQNdMN5uIB0POFzYS/fpxZ0Q5KfhlP5fijNmc/daO5frSrwhgcMH5lMKL4EGjBI1p6JMe3fuMqb5t1ImeTBg==,,,,,2,AgARSg2izcK6iZLFe4YkIS6yZgnt8cd9DFqpQ37gNmcccZwBI+mpsaijTUPo1GT+QUD8zC+6qr/GrzG9q+q7BPxpVw==,AwGM/jFdtoNViQXxgqeL27ZKobjsfyeuXrx8re3UfIe3c4XN16srSpcTfxEZNXDKo1Ff9fRvDVBOwdS6XU2nvo++ng==,AwAtK0eOqcVfzkdJIIkk7BORWwSDTAjtx4aEXwyZ0bla+2rIWDgXi3U5xlgnjeXJNtGsLokkvvX92BOBIw9SuCGhnw==,2,AgCWAAWTW+7jv2a2lc4pGFnumEgyH59wSDRXEYUASCVB249JBmeKFWRKNFTQlph5hTR5Rb+YHFP/qvzmwU11Hs2b0w==,AgANdxpkN+DS4De3aokNjt+e/Ou8GT+p8pUJA+6LHrDBXAddoCR8KpeXW7mESokq6BTEVQXxU3TdqavRkqaeFmpXkw==,AgDDDSEO3e8DCsm1n6dbj2PB9Z/tUzluDCt/utdSLrYFfdFY+Y5K7Vxo9F5/17CzaUbX172SGLt8TfCfuYBrtupgAg==,2,AgB1OG6bj+6kfRvLj8yjMQbl80FdZHZrRVRUfNVRwvjvvbRa5f9s9fNZ8J0a3s3hH+RyfZmGJ4Ufjh5mMiQkwiur6w==,AwBX4GFZNjUdtRdwtWgxyQz7h8Hk0ztaZeM8/e+8ll0o+RjYN+CNP8+lnXEw7wpuC4wcMX05mrjPvHOuy0hOFVNkhQ==,AgDf3el4vbMYIAFEH9WV151/uzl+gkfTQ79T8Iu4KxEVo6UJvCfqkjETlR6aXUJiqaCbSV5odMT50lURsmfgALf6AQ==,,,,,2,AgENmnviZkgQWXZ5QDgCCE2zq0IiXURTqK2UNPtEg3o64yjlrQQUd2rO/KgKolyCQcKYTVoMj7k2VeCSSVRr8KGC7w==,AwFv6ZJzhpV/Ms00QkrkNiCKVRFczn/yqnkiBFUHC1RQv3tqzzYSEUeXmDHmm0/kEBtnfgRWjHQm9zxS8Jzy7srDLQ==,AwB8aS5KA1dFLKCA1a/7Wsjhef+6kkNAB/GO9AOvRZbFW/dhl5fx04Alh+g78fwcVMX+eEIEJgSyH0jhv7kmiQh4ew==,,,,,2,AgG8fXrCra6UgP5G89TaE6PH5E0TANb/PJPbKwzdi78XEHRUmcTz6PIhYtclTmcdq5TH0IwQv+ra5ppf4qR4LtkGig==,AgEKzsmZrikmXzJywMpzkAdG9hAPlOiRY9oXKf4Sh50CL8btUItjfVJWg3ubNhotzJK+fnNlRrcMkWQEBD/aGKpf8A==,AwFi+2cGpuvVdR+pT1P9Ur8jAkzmjJK2XmUQbFpyMi5Jc9a5/fPnBWCxmTX8CH5wks0PicYC6rzZC3NEIt0EoM1Qfg==,,,,,2,AgHbTZgTAv8lLBsoX06Hkm9XPU+crlRqKl0xL8v18xeUUPY1YAvUYf2OAutmTtPRycXyzrDWSpn2h5xfk/dtq/BICg==,AwAjPydfoUhfSVFKWNI4Ox4a/psZGDIGzEEWh9HyVtAmjdNb5ctr/S6z+akiRfPlNCsVf6TdkzJ2Su6BO4sOX/SHKA==,AwBVmjn7AitCe4zQ/Fl0sYW2XqXkJxJBDviwl9jYhoq29v90n9escDsiA3Cy+1uW69MezdZBEszFdEWlX0EzbQZQ6A==,,,,,2,AwCG0RBHwHuame/1G7qtUjmwz0gkCP1tyZiEgm7aTKpsCjt7UsMirMmx/ZrNlvSzkGuVbRO97Szzr+9fo4baH1rEZA==,AwHyMK/q8FUUvoHTt7O7KJUxYz/ZHF6SntbmKfbygLVw4HWc/eFic4DXHKbEGWvrMO5b37GksqxfQHc2xlAuj8ZRIw==,AgB5x0BxqiMYxRvzlq0+/RkbOuNA7hYuMG+7D6wlMOxSskgqyfwA0MfW+AkXFqnqfqsoJRpDy15bABWhH6MIdJsPEA==,,,,,2,AwAS/nCH0pcrsllSy2duadUs1rMtL6vtz7VTUAVhn1/YYlZ068ysBi1Mdz9gJFewdyeGLnFhyg+W15rFB317nyeGHg==,AwBh6f5UVRMM5ekWqkrx6XiVOK/BL0TinjsSLna8BjkQPXU2DvGxiKPhA03/GtBdEpihEX4bVaHQhiOupTf7wh6bCQ==,AgGPDFH8Kv8hz2aUJ955nHu8NiAoTmDjqhlXuJ1T83h+O0sc2GieLhmXmpEjxjEAyxkqjb2nFxvDhi+YGs4MqI4S5A==,,,,,2,AwDqwFv6bqpM/6PTCJ/wgRALYVT+Rn54HIB2icP6ODNexaoqILBS9p1k1QENbQsBZ9LmJJwngRQXi07Q4P8br76Qfw==,AgG8yTiO8tFWZqQELBr+Zt1fKKA3bl08836nUEEpD55Sid0ZywCrWe+Va58xbMIWscISLPbBvXIdO48ZgoHsLgA7Jw==,AwCI1Ud0GJLnS86mSC58HNB91lH9kPpQbufGn+WJErGxAQubtSFBc3rnT0SNE3CbW+1MPjYBbdCgxpHjN/iQf96++w==,,,,;2,AgB9YhljgPngkwwYTBMUaMGR+rWMjvlK0tgrzkG8OT9NGNJfaaLP6AzfhWrT5oe9NRnabU25pQvDhAIGZCajDy8N2g==,AwE5Irce6LOSxfLgn4PZh1PeDPjAHb5wPTNfmQoWFY83dNQLYN44FupJaQRRUqBqyGNB0SL76GKzr8G9tKLAHOxRSQ==,BAG5iWHEhlWkvtyAlQy4bwKa1iNRzJq8WJTh2GE9oT4DeJRmO1pCHy9P+9YktDT+4RgV9s8AzOYih1LmHW14uP27HQGg1nTdHyab9/nFUe9BFxIi8xQTPG8et9++5I+gKIeWGCXBL31sBhpaMewvVhDjl2d3+7H2PUv9IY3lyIRFA6N16A==,2,AwAPIoQJqSbXFKXQAIG9J+/+/41NLX0rDINImk4eBgAnZ4V0R8YSqkHD3nd0IrEMyK7OpkCXkxTzOlwJlfEfti+vew==,AwAQ8KdMYsEOqM3eyGv/XbHnGf+TqCAG39Gz/juBcioOOJmLOFjl6oCITozJOyPusbTRXZ4eIwgQYkl12mt6saTpgQ==,BACkTO+3rRUF81w5yzZskFiIRyVxc6sdJfDFX6C+Jy5A+s/sfHskrFx2GYNklZaYztP0/B64a6v6HvFWVz8GuYj2wgHhiCL+QwLThFpaRxh8kUMSrt4VuXSIjtHwRXzhSdEbG2T6C/+CJZxIFh/ugEV9SS51l1HrLdnJDb2Kdu3QC3lRkQ==;2,AgC99VyiRLJ2kFf3oCkb+JPVV7B4tXVGI2NVT7fdKtB+gEjCcdkbS5YEXm/Sq6NAJEOKilMTFUDLYFDOe+7JHj/4pw==,AgAbT080sbKVHH9lim3tVCYS4cMz+rLownRKqtYZ7AfR8qy819R1GFywQ0kImgcdjEey5C4m0OPTwgtkO+C5uWtKfQ==,BADKYt9i0zTJeh3H8t6d8pZdncz3f28v1oWrssLZwAutkIcF3XKkPNmK3X75K3sImUSch//IIRIB1Yi5/MrZZeDrxQHhQZEg6AA8bDxgt0JdOEX2t4crzDu3gW5I8y+Ya0fZr1RmxvfMr2UxRhSsNsz949v/g+GPfsrEfDqIWTiNlJfwyg==,2,AgEPMjgCfgGRaZ/5I1hLqDoJ8nXYeTlnt9YeK4K8w+HnRAoAD09zkPcLMWajIjupe/CUFrHz00sAvs+vOPeKxGrLiQ==,AgDy7g2DcDwmIW7LtTTteHExD/cyP4BMWimEAM1RfAd/Y6P8XkmRGgglfdLJ7RGTR2YIMB1lxQ/LQUbmzyjTiiuWow==,BAHJ7oHVr/0wweyGlg4f9Dqmx8h0m35jMdrEFwVY8l/ENKpOTxG/oh9vAvo1uw39wUOn4CWGBmAFE2lsvWFW18gt+gHPFt5/9ihUFN9mtxFLT1Q3W4Uf8IdekHPMbNlxEp1wId7EH3XsAox3Eo8b3XnYpwfsAXoDwQa2wyiO5h104Ptvsg==;2,AwClCMGcHdd7rD8sYDC/GXyAtLmZ/JI4v+aOK4PXzjWJi/zvcsXT5dJUOm9bW6AAtzgOKPd0WwU3hSytJ+ATy146Uw==,AgADzN6ysOIC9GAuMF9suYNfkR027H/9OcpeVJb4HRHfZ/EOmQWSdJmJFw3F/NLUrreNnFCvuF1+1bbmHa3tvznjeA==,BADwaRJF9z3DW7HE3qhGu6Yd9d2WBfWy8opd7Mhkg7TpAQsn9oA3UcpCarn4DMSnVGG94Y3Pxsj5vlm5G7GMKiGoxAERnETH6pVgBxhtrnBU6l4vHl+X4rd8I/zheZiG0EFKJza41rmwKHTY4+42PJ8/3Y2rCanbY1RSAJEgiZR89k6nGg==,2,AgCK80PhKSC23aVKQ8uYm+79GWZiwpbV5lc8Fzcpwu8hdKGAMH4f62Y//cmrQmCIltm03PTVPMn6rMwkfoz+9M2LDQ==,AgH5aXThIKUjENFTGCGwcTRql7xIe8vR9h78KikTYkD8itQ+YBDrnx5OaNyWRjpIJHAZ2B61W2aVjZ5Rmo0d1B1Pcw==,BAAEZsEKw59QSRxN1QmWcx4X2LaK4+zBuawh+2CIRPljWyxK6XhIM6EEalr44Klce4OTK2QbxT5n3Kjnh5jNuwCOawAH/wiNrx09+HY8SZrRjCjv1+Lnicybrqg/IFDNoAGT5aguaGRIMmGOLe0QFJr0T0iW3RnYGlmSd/r6ex8+MpOgLw==</decrypt_val></awr_decrypt>";
- String replyString = connectSPU.sendReceive(Type.DECRYPT, requestString);
- System.out.println("REQUEST URL: " + requestString);
- System.out.println("REPLY: " + replyString);
- ReplyDecryption reply = (new XMLParserDecrypt()).stringToReply(replyString);
- return reply;
- }
-
- public ReplyMaterial callServiceMaterial(RequestMaterial rqtMaterial) {
- String requestString = URLParserMaterial.requestToString(rqtMaterial);
- String replyString = connectSPU.sendReceive(Type.MATERIAL, requestString);
-
- System.out.println("Material request:");
- System.out.println(replyString);
-
- ReplyMaterial reply = (new XMLParserMaterial()).stringToReply(replyString);
- return reply;
- }
-
- public ReplySurvey callServiceSurvey(){
-
- String replyString = connectSPU.sendReceive(Type.SURVEY_Q,"");
- //4::What's your name?::1;5::Where are you from?::2;6::How old are you?::3;7::What's your name?::1;8::Where are you from?::2;9::How old are you?::3;10::What's your name?::1;11::Where are you from?::2;12::How old are you?::3;13::What's your name?::1;14::Where are you from?::2;15::How old are you?::3
-// String replyString ="<awr_survey><v_questions>1::What's your name?::1;2::Where are you from?::2;3::How old are you?::3</v_questions><v_locations>Lausanne;Basel;Zurich</v_locations></awr_survey>";
- ReplySurvey reply = (new XMLParserSurvey()).stringToReply(replyString);
- return reply;
- }
-
- public String callServiceSurveyAnswer(String survey, String id_loc, String id_p){
-
- StringBuilder sb = new StringBuilder();
- sb.append("id_p=").append(id_p);
- sb.append("&timestamp=").append(System.currentTimeMillis());
- sb.append("&id_loc=").append(id_loc);
- sb.append("&answer=").append(survey);
- String replyString = connectSPU.sendReceive(Type.SURVEY_A, sb.toString());
- return replyString;
-
- }
-
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/db/80c1fabda4a7001417ceadf0100b5ef7 b/.metadata/.plugins/org.eclipse.core.resources/.history/db/80c1fabda4a7001417ceadf0100b5ef7
deleted file mode 100644
index af5e80b..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/db/80c1fabda4a7001417ceadf0100b5ef7
+++ /dev/null
@@ -1,129 +0,0 @@
-package io;
-
-import java.io.IOException;
-
-import com.itextpdf.text.BaseColor;
-import com.itextpdf.text.DocumentException;
-import com.itextpdf.text.Element;
-import com.itextpdf.text.ExceptionConverter;
-import com.itextpdf.text.Rectangle;
-import com.itextpdf.text.pdf.BaseFont;
-import com.itextpdf.text.pdf.ColumnText;
-import com.itextpdf.text.pdf.GrayColor;
-import com.itextpdf.text.pdf.PdfBorderDictionary;
-import com.itextpdf.text.pdf.PdfContentByte;
-import com.itextpdf.text.pdf.PdfFormField;
-import com.itextpdf.text.pdf.PdfPCell;
-import com.itextpdf.text.pdf.PdfPCellEvent;
-import com.itextpdf.text.pdf.PdfWriter;
-import com.itextpdf.text.pdf.RadioCheckField;
-import com.itextpdf.text.pdf.TextField;
-
-public class RadioGroup implements PdfPCellEvent{
-
- protected int tf;
-
- public RadioGroup(int ID){
- this.tf = ID;
- }
-
- @Override
- public void cellLayout(PdfPCell cell, Rectangle rectangle,
- PdfContentByte[] canvases) {
-
- PdfWriter writer = canvases[0].getPdfWriter();
- TextField text = new TextField(writer, rectangle,
- String.format("text_%s", tf));
- text.setBackgroundColor(new GrayColor(0.75f));
- switch(tf) {
- case 1:
- text.setBorderStyle(PdfBorderDictionary.STYLE_BEVELED);
- text.setText("Enter your name here...");
- text.setFontSize(0);
- text.setAlignment(Element.ALIGN_CENTER);
- text.setOptions(TextField.REQUIRED);
- break;
- case 2:
- text.setMaxCharacterLength(8);
- text.setOptions(TextField.COMB);
- text.setBorderStyle(PdfBorderDictionary.STYLE_SOLID);
- text.setBorderColor(BaseColor.BLUE);
- text.setBorderWidth(2);
- break;
- case 3:
- text.setBorderStyle(PdfBorderDictionary.STYLE_INSET);
- text.setOptions(TextField.PASSWORD);
- text.setVisibility(TextField.VISIBLE_BUT_DOES_NOT_PRINT);
- break;
- case 4:
- text.setBorderStyle(PdfBorderDictionary.STYLE_DASHED);
- text.setBorderColor(BaseColor.RED);
- text.setBorderWidth(2);
- text.setFontSize(8);
- text.setText(
- "Enter the reason why you want to win a free accreditation for the Foobar Film Festival");
- text.setOptions(TextField.MULTILINE | TextField.REQUIRED);
- break;
- }
- try {
- PdfFormField field = text.getTextField();
- if (tf == 3) {
- field.setUserName("Choose a password");
- }
- writer.addAnnotation(field);
- }
- catch(IOException ioe) {
- throw new ExceptionConverter(ioe);
- }
- catch(DocumentException de) {
- throw new ExceptionConverter(de);
- }
-
-
-
-// PdfWriter writer = canvases[0].getPdfWriter();
-// PdfFormField radiogroup = PdfFormField.createRadioButton(writer, true);
-// radiogroup.setFieldName(String.valueOf(id));
-//
-// RadioCheckField radio;
-// PdfFormField radiofield;
-//
-// for(int i=0; i<5; i++){
-// radio = new RadioCheckField(writer, position, null, String.valueOf(i+1));
-// radio.setBackgroundColor(new GrayColor(0.8f));
-// radio.setCheckType(RadioCheckField.TYPE_CIRCLE);
-// radio.setBorderColor(GrayColor.GRAYBLACK);
-// try {
-// radiofield = radio.getRadioField();
-// radiogroup.addKid(radiofield);
-//
-// } catch (IOException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
-// } catch (DocumentException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
-// }
-//
-// canvases[0].beginText();
-// BaseFont bf;
-// try {
-// bf = BaseFont.createFont(BaseFont.HELVETICA, BaseFont.WINANSI, BaseFont.NOT_EMBEDDED);
-//
-// canvases[0].setFontAndSize(bf, 18);
-// canvases[0].showText( "ciao");
-// canvases[0].endText();
-// } catch (DocumentException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
-// } catch (IOException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
-// }
-//
-// }
-// writer.addAnnotation(radiogroup);
-
-
-}
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/dd/e092fe37b4a7001417ceadf0100b5ef7 b/.metadata/.plugins/org.eclipse.core.resources/.history/dd/e092fe37b4a7001417ceadf0100b5ef7
deleted file mode 100644
index 2658d52..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/dd/e092fe37b4a7001417ceadf0100b5ef7
+++ /dev/null
@@ -1,96 +0,0 @@
-package testpdf;
-
-import java.io.FileOutputStream;
-import java.io.IOException;
-
-import com.itextpdf.text.DocumentException;
-import com.itextpdf.text.Rectangle;
-import com.itextpdf.text.pdf.GrayColor;
-import com.itextpdf.text.pdf.PdfAction;
-import com.itextpdf.text.pdf.PdfFormField;
-import com.itextpdf.text.pdf.PdfReader;
-import com.itextpdf.text.pdf.PdfStamper;
-import com.itextpdf.text.pdf.PushbuttonField;
-
-public class SubmitForm {
-
- /** The resulting PDF file. */
- public static final String RESULT
- = "outputPDF/submit_me.pdf";
-
- /**
- * Manipulates a PDF file src with the file dest as result
- * @param src the original PDF
- * @param dest the resulting PDF
- * @throws IOException
- * @throws DocumentException
- */
- public void manipulatePdf(String src, String dest)
- throws IOException, DocumentException {
- // create a reader
- PdfReader reader = new PdfReader(src);
- // create a stamper
- PdfStamper stamper = new PdfStamper(reader,
- new FileOutputStream(dest));
- // create a submit button that posts the form as an HTML query string
- PushbuttonField button1 = new PushbuttonField(
- stamper.getWriter(), new Rectangle(90, 660, 140, 690), "post");
- button1.setText("POST");
- button1.setBackgroundColor(new GrayColor(0.7f));
- button1.setVisibility(PushbuttonField.VISIBLE_BUT_DOES_NOT_PRINT);
- PdfFormField submit1 = button1.getField();
- submit1.setAction(PdfAction.createSubmitForm(
- "outputPDF/request", null,
- PdfAction.SUBMIT_HTML_FORMAT | PdfAction.SUBMIT_COORDINATES));
- // add the button
- stamper.addAnnotation(submit1, 1);
- // create a submit button that posts the form as FDF
- PushbuttonField button2 = new PushbuttonField(
- stamper.getWriter(), new Rectangle(200, 660, 250, 690), "FDF");
- button2.setBackgroundColor(new GrayColor(0.7f));
- button2.setText("FDF");
- button2.setVisibility(PushbuttonField.VISIBLE_BUT_DOES_NOT_PRINT);
- PdfFormField submit2 = button2.getField();
- submit2.setAction(PdfAction.createSubmitForm(
- "outputPDF/request", null, PdfAction.SUBMIT_EXCL_F_KEY));
- // add the button
- stamper.addAnnotation(submit2, 1);
- // create a submit button that posts the form as XFDF
- PushbuttonField button3 = new PushbuttonField(
- stamper.getWriter(), new Rectangle(310, 660, 360, 690), "XFDF");
- button3.setBackgroundColor(new GrayColor(0.7f));
- button3.setText("XFDF");
- button3.setVisibility(PushbuttonField.VISIBLE_BUT_DOES_NOT_PRINT);
- PdfFormField submit3 = button3.getField();
- submit3.setAction(PdfAction.createSubmitForm(
- "outputPDF/request", null, PdfAction.SUBMIT_XFDF));
- // add the button
- stamper.addAnnotation(submit3, 1);
- // create a reset button
- PushbuttonField button4 = new PushbuttonField(
- stamper.getWriter(), new Rectangle(420, 660, 470, 690), "reset");
- button4.setBackgroundColor(new GrayColor(0.7f));
- button4.setText("RESET");
- button4.setVisibility(PushbuttonField.VISIBLE_BUT_DOES_NOT_PRINT);
- PdfFormField reset = button4.getField();
- reset.setAction(PdfAction.createResetForm(null, 0));
- // add the button
- stamper.addAnnotation(reset, 1);
- // close the stamper
- stamper.close();
- reader.close();
- }
-
- /**
- * Main method.
- *
- * @param args no arguments needed
- * @throws DocumentException
- * @throws IOException
- */
- public static void main(String[] args)
- throws IOException, DocumentException {
- new Subscribe().createPdf(Subscribe.FORM);
- new SubmitForm().manipulatePdf(Subscribe.FORM, RESULT);
- }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/de/40ffb069a4a7001417ceadf0100b5ef7 b/.metadata/.plugins/org.eclipse.core.resources/.history/de/40ffb069a4a7001417ceadf0100b5ef7
deleted file mode 100644
index 46dae4b..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/de/40ffb069a4a7001417ceadf0100b5ef7
+++ /dev/null
@@ -1,5 +0,0 @@
-package io;
-
-public class SubmitForm {
-
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/df/808922fb67a8001419a38fd8608ce0e6 b/.metadata/.plugins/org.eclipse.core.resources/.history/df/808922fb67a8001419a38fd8608ce0e6
deleted file mode 100644
index 3519b10..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/df/808922fb67a8001419a38fd8608ce0e6
+++ /dev/null
@@ -1,291 +0,0 @@
-package io;
-
-import java.awt.BorderLayout;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.util.Map;
-import java.util.Set;
-
-import com.itextpdf.text.BaseColor;
-import com.itextpdf.text.Document;
-import com.itextpdf.text.DocumentException;
-import com.itextpdf.text.Element;
-import com.itextpdf.text.ExceptionConverter;
-import com.itextpdf.text.Font;
-import com.itextpdf.text.Font.FontFamily;
-import com.itextpdf.text.FontFactory;
-import com.itextpdf.text.Image;
-import com.itextpdf.text.PageSize;
-import com.itextpdf.text.Paragraph;
-import com.itextpdf.text.Phrase;
-import com.itextpdf.text.Rectangle;
-import com.itextpdf.text.pdf.AcroFields;
-import com.itextpdf.text.pdf.BaseFont;
-import com.itextpdf.text.pdf.ColumnText;
-import com.itextpdf.text.pdf.GrayColor;
-import com.itextpdf.text.pdf.PdfAction;
-import com.itextpdf.text.pdf.PdfBorderDictionary;
-import com.itextpdf.text.pdf.PdfContentByte;
-import com.itextpdf.text.pdf.PdfFormField;
-import com.itextpdf.text.pdf.PdfPCell;
-import com.itextpdf.text.pdf.PdfPCellEvent;
-import com.itextpdf.text.pdf.PdfPTable;
-import com.itextpdf.text.pdf.PdfReader;
-import com.itextpdf.text.pdf.PdfStamper;
-import com.itextpdf.text.pdf.PdfWriter;
-import com.itextpdf.text.pdf.PushbuttonField;
-import com.itextpdf.text.pdf.RadioCheckField;
-import com.itextpdf.text.pdf.TextField;
-
-import framework.Question;
-
-public class Questionnaire implements PdfPCellEvent{
-
- /** The path output file. */
- String pathOutputFile;
-
- /** The document. */
- Document document;
-
-
-
- int tf;
-
- public Questionnaire(String path){
- pathOutputFile = path;
- document = new Document(PageSize.A4, 25, 25, 50, 50);
- }
- public Questionnaire(int tf){
- this.tf = tf;
-
- }
-
- /** The resulting PDF. */
- public static final String RESULT1 = "outputPDF/buttons.pdf";
- /** The resulting PDF. */
- public static final String RESULT2 = "outputPDF/buttons_filled.pdf";
- /** Path to a JavaScript resource. */
- public static final String RESOURCE = "res/buttons.js";
- /** Path to an image used as button icon. */
- public static final String IMAGE = "res/info.png";
- /** Possible values of a radio field / checkboxes */
- public static final String[] LANGUAGES = { "English", "German", "French", "Spanish", "Dutch" };
-
- /**
- * Creates a PDF document.
- * @param filename the path to the new PDF document
- * @throws DocumentException
- * @throws IOException
- */
- public void createPdf(Map<Integer, Question> map, Set<Integer> ids) throws IOException, DocumentException {
-
- @SuppressWarnings("unused")
- PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(pathOutputFile));
-
-
- document.open();
- Image logo = Image.getInstance("res/shcs_logo2.gif");
-
- logo.scalePercent(30f);
- float[] columnWidths1 = {0.2f, 0.8f};
- PdfPTable table_title = new PdfPTable(columnWidths1);
- PdfPCell c01 = new PdfPCell(logo, false);
- PdfPCell c02 = new PdfPCell(new Paragraph("Survery | Project #693",
- FontFactory.getFont(FontFactory.HELVETICA, 20, Font.BOLD, BaseColor.BLACK)));
- c01.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setHorizontalAlignment(Element.ALIGN_CENTER);
- c01.setBorder(Rectangle.NO_BORDER);
- c02.setBorder(Rectangle.NO_BORDER);
-
- table_title.addCell(c01);
- table_title.addCell(c02);
- table_title.setWidthPercentage(100);
- table_title.setSpacingBefore(0);
- table_title.setSpacingAfter(25);
- document.add(table_title);
-
-
- //----------------------------------------------------------------------------------
-
-
- PdfPTable table1 = new PdfPTable(1);
- table1.setWidthPercentage(100);
- PdfPCell c11 = new PdfPCell(new Phrase("Today you are receiving a pharmacogenetic report based on the genetic " +
- "information of your patient. Because the human genome contains extremely private and sensitive information" +
- " of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier," +
- " it must be managed with care. ",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.NORMAL, BaseColor.BLACK)));
- c11.setLeading(1.5f, 1.5f);
- c11.setPaddingBottom(8);
-
-
- table1.addCell(c11);
- table1.setSpacingAfter(10);
- document.add(table1);
-
-
- //----------------------------------------------------------------------------------
-
-// // step 4
-// // add the JavaScript
-// writer.addJavaScript(Utilities.readFileToString(RESOURCE));
-
- for(Integer id: ids){
- PdfPCell c2;
-
- PdfPTable table = new PdfPTable(1);
- table.setSpacingAfter(10);
- table.setWidthPercentage(100);
-
- PdfPCell c1 = new PdfPCell(new Phrase(id + ") " + map.get(id).getQuestion(),FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c1.setPaddingTop(5);
- c1.setPaddingBottom(5);
- c1.setHorizontalAlignment(Element.ALIGN_CENTER);
- c1.setBorder(Rectangle.NO_BORDER);
- table.addCell(c1);
-
- c2 = new PdfPCell(new Phrase(" 1" +
- " 2" +
- " 3" +
- " 4" +
- " 5",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c2.setHorizontalAlignment(Element.ALIGN_LEFT);
- c2.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c2.setCellEvent(new Questionnaire(id));
- c2.setBorder(Rectangle.TOP);
- c2.setPaddingTop(2);
- c2.setPaddingBottom(5);
- c2.setBackgroundColor(new BaseColor(242, 242, 242));
-
- table.addCell(c2);
-
-
-
- document.add(table);
- }
-
-
- //----------------------------------------------------------------------------------
-
- // step 5
- document.close();
-
-
-
- }
-
- @Override
- public void cellLayout(PdfPCell cell, Rectangle position,
- PdfContentByte[] canvases) {
- PdfWriter writer = canvases[0].getPdfWriter();
- PdfFormField radiogroup = PdfFormField.createRadioButton(writer, true);
- radiogroup.setFieldName(String.valueOf(tf));
- System.out.println(tf);
-
- float llx = position.getLeft();
- float lly = position.getBottom();
-
- float cell_h = cell.getHeight();
- float cell_w = cell.getWidth();
-
- Rectangle rect;
-
- for(int i=1 ; i<=5; i++){
-
- rect = new Rectangle(llx + (3+i)*cell_w/12, lly+cell_h/2-6, llx + (3+i)*cell_w/12+12 ,lly+cell_h/2+6);
-
- RadioCheckField radio = new RadioCheckField(writer, rect, String.valueOf(i), String.valueOf(i));
- radio.setBorderColor(GrayColor.GRAYBLACK);
- radio.setCheckType(RadioCheckField.TYPE_SQUARE);
-
-
- try {
- PdfFormField field = radio.getRadioField();
- radiogroup.addKid(field);
-
- writer.addAnnotation(radiogroup);
- }
-
- catch(IOException ioe) {
- throw new ExceptionConverter(ioe);
- }
- catch(DocumentException de) {
- throw new ExceptionConverter(de);
- }
- }
-
-
-
- }
-
-
- public void writeAnswers(Map<String, String> answers) throws IOException, DocumentException{
-
- PdfReader reader = new PdfReader(pathOutputFile);
- PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(pathOutputFile),'\0', true);
-
-
- AcroFields form = stamper.getAcroFields();
-
-
-
-
- Set<String> fields = form.getFields().keySet();
- for(String key: fields){
-
- if(answers.containsKey(key)){
- form.setField(key, answers.get(key));
- }
- }
- stamper.close();
- reader.close();
-
- }
-
-
-// /**
-// * Manipulates a PDF file src with the file dest as result
-// * @param src the original PDF
-// * @param dest the resulting PDF
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public void manipulatePdf(String src, String dest) throws IOException, DocumentException {
-// PdfReader reader = new PdfReader(src);
-// PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(dest));
-// AcroFields form = stamper.getAcroFields();
-// String[] radiostates = form.getAppearanceStates("language");
-// form.setField("language", radiostates[4]);
-// for (int i = 0; i < LANGUAGES.length; i++) {
-// String[] checkboxstates = form.getAppearanceStates("English");
-// form.setField(LANGUAGES[i], checkboxstates[i % 2 == 0 ? 1 : 0]);
-// }
-// stamper.close();
-// reader.close();
-//
-// PdfReader r = new PdfReader(dest);
-// AcroFields f = r.getAcroFields();
-// Set<String> fields = form.getFields().keySet();
-// for(String key: fields){
-// if(f.getFieldType(key)==AcroFields.FIELD_TYPE_RADIOBUTTON){
-// System.out.println(key);
-// System.out.println(f.getField(key));
-//
-// }
-// }
-// r.close();
-//
-// }
-//
-// /**
-// * Main method
-// * @param args no arguments needed
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public static void main(String[] args) throws IOException, DocumentException {
-// Questionnaire buttons = new Questionnaire();
-// buttons.createPdf(RESULT1);
-// buttons.manipulatePdf(RESULT1, RESULT2);
-// }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/df/c0d73941eca60014162f978bbd19228b b/.metadata/.plugins/org.eclipse.core.resources/.history/df/c0d73941eca60014162f978bbd19228b
deleted file mode 100644
index e69de29..0000000
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/df/f0bd94b551ac001410e2e30aa85db9d1 b/.metadata/.plugins/org.eclipse.core.resources/.history/df/f0bd94b551ac001410e2e30aa85db9d1
deleted file mode 100644
index 065370a..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/df/f0bd94b551ac001410e2e30aa85db9d1
+++ /dev/null
@@ -1,914 +0,0 @@
-package ui;
-
-import io.ClientConnection;
-import io.CommAdapter;
-import io.Questionnaire;
-
-import java.awt.BorderLayout;
-import java.awt.Color;
-import java.awt.Component;
-import java.awt.Dimension;
-import java.awt.FlowLayout;
-import java.awt.Font;
-import java.awt.SystemColor;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.awt.event.WindowAdapter;
-import java.io.File;
-import java.io.IOException;
-import java.sql.SQLException;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.LinkedList;
-import java.util.Map;
-import java.util.Set;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
-import javax.swing.Box;
-import javax.swing.BoxLayout;
-import javax.swing.ButtonGroup;
-import javax.swing.DefaultComboBoxModel;
-import javax.swing.GroupLayout;
-import javax.swing.GroupLayout.Alignment;
-import javax.swing.ImageIcon;
-import javax.swing.JButton;
-import javax.swing.JComboBox;
-import javax.swing.JDialog;
-import javax.swing.JFileChooser;
-import javax.swing.JFrame;
-import javax.swing.JLabel;
-import javax.swing.JOptionPane;
-import javax.swing.JPanel;
-import javax.swing.JRadioButton;
-import javax.swing.JScrollPane;
-import javax.swing.JSeparator;
-import javax.swing.JTabbedPane;
-import javax.swing.JTextArea;
-import javax.swing.JTextPane;
-import javax.swing.JTree;
-import javax.swing.LayoutStyle.ComponentPlacement;
-import javax.swing.SwingConstants;
-import javax.swing.UIManager;
-import javax.swing.border.BevelBorder;
-import javax.swing.border.EmptyBorder;
-import javax.swing.border.EtchedBorder;
-import javax.swing.tree.DefaultMutableTreeNode;
-import javax.swing.tree.TreeModel;
-import javax.swing.tree.TreePath;
-
-import org.jpedal.examples.viewer.Commands;
-import org.jpedal.examples.viewer.Viewer;
-
-import utils.ClientProperties;
-
-import com.itextpdf.text.DocumentException;
-
-import database.DBconnectorClient;
-import framework.Diagnostic;
-import framework.MedUnit;
-import framework.Question;
-import framework.reply.ReplySurvey;
-import framework.test.TestName;
-import javax.swing.border.SoftBevelBorder;
-
-/**
- *
- * @author youssef, raisaro
- */
-public class GUI extends javax.swing.JFrame {
-
- private static final Logger LOGGER = Logger.getLogger(GUI.class.getName());
-
- private static final long serialVersionUID = -4582280515597700650L;
-
- // configuration
- private ClientProperties props;
-
- private JTree jTree;
- private DBconnectorClient connectorClientDB;
- private LinkedList<Integer> patients;
-
- /** List of all relevant tests */
- private HashMap<String, TestName> testsByName;
- private Viewer viewer;
- private JDialog dialog;
- private JFrame frame;
- private boolean survey_submitted;
- private int close_trials;
- private Map<Integer, ButtonGroup> buttonGroupMap;
- private Questionnaire quest;
- private Map<Integer, Question> map;
- private Set<Integer> ids;
- private Map<String,String> answers;
- private Map<Integer, String> locations;
-
-
- /**
- * Creates new form GUI
- */
- public GUI(ClientProperties props){
-
- frame = this;
- this.props = props;
- this.connectorClientDB = new DBconnectorClient(props.getDbMsAccess());
- survey_submitted = false;
- close_trials = 0;
-
-
- try {
- initComponents();
-
- viewer = new Viewer(jScrollPane2, null);
- viewer.setupViewer();
-
- // create questionnare
-
-
- System.out.println("#of questions: " + ids.size());
-
-// viewer_q = new Viewer(jScrollPane4, null);
-// viewer_q.setupViewer();
-//
-// // specify file you wish to open (JPedal handles getting the byte data)
-// String filepathReport = "outputPDF/buttons_filled.pdf";
-//
-// // open generated PDF
-// // object must be either String in full filepath, or
-// // File object which can be relative
-// Object[] input = new Object[]{ new File(filepathReport) };
-// viewer_q.executeCommand(Commands.OPENFILE, input);
-
- JButton btnSubmitQuestionnaire = new JButton("Submit Questionnaire");
- btnSubmitQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- btnSubmitQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- submitButtonActionPerformed(arg0);
- }
- });
- JButton btnResetQuestionnaire = new JButton("Save as PDF");
- btnResetQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- savePDFButtonActionPerformed(arg0);
- }
- });
- btnResetQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- JPanel panel_button = new JPanel();
- panel_button.setLayout(new BoxLayout(panel_button, BoxLayout.X_AXIS));
-
- lblNewLabel_3 = new JLabel("");
- lblNewLabel_3.setIcon(new ImageIcon("res/location_icon.png"));
- panel_button.add(lblNewLabel_3);
-
-
-
- comboBox = new JComboBox<String>();
- comboBox.setFont(new Font("Tahoma", Font.BOLD, 12));
- comboBox.setModel(new DefaultComboBoxModel<String>(new String[] {"Select Location"}));
- for(Integer id_loc : locations.keySet()){
- comboBox.addItem(locations.get(id_loc));
- }
-
-
- panel_button.add(comboBox);
-
- rigidArea = Box.createRigidArea(new Dimension(10, 0));
- panel_button.add(rigidArea);
-
- lblNewLabel_1 = new JLabel("");
- lblNewLabel_1.setIcon(new ImageIcon("res/submit.png"));
- panel_button.add(lblNewLabel_1);
- panel_button.add(btnSubmitQuestionnaire);
-
- panel_button.add(Box.createRigidArea(new Dimension(10,0)));
-
- lblNewLabel_2 = new JLabel("");
- lblNewLabel_2.setIcon(new ImageIcon("res/pdf.png"));
- panel_button.add(lblNewLabel_2);
- panel_button.add(btnResetQuestionnaire);
- panel_button.setPreferredSize(new Dimension(211, 35));
- panel_button.validate();
-
- JPanel panel_3 = new JPanel();
-
- JLabel lblArrow = new JLabel("");
- lblArrow.setIcon(new ImageIcon("C:\\Users\\raisaro\\workspace\\yussef\\project\\PPPClient\\res\\arrow_icon.png"));
- GroupLayout gl_panel = new GroupLayout(panel);
- gl_panel.setHorizontalGroup(
- gl_panel.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(63)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addGap(103)
- .addComponent(panel_button, GroupLayout.DEFAULT_SIZE, 498, Short.MAX_VALUE)
- .addGap(241))
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(41)
- .addGroup(gl_panel.createParallelGroup(Alignment.TRAILING)
- .addComponent(jScrollPane4, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE)
- .addComponent(panel_1, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE))
- .addGap(32))
- .addGroup(gl_panel.createSequentialGroup()
- .addContainerGap(456, Short.MAX_VALUE)
- .addComponent(lblArrow)
- .addGap(417))
- );
- gl_panel.setVerticalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(22)
- .addComponent(panel_1, GroupLayout.PREFERRED_SIZE, 235, GroupLayout.PREFERRED_SIZE)
- .addGap(11)
- .addComponent(lblArrow, GroupLayout.PREFERRED_SIZE, 20, Short.MAX_VALUE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jScrollPane4, GroupLayout.DEFAULT_SIZE, 379, Short.MAX_VALUE)
- .addGap(26)
- .addGroup(gl_panel.createParallelGroup(Alignment.LEADING)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(panel_button, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE)))
- );
- panel_3.setLayout(new BoxLayout(panel_3, BoxLayout.X_AXIS));
-
-
- panel.setLayout(gl_panel);
-
-
-
-
-
-
- /////////////////////////////////////////////////////////
- // display the tests available
-
- // get the tests
- HashMap<String, ArrayList<TestName>> testsRelevantByGroup = connectorClientDB.getRelevantTestsByGroup();
- ArrayList<String> groups = new ArrayList<String>(testsRelevantByGroup.keySet());
-
- // flatten hashmap into linkedlist
-// tests = new LinkedList<>();
- testsByName = new HashMap<String, TestName>();
- for (String group : groups) {
-// tests.addAll(testsRelevantByGroup.get(group));
- for (TestName test : testsRelevantByGroup.get(group)) {
- testsByName.put(test.getName(), test);
- }
- }
-
- // define tree structure of the tests
- DefaultMutableTreeNode root = new DefaultMutableTreeNode("All");
-
- for (String group : groups) {
- DefaultMutableTreeNode child = new DefaultMutableTreeNode(group);
- root.add(child);
-
- for (TestName test : testsRelevantByGroup.get(group)) {
- DefaultMutableTreeNode grandChild = new DefaultMutableTreeNode(test.getName());
- child.add(grandChild);
- }
- }
-
- // define swing object
- jTree = new JTree(root);
-
- for(int i=0;i<jTree.getRowCount();i++){
- jTree.expandRow(i);
- }
-
- jScrollPane3.setViewportView(jTree);
-// jTree.addTreeSelectionListener(new TreeSelectionListener() {
-//
-// @Override
-// public void valueChanged(TreeSelectionEvent e) {
-// tp = jTree.getSelectionPaths();
-// }
-// });
- jScrollPane3.setViewportView(jTree);
-
- /////////////////////////////////////////////////////////
- // display the patients registered
-
- patients = connectorClientDB.getPatients();
- for (Integer patientId : patients) {
- jComboBox1.addItem(patientId.toString());
- }
-
- } catch (SQLException ex) {
- Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex);
- ex.printStackTrace();
-// } catch (IOException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
-// } catch (DocumentException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
- }
-
- }
-
- /**
- * 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() {
-
- jPanel1 = new javax.swing.JPanel();
- jLabel2 = new javax.swing.JLabel();
- jLabel1 = new javax.swing.JLabel();
- jPanel2 = new javax.swing.JPanel();
- jComboBox1 = new javax.swing.JComboBox<String>();
- jButton1 = new javax.swing.JButton();
- jButton1.setFont(new Font("Tahoma", Font.BOLD, 12));
- jLabel3 = new javax.swing.JLabel();
- jLabel4 = new javax.swing.JLabel();
- jScrollPane3 = new javax.swing.JScrollPane();
- jScrollPane2 = new javax.swing.JScrollPane();
- jMenuBar1 = new javax.swing.JMenuBar();
- jMenu1 = new javax.swing.JMenu();
- jMenuItem1 = new javax.swing.JMenuItem();
- jMenu2 = new javax.swing.JMenu();
- dialog = new JDialog();
- tabbedPane = new JTabbedPane(JTabbedPane.TOP);
-
- setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
- addWindowListener(new WindowAdapter() {
- @Override
- public void windowClosing(java.awt.event.WindowEvent windowEvent) {
- if (!survey_submitted && close_trials <= 2){
- JOptionPane.showMessageDialog(frame, "Before closing the application, please fill in and submit the questionnaire.");
- close_trials++;
- tabbedPane.setSelectedIndex(1);
- }else{
- System.exit(0);
- }
- }
- });
- setTitle("HIV Pharmacogenomics\n");
-
- jLabel2.setIcon(new javax.swing.ImageIcon("res/shcs_logo2_small.gif")); // NOI18N
-
- jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
- jLabel1.setText("HIV Pharmacogenomics | Project #693");
-
- javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
- jPanel1.setLayout(jPanel1Layout);
- jPanel1Layout.setHorizontalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap(71, Short.MAX_VALUE)
- .addComponent(jLabel1)
- .addGap(18, 18, 18)
- .addComponent(jLabel2))
- );
- jPanel1Layout.setVerticalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jLabel1)
- .addGap(11, 11, 11))
- .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)
- );
-
- jPanel2.setBackground(new java.awt.Color(255, 255, 255));
- jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
-
- jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<String>(new String[]{"Select Patient"}));
-
- jButton1.setText("Run Test");
- jButton1.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton1ActionPerformed(evt);
- }
- });
-
- JLabel lblNewLabel = new JLabel("");
- lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
- lblNewLabel.setIcon(new javax.swing.ImageIcon("res/gears.png"));
-
-
-
- javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
- jPanel2Layout.setHorizontalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addComponent(jComboBox1, 0, 248, Short.MAX_VALUE)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addGap(75)
- .addGroup(jPanel2Layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jButton1)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 75, GroupLayout.PREFERRED_SIZE))
- .addContainerGap(98, Short.MAX_VALUE))
- );
- jPanel2Layout.setVerticalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addComponent(jComboBox1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED, 223, Short.MAX_VALUE)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jButton1)
- .addGap(19))
- );
- jPanel2.setLayout(jPanel2Layout);
-
- jLabel3.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel3.setText("Select Patient");
-
- jLabel4.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel4.setText("Select Test");
-
- jScrollPane3.setBackground(new java.awt.Color(255, 255, 255));
-
- jMenu1.setText("File");
-
- jMenuItem1.setText("Exit");
- jMenu1.add(jMenuItem1);
-
- jMenuBar1.add(jMenu1);
-
- jMenu2.setText("Edit");
- jMenuBar1.add(jMenu2);
-
- setJMenuBar(jMenuBar1);
-
-
-
- javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
- layout.setHorizontalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(layout.createParallelGroup(Alignment.LEADING, false)
- .addComponent(jLabel3)
- .addComponent(jLabel4)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, 244, Short.MAX_VALUE)
- .addComponent(jScrollPane3))
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 970, Short.MAX_VALUE))
- .addContainerGap())
- );
- layout.setVerticalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel4))
- .addPreferredGap(ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addComponent(jScrollPane3, GroupLayout.PREFERRED_SIZE, 388, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jLabel3)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 785, Short.MAX_VALUE))
- .addContainerGap())
- );
-
-
- jScrollPane2.setAutoscrolls(true);
- jScrollPane3.setAutoscrolls(true);
- tabbedPane.addTab("Report", new ImageIcon("res/report_icon.gif"), jScrollPane2, null);
- tabbedPane.setBackgroundAt(0, new Color(255, 255, 255));
-
- panel = new JPanel();
- tabbedPane.addTab("Survey", new ImageIcon("res/survey_icon.png"), panel, null);
- tabbedPane.setBackgroundAt(1, new Color(255, 255, 255));
- tabbedPane.setEnabledAt(1, true);
-
- panel_1 = new JPanel();
- panel_1.setBorder(new SoftBevelBorder(BevelBorder.LOWERED, null, null, null, null));
- panel_1.setBackground(Color.WHITE);
-
- JLabel label = new JLabel("");
- label.setIcon(new ImageIcon("res/shcs_logo2_medium.gif"));
-
- lblDearDoctor = new JLabel("Dear Doctor,");
- lblDearDoctor.setFont(new Font("Tahoma", Font.BOLD, 14));
-
- JScrollPane scrollPane = new JScrollPane();
- scrollPane.setBorder(null);
- GroupLayout gl_panel_1 = new GroupLayout(panel_1);
- gl_panel_1.setHorizontalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(Alignment.LEADING, gl_panel_1.createSequentialGroup()
- .addGap(25)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addComponent(lblDearDoctor)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 661, Short.MAX_VALUE))
- .addContainerGap())
- );
- gl_panel_1.setVerticalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addContainerGap()
- .addComponent(lblDearDoctor)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 203, Short.MAX_VALUE))
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(36)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 96, GroupLayout.PREFERRED_SIZE)))
- .addContainerGap())
- );
-
- JTextPane txtpnTodayYouAre = new JTextPane();
- txtpnTodayYouAre.setBorder(null);
- txtpnTodayYouAre.setText("Today you are receiving a pharmacogenetics report based on the genome of your patient. Because of its highly sensitive nature, " +
- "the genetic information you are provided with is processed in a privacy-preserving way. In particular, to protect patients’ genomic privacy, " +
- "their genetic and clinical data is stored encrypted at the SHCS data center, and securely analyzed through a sophisticated algorithm designed and developed at EPFL [1, 2]. " +
- "The actual clinical and genetic information is never revealed. Only the authorized users, such as you, can get some processed information, for example, the final result of a " +
- "pharmacogenetics risk test.\nThis mechanism protects the data against insiders or hackers trying to illegally access patients’ medical information, while still allowing authorized " +
- "users to obtain the information they need." +
- "\n\nTo help us understanding the importance of genomic privacy in the medical domain, and the impact of privacy-enhancing technologies in daily clinical practice, please complete the following survey.");
- txtpnTodayYouAre.setFont(new Font("Tahoma", Font.PLAIN, 13));
- txtpnTodayYouAre.setEditable(false);
- txtpnTodayYouAre.setBackground(Color.WHITE);
- scrollPane.setViewportView(txtpnTodayYouAre);
- panel_1.setLayout(gl_panel_1);
- jScrollPane4 = new javax.swing.JScrollPane();
- getContentPane().setLayout(layout);
-
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
- ReplySurvey replySurvey = commHandlerAdapter.callServiceSurvey();
-
- map = replySurvey.getQuestions();
- ids = map.keySet();
- locations = replySurvey.getLocations();
-
- panel_2 = new JPanel();
- panel_2.setBackground(Color.WHITE);
- panel_2.setBorder(new BevelBorder(BevelBorder.LOWERED, null, null, null, null));
- jScrollPane4.setViewportView(panel_2);
- panel_2.setLayout(new BoxLayout(panel_2, BoxLayout.Y_AXIS));
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
-
-
- for(Integer id : ids){
- ButtonGroup group = new ButtonGroup();
- JRadioButton r1 = new JRadioButton("1"); r1.setActionCommand("1"); r1.setBackground(Color.WHITE);
- JRadioButton r2 = new JRadioButton("2"); r2.setActionCommand("2"); r2.setBackground(Color.WHITE);
- JRadioButton r3 = new JRadioButton("3"); r3.setActionCommand("3"); r3.setBackground(Color.WHITE);
- JRadioButton r4 = new JRadioButton("4"); r4.setActionCommand("4"); r4.setBackground(Color.WHITE);
- JRadioButton r5 = new JRadioButton("5"); r5.setActionCommand("5"); r5.setBackground(Color.WHITE);
- group.add(r1);
- group.add(r2);
- group.add(r3);
- group.add(r4);
- group.add(r5);
- JPanel radio_panel = new JPanel();
- radio_panel.setLayout((new BoxLayout(radio_panel, BoxLayout.X_AXIS)));
- radio_panel.setBackground(Color.WHITE);
- radio_panel.setAlignmentX(Component.CENTER_ALIGNMENT);
- radio_panel.add(r1);
- radio_panel.add(r2);
- radio_panel.add(r3);
- radio_panel.add(r4);
- radio_panel.add(r5);
- radio_panel.doLayout();
- radio_panel.setPreferredSize(radio_panel.getPreferredSize());
- JTextArea question = new JTextArea(id + ") " + map.get(id).getQuestion());
- question.setLineWrap(true);
- question.setWrapStyleWord(true);
- question.setAlignmentX(Component.CENTER_ALIGNMENT);
- question.setFont(new Font("Tahoma", Font.PLAIN, 13));
-
- JPanel row_panel = new JPanel();
- row_panel.setLayout(new BoxLayout(row_panel, BoxLayout.X_AXIS));
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.add(question);
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.add(radio_panel);
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.setBackground(Color.WHITE);
-
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- panel_2.add(row_panel);
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
-// panel_2.add(radio_panel);
- panel_2.add(new JSeparator());
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
-// panel_2.setPreferredSize(panel_2.getPreferredSize());
- buttonGroupMap.put(id, group);
-
- }
-
-
-
- this.setSize(new Dimension(1200, 865));
-// pack();
- }// </editor-fold>//GEN-END:initComponents
-
-
- private void submitButtonActionPerformed(java.awt.event.ActionEvent evt){
-
- try{
- answers = new HashMap<String, String>();
- StringBuilder sb = new StringBuilder();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- sb.append(q).append(",");
- sb.append(bg.getSelection().getActionCommand()).append(";");
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- String answer = sb.toString();
- Integer id_loc = null;
- for(Integer i: locations.keySet()){
- if(locations.get(i).equals(comboBox.getSelectedItem().toString()))
- id_loc = i;
- }
-
- String id_p;
- if(jComboBox1.getSelectedItem().toString().equals("Select Patient"))
- id_p = "0";
- else
- id_p = jComboBox1.getSelectedItem().toString();
-
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
-
- String reply = commHandlerAdapter.callServiceSurveyAnswer(answer, id_loc.toString(), id_p);
-
- if(reply.equals("1")){
- survey_submitted = true;
-
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Congrats! Your aswers have been sent to the SHCS datacenter.",
- "Information Message",
- JOptionPane.INFORMATION_MESSAGE);
- }
- else{
- throw new IOException();
- }
-
-
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "The SHCS datacenter does not respond. Please save the survey and send it to jean.raisaro@epfl.ch.",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
- private void savePDFButtonActionPerformed(java.awt.event.ActionEvent evt){
- try {
-
- answers = new HashMap<String, String>();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- JFileChooser chooser = new JFileChooser();
- // Note: source for ExampleFileFilter can be found in FileChooserDemo,
- // under the demo/jfc directory in the JDK.
-
- int returnVal = chooser.showSaveDialog(this);
- System.out.println(returnVal);
- if(returnVal == JFileChooser.APPROVE_OPTION) {
- System.out.println("You chose to open this file: " +
- chooser.getSelectedFile().getPath());
- quest = new Questionnaire(chooser.getSelectedFile().getPath() + ".pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }else{
- quest = new Questionnaire("outputPDF/survey.pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }
-
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (DocumentException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (NullPointerException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
-
- private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
-
- JPanel contentPanel = new JPanel();
-
- dialog.setBounds(100, 100, 410, 80);
- dialog.getContentPane().setLayout(new BorderLayout());
- contentPanel.setLayout(new FlowLayout());
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- dialog.getContentPane().add(contentPanel, BorderLayout.CENTER);
- {
- JLabel label = new JLabel("Please wait...The overall computation can take few seconds");
- label.setHorizontalAlignment(SwingConstants.CENTER);
- label.setFont(new Font("Tahoma", Font.PLAIN, 12));
- contentPanel.add(label);
- }
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
- dialog.getContentPane().add(buttonPane, BorderLayout.SOUTH);
- }
- dialog.setLocationRelativeTo(this);
- dialog.setVisible(true);
-
- GUIWorker gw = new GUIWorker(this, props);
- Thread t = new Thread(gw);
- t.start();
-
- }
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JButton jButton1;
- private javax.swing.JComboBox<String> jComboBox1;
- private javax.swing.JLabel jLabel1;
- private javax.swing.JLabel jLabel2;
- private javax.swing.JLabel jLabel3;
- private javax.swing.JLabel jLabel4;
- private javax.swing.JMenu jMenu1;
- private javax.swing.JMenu jMenu2;
- private javax.swing.JMenuBar jMenuBar1;
- private javax.swing.JMenuItem jMenuItem1;
- private javax.swing.JPanel jPanel1;
- private javax.swing.JPanel jPanel2;
- private javax.swing.JScrollPane jScrollPane3;
- private javax.swing.JTabbedPane tabbedPane;
- private javax.swing.JScrollPane jScrollPane2;
- private javax.swing.JScrollPane jScrollPane4;
- private JPanel panel;
- private JPanel panel_1;
- private JPanel panel_2;
- private JLabel lblDearDoctor;
- private JLabel lblNewLabel_1;
- private JLabel lblNewLabel_2;
- private JLabel lblNewLabel_3;
- private JComboBox<String> comboBox;
- private Component rigidArea;
-
- // End of variables declaration//GEN-END:variables
-
-
- class GUIWorker implements Runnable{
-
- private JFrame mainFrame;
- private ClientProperties props;
- private MedUnit mu;
-
- public GUIWorker(GUI gui, ClientProperties props) {
- mainFrame = gui;
-
- this.props = props;
- this.mu = new MedUnit(props, 0);
- }
-
- @Override
- public void run() {
-
- try{
- int patientId = Integer.parseInt((String) jComboBox1.getSelectedItem());
-
- // convert selected tests to test identifiers
- ArrayList<TestName> selectedTests = new ArrayList<TestName>();
- for (String currentName : getSelectedTests()) {
- TestName currentTest = testsByName.get(currentName);
-
- if (currentTest == null) {
- throw new IllegalStateException("Trying to run unknown test: " + currentTest);
- }
-
- selectedTests.add(currentTest);
- }
-
- // run tests
- Diagnostic diagnostic = mu.runTests(patientId, selectedTests);
-
- // warn for tests with missing material
- warnFailedTests(diagnostic, selectedTests);
-
- // create report
- mu.createReport(patientId, selectedTests, diagnostic);
-
- dialog.setVisible(false);
-
- // specify file you wish to open (JPedal handles getting the byte data)
- String filepathReport = props.getPathPDF() + patientId + ".pdf";
-
- // open generated PDF
- // object must be either String in full filepath, or
- // File object which can be relative
- Object[] input = new Object[]{ new File(filepathReport) };
- viewer.executeCommand(Commands.OPENFILE, input);
-
- // display CAD result as bar plot
- if (diagnostic.hasCAD()) {
- System.out.println("CAD = " + diagnostic.getResultCAD());
- BarPlotFrame frame = new BarPlotFrame(diagnostic.getResultCAD(), patientId);
- frame.setVisible(true);
- frame.setAlwaysOnTop(true);
- }
-
-
- } catch (SQLException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Please select a patient.");
- }
-
- }
-
- private void warnFailedTests(Diagnostic diagnostic, ArrayList<TestName> selectedTests) {
- ArrayList<Integer> failedTests = diagnostic.getInvalidTests();
-
- if (!failedTests.isEmpty()) {
- String msg = "Could not complete tests: ";
- boolean first = true;
- for (TestName testName : selectedTests) {
- if (failedTests.contains(testName.getId())) {
- if (first) {
- first = false;
- } else {
- msg += ", ";
- }
- msg += testName.getName();
- }
- }
- displayError(msg);
- }
-
- }
-
- private void displayError(String msg) {
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- mainFrame,
- msg,
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
-
- private ArrayList<String> getSelectedTests() {
- ArrayList<String> tests = new ArrayList<String>();
-
- for (TreePath treePath : jTree.getSelectionPaths()) {
- tests.addAll(getChildrenTests(jTree.getModel(), treePath.getLastPathComponent()));
- }
-
- return tests;
- }
-
- private ArrayList<String> getChildrenTests(TreeModel model, Object node) {
- ArrayList<String> tests = new ArrayList<String>();
-
- if (model.isLeaf(node)) { // leaf
- DefaultMutableTreeNode leaf = (DefaultMutableTreeNode) node;
- tests.add(leaf.toString());
- }
- else { // iterate over children
- for (int i = 0; i < model.getChildCount(node); i++) {
- tests.addAll(getChildrenTests(model, model.getChild(node, i)));
- }
- }
-
- return tests;
- }
-
- }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/e/203cef3cf4a60014162f978bbd19228b b/.metadata/.plugins/org.eclipse.core.resources/.history/e/203cef3cf4a60014162f978bbd19228b
deleted file mode 100644
index 000bc58..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/e/203cef3cf4a60014162f978bbd19228b
+++ /dev/null
@@ -1,61 +0,0 @@
-package io;
-
-import java.io.IOException;
-
-import com.itextpdf.text.DocumentException;
-import com.itextpdf.text.Element;
-import com.itextpdf.text.Rectangle;
-import com.itextpdf.text.pdf.ColumnText;
-import com.itextpdf.text.pdf.GrayColor;
-import com.itextpdf.text.pdf.PdfContentByte;
-import com.itextpdf.text.pdf.PdfFormField;
-import com.itextpdf.text.pdf.PdfPCell;
-import com.itextpdf.text.pdf.PdfPCellEvent;
-import com.itextpdf.text.pdf.PdfWriter;
-import com.itextpdf.text.pdf.RadioCheckField;
-
-public class RadioGroup implements PdfPCellEvent{
-
- protected int id;
-
- public RadioGroup(int ID){
- this.id = ID;
- }
-
- @Override
- public void cellLayout(PdfPCell cell, Rectangle position,
- PdfContentByte[] canvases) {
- PdfWriter writer = canvases[0].getPdfWriter();
- PdfFormField radiogroup = PdfFormField.createRadioButton(writer, true);
- radiogroup.setFieldName(String.valueOf(id));
-
- RadioCheckField radio;
- PdfFormField radiofield;
-
- for(int i=0; i<5; i++){
- radio = new RadioCheckField(writer, position, null, String.valueOf(i+1));
- radio.setBackgroundColor(new GrayColor(0.8f));
- radio.setCheckType(RadioCheckField.TYPE_CIRCLE);
- radio.setBorderColor(GrayColor.GRAYBLACK);
- try {
- radiofield = radio.getRadioField();
- radiogroup.addKid(radiofield);
-
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (DocumentException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
-
- canvases[0].beginText();
- canvases[0].showText( "ciao");
- canvases[0].endText();
-
- }
- writer.addAnnotation(radiogroup);
-
-
-}
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/e/f030587a69a8001419a38fd8608ce0e6 b/.metadata/.plugins/org.eclipse.core.resources/.history/e/f030587a69a8001419a38fd8608ce0e6
deleted file mode 100644
index 803644c..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/e/f030587a69a8001419a38fd8608ce0e6
+++ /dev/null
@@ -1,271 +0,0 @@
-package io;
-
-import java.awt.BorderLayout;
-import java.io.File;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.util.Map;
-import java.util.Set;
-
-import com.itextpdf.text.BaseColor;
-import com.itextpdf.text.Document;
-import com.itextpdf.text.DocumentException;
-import com.itextpdf.text.Element;
-import com.itextpdf.text.ExceptionConverter;
-import com.itextpdf.text.Font;
-import com.itextpdf.text.Font.FontFamily;
-import com.itextpdf.text.FontFactory;
-import com.itextpdf.text.Image;
-import com.itextpdf.text.PageSize;
-import com.itextpdf.text.Paragraph;
-import com.itextpdf.text.Phrase;
-import com.itextpdf.text.Rectangle;
-import com.itextpdf.text.pdf.AcroFields;
-import com.itextpdf.text.pdf.BaseFont;
-import com.itextpdf.text.pdf.ColumnText;
-import com.itextpdf.text.pdf.GrayColor;
-import com.itextpdf.text.pdf.PdfAction;
-import com.itextpdf.text.pdf.PdfBorderDictionary;
-import com.itextpdf.text.pdf.PdfContentByte;
-import com.itextpdf.text.pdf.PdfFormField;
-import com.itextpdf.text.pdf.PdfPCell;
-import com.itextpdf.text.pdf.PdfPCellEvent;
-import com.itextpdf.text.pdf.PdfPTable;
-import com.itextpdf.text.pdf.PdfReader;
-import com.itextpdf.text.pdf.PdfStamper;
-import com.itextpdf.text.pdf.PdfWriter;
-import com.itextpdf.text.pdf.PushbuttonField;
-import com.itextpdf.text.pdf.RadioCheckField;
-import com.itextpdf.text.pdf.TextField;
-
-import framework.Question;
-
-public class Questionnaire implements PdfPCellEvent{
-
- /** The path output file. */
- String pathOutputFile;
-
- /** The document. */
- Document document;
-
-
-
- int tf;
-
- public Questionnaire(String path){
- pathOutputFile = path;
- document = new Document(PageSize.A4, 25, 25, 50, 50);
- }
- public Questionnaire(int tf){
- this.tf = tf;
-
- }
-
- /** The resulting PDF. */
- public static final String RESULT1 = "outputPDF/buttons.pdf";
- /** The resulting PDF. */
- public static final String RESULT2 = "outputPDF/buttons_filled.pdf";
- /** Path to a JavaScript resource. */
- public static final String RESOURCE = "res/buttons.js";
- /** Path to an image used as button icon. */
- public static final String IMAGE = "res/info.png";
- /** Possible values of a radio field / checkboxes */
- public static final String[] LANGUAGES = { "English", "German", "French", "Spanish", "Dutch" };
-
- /**
- * Creates a PDF document.
- * @param filename the path to the new PDF document
- * @throws DocumentException
- * @throws IOException
- */
- public void createPdf(Map<Integer, Question> map, Set<Integer> ids) throws IOException, DocumentException {
-
- @SuppressWarnings("unused")
- PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream("outputPDF/temp.pdf"));
-
-
- document.open();
- Image logo = Image.getInstance("res/shcs_logo2.gif");
-
- logo.scalePercent(30f);
- float[] columnWidths1 = {0.2f, 0.8f};
- PdfPTable table_title = new PdfPTable(columnWidths1);
- PdfPCell c01 = new PdfPCell(logo, false);
- PdfPCell c02 = new PdfPCell(new Paragraph("Survery | Project #693",
- FontFactory.getFont(FontFactory.HELVETICA, 20, Font.BOLD, BaseColor.BLACK)));
- c01.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setHorizontalAlignment(Element.ALIGN_CENTER);
- c01.setBorder(Rectangle.NO_BORDER);
- c02.setBorder(Rectangle.NO_BORDER);
-
- table_title.addCell(c01);
- table_title.addCell(c02);
- table_title.setWidthPercentage(100);
- table_title.setSpacingBefore(0);
- table_title.setSpacingAfter(25);
- document.add(table_title);
-
-
- //----------------------------------------------------------------------------------
-
-
- PdfPTable table1 = new PdfPTable(1);
- table1.setWidthPercentage(100);
- PdfPCell c11 = new PdfPCell(new Phrase("Today you are receiving a pharmacogenetic report based on the genetic " +
- "information of your patient. Because the human genome contains extremely private and sensitive information" +
- " of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier," +
- " it must be managed with care. ",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.NORMAL, BaseColor.BLACK)));
- c11.setLeading(1.5f, 1.5f);
- c11.setPaddingBottom(8);
-
-
- table1.addCell(c11);
- table1.setSpacingAfter(10);
- document.add(table1);
-
-
- //----------------------------------------------------------------------------------
-
-// // step 4
-// // add the JavaScript
-// writer.addJavaScript(Utilities.readFileToString(RESOURCE));
-
- for(Integer id: ids){
- PdfPCell c2;
-
- PdfPTable table = new PdfPTable(1);
- table.setSpacingAfter(10);
- table.setWidthPercentage(100);
-
- PdfPCell c1 = new PdfPCell(new Phrase(id + ") " + map.get(id).getQuestion(),FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c1.setPaddingTop(5);
- c1.setPaddingBottom(5);
- c1.setHorizontalAlignment(Element.ALIGN_CENTER);
- c1.setBorder(Rectangle.NO_BORDER);
- table.addCell(c1);
-
- c2 = new PdfPCell(new Phrase(" 1" +
- " 2" +
- " 3" +
- " 4" +
- " 5",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c2.setHorizontalAlignment(Element.ALIGN_LEFT);
- c2.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c2.setCellEvent(new Questionnaire(id));
- c2.setBorder(Rectangle.TOP);
- c2.setPaddingTop(2);
- c2.setPaddingBottom(5);
- c2.setBackgroundColor(new BaseColor(242, 242, 242));
-
- table.addCell(c2);
-
-
-
- document.add(table);
- }
-
-
- //----------------------------------------------------------------------------------
-
- // step 5
- document.close();
-
-
-
- }
-
- @Override
- public void cellLayout(PdfPCell cell, Rectangle position,
- PdfContentByte[] canvases) {
- PdfWriter writer = canvases[0].getPdfWriter();
- PdfFormField radiogroup = PdfFormField.createRadioButton(writer, true);
- radiogroup.setFieldName(String.valueOf(tf));
- System.out.println(tf);
-
- float llx = position.getLeft();
- float lly = position.getBottom();
-
- float cell_h = cell.getHeight();
- float cell_w = cell.getWidth();
-
- Rectangle rect;
-
- for(int i=1 ; i<=5; i++){
-
- rect = new Rectangle(llx + (3+i)*cell_w/12, lly+cell_h/2-6, llx + (3+i)*cell_w/12+12 ,lly+cell_h/2+6);
-
- RadioCheckField radio = new RadioCheckField(writer, rect, String.valueOf(i), String.valueOf(i));
- radio.setBorderColor(GrayColor.GRAYBLACK);
- radio.setCheckType(RadioCheckField.TYPE_SQUARE);
-
-
- try {
- PdfFormField field = radio.getRadioField();
- radiogroup.addKid(field);
-
- writer.addAnnotation(radiogroup);
- }
-
- catch(IOException ioe) {
- throw new ExceptionConverter(ioe);
- }
- catch(DocumentException de) {
- throw new ExceptionConverter(de);
- }
- }
-
-
-
- }
-
-
- public void writeAnswers(Map<String, String> answers) throws IOException, DocumentException{
-
- PdfReader reader = new PdfReader("outputPDF/temp.pdf");
- PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(pathOutputFile));
-
- AcroFields form = stamper.getAcroFields();
-
- Set<String> fields = form.getFields().keySet();
- for(String key: fields){
-
- if(answers.containsKey(key)){
- form.setField(key, answers.get(key));
- }
- }
- stamper.close();
- reader.close();
- deleteFile("outputPDF/temp.pdf");
-
- }
-
-
- private void deleteFile(String fileName){
- // A File object to represent the filename
- File f = new File(fileName);
-
- // Make sure the file or directory exists and isn't write protected
- if (!f.exists())
- throw new IllegalArgumentException(
- "Delete: no such file or directory: " + fileName);
-
- if (!f.canWrite())
- throw new IllegalArgumentException("Delete: write protected: "
- + fileName);
-
- // If it is a directory, make sure it is empty
- if (f.isDirectory()) {
- String[] files = f.list();
- if (files.length > 0)
- throw new IllegalArgumentException(
- "Delete: directory not empty: " + fileName);
- }
-
- // Attempt to delete it
- boolean success = f.delete();
-
- if (!success)
- throw new IllegalArgumentException("Delete: deletion failed");
- }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/e0/80904237a1a7001417ceadf0100b5ef7 b/.metadata/.plugins/org.eclipse.core.resources/.history/e0/80904237a1a7001417ceadf0100b5ef7
deleted file mode 100644
index d982949..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/e0/80904237a1a7001417ceadf0100b5ef7
+++ /dev/null
@@ -1,288 +0,0 @@
-package io;
-
-import java.awt.BorderLayout;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.util.Map;
-import java.util.Set;
-
-import com.itextpdf.text.BaseColor;
-import com.itextpdf.text.Document;
-import com.itextpdf.text.DocumentException;
-import com.itextpdf.text.Element;
-import com.itextpdf.text.ExceptionConverter;
-import com.itextpdf.text.Font;
-import com.itextpdf.text.Font.FontFamily;
-import com.itextpdf.text.FontFactory;
-import com.itextpdf.text.Image;
-import com.itextpdf.text.PageSize;
-import com.itextpdf.text.Paragraph;
-import com.itextpdf.text.Phrase;
-import com.itextpdf.text.Rectangle;
-import com.itextpdf.text.pdf.AcroFields;
-import com.itextpdf.text.pdf.BaseFont;
-import com.itextpdf.text.pdf.ColumnText;
-import com.itextpdf.text.pdf.GrayColor;
-import com.itextpdf.text.pdf.PdfBorderDictionary;
-import com.itextpdf.text.pdf.PdfContentByte;
-import com.itextpdf.text.pdf.PdfFormField;
-import com.itextpdf.text.pdf.PdfPCell;
-import com.itextpdf.text.pdf.PdfPCellEvent;
-import com.itextpdf.text.pdf.PdfPTable;
-import com.itextpdf.text.pdf.PdfReader;
-import com.itextpdf.text.pdf.PdfStamper;
-import com.itextpdf.text.pdf.PdfWriter;
-import com.itextpdf.text.pdf.RadioCheckField;
-import com.itextpdf.text.pdf.TextField;
-
-import framework.Question;
-
-public class Questionnaire implements PdfPCellEvent{
-
- /** The path output file. */
- String pathOutputFile;
-
- /** The document. */
- Document document;
-
- int tf;
-
- public Questionnaire(String path){
- pathOutputFile = path;
- document = new Document(PageSize.A4, 25, 25, 50, 50);
- }
- public Questionnaire(int tf){
- this.tf = tf;
- }
-
- /** The resulting PDF. */
- public static final String RESULT1 = "outputPDF/buttons.pdf";
- /** The resulting PDF. */
- public static final String RESULT2 = "outputPDF/buttons_filled.pdf";
- /** Path to a JavaScript resource. */
- public static final String RESOURCE = "res/buttons.js";
- /** Path to an image used as button icon. */
- public static final String IMAGE = "res/info.png";
- /** Possible values of a radio field / checkboxes */
- public static final String[] LANGUAGES = { "English", "German", "French", "Spanish", "Dutch" };
-
- /**
- * Creates a PDF document.
- * @param filename the path to the new PDF document
- * @throws DocumentException
- * @throws IOException
- */
- public void createPdf(Map<Integer, Question> map, Set<Integer> ids) throws IOException, DocumentException {
-
- @SuppressWarnings("unused")
- PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(pathOutputFile));
-
-
- document.open();
- Image logo = Image.getInstance("res/shcs_logo2.gif");
-
- logo.scalePercent(30f);
- float[] columnWidths1 = {0.2f, 0.8f};
- PdfPTable table_title = new PdfPTable(columnWidths1);
- PdfPCell c01 = new PdfPCell(logo, false);
- PdfPCell c02 = new PdfPCell(new Paragraph("Survery | Project #693",
- FontFactory.getFont(FontFactory.HELVETICA, 20, Font.BOLD, BaseColor.BLACK)));
- c01.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setHorizontalAlignment(Element.ALIGN_CENTER);
- c01.setBorder(Rectangle.NO_BORDER);
- c02.setBorder(Rectangle.NO_BORDER);
-
- table_title.addCell(c01);
- table_title.addCell(c02);
- table_title.setWidthPercentage(100);
- table_title.setSpacingBefore(0);
- table_title.setSpacingAfter(25);
- document.add(table_title);
-
-
- //----------------------------------------------------------------------------------
-
-
- PdfPTable table1 = new PdfPTable(1);
- table1.setWidthPercentage(100);
- PdfPCell c11 = new PdfPCell(new Phrase("Today you are receiving a pharmacogenetic report based on the genetic " +
- "information of your patient. Because the human genome contains extremely private and sensitive information" +
- " of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier," +
- " it must be managed with care. ",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.NORMAL, BaseColor.BLACK)));
- c11.setLeading(1.5f, 1.5f);
- c11.setPaddingBottom(8);
-
-
- table1.addCell(c11);
- table1.setSpacingAfter(10);
- document.add(table1);
-
-
- //----------------------------------------------------------------------------------
-
-// // step 4
-// // add the JavaScript
-// writer.addJavaScript(Utilities.readFileToString(RESOURCE));
-
- for(Integer id: ids){
- PdfPCell c2;
-
- PdfPTable table = new PdfPTable(1);
- table.setSpacingAfter(10);
- table.setWidthPercentage(100);
-
- PdfPCell c1 = new PdfPCell(new Phrase(id + ") " + map.get(id).getQuestion(),FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c1.setPaddingTop(5);
- c1.setPaddingBottom(5);
- c1.setHorizontalAlignment(Element.ALIGN_CENTER);
- c1.setBorder(Rectangle.NO_BORDER);
- table.addCell(c1);
-
- c2 = new PdfPCell(new Phrase(" 1" +
- " 2" +
- " 3" +
- " 4" +
- " 5",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c2.setHorizontalAlignment(Element.ALIGN_LEFT);
- c2.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c2.setCellEvent(new Questionnaire(id));
- c2.setBorder(Rectangle.TOP);
- c2.setPaddingTop(2);
- c2.setPaddingBottom(5);
- c2.setBackgroundColor(new BaseColor(242, 242, 242));
-
- table.addCell(c2);
-
-
-
- document.add(table);
- }
-
-
- //----------------------------------------------------------------------------------
-
- // step 5
- document.close();
-
- }
-
- @Override
- public void cellLayout(PdfPCell cell, Rectangle position,
- PdfContentByte[] canvases) {
- PdfWriter writer = canvases[0].getPdfWriter();
- PdfFormField radiogroup = PdfFormField.createRadioButton(writer, true);
- radiogroup.setFieldName(String.valueOf(tf));
- System.out.println(tf);
-
- float llx = position.getLeft();
- float lly = position.getBottom();
-
- float cell_h = cell.getHeight();
- float cell_w = cell.getWidth();
-
- Rectangle rect;
-
- for(int i=1 ; i<=5; i++){
-
- rect = new Rectangle(llx + (3+i)*cell_w/12, lly+cell_h/2-6, llx + (3+i)*cell_w/12+12 ,lly+cell_h/2+6);
-
- RadioCheckField radio = new RadioCheckField(writer, rect, null, String.valueOf(i));
- radio.setBorderColor(GrayColor.GRAYBLACK);
- radio.setCheckType(RadioCheckField.TYPE_SQUARE);
-
-
- try {
- PdfFormField field = radio.getRadioField();
- radiogroup.addKid(field);
-
- writer.addAnnotation(radiogroup);
- }
-
- catch(IOException ioe) {
- throw new ExceptionConverter(ioe);
- }
- catch(DocumentException de) {
- throw new ExceptionConverter(de);
- }
- }
-
-
-
- }
-
-
- public String getAnswers() throws IOException, DocumentException{
- PdfReader reader = new PdfReader(pathOutputFile);
-
- PdfStamper stamper = new PdfStamper(reader, new FileOutputStream("outputPDF/buttons_filled2.pdf"));
- AcroFields form = stamper.getAcroFields();
-
- StringBuilder sb = new StringBuilder();
-
-
- Set<String> fields = form.getFields().keySet();
- for(String key: fields){
- System.out.println("key = " + key);
- if(form.getFieldType(key)==AcroFields.FIELD_TYPE_RADIOBUTTON){
- sb.append(key);
- sb.append(",");
- sb.append(form.getFieldRichValue(key));
- sb.append(";");
- }
- }
- stamper.close();
- reader.close();
-
-
- return sb.toString();
-
- }
-
-
-// /**
-// * Manipulates a PDF file src with the file dest as result
-// * @param src the original PDF
-// * @param dest the resulting PDF
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public void manipulatePdf(String src, String dest) throws IOException, DocumentException {
-// PdfReader reader = new PdfReader(src);
-// PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(dest));
-// AcroFields form = stamper.getAcroFields();
-// String[] radiostates = form.getAppearanceStates("language");
-// form.setField("language", radiostates[4]);
-// for (int i = 0; i < LANGUAGES.length; i++) {
-// String[] checkboxstates = form.getAppearanceStates("English");
-// form.setField(LANGUAGES[i], checkboxstates[i % 2 == 0 ? 1 : 0]);
-// }
-// stamper.close();
-// reader.close();
-//
-// PdfReader r = new PdfReader(dest);
-// AcroFields f = r.getAcroFields();
-// Set<String> fields = form.getFields().keySet();
-// for(String key: fields){
-// if(f.getFieldType(key)==AcroFields.FIELD_TYPE_RADIOBUTTON){
-// System.out.println(key);
-// System.out.println(f.getField(key));
-//
-// }
-// }
-// r.close();
-//
-// }
-//
-// /**
-// * Main method
-// * @param args no arguments needed
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public static void main(String[] args) throws IOException, DocumentException {
-// Questionnaire buttons = new Questionnaire();
-// buttons.createPdf(RESULT1);
-// buttons.manipulatePdf(RESULT1, RESULT2);
-// }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/e2/50afd66252ac001410e2e30aa85db9d1 b/.metadata/.plugins/org.eclipse.core.resources/.history/e2/50afd66252ac001410e2e30aa85db9d1
deleted file mode 100644
index 9e8df92..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/e2/50afd66252ac001410e2e30aa85db9d1
+++ /dev/null
@@ -1,907 +0,0 @@
-package ui;
-
-import io.ClientConnection;
-import io.CommAdapter;
-import io.Questionnaire;
-
-import java.awt.BorderLayout;
-import java.awt.Color;
-import java.awt.Component;
-import java.awt.Dimension;
-import java.awt.FlowLayout;
-import java.awt.Font;
-import java.awt.SystemColor;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.awt.event.WindowAdapter;
-import java.io.File;
-import java.io.IOException;
-import java.sql.SQLException;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.LinkedList;
-import java.util.Map;
-import java.util.Set;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
-import javax.swing.Box;
-import javax.swing.BoxLayout;
-import javax.swing.ButtonGroup;
-import javax.swing.DefaultComboBoxModel;
-import javax.swing.GroupLayout;
-import javax.swing.GroupLayout.Alignment;
-import javax.swing.ImageIcon;
-import javax.swing.JButton;
-import javax.swing.JComboBox;
-import javax.swing.JDialog;
-import javax.swing.JFileChooser;
-import javax.swing.JFrame;
-import javax.swing.JLabel;
-import javax.swing.JOptionPane;
-import javax.swing.JPanel;
-import javax.swing.JRadioButton;
-import javax.swing.JScrollPane;
-import javax.swing.JSeparator;
-import javax.swing.JTabbedPane;
-import javax.swing.JTextArea;
-import javax.swing.JTextPane;
-import javax.swing.JTree;
-import javax.swing.LayoutStyle.ComponentPlacement;
-import javax.swing.SwingConstants;
-import javax.swing.UIManager;
-import javax.swing.border.BevelBorder;
-import javax.swing.border.EmptyBorder;
-import javax.swing.border.EtchedBorder;
-import javax.swing.tree.DefaultMutableTreeNode;
-import javax.swing.tree.TreeModel;
-import javax.swing.tree.TreePath;
-
-import org.jpedal.examples.viewer.Commands;
-import org.jpedal.examples.viewer.Viewer;
-
-import utils.ClientProperties;
-
-import com.itextpdf.text.DocumentException;
-
-import database.DBconnectorClient;
-import framework.Diagnostic;
-import framework.MedUnit;
-import framework.Question;
-import framework.reply.ReplySurvey;
-import framework.test.TestName;
-import javax.swing.border.SoftBevelBorder;
-import javax.swing.border.LineBorder;
-
-/**
- *
- * @author youssef, raisaro
- */
-public class GUI extends javax.swing.JFrame {
-
- private static final Logger LOGGER = Logger.getLogger(GUI.class.getName());
-
- private static final long serialVersionUID = -4582280515597700650L;
-
- // configuration
- private ClientProperties props;
-
- private JTree jTree;
- private DBconnectorClient connectorClientDB;
- private LinkedList<Integer> patients;
-
- /** List of all relevant tests */
- private HashMap<String, TestName> testsByName;
- private Viewer viewer;
- private JDialog dialog;
- private JFrame frame;
- private boolean survey_submitted;
- private int close_trials;
- private Map<Integer, ButtonGroup> buttonGroupMap;
- private Questionnaire quest;
- private Map<Integer, Question> map;
- private Set<Integer> ids;
- private Map<String,String> answers;
- private Map<Integer, String> locations;
-
-
- /**
- * Creates new form GUI
- */
- public GUI(ClientProperties props){
-
- frame = this;
- this.props = props;
- this.connectorClientDB = new DBconnectorClient(props.getDbMsAccess());
- survey_submitted = false;
- close_trials = 0;
-
-
- try {
- initComponents();
-
- viewer = new Viewer(jScrollPane2, null);
- viewer.setupViewer();
-
- // create questionnare
-
-
- System.out.println("#of questions: " + ids.size());
-
-// viewer_q = new Viewer(jScrollPane4, null);
-// viewer_q.setupViewer();
-//
-// // specify file you wish to open (JPedal handles getting the byte data)
-// String filepathReport = "outputPDF/buttons_filled.pdf";
-//
-// // open generated PDF
-// // object must be either String in full filepath, or
-// // File object which can be relative
-// Object[] input = new Object[]{ new File(filepathReport) };
-// viewer_q.executeCommand(Commands.OPENFILE, input);
-
- JButton btnSubmitQuestionnaire = new JButton("Submit Questionnaire");
- btnSubmitQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- btnSubmitQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- submitButtonActionPerformed(arg0);
- }
- });
- JButton btnResetQuestionnaire = new JButton("Save as PDF");
- btnResetQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- savePDFButtonActionPerformed(arg0);
- }
- });
- btnResetQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- JPanel panel_button = new JPanel();
- panel_button.setLayout(new BoxLayout(panel_button, BoxLayout.X_AXIS));
-
- lblNewLabel_3 = new JLabel("");
- lblNewLabel_3.setIcon(new ImageIcon("res/location_icon.png"));
- panel_button.add(lblNewLabel_3);
-
-
-
- comboBox = new JComboBox<String>();
- comboBox.setFont(new Font("Tahoma", Font.BOLD, 12));
- comboBox.setModel(new DefaultComboBoxModel<String>(new String[] {"Select Location"}));
- for(Integer id_loc : locations.keySet()){
- comboBox.addItem(locations.get(id_loc));
- }
-
-
- panel_button.add(comboBox);
-
- rigidArea = Box.createRigidArea(new Dimension(10, 0));
- panel_button.add(rigidArea);
-
- lblNewLabel_1 = new JLabel("");
- lblNewLabel_1.setIcon(new ImageIcon("res/submit.png"));
- panel_button.add(lblNewLabel_1);
- panel_button.add(btnSubmitQuestionnaire);
-
- panel_button.add(Box.createRigidArea(new Dimension(10,0)));
-
- lblNewLabel_2 = new JLabel("");
- lblNewLabel_2.setIcon(new ImageIcon("res/pdf.png"));
- panel_button.add(lblNewLabel_2);
- panel_button.add(btnResetQuestionnaire);
- panel_button.setPreferredSize(new Dimension(211, 35));
- panel_button.validate();
-
- JPanel panel_3 = new JPanel();
- GroupLayout gl_panel = new GroupLayout(panel);
- gl_panel.setHorizontalGroup(
- gl_panel.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(63)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addGap(103)
- .addComponent(panel_button, GroupLayout.DEFAULT_SIZE, 498, Short.MAX_VALUE)
- .addGap(241))
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(41)
- .addGroup(gl_panel.createParallelGroup(Alignment.TRAILING)
- .addComponent(jScrollPane4, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE)
- .addComponent(panel_1, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE))
- .addGap(32))
- );
- gl_panel.setVerticalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(22)
- .addComponent(panel_1, GroupLayout.PREFERRED_SIZE, 235, GroupLayout.PREFERRED_SIZE)
- .addGap(37)
- .addComponent(jScrollPane4, GroupLayout.DEFAULT_SIZE, 379, Short.MAX_VALUE)
- .addGap(26)
- .addGroup(gl_panel.createParallelGroup(Alignment.LEADING)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(panel_button, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE)))
- );
- panel_3.setLayout(new BoxLayout(panel_3, BoxLayout.X_AXIS));
-
-
- panel.setLayout(gl_panel);
-
-
-
-
-
-
- /////////////////////////////////////////////////////////
- // display the tests available
-
- // get the tests
- HashMap<String, ArrayList<TestName>> testsRelevantByGroup = connectorClientDB.getRelevantTestsByGroup();
- ArrayList<String> groups = new ArrayList<String>(testsRelevantByGroup.keySet());
-
- // flatten hashmap into linkedlist
-// tests = new LinkedList<>();
- testsByName = new HashMap<String, TestName>();
- for (String group : groups) {
-// tests.addAll(testsRelevantByGroup.get(group));
- for (TestName test : testsRelevantByGroup.get(group)) {
- testsByName.put(test.getName(), test);
- }
- }
-
- // define tree structure of the tests
- DefaultMutableTreeNode root = new DefaultMutableTreeNode("All");
-
- for (String group : groups) {
- DefaultMutableTreeNode child = new DefaultMutableTreeNode(group);
- root.add(child);
-
- for (TestName test : testsRelevantByGroup.get(group)) {
- DefaultMutableTreeNode grandChild = new DefaultMutableTreeNode(test.getName());
- child.add(grandChild);
- }
- }
-
- // define swing object
- jTree = new JTree(root);
-
- for(int i=0;i<jTree.getRowCount();i++){
- jTree.expandRow(i);
- }
-
- jScrollPane3.setViewportView(jTree);
-// jTree.addTreeSelectionListener(new TreeSelectionListener() {
-//
-// @Override
-// public void valueChanged(TreeSelectionEvent e) {
-// tp = jTree.getSelectionPaths();
-// }
-// });
- jScrollPane3.setViewportView(jTree);
-
- /////////////////////////////////////////////////////////
- // display the patients registered
-
- patients = connectorClientDB.getPatients();
- for (Integer patientId : patients) {
- jComboBox1.addItem(patientId.toString());
- }
-
- } catch (SQLException ex) {
- Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex);
- ex.printStackTrace();
-// } catch (IOException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
-// } catch (DocumentException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
- }
-
- }
-
- /**
- * 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() {
-
- jPanel1 = new javax.swing.JPanel();
- jLabel2 = new javax.swing.JLabel();
- jLabel1 = new javax.swing.JLabel();
- jPanel2 = new javax.swing.JPanel();
- jComboBox1 = new javax.swing.JComboBox<String>();
- jButton1 = new javax.swing.JButton();
- jButton1.setFont(new Font("Tahoma", Font.BOLD, 12));
- jLabel3 = new javax.swing.JLabel();
- jLabel4 = new javax.swing.JLabel();
- jScrollPane3 = new javax.swing.JScrollPane();
- jScrollPane2 = new javax.swing.JScrollPane();
- jMenuBar1 = new javax.swing.JMenuBar();
- jMenu1 = new javax.swing.JMenu();
- jMenuItem1 = new javax.swing.JMenuItem();
- jMenu2 = new javax.swing.JMenu();
- dialog = new JDialog();
- tabbedPane = new JTabbedPane(JTabbedPane.TOP);
-
- setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
- addWindowListener(new WindowAdapter() {
- @Override
- public void windowClosing(java.awt.event.WindowEvent windowEvent) {
- if (!survey_submitted && close_trials <= 2){
- JOptionPane.showMessageDialog(frame, "Before closing the application, please fill in and submit the questionnaire.");
- close_trials++;
- tabbedPane.setSelectedIndex(1);
- }else{
- System.exit(0);
- }
- }
- });
- setTitle("HIV Pharmacogenomics\n");
-
- jLabel2.setIcon(new javax.swing.ImageIcon("res/shcs_logo2_small.gif")); // NOI18N
-
- jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
- jLabel1.setText("HIV Pharmacogenomics | Project #693");
-
- javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
- jPanel1.setLayout(jPanel1Layout);
- jPanel1Layout.setHorizontalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap(71, Short.MAX_VALUE)
- .addComponent(jLabel1)
- .addGap(18, 18, 18)
- .addComponent(jLabel2))
- );
- jPanel1Layout.setVerticalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jLabel1)
- .addGap(11, 11, 11))
- .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)
- );
-
- jPanel2.setBackground(new java.awt.Color(255, 255, 255));
- jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
-
- jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<String>(new String[]{"Select Patient"}));
-
- jButton1.setText("Run Test");
- jButton1.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton1ActionPerformed(evt);
- }
- });
-
- JLabel lblNewLabel = new JLabel("");
- lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
- lblNewLabel.setIcon(new javax.swing.ImageIcon("res/gears.png"));
-
-
-
- javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
- jPanel2Layout.setHorizontalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addComponent(jComboBox1, 0, 248, Short.MAX_VALUE)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addGap(75)
- .addGroup(jPanel2Layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jButton1)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 75, GroupLayout.PREFERRED_SIZE))
- .addContainerGap(98, Short.MAX_VALUE))
- );
- jPanel2Layout.setVerticalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addComponent(jComboBox1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED, 223, Short.MAX_VALUE)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jButton1)
- .addGap(19))
- );
- jPanel2.setLayout(jPanel2Layout);
-
- jLabel3.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel3.setText("Select Patient");
-
- jLabel4.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel4.setText("Select Test");
-
- jScrollPane3.setBackground(new java.awt.Color(255, 255, 255));
-
- jMenu1.setText("File");
-
- jMenuItem1.setText("Exit");
- jMenu1.add(jMenuItem1);
-
- jMenuBar1.add(jMenu1);
-
- jMenu2.setText("Edit");
- jMenuBar1.add(jMenu2);
-
- setJMenuBar(jMenuBar1);
-
-
-
- javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
- layout.setHorizontalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(layout.createParallelGroup(Alignment.LEADING, false)
- .addComponent(jLabel3)
- .addComponent(jLabel4)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, 244, Short.MAX_VALUE)
- .addComponent(jScrollPane3))
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 970, Short.MAX_VALUE))
- .addContainerGap())
- );
- layout.setVerticalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel4))
- .addPreferredGap(ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addComponent(jScrollPane3, GroupLayout.PREFERRED_SIZE, 388, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jLabel3)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 785, Short.MAX_VALUE))
- .addContainerGap())
- );
-
-
- jScrollPane2.setAutoscrolls(true);
- jScrollPane3.setAutoscrolls(true);
- tabbedPane.addTab("Report", new ImageIcon("res/report_icon.gif"), jScrollPane2, null);
- tabbedPane.setBackgroundAt(0, new Color(255, 255, 255));
-
- panel = new JPanel();
- tabbedPane.addTab("Survey", new ImageIcon("res/survey_icon.png"), panel, null);
- tabbedPane.setBackgroundAt(1, new Color(255, 255, 255));
- tabbedPane.setEnabledAt(1, true);
-
- panel_1 = new JPanel();
- panel_1.setBorder(new LineBorder(new Color(0, 0, 0), 2));
- panel_1.setBackground(SystemColor.control);
-
- JLabel label = new JLabel("");
- label.setIcon(new ImageIcon("res/shcs_logo2_medium.gif"));
-
- lblDearDoctor = new JLabel("Dear Doctor,");
- lblDearDoctor.setFont(new Font("Tahoma", Font.BOLD, 14));
-
- JScrollPane scrollPane = new JScrollPane();
- scrollPane.setBorder(null);
- GroupLayout gl_panel_1 = new GroupLayout(panel_1);
- gl_panel_1.setHorizontalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(Alignment.LEADING, gl_panel_1.createSequentialGroup()
- .addGap(25)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addComponent(lblDearDoctor)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 661, Short.MAX_VALUE))
- .addContainerGap())
- );
- gl_panel_1.setVerticalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addContainerGap()
- .addComponent(lblDearDoctor)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 203, Short.MAX_VALUE))
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(36)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 96, GroupLayout.PREFERRED_SIZE)))
- .addContainerGap())
- );
-
- JTextPane txtpnTodayYouAre = new JTextPane();
- txtpnTodayYouAre.setBorder(null);
- txtpnTodayYouAre.setText("Today you are receiving a pharmacogenetics report based on the genome of your patient. Because of its highly sensitive nature, " +
- "the genetic information you are provided with is processed in a privacy-preserving way. In particular, to protect patients’ genomic privacy, " +
- "their genetic and clinical data is stored encrypted at the SHCS data center, and securely analyzed through a sophisticated algorithm designed and developed at EPFL [1, 2]. " +
- "The actual clinical and genetic information is never revealed. Only the authorized users, such as you, can get some processed information, for example, the final result of a " +
- "pharmacogenetics risk test.\nThis mechanism protects the data against insiders or hackers trying to illegally access patients’ medical information, while still allowing authorized " +
- "users to obtain the information they need." +
- "\n\nTo help us understanding the importance of genomic privacy in the medical domain, and the impact of privacy-enhancing technologies in daily clinical practice, please complete the following survey.");
- txtpnTodayYouAre.setFont(new Font("Tahoma", Font.PLAIN, 13));
- txtpnTodayYouAre.setEditable(false);
- txtpnTodayYouAre.setBackground(SystemColor.control);
- scrollPane.setViewportView(txtpnTodayYouAre);
- panel_1.setLayout(gl_panel_1);
- jScrollPane4 = new javax.swing.JScrollPane();
- jScrollPane4.setBorder(new LineBorder(SystemColor.desktop, 2));
- getContentPane().setLayout(layout);
-
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
- ReplySurvey replySurvey = commHandlerAdapter.callServiceSurvey();
-
- map = replySurvey.getQuestions();
- ids = map.keySet();
- locations = replySurvey.getLocations();
-
- panel_2 = new JPanel();
- panel_2.setBackground(Color.WHITE);
- panel_2.setBorder(null);
- jScrollPane4.setViewportView(panel_2);
- panel_2.setLayout(new BoxLayout(panel_2, BoxLayout.Y_AXIS));
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
-
-
- for(Integer id : ids){
- ButtonGroup group = new ButtonGroup();
- JRadioButton r1 = new JRadioButton("1"); r1.setActionCommand("1"); r1.setBackground(Color.WHITE);
- JRadioButton r2 = new JRadioButton("2"); r2.setActionCommand("2"); r2.setBackground(Color.WHITE);
- JRadioButton r3 = new JRadioButton("3"); r3.setActionCommand("3"); r3.setBackground(Color.WHITE);
- JRadioButton r4 = new JRadioButton("4"); r4.setActionCommand("4"); r4.setBackground(Color.WHITE);
- JRadioButton r5 = new JRadioButton("5"); r5.setActionCommand("5"); r5.setBackground(Color.WHITE);
- group.add(r1);
- group.add(r2);
- group.add(r3);
- group.add(r4);
- group.add(r5);
- JPanel radio_panel = new JPanel();
- radio_panel.setLayout((new BoxLayout(radio_panel, BoxLayout.X_AXIS)));
- radio_panel.setBackground(Color.WHITE);
- radio_panel.setAlignmentX(Component.CENTER_ALIGNMENT);
- radio_panel.add(r1);
- radio_panel.add(r2);
- radio_panel.add(r3);
- radio_panel.add(r4);
- radio_panel.add(r5);
- radio_panel.doLayout();
- radio_panel.setPreferredSize(radio_panel.getPreferredSize());
- JTextArea question = new JTextArea(id + ") " + map.get(id).getQuestion());
- question.setLineWrap(true);
- question.setWrapStyleWord(true);
- question.setAlignmentX(Component.CENTER_ALIGNMENT);
- question.setFont(new Font("Tahoma", Font.PLAIN, 13));
-
- JPanel row_panel = new JPanel();
- row_panel.setLayout(new BoxLayout(row_panel, BoxLayout.X_AXIS));
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.add(question);
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.add(radio_panel);
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.setBackground(Color.WHITE);
-
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- panel_2.add(row_panel);
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
-// panel_2.add(radio_panel);
- panel_2.add(new JSeparator());
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
-// panel_2.setPreferredSize(panel_2.getPreferredSize());
- buttonGroupMap.put(id, group);
-
- }
-
-
-
- this.setSize(new Dimension(1200, 865));
-// pack();
- }// </editor-fold>//GEN-END:initComponents
-
-
- private void submitButtonActionPerformed(java.awt.event.ActionEvent evt){
-
- try{
- answers = new HashMap<String, String>();
- StringBuilder sb = new StringBuilder();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- sb.append(q).append(",");
- sb.append(bg.getSelection().getActionCommand()).append(";");
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- String answer = sb.toString();
- Integer id_loc = null;
- for(Integer i: locations.keySet()){
- if(locations.get(i).equals(comboBox.getSelectedItem().toString()))
- id_loc = i;
- }
-
- String id_p;
- if(jComboBox1.getSelectedItem().toString().equals("Select Patient"))
- id_p = "0";
- else
- id_p = jComboBox1.getSelectedItem().toString();
-
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
-
- String reply = commHandlerAdapter.callServiceSurveyAnswer(answer, id_loc.toString(), id_p);
-
- if(reply.equals("1")){
- survey_submitted = true;
-
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Congrats! Your aswers have been sent to the SHCS datacenter.",
- "Information Message",
- JOptionPane.INFORMATION_MESSAGE);
- }
- else{
- throw new IOException();
- }
-
-
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "The SHCS datacenter does not respond. Please save the survey and send it to jean.raisaro@epfl.ch.",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
- private void savePDFButtonActionPerformed(java.awt.event.ActionEvent evt){
- try {
-
- answers = new HashMap<String, String>();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- JFileChooser chooser = new JFileChooser();
- // Note: source for ExampleFileFilter can be found in FileChooserDemo,
- // under the demo/jfc directory in the JDK.
-
- int returnVal = chooser.showSaveDialog(this);
- System.out.println(returnVal);
- if(returnVal == JFileChooser.APPROVE_OPTION) {
- System.out.println("You chose to open this file: " +
- chooser.getSelectedFile().getPath());
- quest = new Questionnaire(chooser.getSelectedFile().getPath() + ".pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }else{
- quest = new Questionnaire("outputPDF/survey.pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }
-
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (DocumentException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (NullPointerException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
-
- private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
-
- JPanel contentPanel = new JPanel();
-
- dialog.setBounds(100, 100, 410, 80);
- dialog.getContentPane().setLayout(new BorderLayout());
- contentPanel.setLayout(new FlowLayout());
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- dialog.getContentPane().add(contentPanel, BorderLayout.CENTER);
- {
- JLabel label = new JLabel("Please wait...The overall computation can take few seconds");
- label.setHorizontalAlignment(SwingConstants.CENTER);
- label.setFont(new Font("Tahoma", Font.PLAIN, 12));
- contentPanel.add(label);
- }
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
- dialog.getContentPane().add(buttonPane, BorderLayout.SOUTH);
- }
- dialog.setLocationRelativeTo(this);
- dialog.setVisible(true);
-
- GUIWorker gw = new GUIWorker(this, props);
- Thread t = new Thread(gw);
- t.start();
-
- }
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JButton jButton1;
- private javax.swing.JComboBox<String> jComboBox1;
- private javax.swing.JLabel jLabel1;
- private javax.swing.JLabel jLabel2;
- private javax.swing.JLabel jLabel3;
- private javax.swing.JLabel jLabel4;
- private javax.swing.JMenu jMenu1;
- private javax.swing.JMenu jMenu2;
- private javax.swing.JMenuBar jMenuBar1;
- private javax.swing.JMenuItem jMenuItem1;
- private javax.swing.JPanel jPanel1;
- private javax.swing.JPanel jPanel2;
- private javax.swing.JScrollPane jScrollPane3;
- private javax.swing.JTabbedPane tabbedPane;
- private javax.swing.JScrollPane jScrollPane2;
- private javax.swing.JScrollPane jScrollPane4;
- private JPanel panel;
- private JPanel panel_1;
- private JPanel panel_2;
- private JLabel lblDearDoctor;
- private JLabel lblNewLabel_1;
- private JLabel lblNewLabel_2;
- private JLabel lblNewLabel_3;
- private JComboBox<String> comboBox;
- private Component rigidArea;
-
- // End of variables declaration//GEN-END:variables
-
-
- class GUIWorker implements Runnable{
-
- private JFrame mainFrame;
- private ClientProperties props;
- private MedUnit mu;
-
- public GUIWorker(GUI gui, ClientProperties props) {
- mainFrame = gui;
-
- this.props = props;
- this.mu = new MedUnit(props, 0);
- }
-
- @Override
- public void run() {
-
- try{
- int patientId = Integer.parseInt((String) jComboBox1.getSelectedItem());
-
- // convert selected tests to test identifiers
- ArrayList<TestName> selectedTests = new ArrayList<TestName>();
- for (String currentName : getSelectedTests()) {
- TestName currentTest = testsByName.get(currentName);
-
- if (currentTest == null) {
- throw new IllegalStateException("Trying to run unknown test: " + currentTest);
- }
-
- selectedTests.add(currentTest);
- }
-
- // run tests
- Diagnostic diagnostic = mu.runTests(patientId, selectedTests);
-
- // warn for tests with missing material
- warnFailedTests(diagnostic, selectedTests);
-
- // create report
- mu.createReport(patientId, selectedTests, diagnostic);
-
- dialog.setVisible(false);
-
- // specify file you wish to open (JPedal handles getting the byte data)
- String filepathReport = props.getPathPDF() + patientId + ".pdf";
-
- // open generated PDF
- // object must be either String in full filepath, or
- // File object which can be relative
- Object[] input = new Object[]{ new File(filepathReport) };
- viewer.executeCommand(Commands.OPENFILE, input);
-
- // display CAD result as bar plot
- if (diagnostic.hasCAD()) {
- System.out.println("CAD = " + diagnostic.getResultCAD());
- BarPlotFrame frame = new BarPlotFrame(diagnostic.getResultCAD(), patientId);
- frame.setVisible(true);
- frame.setAlwaysOnTop(true);
- }
-
-
- } catch (SQLException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Please select a patient.");
- }
-
- }
-
- private void warnFailedTests(Diagnostic diagnostic, ArrayList<TestName> selectedTests) {
- ArrayList<Integer> failedTests = diagnostic.getInvalidTests();
-
- if (!failedTests.isEmpty()) {
- String msg = "Could not complete tests: ";
- boolean first = true;
- for (TestName testName : selectedTests) {
- if (failedTests.contains(testName.getId())) {
- if (first) {
- first = false;
- } else {
- msg += ", ";
- }
- msg += testName.getName();
- }
- }
- displayError(msg);
- }
-
- }
-
- private void displayError(String msg) {
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- mainFrame,
- msg,
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
-
- private ArrayList<String> getSelectedTests() {
- ArrayList<String> tests = new ArrayList<String>();
-
- for (TreePath treePath : jTree.getSelectionPaths()) {
- tests.addAll(getChildrenTests(jTree.getModel(), treePath.getLastPathComponent()));
- }
-
- return tests;
- }
-
- private ArrayList<String> getChildrenTests(TreeModel model, Object node) {
- ArrayList<String> tests = new ArrayList<String>();
-
- if (model.isLeaf(node)) { // leaf
- DefaultMutableTreeNode leaf = (DefaultMutableTreeNode) node;
- tests.add(leaf.toString());
- }
- else { // iterate over children
- for (int i = 0; i < model.getChildCount(node); i++) {
- tests.addAll(getChildrenTests(model, model.getChild(node, i)));
- }
- }
-
- return tests;
- }
-
- }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/e2/604b30839aa7001417ceadf0100b5ef7 b/.metadata/.plugins/org.eclipse.core.resources/.history/e2/604b30839aa7001417ceadf0100b5ef7
deleted file mode 100644
index d02b688..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/e2/604b30839aa7001417ceadf0100b5ef7
+++ /dev/null
@@ -1,279 +0,0 @@
-package io;
-
-import java.awt.BorderLayout;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.util.Map;
-import java.util.Set;
-
-import com.itextpdf.text.BaseColor;
-import com.itextpdf.text.Document;
-import com.itextpdf.text.DocumentException;
-import com.itextpdf.text.Element;
-import com.itextpdf.text.ExceptionConverter;
-import com.itextpdf.text.Font;
-import com.itextpdf.text.Font.FontFamily;
-import com.itextpdf.text.FontFactory;
-import com.itextpdf.text.Image;
-import com.itextpdf.text.PageSize;
-import com.itextpdf.text.Paragraph;
-import com.itextpdf.text.Phrase;
-import com.itextpdf.text.Rectangle;
-import com.itextpdf.text.pdf.AcroFields;
-import com.itextpdf.text.pdf.BaseFont;
-import com.itextpdf.text.pdf.ColumnText;
-import com.itextpdf.text.pdf.GrayColor;
-import com.itextpdf.text.pdf.PdfBorderDictionary;
-import com.itextpdf.text.pdf.PdfContentByte;
-import com.itextpdf.text.pdf.PdfFormField;
-import com.itextpdf.text.pdf.PdfPCell;
-import com.itextpdf.text.pdf.PdfPCellEvent;
-import com.itextpdf.text.pdf.PdfPTable;
-import com.itextpdf.text.pdf.PdfReader;
-import com.itextpdf.text.pdf.PdfWriter;
-import com.itextpdf.text.pdf.RadioCheckField;
-import com.itextpdf.text.pdf.TextField;
-
-import framework.Question;
-
-public class Questionnaire implements PdfPCellEvent{
-
- /** The path output file. */
- String pathOutputFile;
-
- /** The document. */
- Document document;
-
- int tf;
-
- public Questionnaire(String path){
- pathOutputFile = path;
- document = new Document(PageSize.A4, 25, 25, 50, 50);
- }
- public Questionnaire(int tf){
- this.tf = tf;
- }
-
- /** The resulting PDF. */
- public static final String RESULT1 = "outputPDF/buttons.pdf";
- /** The resulting PDF. */
- public static final String RESULT2 = "outputPDF/buttons_filled.pdf";
- /** Path to a JavaScript resource. */
- public static final String RESOURCE = "res/buttons.js";
- /** Path to an image used as button icon. */
- public static final String IMAGE = "res/info.png";
- /** Possible values of a radio field / checkboxes */
- public static final String[] LANGUAGES = { "English", "German", "French", "Spanish", "Dutch" };
-
- /**
- * Creates a PDF document.
- * @param filename the path to the new PDF document
- * @throws DocumentException
- * @throws IOException
- */
- public void createPdf(Map<Integer, Question> map, Set<Integer> ids) throws IOException, DocumentException {
-
- @SuppressWarnings("unused")
- PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(pathOutputFile));
-
-
- document.open();
- Image logo = Image.getInstance("res/shcs_logo2.gif");
-
- logo.scalePercent(30f);
- float[] columnWidths1 = {0.2f, 0.8f};
- PdfPTable table_title = new PdfPTable(columnWidths1);
- PdfPCell c01 = new PdfPCell(logo, false);
- PdfPCell c02 = new PdfPCell(new Paragraph("Survery | Project #693",
- FontFactory.getFont(FontFactory.HELVETICA, 20, Font.BOLD, BaseColor.BLACK)));
- c01.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setHorizontalAlignment(Element.ALIGN_CENTER);
- c01.setBorder(Rectangle.NO_BORDER);
- c02.setBorder(Rectangle.NO_BORDER);
-
- table_title.addCell(c01);
- table_title.addCell(c02);
- table_title.setWidthPercentage(100);
- table_title.setSpacingBefore(0);
- table_title.setSpacingAfter(25);
- document.add(table_title);
-
-
- //----------------------------------------------------------------------------------
-
-
- PdfPTable table1 = new PdfPTable(1);
- table1.setWidthPercentage(100);
- PdfPCell c11 = new PdfPCell(new Phrase("Today you are receiving a pharmacogenetic report based on the genetic " +
- "information of your patient. Because the human genome contains extremely private and sensitive information" +
- " of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier," +
- " it must be managed with care. ",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.NORMAL, BaseColor.BLACK)));
- c11.setLeading(1.5f, 1.5f);
- c11.setPaddingBottom(8);
-
-
- table1.addCell(c11);
- table1.setSpacingAfter(10);
- document.add(table1);
-
-
- //----------------------------------------------------------------------------------
-
-// // step 4
-// // add the JavaScript
-// writer.addJavaScript(Utilities.readFileToString(RESOURCE));
-
- for(Integer id: ids){
- PdfPCell c2;
-
- PdfPTable table = new PdfPTable(1);
- table.setSpacingAfter(10);
- table.setWidthPercentage(100);
-
- PdfPCell c1 = new PdfPCell(new Phrase(id + ") " + map.get(id).getQuestion(),FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c1.setPaddingTop(5);
- c1.setPaddingBottom(5);
- c1.setHorizontalAlignment(Element.ALIGN_CENTER);
- c1.setBorder(Rectangle.NO_BORDER);
- table.addCell(c1);
-
- c2 = new PdfPCell(new Phrase(" 1" +
- " 2" +
- " 3" +
- " 4" +
- " 5",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c2.setHorizontalAlignment(Element.ALIGN_LEFT);
- c2.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c2.setCellEvent(new Questionnaire(id));
- c2.setBorder(Rectangle.TOP);
- c2.setPaddingTop(2);
- c2.setPaddingBottom(5);
- c2.setBackgroundColor(new BaseColor(242, 242, 242));
-
- table.addCell(c2);
-
-
-
- document.add(table);
- }
-
-
- //----------------------------------------------------------------------------------
-
- // step 5
- document.close();
-
- }
-
- @Override
- public void cellLayout(PdfPCell cell, Rectangle position,
- PdfContentByte[] canvases) {
- PdfWriter writer = canvases[0].getPdfWriter();
- PdfFormField radiogroup = PdfFormField.createRadioButton(writer, true);
- radiogroup.setFieldName(String.valueOf(tf));
- System.out.println(tf);
-
- float llx = position.getLeft();
- float lly = position.getBottom();
-
- float cell_h = cell.getHeight();
- float cell_w = cell.getWidth();
-
- Rectangle rect;
-
- for(int i=1 ; i<=5; i++){
-
- rect = new Rectangle(llx + (3+i)*cell_w/12, lly+cell_h/2-6, llx + (3+i)*cell_w/12+12 ,lly+cell_h/2+6);
-
- RadioCheckField radio = new RadioCheckField(writer, rect, null, String.valueOf(i));
- radio.setBorderColor(GrayColor.GRAYBLACK);
- radio.setCheckType(RadioCheckField.TYPE_SQUARE);
-
-
- try {
- PdfFormField field = radio.getRadioField();
- radiogroup.addKid(field);
-
- writer.addAnnotation(radiogroup);
- }
-
- catch(IOException ioe) {
- throw new ExceptionConverter(ioe);
- }
- catch(DocumentException de) {
- throw new ExceptionConverter(de);
- }
- }
-
-
-
- }
-
-
- public String getAnswers() throws IOException{
- StringBuilder sb = new StringBuilder();
- PdfReader reader = new PdfReader(pathOutputFile);
- AcroFields form = reader.getAcroFields();
- Set<String> fields = form.getFields().keySet();
- for(String key: fields){
- if(form.getFieldType(key)==AcroFields.FIELD_TYPE_RADIOBUTTON){
- sb.append(key);
- sb.append(",");
- sb.append(form.getField(key));
- sb.append(";");
- }
- }
- reader.close();
-
- return sb.toString();
-
- }
-
-
-// /**
-// * Manipulates a PDF file src with the file dest as result
-// * @param src the original PDF
-// * @param dest the resulting PDF
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public void manipulatePdf(String src, String dest) throws IOException, DocumentException {
-// PdfReader reader = new PdfReader(src);
-// PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(dest));
-// AcroFields form = stamper.getAcroFields();
-// String[] radiostates = form.getAppearanceStates("language");
-// form.setField("language", radiostates[4]);
-// for (int i = 0; i < LANGUAGES.length; i++) {
-// String[] checkboxstates = form.getAppearanceStates("English");
-// form.setField(LANGUAGES[i], checkboxstates[i % 2 == 0 ? 1 : 0]);
-// }
-// stamper.close();
-// reader.close();
-//
-// PdfReader r = new PdfReader(dest);
-// AcroFields f = r.getAcroFields();
-// Set<String> fields = form.getFields().keySet();
-// for(String key: fields){
-// if(f.getFieldType(key)==AcroFields.FIELD_TYPE_RADIOBUTTON){
-// System.out.println(key);
-// System.out.println(f.getField(key));
-//
-// }
-// }
-// r.close();
-//
-// }
-//
-// /**
-// * Main method
-// * @param args no arguments needed
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public static void main(String[] args) throws IOException, DocumentException {
-// Questionnaire buttons = new Questionnaire();
-// buttons.createPdf(RESULT1);
-// buttons.manipulatePdf(RESULT1, RESULT2);
-// }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/e2/f0a5cee3cea700141a6b8b802f4728c1 b/.metadata/.plugins/org.eclipse.core.resources/.history/e2/f0a5cee3cea700141a6b8b802f4728c1
deleted file mode 100644
index 1862ed9..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/e2/f0a5cee3cea700141a6b8b802f4728c1
+++ /dev/null
@@ -1,58 +0,0 @@
-package io;
-
-import io.serializer.url.URLParserDecrypt;
-import io.serializer.url.URLParserMaterial;
-import io.serializer.xml.XMLParserDecrypt;
-import io.serializer.xml.XMLParserMaterial;
-import io.serializer.xml.XMLParserSurvey;
-
-import java.util.logging.Logger;
-
-import framework.Type;
-import framework.reply.ReplyDecryption;
-import framework.reply.ReplyMaterial;
-import framework.reply.ReplySurvey;
-import framework.request.RequestDecryption;
-import framework.request.RequestMaterial;
-
-public class CommAdapter {
-
- @SuppressWarnings("unused")
- private static final Logger LOGGER = Logger.getLogger(CommAdapter.class.getName());
-
- public ClientConnection connectSPU = null;
-
- public CommAdapter(ClientConnection connectSPU) {
- this.connectSPU = connectSPU;
- }
-
- public ReplyDecryption callServiceDecrypt(RequestDecryption rqtDecrypt) {
- String requestString = URLParserDecrypt.requestToString(rqtDecrypt);
-// String replyString = "<awr_decrypt><patient>30351</patient><v_timestamp>1417188729390</v_timestamp><decrypt_val>,,,,,,,,,,,,,,,,2,AwHR3OO0/hkwgEHluLDFLtn4aaTBAwBEJjJpMegGa29ASgtyt1ha2OOyxvEvNgkIaY0xWXtTmqrqhSBKDG6J7Lps0g==,AwE/oifhonvUZDA4mqRK8K1WCkoepEuL9SidjdFXMNNZQXCMUvVN6pBUYVFgJeFX6mT2jruK8ic3y6yI14PfKl/Pvg==,AgBHs6HGF9AYNc5RlFTGv025WEaT91i/MPy+HXqhvHOrp0Ol9/aKyvv2BgAzeAdsdSEbVs2sahiyL/kbKjeUoI9tsA==,,,,,,,,,,,,,2,AgHIofEmf4aJMLBnKAY3/8WcLXUETF4y/68fzZR6hsS5btZTyI0E4ZTltDzV6hBzIT14cC4S/BMclo1aoLt5C9f+Cg==,AgDOXZAZAwO4KXslqU1wKctrVlH8CcGvpO8gGrPl3YjrY8SR3a6gStvZvjcUKXhvtDkRwSLAIkD3lFrKSXWestHSqQ==,AgG7Y5so9ZTRng2Xm3ziWx3+7zfaVLkIJ2v7g+qEUx5Vl2/udDOcg/was8W6qbKYeo/W0EGTlNXKTOdIatGVxyuoZA==,,,,,2,AgDAVy0/nE6X4iAengG9lCiYEBMtK6rAAiy7OwC7U/QSbokiEzH0RafH7rb+5L5R/ii9/3kZCcKmgOIoPzkmeloDfg==,AgHuvmLAeIFYm4ObEBO2v9xTK6tjYfdh+x4kwULBpDNlUiW4kNNaeoeziRA7nlRvcSfxPlR070N/3qzBMu3EKZ2csQ==,AgDk/CzCL4XUobuNaLsvrH5s0COMKYBqY/18YRR0d7mIsVVYrKVGF+IWnEluhbLt+BoRBdvL5UElgroyORJpiKz06w==,,,,,2,AgH0nW+2h+vcOZgPe3uR7jEHmEPi+g4izQ3OIU9An2vekwbG1liBFgTo33pEhyXhNWPhGCbSb73sJ7pt0JLL+hhWMw==,AgHG039OnpvmllkV6QBsmoMdqISrRuW2q5M3jfUp5TUbU6F/3S2FK1iSVKWgTsI291re6lz6KH5d8rWrnoCAozhIeg==,AwGjmnLUMd42F7a/tsSkeqcxoHMAXNKdvF4kOXoAxmc6ZSxaUhzkGkcgNOO8SFNiWqTKgtZCffJ7hfI0voAUX0TD1w==,,,,,2,AwHfYRjQFscHzOvVozackTaM3sybOjyd2aLc4B+WQ7KiWHoGKkzQScoDiy8hiA2cJpv8ngfitTqJRLlyegvuM+Ietw==,AwAP92OqrJFpFmdrMUUx6FeFhwVLYtAsfw3sem2RYu7ljPry+uJnvluuzTvVaFhs8BAAD8VBFs1vqrSHyQEq8Ocsmw==,AwDNXg/JA4QXA6wu30DUE7peOk1a10aHbd38iwjN1Q0DKy3BqS36+EQKg5hbwELxN2+/Yu4UA1IKWYJI0zNs6TJUtA==,,,,,2,AwBWFv3ivyQz4CGIilJ7CVtpQGOs1tnIW+0uxQyiWIO3HDjJtfxPyQ1AJWPsBQ9eYmaoKmPnN+euPCm7bP0LxBL/Tg==,AwHg7AZb5DV5OJrl0omtKx2OqckXcQEUT8pZ+Bmo9AyULgL5HOq2AVU04qhvbdy0W4OMYqxF3uBwqT6dNhFptsKEKQ==,AwG9dyMbI5EI8UCXuj5JkQRMimcT1u6zCBAfmRvANtT54yDtC8KS6VeOr7h/NP4qrf/mbl5tMaePbkkHrc6E39ntsA==,,,,,2,AwHkMyCOJm/RlYOybGhX3DchR/wSN2L3PuXKalMszgk3WOCiWSpYlP3SOPLWvJTRQaTxoN+oA5IkCTvlp02+Mduaxg==,AgHhR8HjavXjnsy+rHptc/JSI5pLFjM0RczUygxTX7vqV/yqwZ280Rq7YpXKp2GBfiZvFf0qIQoWe4vx5DBxwvHkdA==,AwEf2yisEpflVm8R2X08SCJM89apu7tUFzbpndsTIt5o9/xdoXKomMUk9REz+yrpkd+jFhlkJMQHHVMhgjiWYCEdpQ==,,,,,2,AwBaIc8ZWFm4O9QO0ofJeS9Q7tki7CAscBXRDnajEp7rmKNgrpRyyu1ezSpborwaloWR9kDKPLdYVV8SNk2V/1EudA==,AwGE8MPAnPKKXF15EyrAx1bRinwgoqYVO4Junz5IXQjGLyQpSr5NwO/hqu5E5egHte20jm380Wn2Qy6GgKNiRLy/gQ==,AwCAOjOQNdMN5uIB0POFzYS/fpxZ0Q5KfhlP5fijNmc/daO5frSrwhgcMH5lMKL4EGjBI1p6JMe3fuMqb5t1ImeTBg==,,,,,2,AgARSg2izcK6iZLFe4YkIS6yZgnt8cd9DFqpQ37gNmcccZwBI+mpsaijTUPo1GT+QUD8zC+6qr/GrzG9q+q7BPxpVw==,AwGM/jFdtoNViQXxgqeL27ZKobjsfyeuXrx8re3UfIe3c4XN16srSpcTfxEZNXDKo1Ff9fRvDVBOwdS6XU2nvo++ng==,AwAtK0eOqcVfzkdJIIkk7BORWwSDTAjtx4aEXwyZ0bla+2rIWDgXi3U5xlgnjeXJNtGsLokkvvX92BOBIw9SuCGhnw==,2,AgCWAAWTW+7jv2a2lc4pGFnumEgyH59wSDRXEYUASCVB249JBmeKFWRKNFTQlph5hTR5Rb+YHFP/qvzmwU11Hs2b0w==,AgANdxpkN+DS4De3aokNjt+e/Ou8GT+p8pUJA+6LHrDBXAddoCR8KpeXW7mESokq6BTEVQXxU3TdqavRkqaeFmpXkw==,AgDDDSEO3e8DCsm1n6dbj2PB9Z/tUzluDCt/utdSLrYFfdFY+Y5K7Vxo9F5/17CzaUbX172SGLt8TfCfuYBrtupgAg==,2,AgB1OG6bj+6kfRvLj8yjMQbl80FdZHZrRVRUfNVRwvjvvbRa5f9s9fNZ8J0a3s3hH+RyfZmGJ4Ufjh5mMiQkwiur6w==,AwBX4GFZNjUdtRdwtWgxyQz7h8Hk0ztaZeM8/e+8ll0o+RjYN+CNP8+lnXEw7wpuC4wcMX05mrjPvHOuy0hOFVNkhQ==,AgDf3el4vbMYIAFEH9WV151/uzl+gkfTQ79T8Iu4KxEVo6UJvCfqkjETlR6aXUJiqaCbSV5odMT50lURsmfgALf6AQ==,,,,,2,AgENmnviZkgQWXZ5QDgCCE2zq0IiXURTqK2UNPtEg3o64yjlrQQUd2rO/KgKolyCQcKYTVoMj7k2VeCSSVRr8KGC7w==,AwFv6ZJzhpV/Ms00QkrkNiCKVRFczn/yqnkiBFUHC1RQv3tqzzYSEUeXmDHmm0/kEBtnfgRWjHQm9zxS8Jzy7srDLQ==,AwB8aS5KA1dFLKCA1a/7Wsjhef+6kkNAB/GO9AOvRZbFW/dhl5fx04Alh+g78fwcVMX+eEIEJgSyH0jhv7kmiQh4ew==,,,,,2,AgG8fXrCra6UgP5G89TaE6PH5E0TANb/PJPbKwzdi78XEHRUmcTz6PIhYtclTmcdq5TH0IwQv+ra5ppf4qR4LtkGig==,AgEKzsmZrikmXzJywMpzkAdG9hAPlOiRY9oXKf4Sh50CL8btUItjfVJWg3ubNhotzJK+fnNlRrcMkWQEBD/aGKpf8A==,AwFi+2cGpuvVdR+pT1P9Ur8jAkzmjJK2XmUQbFpyMi5Jc9a5/fPnBWCxmTX8CH5wks0PicYC6rzZC3NEIt0EoM1Qfg==,,,,,2,AgHbTZgTAv8lLBsoX06Hkm9XPU+crlRqKl0xL8v18xeUUPY1YAvUYf2OAutmTtPRycXyzrDWSpn2h5xfk/dtq/BICg==,AwAjPydfoUhfSVFKWNI4Ox4a/psZGDIGzEEWh9HyVtAmjdNb5ctr/S6z+akiRfPlNCsVf6TdkzJ2Su6BO4sOX/SHKA==,AwBVmjn7AitCe4zQ/Fl0sYW2XqXkJxJBDviwl9jYhoq29v90n9escDsiA3Cy+1uW69MezdZBEszFdEWlX0EzbQZQ6A==,,,,,2,AwCG0RBHwHuame/1G7qtUjmwz0gkCP1tyZiEgm7aTKpsCjt7UsMirMmx/ZrNlvSzkGuVbRO97Szzr+9fo4baH1rEZA==,AwHyMK/q8FUUvoHTt7O7KJUxYz/ZHF6SntbmKfbygLVw4HWc/eFic4DXHKbEGWvrMO5b37GksqxfQHc2xlAuj8ZRIw==,AgB5x0BxqiMYxRvzlq0+/RkbOuNA7hYuMG+7D6wlMOxSskgqyfwA0MfW+AkXFqnqfqsoJRpDy15bABWhH6MIdJsPEA==,,,,,2,AwAS/nCH0pcrsllSy2duadUs1rMtL6vtz7VTUAVhn1/YYlZ068ysBi1Mdz9gJFewdyeGLnFhyg+W15rFB317nyeGHg==,AwBh6f5UVRMM5ekWqkrx6XiVOK/BL0TinjsSLna8BjkQPXU2DvGxiKPhA03/GtBdEpihEX4bVaHQhiOupTf7wh6bCQ==,AgGPDFH8Kv8hz2aUJ955nHu8NiAoTmDjqhlXuJ1T83h+O0sc2GieLhmXmpEjxjEAyxkqjb2nFxvDhi+YGs4MqI4S5A==,,,,,2,AwDqwFv6bqpM/6PTCJ/wgRALYVT+Rn54HIB2icP6ODNexaoqILBS9p1k1QENbQsBZ9LmJJwngRQXi07Q4P8br76Qfw==,AgG8yTiO8tFWZqQELBr+Zt1fKKA3bl08836nUEEpD55Sid0ZywCrWe+Va58xbMIWscISLPbBvXIdO48ZgoHsLgA7Jw==,AwCI1Ud0GJLnS86mSC58HNB91lH9kPpQbufGn+WJErGxAQubtSFBc3rnT0SNE3CbW+1MPjYBbdCgxpHjN/iQf96++w==,,,,;2,AgB9YhljgPngkwwYTBMUaMGR+rWMjvlK0tgrzkG8OT9NGNJfaaLP6AzfhWrT5oe9NRnabU25pQvDhAIGZCajDy8N2g==,AwE5Irce6LOSxfLgn4PZh1PeDPjAHb5wPTNfmQoWFY83dNQLYN44FupJaQRRUqBqyGNB0SL76GKzr8G9tKLAHOxRSQ==,BAG5iWHEhlWkvtyAlQy4bwKa1iNRzJq8WJTh2GE9oT4DeJRmO1pCHy9P+9YktDT+4RgV9s8AzOYih1LmHW14uP27HQGg1nTdHyab9/nFUe9BFxIi8xQTPG8et9++5I+gKIeWGCXBL31sBhpaMewvVhDjl2d3+7H2PUv9IY3lyIRFA6N16A==,2,AwAPIoQJqSbXFKXQAIG9J+/+/41NLX0rDINImk4eBgAnZ4V0R8YSqkHD3nd0IrEMyK7OpkCXkxTzOlwJlfEfti+vew==,AwAQ8KdMYsEOqM3eyGv/XbHnGf+TqCAG39Gz/juBcioOOJmLOFjl6oCITozJOyPusbTRXZ4eIwgQYkl12mt6saTpgQ==,BACkTO+3rRUF81w5yzZskFiIRyVxc6sdJfDFX6C+Jy5A+s/sfHskrFx2GYNklZaYztP0/B64a6v6HvFWVz8GuYj2wgHhiCL+QwLThFpaRxh8kUMSrt4VuXSIjtHwRXzhSdEbG2T6C/+CJZxIFh/ugEV9SS51l1HrLdnJDb2Kdu3QC3lRkQ==;2,AgC99VyiRLJ2kFf3oCkb+JPVV7B4tXVGI2NVT7fdKtB+gEjCcdkbS5YEXm/Sq6NAJEOKilMTFUDLYFDOe+7JHj/4pw==,AgAbT080sbKVHH9lim3tVCYS4cMz+rLownRKqtYZ7AfR8qy819R1GFywQ0kImgcdjEey5C4m0OPTwgtkO+C5uWtKfQ==,BADKYt9i0zTJeh3H8t6d8pZdncz3f28v1oWrssLZwAutkIcF3XKkPNmK3X75K3sImUSch//IIRIB1Yi5/MrZZeDrxQHhQZEg6AA8bDxgt0JdOEX2t4crzDu3gW5I8y+Ya0fZr1RmxvfMr2UxRhSsNsz949v/g+GPfsrEfDqIWTiNlJfwyg==,2,AgEPMjgCfgGRaZ/5I1hLqDoJ8nXYeTlnt9YeK4K8w+HnRAoAD09zkPcLMWajIjupe/CUFrHz00sAvs+vOPeKxGrLiQ==,AgDy7g2DcDwmIW7LtTTteHExD/cyP4BMWimEAM1RfAd/Y6P8XkmRGgglfdLJ7RGTR2YIMB1lxQ/LQUbmzyjTiiuWow==,BAHJ7oHVr/0wweyGlg4f9Dqmx8h0m35jMdrEFwVY8l/ENKpOTxG/oh9vAvo1uw39wUOn4CWGBmAFE2lsvWFW18gt+gHPFt5/9ihUFN9mtxFLT1Q3W4Uf8IdekHPMbNlxEp1wId7EH3XsAox3Eo8b3XnYpwfsAXoDwQa2wyiO5h104Ptvsg==;2,AwClCMGcHdd7rD8sYDC/GXyAtLmZ/JI4v+aOK4PXzjWJi/zvcsXT5dJUOm9bW6AAtzgOKPd0WwU3hSytJ+ATy146Uw==,AgADzN6ysOIC9GAuMF9suYNfkR027H/9OcpeVJb4HRHfZ/EOmQWSdJmJFw3F/NLUrreNnFCvuF1+1bbmHa3tvznjeA==,BADwaRJF9z3DW7HE3qhGu6Yd9d2WBfWy8opd7Mhkg7TpAQsn9oA3UcpCarn4DMSnVGG94Y3Pxsj5vlm5G7GMKiGoxAERnETH6pVgBxhtrnBU6l4vHl+X4rd8I/zheZiG0EFKJza41rmwKHTY4+42PJ8/3Y2rCanbY1RSAJEgiZR89k6nGg==,2,AgCK80PhKSC23aVKQ8uYm+79GWZiwpbV5lc8Fzcpwu8hdKGAMH4f62Y//cmrQmCIltm03PTVPMn6rMwkfoz+9M2LDQ==,AgH5aXThIKUjENFTGCGwcTRql7xIe8vR9h78KikTYkD8itQ+YBDrnx5OaNyWRjpIJHAZ2B61W2aVjZ5Rmo0d1B1Pcw==,BAAEZsEKw59QSRxN1QmWcx4X2LaK4+zBuawh+2CIRPljWyxK6XhIM6EEalr44Klce4OTK2QbxT5n3Kjnh5jNuwCOawAH/wiNrx09+HY8SZrRjCjv1+Lnicybrqg/IFDNoAGT5aguaGRIMmGOLe0QFJr0T0iW3RnYGlmSd/r6ex8+MpOgLw==</decrypt_val></awr_decrypt>";
- String replyString = connectSPU.sendReceive(Type.DECRYPT, requestString);
- System.out.println("REQUEST URL: " + requestString);
- System.out.println("REPLY: " + replyString);
- ReplyDecryption reply = (new XMLParserDecrypt()).stringToReply(replyString);
- return reply;
- }
-
- public ReplyMaterial callServiceMaterial(RequestMaterial rqtMaterial) {
- String requestString = URLParserMaterial.requestToString(rqtMaterial);
- String replyString = connectSPU.sendReceive(Type.MATERIAL, requestString);
-
- System.out.println("Material request:");
- System.out.println(replyString);
-
- ReplyMaterial reply = (new XMLParserMaterial()).stringToReply(replyString);
- return reply;
- }
-
- public ReplySurvey callServiceSurvey(){
-
-// String replyString = connectSPU.sendReceive(Type.SURVEY,"");
- String replyString ="<awr_survey><v_questions>1::What's your name?::1;2::Where are you from?::2;3::How old are you?::3;4::What's your name?::1;5::Where are you from?::2;6::How old are you?::3;7::What's your name?::1;8::Where are you from?::2;9::How old are you?::3;10::What's your name?::1;11::Where are you from?::2;12::How old are you?::3;13::What's your name?::1;14::Where are you from?::2;15::How old are you?::3</v_questions><v_locations>Lausanne;Basel;Zurich</v_locations></awr_survey>";
- ReplySurvey reply = (new XMLParserSurvey()).stringToReply(replyString);
- return reply;
- }
-
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/e3/00d525a19ea7001417ceadf0100b5ef7 b/.metadata/.plugins/org.eclipse.core.resources/.history/e3/00d525a19ea7001417ceadf0100b5ef7
deleted file mode 100644
index 9b5df02..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/e3/00d525a19ea7001417ceadf0100b5ef7
+++ /dev/null
@@ -1,286 +0,0 @@
-package io;
-
-import java.awt.BorderLayout;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.util.Map;
-import java.util.Set;
-
-import com.itextpdf.text.BaseColor;
-import com.itextpdf.text.Document;
-import com.itextpdf.text.DocumentException;
-import com.itextpdf.text.Element;
-import com.itextpdf.text.ExceptionConverter;
-import com.itextpdf.text.Font;
-import com.itextpdf.text.Font.FontFamily;
-import com.itextpdf.text.FontFactory;
-import com.itextpdf.text.Image;
-import com.itextpdf.text.PageSize;
-import com.itextpdf.text.Paragraph;
-import com.itextpdf.text.Phrase;
-import com.itextpdf.text.Rectangle;
-import com.itextpdf.text.pdf.AcroFields;
-import com.itextpdf.text.pdf.BaseFont;
-import com.itextpdf.text.pdf.ColumnText;
-import com.itextpdf.text.pdf.GrayColor;
-import com.itextpdf.text.pdf.PdfBorderDictionary;
-import com.itextpdf.text.pdf.PdfContentByte;
-import com.itextpdf.text.pdf.PdfFormField;
-import com.itextpdf.text.pdf.PdfPCell;
-import com.itextpdf.text.pdf.PdfPCellEvent;
-import com.itextpdf.text.pdf.PdfPTable;
-import com.itextpdf.text.pdf.PdfReader;
-import com.itextpdf.text.pdf.PdfStamper;
-import com.itextpdf.text.pdf.PdfWriter;
-import com.itextpdf.text.pdf.RadioCheckField;
-import com.itextpdf.text.pdf.TextField;
-
-import framework.Question;
-
-public class Questionnaire implements PdfPCellEvent{
-
- /** The path output file. */
- String pathOutputFile;
-
- /** The document. */
- Document document;
-
- int tf;
-
- public Questionnaire(String path){
- pathOutputFile = path;
- document = new Document(PageSize.A4, 25, 25, 50, 50);
- }
- public Questionnaire(int tf){
- this.tf = tf;
- }
-
- /** The resulting PDF. */
- public static final String RESULT1 = "outputPDF/buttons.pdf";
- /** The resulting PDF. */
- public static final String RESULT2 = "outputPDF/buttons_filled.pdf";
- /** Path to a JavaScript resource. */
- public static final String RESOURCE = "res/buttons.js";
- /** Path to an image used as button icon. */
- public static final String IMAGE = "res/info.png";
- /** Possible values of a radio field / checkboxes */
- public static final String[] LANGUAGES = { "English", "German", "French", "Spanish", "Dutch" };
-
- /**
- * Creates a PDF document.
- * @param filename the path to the new PDF document
- * @throws DocumentException
- * @throws IOException
- */
- public void createPdf(Map<Integer, Question> map, Set<Integer> ids) throws IOException, DocumentException {
-
- @SuppressWarnings("unused")
- PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(pathOutputFile));
-
-
- document.open();
- Image logo = Image.getInstance("res/shcs_logo2.gif");
-
- logo.scalePercent(30f);
- float[] columnWidths1 = {0.2f, 0.8f};
- PdfPTable table_title = new PdfPTable(columnWidths1);
- PdfPCell c01 = new PdfPCell(logo, false);
- PdfPCell c02 = new PdfPCell(new Paragraph("Survery | Project #693",
- FontFactory.getFont(FontFactory.HELVETICA, 20, Font.BOLD, BaseColor.BLACK)));
- c01.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setHorizontalAlignment(Element.ALIGN_CENTER);
- c01.setBorder(Rectangle.NO_BORDER);
- c02.setBorder(Rectangle.NO_BORDER);
-
- table_title.addCell(c01);
- table_title.addCell(c02);
- table_title.setWidthPercentage(100);
- table_title.setSpacingBefore(0);
- table_title.setSpacingAfter(25);
- document.add(table_title);
-
-
- //----------------------------------------------------------------------------------
-
-
- PdfPTable table1 = new PdfPTable(1);
- table1.setWidthPercentage(100);
- PdfPCell c11 = new PdfPCell(new Phrase("Today you are receiving a pharmacogenetic report based on the genetic " +
- "information of your patient. Because the human genome contains extremely private and sensitive information" +
- " of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier," +
- " it must be managed with care. ",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.NORMAL, BaseColor.BLACK)));
- c11.setLeading(1.5f, 1.5f);
- c11.setPaddingBottom(8);
-
-
- table1.addCell(c11);
- table1.setSpacingAfter(10);
- document.add(table1);
-
-
- //----------------------------------------------------------------------------------
-
-// // step 4
-// // add the JavaScript
-// writer.addJavaScript(Utilities.readFileToString(RESOURCE));
-
- for(Integer id: ids){
- PdfPCell c2;
-
- PdfPTable table = new PdfPTable(1);
- table.setSpacingAfter(10);
- table.setWidthPercentage(100);
-
- PdfPCell c1 = new PdfPCell(new Phrase(id + ") " + map.get(id).getQuestion(),FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c1.setPaddingTop(5);
- c1.setPaddingBottom(5);
- c1.setHorizontalAlignment(Element.ALIGN_CENTER);
- c1.setBorder(Rectangle.NO_BORDER);
- table.addCell(c1);
-
- c2 = new PdfPCell(new Phrase(" 1" +
- " 2" +
- " 3" +
- " 4" +
- " 5",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c2.setHorizontalAlignment(Element.ALIGN_LEFT);
- c2.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c2.setCellEvent(new Questionnaire(id));
- c2.setBorder(Rectangle.TOP);
- c2.setPaddingTop(2);
- c2.setPaddingBottom(5);
- c2.setBackgroundColor(new BaseColor(242, 242, 242));
-
- table.addCell(c2);
-
-
-
- document.add(table);
- }
-
-
- //----------------------------------------------------------------------------------
-
- // step 5
- document.close();
-
- }
-
- @Override
- public void cellLayout(PdfPCell cell, Rectangle position,
- PdfContentByte[] canvases) {
- PdfWriter writer = canvases[0].getPdfWriter();
- PdfFormField radiogroup = PdfFormField.createRadioButton(writer, true);
- radiogroup.setFieldName(String.valueOf(tf));
- System.out.println(tf);
-
- float llx = position.getLeft();
- float lly = position.getBottom();
-
- float cell_h = cell.getHeight();
- float cell_w = cell.getWidth();
-
- Rectangle rect;
-
- for(int i=1 ; i<=5; i++){
-
- rect = new Rectangle(llx + (3+i)*cell_w/12, lly+cell_h/2-6, llx + (3+i)*cell_w/12+12 ,lly+cell_h/2+6);
-
- RadioCheckField radio = new RadioCheckField(writer, rect, null, String.valueOf(i));
- radio.setBorderColor(GrayColor.GRAYBLACK);
- radio.setCheckType(RadioCheckField.TYPE_SQUARE);
-
-
- try {
- PdfFormField field = radio.getRadioField();
- radiogroup.addKid(field);
-
- writer.addAnnotation(radiogroup);
- }
-
- catch(IOException ioe) {
- throw new ExceptionConverter(ioe);
- }
- catch(DocumentException de) {
- throw new ExceptionConverter(de);
- }
- }
-
-
-
- }
-
-
- public String getAnswers() throws IOException, DocumentException{
- PdfReader reader = new PdfReader(pathOutputFile);
-
-// PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(pathOutputFile));
- AcroFields form = reader.getAcroFields();
-
- StringBuilder sb = new StringBuilder();
-
-
- Set<String> fields = form.getFields().keySet();
- for(String key: fields){
- System.out.println("key = " + key);
- if(form.getFieldType(key)==AcroFields.FIELD_TYPE_RADIOBUTTON){
- sb.append(key);
- sb.append(",");
- sb.append(form.getAppearanceStates(key)[1]);
- sb.append(";");
- }
- }
- reader.close();
-
- return sb.toString();
-
- }
-
-
-// /**
-// * Manipulates a PDF file src with the file dest as result
-// * @param src the original PDF
-// * @param dest the resulting PDF
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public void manipulatePdf(String src, String dest) throws IOException, DocumentException {
-// PdfReader reader = new PdfReader(src);
-// PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(dest));
-// AcroFields form = stamper.getAcroFields();
-// String[] radiostates = form.getAppearanceStates("language");
-// form.setField("language", radiostates[4]);
-// for (int i = 0; i < LANGUAGES.length; i++) {
-// String[] checkboxstates = form.getAppearanceStates("English");
-// form.setField(LANGUAGES[i], checkboxstates[i % 2 == 0 ? 1 : 0]);
-// }
-// stamper.close();
-// reader.close();
-//
-// PdfReader r = new PdfReader(dest);
-// AcroFields f = r.getAcroFields();
-// Set<String> fields = form.getFields().keySet();
-// for(String key: fields){
-// if(f.getFieldType(key)==AcroFields.FIELD_TYPE_RADIOBUTTON){
-// System.out.println(key);
-// System.out.println(f.getField(key));
-//
-// }
-// }
-// r.close();
-//
-// }
-//
-// /**
-// * Main method
-// * @param args no arguments needed
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public static void main(String[] args) throws IOException, DocumentException {
-// Questionnaire buttons = new Questionnaire();
-// buttons.createPdf(RESULT1);
-// buttons.manipulatePdf(RESULT1, RESULT2);
-// }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/e4/f0977248bba70014153e8739f9242ea5 b/.metadata/.plugins/org.eclipse.core.resources/.history/e4/f0977248bba70014153e8739f9242ea5
deleted file mode 100644
index eb45116..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/e4/f0977248bba70014153e8739f9242ea5
+++ /dev/null
@@ -1,48 +0,0 @@
-
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
-import javax.swing.UnsupportedLookAndFeelException;
-
-import ui.GUIbis;
-import utils.ClientProperties;
-
-
-public class ClientApp {
-
- private final static Logger LOGGER = Logger.getLogger(ClientApp.class.getName());
-
- public static void main(String args[]) {
-// Handler handler = new ConsoleHandler();
-// handler.setLevel(Level.FINEST);
-// Logger.getLogger("").addHandler(handler);
-
- // set LookAndFeel
- try {
- for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
- if ("Windows".equals(info.getName())) {
- javax.swing.UIManager.setLookAndFeel(info.getClassName());
- break;
- }
- }
- } catch (ClassNotFoundException e) {
- LOGGER.log(Level.SEVERE, null, e);
- } catch (InstantiationException e) {
- LOGGER.log(Level.SEVERE, null, e);
- } catch (IllegalAccessException e) {
- LOGGER.log(Level.SEVERE, null, e);
- } catch (UnsupportedLookAndFeelException e) {
- LOGGER.log(Level.SEVERE, null, e);
- }
-
- java.awt.EventQueue.invokeLater(new Runnable() {
- public void run() {
- // get client configuration
- ClientProperties props = new ClientProperties("config/config_client.fry.properties");
-// ClientProperties props = new ClientProperties("config/config_client.properties");
-
- new GUIbis(props).setVisible(true);
- }
- });
- }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/e5/90d2945ff3a60014162f978bbd19228b b/.metadata/.plugins/org.eclipse.core.resources/.history/e5/90d2945ff3a60014162f978bbd19228b
deleted file mode 100644
index cd77552..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/e5/90d2945ff3a60014162f978bbd19228b
+++ /dev/null
@@ -1,54 +0,0 @@
-package io;
-
-import java.io.IOException;
-
-import com.itextpdf.text.DocumentException;
-import com.itextpdf.text.Rectangle;
-import com.itextpdf.text.pdf.GrayColor;
-import com.itextpdf.text.pdf.PdfContentByte;
-import com.itextpdf.text.pdf.PdfFormField;
-import com.itextpdf.text.pdf.PdfPCell;
-import com.itextpdf.text.pdf.PdfPCellEvent;
-import com.itextpdf.text.pdf.PdfWriter;
-import com.itextpdf.text.pdf.RadioCheckField;
-
-public class RadioGroup implements PdfPCellEvent{
-
- protected int id;
-
- public RadioGroup(int ID){
- this.id = ID;
- }
-
- @Override
- public void cellLayout(PdfPCell cell, Rectangle position,
- PdfContentByte[] canvases) {
- PdfWriter writer = canvases[0].getPdfWriter();
- PdfFormField radiogroup = PdfFormField.createRadioButton(writer, true);
- radiogroup.setFieldName(String.valueOf(id));
-
- RadioCheckField radio;
- PdfFormField radiofield;
-
- for(int i=0; i<5; i++){
- radio = new RadioCheckField(writer, position, null, String.valueOf(i+1));
- radio.setBackgroundColor(new GrayColor(0.8f));
- try {
- radiofield = radio.getRadioField();
- radiogroup.addKid(radiofield);
-
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (DocumentException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
-
-
- }
- writer.addAnnotation(radiogroup);
-
-
-}
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/e6/506c6739a1a7001417ceadf0100b5ef7 b/.metadata/.plugins/org.eclipse.core.resources/.history/e6/506c6739a1a7001417ceadf0100b5ef7
deleted file mode 100644
index 139a317..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/e6/506c6739a1a7001417ceadf0100b5ef7
+++ /dev/null
@@ -1,288 +0,0 @@
-package io;
-
-import java.awt.BorderLayout;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.util.Map;
-import java.util.Set;
-
-import com.itextpdf.text.BaseColor;
-import com.itextpdf.text.Document;
-import com.itextpdf.text.DocumentException;
-import com.itextpdf.text.Element;
-import com.itextpdf.text.ExceptionConverter;
-import com.itextpdf.text.Font;
-import com.itextpdf.text.Font.FontFamily;
-import com.itextpdf.text.FontFactory;
-import com.itextpdf.text.Image;
-import com.itextpdf.text.PageSize;
-import com.itextpdf.text.Paragraph;
-import com.itextpdf.text.Phrase;
-import com.itextpdf.text.Rectangle;
-import com.itextpdf.text.pdf.AcroFields;
-import com.itextpdf.text.pdf.BaseFont;
-import com.itextpdf.text.pdf.ColumnText;
-import com.itextpdf.text.pdf.GrayColor;
-import com.itextpdf.text.pdf.PdfBorderDictionary;
-import com.itextpdf.text.pdf.PdfContentByte;
-import com.itextpdf.text.pdf.PdfFormField;
-import com.itextpdf.text.pdf.PdfPCell;
-import com.itextpdf.text.pdf.PdfPCellEvent;
-import com.itextpdf.text.pdf.PdfPTable;
-import com.itextpdf.text.pdf.PdfReader;
-import com.itextpdf.text.pdf.PdfStamper;
-import com.itextpdf.text.pdf.PdfWriter;
-import com.itextpdf.text.pdf.RadioCheckField;
-import com.itextpdf.text.pdf.TextField;
-
-import framework.Question;
-
-public class Questionnaire implements PdfPCellEvent{
-
- /** The path output file. */
- String pathOutputFile;
-
- /** The document. */
- Document document;
-
- int tf;
-
- public Questionnaire(String path){
- pathOutputFile = path;
- document = new Document(PageSize.A4, 25, 25, 50, 50);
- }
- public Questionnaire(int tf){
- this.tf = tf;
- }
-
- /** The resulting PDF. */
- public static final String RESULT1 = "outputPDF/buttons.pdf";
- /** The resulting PDF. */
- public static final String RESULT2 = "outputPDF/buttons_filled.pdf";
- /** Path to a JavaScript resource. */
- public static final String RESOURCE = "res/buttons.js";
- /** Path to an image used as button icon. */
- public static final String IMAGE = "res/info.png";
- /** Possible values of a radio field / checkboxes */
- public static final String[] LANGUAGES = { "English", "German", "French", "Spanish", "Dutch" };
-
- /**
- * Creates a PDF document.
- * @param filename the path to the new PDF document
- * @throws DocumentException
- * @throws IOException
- */
- public void createPdf(Map<Integer, Question> map, Set<Integer> ids) throws IOException, DocumentException {
-
- @SuppressWarnings("unused")
- PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(pathOutputFile));
-
-
- document.open();
- Image logo = Image.getInstance("res/shcs_logo2.gif");
-
- logo.scalePercent(30f);
- float[] columnWidths1 = {0.2f, 0.8f};
- PdfPTable table_title = new PdfPTable(columnWidths1);
- PdfPCell c01 = new PdfPCell(logo, false);
- PdfPCell c02 = new PdfPCell(new Paragraph("Survery | Project #693",
- FontFactory.getFont(FontFactory.HELVETICA, 20, Font.BOLD, BaseColor.BLACK)));
- c01.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setHorizontalAlignment(Element.ALIGN_CENTER);
- c01.setBorder(Rectangle.NO_BORDER);
- c02.setBorder(Rectangle.NO_BORDER);
-
- table_title.addCell(c01);
- table_title.addCell(c02);
- table_title.setWidthPercentage(100);
- table_title.setSpacingBefore(0);
- table_title.setSpacingAfter(25);
- document.add(table_title);
-
-
- //----------------------------------------------------------------------------------
-
-
- PdfPTable table1 = new PdfPTable(1);
- table1.setWidthPercentage(100);
- PdfPCell c11 = new PdfPCell(new Phrase("Today you are receiving a pharmacogenetic report based on the genetic " +
- "information of your patient. Because the human genome contains extremely private and sensitive information" +
- " of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier," +
- " it must be managed with care. ",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.NORMAL, BaseColor.BLACK)));
- c11.setLeading(1.5f, 1.5f);
- c11.setPaddingBottom(8);
-
-
- table1.addCell(c11);
- table1.setSpacingAfter(10);
- document.add(table1);
-
-
- //----------------------------------------------------------------------------------
-
-// // step 4
-// // add the JavaScript
-// writer.addJavaScript(Utilities.readFileToString(RESOURCE));
-
- for(Integer id: ids){
- PdfPCell c2;
-
- PdfPTable table = new PdfPTable(1);
- table.setSpacingAfter(10);
- table.setWidthPercentage(100);
-
- PdfPCell c1 = new PdfPCell(new Phrase(id + ") " + map.get(id).getQuestion(),FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c1.setPaddingTop(5);
- c1.setPaddingBottom(5);
- c1.setHorizontalAlignment(Element.ALIGN_CENTER);
- c1.setBorder(Rectangle.NO_BORDER);
- table.addCell(c1);
-
- c2 = new PdfPCell(new Phrase(" 1" +
- " 2" +
- " 3" +
- " 4" +
- " 5",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c2.setHorizontalAlignment(Element.ALIGN_LEFT);
- c2.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c2.setCellEvent(new Questionnaire(id));
- c2.setBorder(Rectangle.TOP);
- c2.setPaddingTop(2);
- c2.setPaddingBottom(5);
- c2.setBackgroundColor(new BaseColor(242, 242, 242));
-
- table.addCell(c2);
-
-
-
- document.add(table);
- }
-
-
- //----------------------------------------------------------------------------------
-
- // step 5
- document.close();
-
- }
-
- @Override
- public void cellLayout(PdfPCell cell, Rectangle position,
- PdfContentByte[] canvases) {
- PdfWriter writer = canvases[0].getPdfWriter();
- PdfFormField radiogroup = PdfFormField.createRadioButton(writer, true);
- radiogroup.setFieldName(String.valueOf(tf));
- System.out.println(tf);
-
- float llx = position.getLeft();
- float lly = position.getBottom();
-
- float cell_h = cell.getHeight();
- float cell_w = cell.getWidth();
-
- Rectangle rect;
-
- for(int i=1 ; i<=5; i++){
-
- rect = new Rectangle(llx + (3+i)*cell_w/12, lly+cell_h/2-6, llx + (3+i)*cell_w/12+12 ,lly+cell_h/2+6);
-
- RadioCheckField radio = new RadioCheckField(writer, rect, null, String.valueOf(i));
- radio.setBorderColor(GrayColor.GRAYBLACK);
- radio.setCheckType(RadioCheckField.TYPE_SQUARE);
-
-
- try {
- PdfFormField field = radio.getRadioField();
- radiogroup.addKid(field);
-
- writer.addAnnotation(radiogroup);
- }
-
- catch(IOException ioe) {
- throw new ExceptionConverter(ioe);
- }
- catch(DocumentException de) {
- throw new ExceptionConverter(de);
- }
- }
-
-
-
- }
-
-
- public String getAnswers() throws IOException, DocumentException{
- PdfReader reader = new PdfReader(pathOutputFile);
-
-// PdfStamper stamper = new PdfStamper(reader, new FileOutputStream("outputPDF/buttons_filled2.pdf"));
- AcroFields form = reader.getAcroFields();
-
- StringBuilder sb = new StringBuilder();
-
-
- Set<String> fields = form.getFields().keySet();
- for(String key: fields){
- System.out.println("key = " + key);
- if(form.getFieldType(key)==AcroFields.FIELD_TYPE_RADIOBUTTON){
- sb.append(key);
- sb.append(",");
- sb.append(form.getFieldRichValue(key));
- sb.append(";");
- }
- }
- stamper.close();
- reader.close();
-
-
- return sb.toString();
-
- }
-
-
-// /**
-// * Manipulates a PDF file src with the file dest as result
-// * @param src the original PDF
-// * @param dest the resulting PDF
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public void manipulatePdf(String src, String dest) throws IOException, DocumentException {
-// PdfReader reader = new PdfReader(src);
-// PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(dest));
-// AcroFields form = stamper.getAcroFields();
-// String[] radiostates = form.getAppearanceStates("language");
-// form.setField("language", radiostates[4]);
-// for (int i = 0; i < LANGUAGES.length; i++) {
-// String[] checkboxstates = form.getAppearanceStates("English");
-// form.setField(LANGUAGES[i], checkboxstates[i % 2 == 0 ? 1 : 0]);
-// }
-// stamper.close();
-// reader.close();
-//
-// PdfReader r = new PdfReader(dest);
-// AcroFields f = r.getAcroFields();
-// Set<String> fields = form.getFields().keySet();
-// for(String key: fields){
-// if(f.getFieldType(key)==AcroFields.FIELD_TYPE_RADIOBUTTON){
-// System.out.println(key);
-// System.out.println(f.getField(key));
-//
-// }
-// }
-// r.close();
-//
-// }
-//
-// /**
-// * Main method
-// * @param args no arguments needed
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public static void main(String[] args) throws IOException, DocumentException {
-// Questionnaire buttons = new Questionnaire();
-// buttons.createPdf(RESULT1);
-// buttons.manipulatePdf(RESULT1, RESULT2);
-// }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/e8/a0b4aeb90fa70014162f978bbd19228b b/.metadata/.plugins/org.eclipse.core.resources/.history/e8/a0b4aeb90fa70014162f978bbd19228b
deleted file mode 100644
index d115e05..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/e8/a0b4aeb90fa70014162f978bbd19228b
+++ /dev/null
@@ -1,259 +0,0 @@
-package io;
-
-import java.awt.BorderLayout;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.util.Map;
-import java.util.Set;
-
-import com.itextpdf.text.BaseColor;
-import com.itextpdf.text.Document;
-import com.itextpdf.text.DocumentException;
-import com.itextpdf.text.Element;
-import com.itextpdf.text.ExceptionConverter;
-import com.itextpdf.text.Font;
-import com.itextpdf.text.Font.FontFamily;
-import com.itextpdf.text.FontFactory;
-import com.itextpdf.text.Image;
-import com.itextpdf.text.PageSize;
-import com.itextpdf.text.Paragraph;
-import com.itextpdf.text.Phrase;
-import com.itextpdf.text.Rectangle;
-import com.itextpdf.text.pdf.BaseFont;
-import com.itextpdf.text.pdf.ColumnText;
-import com.itextpdf.text.pdf.GrayColor;
-import com.itextpdf.text.pdf.PdfBorderDictionary;
-import com.itextpdf.text.pdf.PdfContentByte;
-import com.itextpdf.text.pdf.PdfFormField;
-import com.itextpdf.text.pdf.PdfPCell;
-import com.itextpdf.text.pdf.PdfPCellEvent;
-import com.itextpdf.text.pdf.PdfPTable;
-import com.itextpdf.text.pdf.PdfWriter;
-import com.itextpdf.text.pdf.RadioCheckField;
-import com.itextpdf.text.pdf.TextField;
-
-import framework.Question;
-
-public class Questionnaire implements PdfPCellEvent{
-
- /** The path output file. */
- String pathOutputFile;
-
- /** The document. */
- Document document;
-
- int tf;
-
- public Questionnaire(String path){
- pathOutputFile = path;
- document = new Document(PageSize.A4, 25, 25, 50, 50);
- }
- public Questionnaire(int tf){
- this.tf = tf;
- }
-
- /** The resulting PDF. */
- public static final String RESULT1 = "outputPDF/buttons.pdf";
- /** The resulting PDF. */
- public static final String RESULT2 = "outputPDF/buttons_filled.pdf";
- /** Path to a JavaScript resource. */
- public static final String RESOURCE = "res/buttons.js";
- /** Path to an image used as button icon. */
- public static final String IMAGE = "res/info.png";
- /** Possible values of a radio field / checkboxes */
- public static final String[] LANGUAGES = { "English", "German", "French", "Spanish", "Dutch" };
-
- /**
- * Creates a PDF document.
- * @param filename the path to the new PDF document
- * @throws DocumentException
- * @throws IOException
- */
- public void createPdf(Map<Integer, Question> map, Set<Integer> ids) throws IOException, DocumentException {
-
- @SuppressWarnings("unused")
- PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(pathOutputFile));
-
-
- document.open();
- Image logo = Image.getInstance("res/shcs_logo2.gif");
-
- logo.scalePercent(30f);
- float[] columnWidths1 = {0.2f, 0.8f};
- PdfPTable table_title = new PdfPTable(columnWidths1);
- PdfPCell c01 = new PdfPCell(logo, false);
- PdfPCell c02 = new PdfPCell(new Paragraph("Survery | Project #693",
- FontFactory.getFont(FontFactory.HELVETICA, 20, Font.BOLD, BaseColor.BLACK)));
- c01.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c01.setBorder(Rectangle.NO_BORDER);
- c02.setBorder(Rectangle.NO_BORDER);
-
- table_title.addCell(c01);
- table_title.addCell(c02);
- table_title.setWidthPercentage(100);
- table_title.setSpacingBefore(0);
- table_title.setSpacingAfter(25);
- document.add(table_title);
-
-
- //----------------------------------------------------------------------------------
-
-
- PdfPTable table1 = new PdfPTable(1);
- table1.setWidthPercentage(100);
- PdfPCell c11 = new PdfPCell(new Phrase("Today you are receiving a pharmacogenetic report based on the genetic " +
- "information of your patient. Because the human genome contains extremely private and sensitive information" +
- " of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier," +
- " it must be managed with care. ",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.NORMAL, BaseColor.BLACK)));
- c11.setLeading(1.5f, 1.5f);
- c11.setPaddingBottom(8);
-
-
- table1.addCell(c11);
- table1.setSpacingAfter(10);
- document.add(table1);
-
-
- //----------------------------------------------------------------------------------
-
-// // step 4
-// // add the JavaScript
-// writer.addJavaScript(Utilities.readFileToString(RESOURCE));
-
-
-
-
- // add the radio buttons
- for(Integer id: ids){
- PdfPCell c2;
-
- PdfPTable table = new PdfPTable(1);
- table.setSpacingAfter(10);
- table.setWidthPercentage(100);
-// table.setWidths(new int[]{ 1, 2});
-
- PdfPCell c1 = new PdfPCell(new Phrase(id + ") " + map.get(id).getQuestion(),FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c1.setPaddingTop(5);
- c1.setPaddingBottom(5);
- c1.setHorizontalAlignment(Element.ALIGN_CENTER);
- c1.setBorder(Rectangle.NO_BORDER);
- table.addCell(c1);
-
- c2 = new PdfPCell(new Phrase(" 1" +
- " 2" +
- " 3" +
- " 4" +
- " 5",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c2.setHorizontalAlignment(Element.ALIGN_LEFT);
- c2.setCellEvent(new Questionnaire(id));
-// c2.setLeading(1.5f, 1.5f);
- c2.setBorder(Rectangle.TOP);
- c2.setPaddingTop(2);
- c2.setPaddingBottom(5);
- c2.setBackgroundColor(new BaseColor(242, 242, 242));
-
- table.addCell(c2);
-
-
-
- document.add(table);
- }
-
-//
- // step 5
- document.close();
-
- }
-
- @Override
- public void cellLayout(PdfPCell cell, Rectangle position,
- PdfContentByte[] canvases) {
- PdfWriter writer = canvases[0].getPdfWriter();
- PdfFormField radiogroup = PdfFormField.createRadioButton(writer, true);
- radiogroup.setFieldName(String.valueOf(tf));
-
- float llx = position.getLeft();
- float lly = position.getBottom();
- float urx = position.getRight();
- float ury = position.getTop();
- float cell_h = cell.getHeight();
- float cell_w = cell.getWidth();
-
- Rectangle rect;
-
- for(int i=1 ; i<=5; i++){
-
-
- rect = new Rectangle(llx + (3+i)*cell_w/12, lly+cell_h/2-6, llx + (3+i)*cell_w/12+12 ,lly+cell_h/2+6);
-
- RadioCheckField radio = new RadioCheckField(writer, rect, null, String.valueOf(i));
- radio.setBorderColor(GrayColor.GRAYBLACK);
- radio.setCheckType(RadioCheckField.TYPE_SQUARE);
-
-
- try {
- PdfFormField field = radio.getRadioField();
- radiogroup.addKid(field);
-
- writer.addAnnotation(radiogroup);
- }
-
- catch(IOException ioe) {
- throw new ExceptionConverter(ioe);
- }
- catch(DocumentException de) {
- throw new ExceptionConverter(de);
- }
- }
-
-
-
- }
-
-// /**
-// * Manipulates a PDF file src with the file dest as result
-// * @param src the original PDF
-// * @param dest the resulting PDF
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public void manipulatePdf(String src, String dest) throws IOException, DocumentException {
-// PdfReader reader = new PdfReader(src);
-// PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(dest));
-// AcroFields form = stamper.getAcroFields();
-// String[] radiostates = form.getAppearanceStates("language");
-// form.setField("language", radiostates[4]);
-// for (int i = 0; i < LANGUAGES.length; i++) {
-// String[] checkboxstates = form.getAppearanceStates("English");
-// form.setField(LANGUAGES[i], checkboxstates[i % 2 == 0 ? 1 : 0]);
-// }
-// stamper.close();
-// reader.close();
-//
-// PdfReader r = new PdfReader(dest);
-// AcroFields f = r.getAcroFields();
-// Set<String> fields = form.getFields().keySet();
-// for(String key: fields){
-// if(f.getFieldType(key)==AcroFields.FIELD_TYPE_RADIOBUTTON){
-// System.out.println(key);
-// System.out.println(f.getField(key));
-//
-// }
-// }
-// r.close();
-//
-// }
-//
-// /**
-// * Main method
-// * @param args no arguments needed
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public static void main(String[] args) throws IOException, DocumentException {
-// Questionnaire buttons = new Questionnaire();
-// buttons.createPdf(RESULT1);
-// buttons.manipulatePdf(RESULT1, RESULT2);
-// }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/e9/00101382a4a7001417ceadf0100b5ef7 b/.metadata/.plugins/org.eclipse.core.resources/.history/e9/00101382a4a7001417ceadf0100b5ef7
deleted file mode 100644
index 83ea261..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/e9/00101382a4a7001417ceadf0100b5ef7
+++ /dev/null
@@ -1,98 +0,0 @@
-package io;
-
-import java.io.FileOutputStream;
-import java.io.IOException;
-
-
-
-import com.itextpdf.text.DocumentException;
-import com.itextpdf.text.Rectangle;
-import com.itextpdf.text.pdf.GrayColor;
-import com.itextpdf.text.pdf.PdfAction;
-import com.itextpdf.text.pdf.PdfFormField;
-import com.itextpdf.text.pdf.PdfReader;
-import com.itextpdf.text.pdf.PdfStamper;
-import com.itextpdf.text.pdf.PushbuttonField;
-
-public class SubmitForm {
-
- /** The resulting PDF file. */
- public static final String RESULT
- = "results/part3/chapter09/submit_me.pdf";
-
- /**
- * Manipulates a PDF file src with the file dest as result
- * @param src the original PDF
- * @param dest the resulting PDF
- * @throws IOException
- * @throws DocumentException
- */
- public void manipulatePdf(String src, String dest)
- throws IOException, DocumentException {
- // create a reader
- PdfReader reader = new PdfReader(src);
- // create a stamper
- PdfStamper stamper = new PdfStamper(reader,
- new FileOutputStream(dest));
- // create a submit button that posts the form as an HTML query string
- PushbuttonField button1 = new PushbuttonField(
- stamper.getWriter(), new Rectangle(90, 660, 140, 690), "post");
- button1.setText("POST");
- button1.setBackgroundColor(new GrayColor(0.7f));
- button1.setVisibility(PushbuttonField.VISIBLE_BUT_DOES_NOT_PRINT);
- PdfFormField submit1 = button1.getField();
- submit1.setAction(PdfAction.createSubmitForm(
- "/book/request", null,
- PdfAction.SUBMIT_HTML_FORMAT | PdfAction.SUBMIT_COORDINATES));
- // add the button
- stamper.addAnnotation(submit1, 1);
- // create a submit button that posts the form as FDF
- PushbuttonField button2 = new PushbuttonField(
- stamper.getWriter(), new Rectangle(200, 660, 250, 690), "FDF");
- button2.setBackgroundColor(new GrayColor(0.7f));
- button2.setText("FDF");
- button2.setVisibility(PushbuttonField.VISIBLE_BUT_DOES_NOT_PRINT);
- PdfFormField submit2 = button2.getField();
- submit2.setAction(PdfAction.createSubmitForm(
- "/book/request", null, PdfAction.SUBMIT_EXCL_F_KEY));
- // add the button
- stamper.addAnnotation(submit2, 1);
- // create a submit button that posts the form as XFDF
- PushbuttonField button3 = new PushbuttonField(
- stamper.getWriter(), new Rectangle(310, 660, 360, 690), "XFDF");
- button3.setBackgroundColor(new GrayColor(0.7f));
- button3.setText("XFDF");
- button3.setVisibility(PushbuttonField.VISIBLE_BUT_DOES_NOT_PRINT);
- PdfFormField submit3 = button3.getField();
- submit3.setAction(PdfAction.createSubmitForm(
- "/book/request", null, PdfAction.SUBMIT_XFDF));
- // add the button
- stamper.addAnnotation(submit3, 1);
- // create a reset button
- PushbuttonField button4 = new PushbuttonField(
- stamper.getWriter(), new Rectangle(420, 660, 470, 690), "reset");
- button4.setBackgroundColor(new GrayColor(0.7f));
- button4.setText("RESET");
- button4.setVisibility(PushbuttonField.VISIBLE_BUT_DOES_NOT_PRINT);
- PdfFormField reset = button4.getField();
- reset.setAction(PdfAction.createResetForm(null, 0));
- // add the button
- stamper.addAnnotation(reset, 1);
- // close the stamper
- stamper.close();
- reader.close();
- }
-
- /**
- * Main method.
- *
- * @param args no arguments needed
- * @throws DocumentException
- * @throws IOException
- */
- public static void main(String[] args)
- throws IOException, DocumentException {
- new Subscribe().createPdf(Subscribe.FORM);
- new SubmitForm().manipulatePdf(Subscribe.FORM, RESULT);
- }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/ea/e0c56eb8a4a7001417ceadf0100b5ef7 b/.metadata/.plugins/org.eclipse.core.resources/.history/ea/e0c56eb8a4a7001417ceadf0100b5ef7
deleted file mode 100644
index 0573364..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/ea/e0c56eb8a4a7001417ceadf0100b5ef7
+++ /dev/null
@@ -1,98 +0,0 @@
-package io;
-
-import java.io.FileOutputStream;
-import java.io.IOException;
-
-
-
-import com.itextpdf.text.DocumentException;
-import com.itextpdf.text.Rectangle;
-import com.itextpdf.text.pdf.GrayColor;
-import com.itextpdf.text.pdf.PdfAction;
-import com.itextpdf.text.pdf.PdfFormField;
-import com.itextpdf.text.pdf.PdfReader;
-import com.itextpdf.text.pdf.PdfStamper;
-import com.itextpdf.text.pdf.PushbuttonField;
-
-public class SubmitForm {
-
- /** The resulting PDF file. */
- public static final String RESULT
- = "outputPDF/submit_me.pdf";
-
- /**
- * Manipulates a PDF file src with the file dest as result
- * @param src the original PDF
- * @param dest the resulting PDF
- * @throws IOException
- * @throws DocumentException
- */
- public void manipulatePdf(String src, String dest)
- throws IOException, DocumentException {
- // create a reader
- PdfReader reader = new PdfReader(src);
- // create a stamper
- PdfStamper stamper = new PdfStamper(reader,
- new FileOutputStream(dest));
- // create a submit button that posts the form as an HTML query string
- PushbuttonField button1 = new PushbuttonField(
- stamper.getWriter(), new Rectangle(90, 660, 140, 690), "post");
- button1.setText("POST");
- button1.setBackgroundColor(new GrayColor(0.7f));
- button1.setVisibility(PushbuttonField.VISIBLE_BUT_DOES_NOT_PRINT);
- PdfFormField submit1 = button1.getField();
- submit1.setAction(PdfAction.createSubmitForm(
- "/book/request", null,
- PdfAction.SUBMIT_HTML_FORMAT | PdfAction.SUBMIT_COORDINATES));
- // add the button
- stamper.addAnnotation(submit1, 1);
- // create a submit button that posts the form as FDF
- PushbuttonField button2 = new PushbuttonField(
- stamper.getWriter(), new Rectangle(200, 660, 250, 690), "FDF");
- button2.setBackgroundColor(new GrayColor(0.7f));
- button2.setText("FDF");
- button2.setVisibility(PushbuttonField.VISIBLE_BUT_DOES_NOT_PRINT);
- PdfFormField submit2 = button2.getField();
- submit2.setAction(PdfAction.createSubmitForm(
- "/book/request", null, PdfAction.SUBMIT_EXCL_F_KEY));
- // add the button
- stamper.addAnnotation(submit2, 1);
- // create a submit button that posts the form as XFDF
- PushbuttonField button3 = new PushbuttonField(
- stamper.getWriter(), new Rectangle(310, 660, 360, 690), "XFDF");
- button3.setBackgroundColor(new GrayColor(0.7f));
- button3.setText("XFDF");
- button3.setVisibility(PushbuttonField.VISIBLE_BUT_DOES_NOT_PRINT);
- PdfFormField submit3 = button3.getField();
- submit3.setAction(PdfAction.createSubmitForm(
- "/book/request", null, PdfAction.SUBMIT_XFDF));
- // add the button
- stamper.addAnnotation(submit3, 1);
- // create a reset button
- PushbuttonField button4 = new PushbuttonField(
- stamper.getWriter(), new Rectangle(420, 660, 470, 690), "reset");
- button4.setBackgroundColor(new GrayColor(0.7f));
- button4.setText("RESET");
- button4.setVisibility(PushbuttonField.VISIBLE_BUT_DOES_NOT_PRINT);
- PdfFormField reset = button4.getField();
- reset.setAction(PdfAction.createResetForm(null, 0));
- // add the button
- stamper.addAnnotation(reset, 1);
- // close the stamper
- stamper.close();
- reader.close();
- }
-
- /**
- * Main method.
- *
- * @param args no arguments needed
- * @throws DocumentException
- * @throws IOException
- */
- public static void main(String[] args)
- throws IOException, DocumentException {
- new Subscribe().createPdf(Subscribe.FORM);
- new SubmitForm().manipulatePdf(Subscribe.FORM, RESULT);
- }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/ec/e0527b4569a8001419a38fd8608ce0e6 b/.metadata/.plugins/org.eclipse.core.resources/.history/ec/e0527b4569a8001419a38fd8608ce0e6
deleted file mode 100644
index 2626f5c..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/ec/e0527b4569a8001419a38fd8608ce0e6
+++ /dev/null
@@ -1,378 +0,0 @@
-package io;
-
-import java.io.FileOutputStream;
-import java.sql.Date;
-
-import com.itextpdf.text.BaseColor;
-import com.itextpdf.text.Document;
-import com.itextpdf.text.Element;
-import com.itextpdf.text.Font;
-import com.itextpdf.text.FontFactory;
-import com.itextpdf.text.Image;
-import com.itextpdf.text.PageSize;
-import com.itextpdf.text.Paragraph;
-import com.itextpdf.text.Phrase;
-import com.itextpdf.text.Rectangle;
-import com.itextpdf.text.pdf.PdfPCell;
-import com.itextpdf.text.pdf.PdfPTable;
-import com.itextpdf.text.pdf.PdfWriter;
-
-/**
- * The Class Writer. This write the pdf into a file
- *
- * @author raisaro
- */
-public class Writer {
-
- /** The path output file. */
- String pathOutputFile;
-
- /** The document. */
- Document document;
-
-
- /**
- * Instantiates a new writer.
- *
- * @param path the path
- */
- public Writer(String path){
- pathOutputFile = path;
- document = new Document(PageSize.A4, 25, 25, 50, 50);
- }
-
- /**
- * Generate pdf report.
- *
- * @param predictions the predictions
- * @param traits the traits
- * @param group the group
- * @param ID_p the patient ID
- * @param hla
- * @throws Exception the exception
- */
- public void generatePDFreport (String[] predictions,String[] traits,String[] group, int ID_p, String[] hla) throws Exception{
-
-
- @SuppressWarnings("unused")
- PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(pathOutputFile));
-
-
- document.open();
- Image logo = Image.getInstance("res/shcs_logo2.gif");
-// try {
-// // get input stream
-// InputStream ims = ContextApp.getContext().getAssets().open("icon.jpg");
-// Bitmap bmp = BitmapFactory.decodeStream(ims);
-// ByteArrayOutputStream stream = new ByteArrayOutputStream();
-// bmp.compress(Bitmap.CompressFormat.PNG, 100, stream);
-// logo = Image.getInstance(stream.toByteArray());
-// }
-// catch(IOException ex) {
-// return;
-// }
- logo.scalePercent(30f);
- float[] columnWidths1 = {0.2f, 0.8f};
- PdfPTable table_title = new PdfPTable(columnWidths1);
- PdfPCell c01 = new PdfPCell(logo, false);
- PdfPCell c02 = new PdfPCell(new Paragraph("HIV Pharmacogenomic report | Project #693 | Patient "+ID_p,
- FontFactory.getFont(FontFactory.HELVETICA, 20, Font.BOLD, BaseColor.BLACK)));
- c01.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c01.setBorder(Rectangle.NO_BORDER);
- c02.setBorder(Rectangle.NO_BORDER);
-
- table_title.addCell(c01);
- table_title.addCell(c02);
- table_title.setWidthPercentage(100);
- table_title.setSpacingBefore(0);
- table_title.setSpacingAfter(25);
- document.add(table_title);
-
-
- //----------------------------------------------------------------------------------
-
-
- PdfPTable table1 = new PdfPTable(1);
- table1.setWidthPercentage(100);
- PdfPCell c11 = new PdfPCell(new Phrase("These data are exclusively provided in the frame of an "
- + "investigational project. Clinically relevant results need to be confirmed by an accredited "
- + "clinical laboratory.\nThese data reveal the genetic component of the described traits. "
- + "Environmental, viral and other factors are to be considered for the correct interpretation "
- + "of individual risk.",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.NORMAL, BaseColor.BLACK)));
- c11.setLeading(1.5f, 1.5f);
- c11.setPaddingBottom(8);
-
-
- table1.addCell(c11);
-
- document.add(table1);
-
-
- //----------------------------------------------------------------------------------
-
-
- PdfPTable table2 = new PdfPTable(2);
- table2.setSpacingBefore(20);
- table2.setSpacingAfter(20);
- table2.setWidthPercentage(100);
-
- PdfPCell c21 = new PdfPCell(new Phrase("SHCS ID",
- FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c21.setPaddingTop(15);
- c21.setPaddingBottom(15);
- c21.setBorderColor(BaseColor.GRAY);
-
- PdfPCell c22 = new PdfPCell(new Phrase("SHCS_" + ID_p,
- FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c22.setPaddingTop(15);
- c22.setPaddingBottom(15);
- c22.setBorderColor(BaseColor.GRAY);
-
- PdfPCell c23 = new PdfPCell(new Phrase("Test order date:",
- FontFactory.getFont(FontFactory.HELVETICA, 10, Font.NORMAL, BaseColor.BLACK)));
- c23.setPaddingBottom(5);
- c23.setBorderColor(BaseColor.GRAY);
-
- Date d1 = new Date(System.currentTimeMillis());
-
-
- PdfPCell c24 = new PdfPCell(new Phrase(d1.toString(),
- FontFactory.getFont(FontFactory.HELVETICA, 10, Font.NORMAL, BaseColor.BLACK)));
- c24.setPaddingBottom(5);
- c24.setBorderColor(BaseColor.GRAY);
-
- PdfPCell c25 = new PdfPCell(new Phrase("Test run date:",
- FontFactory.getFont(FontFactory.HELVETICA, 10, Font.NORMAL, BaseColor.BLACK)));
- c25.setPaddingBottom(5);
- c25.setBorderColor(BaseColor.GRAY);
-
- PdfPCell c26 = new PdfPCell(new Phrase(d1.toString(),
- FontFactory.getFont(FontFactory.HELVETICA, 10, Font.NORMAL, BaseColor.BLACK)));
- c26.setPaddingBottom(5);
- c26.setBorderColor(BaseColor.GRAY);
-
- table2.addCell(c21);
- table2.addCell(c22);
- table2.addCell(c23);
- table2.addCell(c24);
- table2.addCell(c25);
- table2.addCell(c26);
-
-
- document.add(table2);
-
- //----------------------------------------------------------------------------------
-
- float[] colomnWidths3 = {0.2f,0.35f,0.40f};
- PdfPTable table3 = new PdfPTable(colomnWidths3);
- table3.setWidthPercentage(100);
- table3.setSpacingAfter(20);
-
- PdfPCell c31 = new PdfPCell(new Phrase("Group",
- FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c31.setPaddingTop(5);
- c31.setPaddingBottom(5);
- c31.setBorderColor(BaseColor.GRAY);
-
- PdfPCell c32 = new PdfPCell(new Phrase("Trait",
- FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c32.setPaddingTop(5);
- c32.setPaddingBottom(5);
- c32.setBorderColor(BaseColor.GRAY);
-
- PdfPCell c33 = new PdfPCell(new Phrase("Prediction",
- FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c33.setPaddingTop(5);
- c33.setPaddingBottom(5);
- c33.setBorderColor(BaseColor.GRAY);
-
- table3.addCell(c31);
- table3.addCell(c32);
- table3.addCell(c33);
-
- Font f = FontFactory.getFont(FontFactory.HELVETICA, 9, Font.NORMAL, BaseColor.BLACK);
-
-
-
- String previousGroup = "";
- for(int i=0; i<traits.length;i++){
- PdfPCell c3a;
- if(!group[i].equals(previousGroup)){
- c3a = new PdfPCell(new Phrase(group[i],f));
- previousGroup = group[i];
- }else{
- c3a = new PdfPCell();
- }
-
- if(predictions[i] != null){
- PdfPCell c3b = new PdfPCell(new Phrase(traits[i],f));
- PdfPCell c3c = new PdfPCell(new Phrase(predictions[i],f));
-
-
- c3a.setPaddingBottom(5);
- c3a.setLeading(1f, 1f);
-
- c3b.setPaddingBottom(5);
- c3b.setLeading(1f, 1f);
- c3c.setPaddingBottom(5);
- c3c.setLeading(1f, 1f);
-
- c3a.setBorder(Rectangle.LEFT);
-
-
- if(!group[i].equals(previousGroup)){
- c3a.enableBorderSide(Rectangle.BOTTOM);
- }
-
- table3.addCell(c3a);
- table3.addCell(c3b);
- table3.addCell(c3c);
- }
-
- }
-
- document.add(table3);
-
-
- //----------------------------------------------------------------------------------
-
- float[] colomnWidths4 = {0.20f,0.30f,0.50f};
- PdfPTable table4 = new PdfPTable(colomnWidths4);
- table4.setWidthPercentage(100);
-
- PdfPCell c41 = new PdfPCell(new Phrase("HLA Gene",
- FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c41.setPaddingTop(5);
- c41.setPaddingBottom(5);
- c41.setBorderColor(BaseColor.GRAY);
-
- PdfPCell c42 = new PdfPCell(new Phrase("Predicted allele 1",
- FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c42.setPaddingTop(5);
- c42.setPaddingBottom(5);
- c42.setBorderColor(BaseColor.GRAY);
-
- PdfPCell c43 = new PdfPCell(new Phrase("Predicted allele 2",
- FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c43.setPaddingTop(5);
- c43.setPaddingBottom(5);
- c43.setBorderColor(BaseColor.GRAY);
-
- PdfPCell c44 = new PdfPCell(new Phrase("A",f));
- c44.setPaddingTop(5);
- c44.setPaddingBottom(5);
- c44.setBorderColor(BaseColor.GRAY);
-
- PdfPCell c45;
- if(hla[0] != null)
- c45 = new PdfPCell(new Phrase("A*" + hla[0],f));
- else
- c45 = new PdfPCell(new Phrase("Prediction not available",f));
-
- c45.setPaddingTop(5);
- c45.setPaddingBottom(5);
- c45.setBorderColor(BaseColor.GRAY);
-
- PdfPCell c46;
- if(hla[1] != null)
- c46 = new PdfPCell(new Phrase("A*" + hla[1],f));
- else
- c46 = new PdfPCell(new Phrase("Prediction not available",f));
- c46.setPaddingTop(5);
- c46.setPaddingBottom(5);
- c46.setBorderColor(BaseColor.GRAY);
-
- PdfPCell c47 = new PdfPCell(new Phrase("B",f));
- c47.setPaddingTop(5);
- c47.setPaddingBottom(5);
- c47.setBorderColor(BaseColor.GRAY);
-
- PdfPCell c48;
- if(hla[0] != null)
- c48 = new PdfPCell(new Phrase("B*" + hla[2],f));
- else
- c48 = new PdfPCell(new Phrase("Prediction not available",f));
- c48.setPaddingTop(5);
- c48.setPaddingBottom(5);
- c48.setBorderColor(BaseColor.GRAY);
-
- PdfPCell c49;
- if(hla[0] != null)
- c49 = new PdfPCell(new Phrase("B*" + hla[3],f));
- else
- c49 = new PdfPCell(new Phrase("Prediction not available",f));
- c49.setPaddingTop(5);
- c49.setPaddingBottom(5);
- c49.setBorderColor(BaseColor.GRAY);
-
- PdfPCell c410 = new PdfPCell(new Phrase("C",f));
- c410.setPaddingTop(5);
- c410.setPaddingBottom(5);
- c410.setBorderColor(BaseColor.GRAY);
-
- PdfPCell c411;
- if(hla[0] != null)
- c411 = new PdfPCell(new Phrase("C*" + hla[4],f));
- else
- c411 = new PdfPCell(new Phrase("Prediction not available",f));
- c411.setPaddingTop(5);
- c411.setPaddingBottom(5);
- c411.setBorderColor(BaseColor.GRAY);
-
- PdfPCell c412;
- if(hla[0] != null)
- c412 = new PdfPCell(new Phrase("C*" + hla[5],f));
- else
- c412 = new PdfPCell(new Phrase("Prediction not available",f));
- c412.setPaddingTop(5);
- c412.setPaddingBottom(5);
- c412.setBorderColor(BaseColor.GRAY);
-
- table4.addCell(c41);
- table4.addCell(c42);
- table4.addCell(c43);
- table4.addCell(c44);
- table4.addCell(c45);
- table4.addCell(c46);
- table4.addCell(c47);
- table4.addCell(c48);
- table4.addCell(c49);
- table4.addCell(c410);
- table4.addCell(c411);
- table4.addCell(c412);
-
- document.add(table4);
-
- document.close();
- }
-
- private void deleteFile(String fileName){
- // A File object to represent the filename
- File f = new File(fileName);
-
- // Make sure the file or directory exists and isn't write protected
- if (!f.exists())
- throw new IllegalArgumentException(
- "Delete: no such file or directory: " + fileName);
-
- if (!f.canWrite())
- throw new IllegalArgumentException("Delete: write protected: "
- + fileName);
-
- // If it is a directory, make sure it is empty
- if (f.isDirectory()) {
- String[] files = f.list();
- if (files.length > 0)
- throw new IllegalArgumentException(
- "Delete: directory not empty: " + fileName);
- }
-
- // Attempt to delete it
- boolean success = f.delete();
-
- if (!success)
- throw new IllegalArgumentException("Delete: deletion failed");
- }
- }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/ef/30a958f252ac001410e2e30aa85db9d1 b/.metadata/.plugins/org.eclipse.core.resources/.history/ef/30a958f252ac001410e2e30aa85db9d1
deleted file mode 100644
index 58ef2ef..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/ef/30a958f252ac001410e2e30aa85db9d1
+++ /dev/null
@@ -1,907 +0,0 @@
-package ui;
-
-import io.ClientConnection;
-import io.CommAdapter;
-import io.Questionnaire;
-
-import java.awt.BorderLayout;
-import java.awt.Color;
-import java.awt.Component;
-import java.awt.Dimension;
-import java.awt.FlowLayout;
-import java.awt.Font;
-import java.awt.SystemColor;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.awt.event.WindowAdapter;
-import java.io.File;
-import java.io.IOException;
-import java.sql.SQLException;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.LinkedList;
-import java.util.Map;
-import java.util.Set;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
-import javax.swing.Box;
-import javax.swing.BoxLayout;
-import javax.swing.ButtonGroup;
-import javax.swing.DefaultComboBoxModel;
-import javax.swing.GroupLayout;
-import javax.swing.GroupLayout.Alignment;
-import javax.swing.ImageIcon;
-import javax.swing.JButton;
-import javax.swing.JComboBox;
-import javax.swing.JDialog;
-import javax.swing.JFileChooser;
-import javax.swing.JFrame;
-import javax.swing.JLabel;
-import javax.swing.JOptionPane;
-import javax.swing.JPanel;
-import javax.swing.JRadioButton;
-import javax.swing.JScrollPane;
-import javax.swing.JSeparator;
-import javax.swing.JTabbedPane;
-import javax.swing.JTextArea;
-import javax.swing.JTextPane;
-import javax.swing.JTree;
-import javax.swing.LayoutStyle.ComponentPlacement;
-import javax.swing.SwingConstants;
-import javax.swing.UIManager;
-import javax.swing.border.BevelBorder;
-import javax.swing.border.EmptyBorder;
-import javax.swing.border.EtchedBorder;
-import javax.swing.tree.DefaultMutableTreeNode;
-import javax.swing.tree.TreeModel;
-import javax.swing.tree.TreePath;
-
-import org.jpedal.examples.viewer.Commands;
-import org.jpedal.examples.viewer.Viewer;
-
-import utils.ClientProperties;
-
-import com.itextpdf.text.DocumentException;
-
-import database.DBconnectorClient;
-import framework.Diagnostic;
-import framework.MedUnit;
-import framework.Question;
-import framework.reply.ReplySurvey;
-import framework.test.TestName;
-import javax.swing.border.SoftBevelBorder;
-import javax.swing.border.LineBorder;
-
-/**
- *
- * @author youssef, raisaro
- */
-public class GUI extends javax.swing.JFrame {
-
- private static final Logger LOGGER = Logger.getLogger(GUI.class.getName());
-
- private static final long serialVersionUID = -4582280515597700650L;
-
- // configuration
- private ClientProperties props;
-
- private JTree jTree;
- private DBconnectorClient connectorClientDB;
- private LinkedList<Integer> patients;
-
- /** List of all relevant tests */
- private HashMap<String, TestName> testsByName;
- private Viewer viewer;
- private JDialog dialog;
- private JFrame frame;
- private boolean survey_submitted;
- private int close_trials;
- private Map<Integer, ButtonGroup> buttonGroupMap;
- private Questionnaire quest;
- private Map<Integer, Question> map;
- private Set<Integer> ids;
- private Map<String,String> answers;
- private Map<Integer, String> locations;
-
-
- /**
- * Creates new form GUI
- */
- public GUI(ClientProperties props){
-
- frame = this;
- this.props = props;
- this.connectorClientDB = new DBconnectorClient(props.getDbMsAccess());
- survey_submitted = false;
- close_trials = 0;
-
-
- try {
- initComponents();
-
- viewer = new Viewer(jScrollPane2, null);
- viewer.setupViewer();
-
- // create questionnare
-
-
- System.out.println("#of questions: " + ids.size());
-
-// viewer_q = new Viewer(jScrollPane4, null);
-// viewer_q.setupViewer();
-//
-// // specify file you wish to open (JPedal handles getting the byte data)
-// String filepathReport = "outputPDF/buttons_filled.pdf";
-//
-// // open generated PDF
-// // object must be either String in full filepath, or
-// // File object which can be relative
-// Object[] input = new Object[]{ new File(filepathReport) };
-// viewer_q.executeCommand(Commands.OPENFILE, input);
-
- JButton btnSubmitQuestionnaire = new JButton("Submit Questionnaire");
- btnSubmitQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- btnSubmitQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- submitButtonActionPerformed(arg0);
- }
- });
- JButton btnResetQuestionnaire = new JButton("Save as PDF");
- btnResetQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- savePDFButtonActionPerformed(arg0);
- }
- });
- btnResetQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- JPanel panel_button = new JPanel();
- panel_button.setLayout(new BoxLayout(panel_button, BoxLayout.X_AXIS));
-
- lblNewLabel_3 = new JLabel("");
- lblNewLabel_3.setIcon(new ImageIcon("res/location_icon.png"));
- panel_button.add(lblNewLabel_3);
-
-
-
- comboBox = new JComboBox<String>();
- comboBox.setFont(new Font("Tahoma", Font.BOLD, 12));
- comboBox.setModel(new DefaultComboBoxModel<String>(new String[] {"Select Location"}));
- for(Integer id_loc : locations.keySet()){
- comboBox.addItem(locations.get(id_loc));
- }
-
-
- panel_button.add(comboBox);
-
- rigidArea = Box.createRigidArea(new Dimension(10, 0));
- panel_button.add(rigidArea);
-
- lblNewLabel_1 = new JLabel("");
- lblNewLabel_1.setIcon(new ImageIcon("res/submit.png"));
- panel_button.add(lblNewLabel_1);
- panel_button.add(btnSubmitQuestionnaire);
-
- panel_button.add(Box.createRigidArea(new Dimension(10,0)));
-
- lblNewLabel_2 = new JLabel("");
- lblNewLabel_2.setIcon(new ImageIcon("res/pdf.png"));
- panel_button.add(lblNewLabel_2);
- panel_button.add(btnResetQuestionnaire);
- panel_button.setPreferredSize(new Dimension(211, 35));
- panel_button.validate();
-
- JPanel panel_3 = new JPanel();
- GroupLayout gl_panel = new GroupLayout(panel);
- gl_panel.setHorizontalGroup(
- gl_panel.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(63)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addGap(103)
- .addComponent(panel_button, GroupLayout.DEFAULT_SIZE, 498, Short.MAX_VALUE)
- .addGap(241))
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(41)
- .addGroup(gl_panel.createParallelGroup(Alignment.TRAILING)
- .addComponent(jScrollPane4, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE)
- .addComponent(panel_1, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE))
- .addGap(32))
- );
- gl_panel.setVerticalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(22)
- .addComponent(panel_1, GroupLayout.PREFERRED_SIZE, 235, GroupLayout.PREFERRED_SIZE)
- .addGap(37)
- .addComponent(jScrollPane4, GroupLayout.DEFAULT_SIZE, 379, Short.MAX_VALUE)
- .addGap(26)
- .addGroup(gl_panel.createParallelGroup(Alignment.LEADING)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(panel_button, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE)))
- );
- panel_3.setLayout(new BoxLayout(panel_3, BoxLayout.X_AXIS));
-
-
- panel.setLayout(gl_panel);
-
-
-
-
-
-
- /////////////////////////////////////////////////////////
- // display the tests available
-
- // get the tests
- HashMap<String, ArrayList<TestName>> testsRelevantByGroup = connectorClientDB.getRelevantTestsByGroup();
- ArrayList<String> groups = new ArrayList<String>(testsRelevantByGroup.keySet());
-
- // flatten hashmap into linkedlist
-// tests = new LinkedList<>();
- testsByName = new HashMap<String, TestName>();
- for (String group : groups) {
-// tests.addAll(testsRelevantByGroup.get(group));
- for (TestName test : testsRelevantByGroup.get(group)) {
- testsByName.put(test.getName(), test);
- }
- }
-
- // define tree structure of the tests
- DefaultMutableTreeNode root = new DefaultMutableTreeNode("All");
-
- for (String group : groups) {
- DefaultMutableTreeNode child = new DefaultMutableTreeNode(group);
- root.add(child);
-
- for (TestName test : testsRelevantByGroup.get(group)) {
- DefaultMutableTreeNode grandChild = new DefaultMutableTreeNode(test.getName());
- child.add(grandChild);
- }
- }
-
- // define swing object
- jTree = new JTree(root);
-
- for(int i=0;i<jTree.getRowCount();i++){
- jTree.expandRow(i);
- }
-
- jScrollPane3.setViewportView(jTree);
-// jTree.addTreeSelectionListener(new TreeSelectionListener() {
-//
-// @Override
-// public void valueChanged(TreeSelectionEvent e) {
-// tp = jTree.getSelectionPaths();
-// }
-// });
- jScrollPane3.setViewportView(jTree);
-
- /////////////////////////////////////////////////////////
- // display the patients registered
-
- patients = connectorClientDB.getPatients();
- for (Integer patientId : patients) {
- jComboBox1.addItem(patientId.toString());
- }
-
- } catch (SQLException ex) {
- Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex);
- ex.printStackTrace();
-// } catch (IOException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
-// } catch (DocumentException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
- }
-
- }
-
- /**
- * 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() {
-
- jPanel1 = new javax.swing.JPanel();
- jLabel2 = new javax.swing.JLabel();
- jLabel1 = new javax.swing.JLabel();
- jPanel2 = new javax.swing.JPanel();
- jComboBox1 = new javax.swing.JComboBox<String>();
- jButton1 = new javax.swing.JButton();
- jButton1.setFont(new Font("Tahoma", Font.BOLD, 12));
- jLabel3 = new javax.swing.JLabel();
- jLabel4 = new javax.swing.JLabel();
- jScrollPane3 = new javax.swing.JScrollPane();
- jScrollPane2 = new javax.swing.JScrollPane();
- jMenuBar1 = new javax.swing.JMenuBar();
- jMenu1 = new javax.swing.JMenu();
- jMenuItem1 = new javax.swing.JMenuItem();
- jMenu2 = new javax.swing.JMenu();
- dialog = new JDialog();
- tabbedPane = new JTabbedPane(JTabbedPane.TOP);
-
- setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
- addWindowListener(new WindowAdapter() {
- @Override
- public void windowClosing(java.awt.event.WindowEvent windowEvent) {
- if (!survey_submitted && close_trials <= 2){
- JOptionPane.showMessageDialog(frame, "Before closing the application, please fill in and submit the questionnaire.");
- close_trials++;
- tabbedPane.setSelectedIndex(1);
- }else{
- System.exit(0);
- }
- }
- });
- setTitle("HIV Pharmacogenomics\n");
-
- jLabel2.setIcon(new javax.swing.ImageIcon("res/shcs_logo2_small.gif")); // NOI18N
-
- jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
- jLabel1.setText("HIV Pharmacogenomics | Project #693");
-
- javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
- jPanel1.setLayout(jPanel1Layout);
- jPanel1Layout.setHorizontalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap(71, Short.MAX_VALUE)
- .addComponent(jLabel1)
- .addGap(18, 18, 18)
- .addComponent(jLabel2))
- );
- jPanel1Layout.setVerticalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jLabel1)
- .addGap(11, 11, 11))
- .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)
- );
-
- jPanel2.setBackground(new java.awt.Color(255, 255, 255));
- jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
-
- jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<String>(new String[]{"Select Patient"}));
-
- jButton1.setText("Run Test");
- jButton1.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton1ActionPerformed(evt);
- }
- });
-
- JLabel lblNewLabel = new JLabel("");
- lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
- lblNewLabel.setIcon(new javax.swing.ImageIcon("res/gears.png"));
-
-
-
- javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
- jPanel2Layout.setHorizontalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addComponent(jComboBox1, 0, 248, Short.MAX_VALUE)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addGap(75)
- .addGroup(jPanel2Layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jButton1)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 75, GroupLayout.PREFERRED_SIZE))
- .addContainerGap(98, Short.MAX_VALUE))
- );
- jPanel2Layout.setVerticalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addComponent(jComboBox1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED, 223, Short.MAX_VALUE)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jButton1)
- .addGap(19))
- );
- jPanel2.setLayout(jPanel2Layout);
-
- jLabel3.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel3.setText("Select Patient");
-
- jLabel4.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel4.setText("Select Test");
-
- jScrollPane3.setBackground(new java.awt.Color(255, 255, 255));
-
- jMenu1.setText("File");
-
- jMenuItem1.setText("Exit");
- jMenu1.add(jMenuItem1);
-
- jMenuBar1.add(jMenu1);
-
- jMenu2.setText("Edit");
- jMenuBar1.add(jMenu2);
-
- setJMenuBar(jMenuBar1);
-
-
-
- javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
- layout.setHorizontalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(layout.createParallelGroup(Alignment.LEADING, false)
- .addComponent(jLabel3)
- .addComponent(jLabel4)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, 244, Short.MAX_VALUE)
- .addComponent(jScrollPane3))
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 970, Short.MAX_VALUE))
- .addContainerGap())
- );
- layout.setVerticalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel4))
- .addPreferredGap(ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addComponent(jScrollPane3, GroupLayout.PREFERRED_SIZE, 388, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jLabel3)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 785, Short.MAX_VALUE))
- .addContainerGap())
- );
-
-
- jScrollPane2.setAutoscrolls(true);
- jScrollPane3.setAutoscrolls(true);
- tabbedPane.addTab("Report", new ImageIcon("res/report_icon.gif"), jScrollPane2, null);
- tabbedPane.setBackgroundAt(0, new Color(255, 255, 255));
-
- panel = new JPanel();
- tabbedPane.addTab("Survey", new ImageIcon("res/survey_icon.png"), panel, null);
- tabbedPane.setBackgroundAt(1, new Color(255, 255, 255));
- tabbedPane.setEnabledAt(1, true);
-
- panel_1 = new JPanel();
- panel_1.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
- panel_1.setBackground(SystemColor.control);
-
- JLabel label = new JLabel("");
- label.setIcon(new ImageIcon("res/shcs_logo2_medium.gif"));
-
- lblDearDoctor = new JLabel("Dear Doctor,");
- lblDearDoctor.setFont(new Font("Tahoma", Font.BOLD, 14));
-
- JScrollPane scrollPane = new JScrollPane();
- scrollPane.setBorder(null);
- GroupLayout gl_panel_1 = new GroupLayout(panel_1);
- gl_panel_1.setHorizontalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(Alignment.LEADING, gl_panel_1.createSequentialGroup()
- .addGap(25)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addComponent(lblDearDoctor)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 661, Short.MAX_VALUE))
- .addContainerGap())
- );
- gl_panel_1.setVerticalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addContainerGap()
- .addComponent(lblDearDoctor)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 203, Short.MAX_VALUE))
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(36)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 96, GroupLayout.PREFERRED_SIZE)))
- .addContainerGap())
- );
-
- JTextPane txtpnTodayYouAre = new JTextPane();
- txtpnTodayYouAre.setBorder(null);
- txtpnTodayYouAre.setText("Today you are receiving a pharmacogenetics report based on the genome of your patient. Because of its highly sensitive nature, " +
- "the genetic information you are provided with is processed in a privacy-preserving way. In particular, to protect patients’ genomic privacy, " +
- "their genetic and clinical data is stored encrypted at the SHCS data center, and securely analyzed through a sophisticated algorithm designed and developed at EPFL [1, 2]. " +
- "The actual clinical and genetic information is never revealed. Only the authorized users, such as you, can get some processed information, for example, the final result of a " +
- "pharmacogenetics risk test.\nThis mechanism protects the data against insiders or hackers trying to illegally access patients’ medical information, while still allowing authorized " +
- "users to obtain the information they need." +
- "\n\nTo help us understanding the importance of genomic privacy in the medical domain, and the impact of privacy-enhancing technologies in daily clinical practice, please complete the following survey.");
- txtpnTodayYouAre.setFont(new Font("Tahoma", Font.PLAIN, 13));
- txtpnTodayYouAre.setEditable(false);
- txtpnTodayYouAre.setBackground(SystemColor.control);
- scrollPane.setViewportView(txtpnTodayYouAre);
- panel_1.setLayout(gl_panel_1);
- jScrollPane4 = new javax.swing.JScrollPane();
- jScrollPane4.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
- getContentPane().setLayout(layout);
-
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
- ReplySurvey replySurvey = commHandlerAdapter.callServiceSurvey();
-
- map = replySurvey.getQuestions();
- ids = map.keySet();
- locations = replySurvey.getLocations();
-
- panel_2 = new JPanel();
- panel_2.setBackground(Color.WHITE);
- panel_2.setBorder(null);
- jScrollPane4.setViewportView(panel_2);
- panel_2.setLayout(new BoxLayout(panel_2, BoxLayout.Y_AXIS));
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
-
-
- for(Integer id : ids){
- ButtonGroup group = new ButtonGroup();
- JRadioButton r1 = new JRadioButton("1"); r1.setActionCommand("1"); r1.setBackground(Color.WHITE);
- JRadioButton r2 = new JRadioButton("2"); r2.setActionCommand("2"); r2.setBackground(Color.WHITE);
- JRadioButton r3 = new JRadioButton("3"); r3.setActionCommand("3"); r3.setBackground(Color.WHITE);
- JRadioButton r4 = new JRadioButton("4"); r4.setActionCommand("4"); r4.setBackground(Color.WHITE);
- JRadioButton r5 = new JRadioButton("5"); r5.setActionCommand("5"); r5.setBackground(Color.WHITE);
- group.add(r1);
- group.add(r2);
- group.add(r3);
- group.add(r4);
- group.add(r5);
- JPanel radio_panel = new JPanel();
- radio_panel.setLayout((new BoxLayout(radio_panel, BoxLayout.X_AXIS)));
- radio_panel.setBackground(Color.WHITE);
- radio_panel.setAlignmentX(Component.CENTER_ALIGNMENT);
- radio_panel.add(r1);
- radio_panel.add(r2);
- radio_panel.add(r3);
- radio_panel.add(r4);
- radio_panel.add(r5);
- radio_panel.doLayout();
- radio_panel.setPreferredSize(radio_panel.getPreferredSize());
- JTextArea question = new JTextArea(id + ") " + map.get(id).getQuestion());
- question.setLineWrap(true);
- question.setWrapStyleWord(true);
- question.setAlignmentX(Component.CENTER_ALIGNMENT);
- question.setFont(new Font("Tahoma", Font.PLAIN, 13));
-
- JPanel row_panel = new JPanel();
- row_panel.setLayout(new BoxLayout(row_panel, BoxLayout.X_AXIS));
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.add(question);
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.add(radio_panel);
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.setBackground(Color.WHITE);
-
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- panel_2.add(row_panel);
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
-// panel_2.add(radio_panel);
- panel_2.add(new JSeparator());
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
-// panel_2.setPreferredSize(panel_2.getPreferredSize());
- buttonGroupMap.put(id, group);
-
- }
-
-
-
- this.setSize(new Dimension(1300, 865));
-// pack();
- }// </editor-fold>//GEN-END:initComponents
-
-
- private void submitButtonActionPerformed(java.awt.event.ActionEvent evt){
-
- try{
- answers = new HashMap<String, String>();
- StringBuilder sb = new StringBuilder();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- sb.append(q).append(",");
- sb.append(bg.getSelection().getActionCommand()).append(";");
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- String answer = sb.toString();
- Integer id_loc = null;
- for(Integer i: locations.keySet()){
- if(locations.get(i).equals(comboBox.getSelectedItem().toString()))
- id_loc = i;
- }
-
- String id_p;
- if(jComboBox1.getSelectedItem().toString().equals("Select Patient"))
- id_p = "0";
- else
- id_p = jComboBox1.getSelectedItem().toString();
-
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
-
- String reply = commHandlerAdapter.callServiceSurveyAnswer(answer, id_loc.toString(), id_p);
-
- if(reply.equals("1")){
- survey_submitted = true;
-
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Congrats! Your aswers have been sent to the SHCS datacenter.",
- "Information Message",
- JOptionPane.INFORMATION_MESSAGE);
- }
- else{
- throw new IOException();
- }
-
-
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "The SHCS datacenter does not respond. Please save the survey and send it to jean.raisaro@epfl.ch.",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
- private void savePDFButtonActionPerformed(java.awt.event.ActionEvent evt){
- try {
-
- answers = new HashMap<String, String>();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- JFileChooser chooser = new JFileChooser();
- // Note: source for ExampleFileFilter can be found in FileChooserDemo,
- // under the demo/jfc directory in the JDK.
-
- int returnVal = chooser.showSaveDialog(this);
- System.out.println(returnVal);
- if(returnVal == JFileChooser.APPROVE_OPTION) {
- System.out.println("You chose to open this file: " +
- chooser.getSelectedFile().getPath());
- quest = new Questionnaire(chooser.getSelectedFile().getPath() + ".pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }else{
- quest = new Questionnaire("outputPDF/survey.pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }
-
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (DocumentException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (NullPointerException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
-
- private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
-
- JPanel contentPanel = new JPanel();
-
- dialog.setBounds(100, 100, 410, 80);
- dialog.getContentPane().setLayout(new BorderLayout());
- contentPanel.setLayout(new FlowLayout());
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- dialog.getContentPane().add(contentPanel, BorderLayout.CENTER);
- {
- JLabel label = new JLabel("Please wait...The overall computation can take few seconds");
- label.setHorizontalAlignment(SwingConstants.CENTER);
- label.setFont(new Font("Tahoma", Font.PLAIN, 12));
- contentPanel.add(label);
- }
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
- dialog.getContentPane().add(buttonPane, BorderLayout.SOUTH);
- }
- dialog.setLocationRelativeTo(this);
- dialog.setVisible(true);
-
- GUIWorker gw = new GUIWorker(this, props);
- Thread t = new Thread(gw);
- t.start();
-
- }
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JButton jButton1;
- private javax.swing.JComboBox<String> jComboBox1;
- private javax.swing.JLabel jLabel1;
- private javax.swing.JLabel jLabel2;
- private javax.swing.JLabel jLabel3;
- private javax.swing.JLabel jLabel4;
- private javax.swing.JMenu jMenu1;
- private javax.swing.JMenu jMenu2;
- private javax.swing.JMenuBar jMenuBar1;
- private javax.swing.JMenuItem jMenuItem1;
- private javax.swing.JPanel jPanel1;
- private javax.swing.JPanel jPanel2;
- private javax.swing.JScrollPane jScrollPane3;
- private javax.swing.JTabbedPane tabbedPane;
- private javax.swing.JScrollPane jScrollPane2;
- private javax.swing.JScrollPane jScrollPane4;
- private JPanel panel;
- private JPanel panel_1;
- private JPanel panel_2;
- private JLabel lblDearDoctor;
- private JLabel lblNewLabel_1;
- private JLabel lblNewLabel_2;
- private JLabel lblNewLabel_3;
- private JComboBox<String> comboBox;
- private Component rigidArea;
-
- // End of variables declaration//GEN-END:variables
-
-
- class GUIWorker implements Runnable{
-
- private JFrame mainFrame;
- private ClientProperties props;
- private MedUnit mu;
-
- public GUIWorker(GUI gui, ClientProperties props) {
- mainFrame = gui;
-
- this.props = props;
- this.mu = new MedUnit(props, 0);
- }
-
- @Override
- public void run() {
-
- try{
- int patientId = Integer.parseInt((String) jComboBox1.getSelectedItem());
-
- // convert selected tests to test identifiers
- ArrayList<TestName> selectedTests = new ArrayList<TestName>();
- for (String currentName : getSelectedTests()) {
- TestName currentTest = testsByName.get(currentName);
-
- if (currentTest == null) {
- throw new IllegalStateException("Trying to run unknown test: " + currentTest);
- }
-
- selectedTests.add(currentTest);
- }
-
- // run tests
- Diagnostic diagnostic = mu.runTests(patientId, selectedTests);
-
- // warn for tests with missing material
- warnFailedTests(diagnostic, selectedTests);
-
- // create report
- mu.createReport(patientId, selectedTests, diagnostic);
-
- dialog.setVisible(false);
-
- // specify file you wish to open (JPedal handles getting the byte data)
- String filepathReport = props.getPathPDF() + patientId + ".pdf";
-
- // open generated PDF
- // object must be either String in full filepath, or
- // File object which can be relative
- Object[] input = new Object[]{ new File(filepathReport) };
- viewer.executeCommand(Commands.OPENFILE, input);
-
- // display CAD result as bar plot
- if (diagnostic.hasCAD()) {
- System.out.println("CAD = " + diagnostic.getResultCAD());
- BarPlotFrame frame = new BarPlotFrame(diagnostic.getResultCAD(), patientId);
- frame.setVisible(true);
- frame.setAlwaysOnTop(true);
- }
-
-
- } catch (SQLException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Please select a patient.");
- }
-
- }
-
- private void warnFailedTests(Diagnostic diagnostic, ArrayList<TestName> selectedTests) {
- ArrayList<Integer> failedTests = diagnostic.getInvalidTests();
-
- if (!failedTests.isEmpty()) {
- String msg = "Could not complete tests: ";
- boolean first = true;
- for (TestName testName : selectedTests) {
- if (failedTests.contains(testName.getId())) {
- if (first) {
- first = false;
- } else {
- msg += ", ";
- }
- msg += testName.getName();
- }
- }
- displayError(msg);
- }
-
- }
-
- private void displayError(String msg) {
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- mainFrame,
- msg,
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
-
- private ArrayList<String> getSelectedTests() {
- ArrayList<String> tests = new ArrayList<String>();
-
- for (TreePath treePath : jTree.getSelectionPaths()) {
- tests.addAll(getChildrenTests(jTree.getModel(), treePath.getLastPathComponent()));
- }
-
- return tests;
- }
-
- private ArrayList<String> getChildrenTests(TreeModel model, Object node) {
- ArrayList<String> tests = new ArrayList<String>();
-
- if (model.isLeaf(node)) { // leaf
- DefaultMutableTreeNode leaf = (DefaultMutableTreeNode) node;
- tests.add(leaf.toString());
- }
- else { // iterate over children
- for (int i = 0; i < model.getChildCount(node); i++) {
- tests.addAll(getChildrenTests(model, model.getChild(node, i)));
- }
- }
-
- return tests;
- }
-
- }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/ef/a0e631dc4bac001410e2e30aa85db9d1 b/.metadata/.plugins/org.eclipse.core.resources/.history/ef/a0e631dc4bac001410e2e30aa85db9d1
deleted file mode 100644
index 789292f..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/ef/a0e631dc4bac001410e2e30aa85db9d1
+++ /dev/null
@@ -1,890 +0,0 @@
-package ui;
-
-import io.ClientConnection;
-import io.CommAdapter;
-import io.Questionnaire;
-
-import java.awt.BorderLayout;
-import java.awt.Color;
-import java.awt.Component;
-import java.awt.Dimension;
-import java.awt.FlowLayout;
-import java.awt.Font;
-import java.awt.SystemColor;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.awt.event.WindowAdapter;
-import java.io.File;
-import java.io.IOException;
-import java.sql.SQLException;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.LinkedList;
-import java.util.Map;
-import java.util.Set;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
-import javax.swing.Box;
-import javax.swing.BoxLayout;
-import javax.swing.ButtonGroup;
-import javax.swing.DefaultComboBoxModel;
-import javax.swing.GroupLayout;
-import javax.swing.GroupLayout.Alignment;
-import javax.swing.ImageIcon;
-import javax.swing.JButton;
-import javax.swing.JComboBox;
-import javax.swing.JDialog;
-import javax.swing.JFileChooser;
-import javax.swing.JFrame;
-import javax.swing.JLabel;
-import javax.swing.JOptionPane;
-import javax.swing.JPanel;
-import javax.swing.JRadioButton;
-import javax.swing.JScrollPane;
-import javax.swing.JSeparator;
-import javax.swing.JTabbedPane;
-import javax.swing.JTextArea;
-import javax.swing.JTextPane;
-import javax.swing.JTree;
-import javax.swing.LayoutStyle.ComponentPlacement;
-import javax.swing.SwingConstants;
-import javax.swing.UIManager;
-import javax.swing.border.BevelBorder;
-import javax.swing.border.EmptyBorder;
-import javax.swing.border.EtchedBorder;
-import javax.swing.tree.DefaultMutableTreeNode;
-import javax.swing.tree.TreeModel;
-import javax.swing.tree.TreePath;
-
-import org.jpedal.examples.viewer.Commands;
-import org.jpedal.examples.viewer.Viewer;
-
-import utils.ClientProperties;
-
-import com.itextpdf.text.DocumentException;
-
-import database.DBconnectorClient;
-import framework.Diagnostic;
-import framework.MedUnit;
-import framework.Question;
-import framework.reply.ReplySurvey;
-import framework.test.TestName;
-
-/**
- *
- * @author youssef, raisaro
- */
-public class GUI extends javax.swing.JFrame {
-
- private static final Logger LOGGER = Logger.getLogger(GUI.class.getName());
-
- private static final long serialVersionUID = -4582280515597700650L;
-
- // configuration
- private ClientProperties props;
-
- private JTree jTree;
- private DBconnectorClient connectorClientDB;
- private LinkedList<Integer> patients;
-
- /** List of all relevant tests */
- private HashMap<String, TestName> testsByName;
- private Viewer viewer;
- private JDialog dialog;
- private JFrame frame;
- private boolean survey_submitted;
- private int close_trials;
- private Map<Integer, ButtonGroup> buttonGroupMap;
- private Questionnaire quest;
- private Map<Integer, Question> map;
- private Set<Integer> ids;
- private Map<String,String> answers;
- private Map<Integer, String> locations;
-
-
- /**
- * Creates new form GUI
- */
- public GUI(ClientProperties props){
-
- frame = this;
- this.props = props;
- this.connectorClientDB = new DBconnectorClient(props.getDbMsAccess());
- survey_submitted = false;
- close_trials = 0;
-
-
- try {
- initComponents();
-
- viewer = new Viewer(jScrollPane2, null);
- viewer.setupViewer();
-
- // create questionnare
-
-
- System.out.println("#of questions: " + ids.size());
-
-// viewer_q = new Viewer(jScrollPane4, null);
-// viewer_q.setupViewer();
-//
-// // specify file you wish to open (JPedal handles getting the byte data)
-// String filepathReport = "outputPDF/buttons_filled.pdf";
-//
-// // open generated PDF
-// // object must be either String in full filepath, or
-// // File object which can be relative
-// Object[] input = new Object[]{ new File(filepathReport) };
-// viewer_q.executeCommand(Commands.OPENFILE, input);
-
- JButton btnSubmitQuestionnaire = new JButton("Submit Questionnaire");
- btnSubmitQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- btnSubmitQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- submitButtonActionPerformed(arg0);
- }
- });
- JButton btnResetQuestionnaire = new JButton("Save as PDF");
- btnResetQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- savePDFButtonActionPerformed(arg0);
- }
- });
- btnResetQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- JPanel panel_button = new JPanel();
- panel_button.setLayout(new BoxLayout(panel_button, BoxLayout.X_AXIS));
-
- lblNewLabel_3 = new JLabel("");
- lblNewLabel_3.setIcon(new ImageIcon("res/location_icon.png"));
- panel_button.add(lblNewLabel_3);
-
-
-
- comboBox = new JComboBox<String>();
- comboBox.setFont(new Font("Tahoma", Font.BOLD, 12));
- comboBox.setModel(new DefaultComboBoxModel<String>(new String[] {"Select Location"}));
- for(Integer id_loc : locations.keySet()){
- comboBox.addItem(locations.get(id_loc));
- }
-
-
- panel_button.add(comboBox);
-
- rigidArea = Box.createRigidArea(new Dimension(10, 0));
- panel_button.add(rigidArea);
-
- lblNewLabel_1 = new JLabel("");
- lblNewLabel_1.setIcon(new ImageIcon("res/submit.png"));
- panel_button.add(lblNewLabel_1);
- panel_button.add(btnSubmitQuestionnaire);
-
- panel_button.add(Box.createRigidArea(new Dimension(10,0)));
-
- lblNewLabel_2 = new JLabel("");
- lblNewLabel_2.setIcon(new ImageIcon("res/pdf.png"));
- panel_button.add(lblNewLabel_2);
- panel_button.add(btnResetQuestionnaire);
- panel_button.setPreferredSize(new Dimension(211, 35));
- panel_button.validate();
-
- JPanel panel_3 = new JPanel();
- GroupLayout gl_panel = new GroupLayout(panel);
- gl_panel.setHorizontalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(41)
- .addGroup(gl_panel.createParallelGroup(Alignment.TRAILING)
- .addComponent(jScrollPane4, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE)
- .addComponent(panel_1, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE))
- .addGap(32))
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(63)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addGap(103)
- .addComponent(panel_button, GroupLayout.DEFAULT_SIZE, 488, Short.MAX_VALUE)
- .addGap(241))
- );
- gl_panel.setVerticalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(22)
- .addComponent(panel_1, GroupLayout.DEFAULT_SIZE, 192, Short.MAX_VALUE)
- .addGap(18)
- .addComponent(jScrollPane4, GroupLayout.DEFAULT_SIZE, 437, Short.MAX_VALUE)
- .addGap(26)
- .addGroup(gl_panel.createParallelGroup(Alignment.LEADING)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(panel_button, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE)))
- );
- panel_3.setLayout(new BoxLayout(panel_3, BoxLayout.X_AXIS));
-
-
- panel.setLayout(gl_panel);
-
-
-
-
-
-
- /////////////////////////////////////////////////////////
- // display the tests available
-
- // get the tests
- HashMap<String, ArrayList<TestName>> testsRelevantByGroup = connectorClientDB.getRelevantTestsByGroup();
- ArrayList<String> groups = new ArrayList<String>(testsRelevantByGroup.keySet());
-
- // flatten hashmap into linkedlist
-// tests = new LinkedList<>();
- testsByName = new HashMap<String, TestName>();
- for (String group : groups) {
-// tests.addAll(testsRelevantByGroup.get(group));
- for (TestName test : testsRelevantByGroup.get(group)) {
- testsByName.put(test.getName(), test);
- }
- }
-
- // define tree structure of the tests
- DefaultMutableTreeNode root = new DefaultMutableTreeNode("All");
-
- for (String group : groups) {
- DefaultMutableTreeNode child = new DefaultMutableTreeNode(group);
- root.add(child);
-
- for (TestName test : testsRelevantByGroup.get(group)) {
- DefaultMutableTreeNode grandChild = new DefaultMutableTreeNode(test.getName());
- child.add(grandChild);
- }
- }
-
- // define swing object
- jTree = new JTree(root);
-
- for(int i=0;i<jTree.getRowCount();i++){
- jTree.expandRow(i);
- }
-
- jScrollPane3.setViewportView(jTree);
-// jTree.addTreeSelectionListener(new TreeSelectionListener() {
-//
-// @Override
-// public void valueChanged(TreeSelectionEvent e) {
-// tp = jTree.getSelectionPaths();
-// }
-// });
- jScrollPane3.setViewportView(jTree);
-
- /////////////////////////////////////////////////////////
- // display the patients registered
-
- patients = connectorClientDB.getPatients();
- for (Integer patientId : patients) {
- jComboBox1.addItem(patientId.toString());
- }
-
- } catch (SQLException ex) {
- Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex);
- ex.printStackTrace();
-// } catch (IOException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
-// } catch (DocumentException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
- }
-
- }
-
- /**
- * 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() {
-
- jPanel1 = new javax.swing.JPanel();
- jLabel2 = new javax.swing.JLabel();
- jLabel1 = new javax.swing.JLabel();
- jPanel2 = new javax.swing.JPanel();
- jComboBox1 = new javax.swing.JComboBox<String>();
- jButton1 = new javax.swing.JButton();
- jButton1.setFont(new Font("Tahoma", Font.BOLD, 12));
- jLabel3 = new javax.swing.JLabel();
- jLabel4 = new javax.swing.JLabel();
- jScrollPane3 = new javax.swing.JScrollPane();
- jScrollPane2 = new javax.swing.JScrollPane();
- jMenuBar1 = new javax.swing.JMenuBar();
- jMenu1 = new javax.swing.JMenu();
- jMenuItem1 = new javax.swing.JMenuItem();
- jMenu2 = new javax.swing.JMenu();
- dialog = new JDialog();
- tabbedPane = new JTabbedPane(JTabbedPane.TOP);
-
- setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
- addWindowListener(new WindowAdapter() {
- @Override
- public void windowClosing(java.awt.event.WindowEvent windowEvent) {
- if (!survey_submitted && close_trials <= 2){
- JOptionPane.showMessageDialog(frame, "Before closing the application, please fill in and submit the questionnaire.");
- close_trials++;
- tabbedPane.setSelectedIndex(1);
- }else{
- System.exit(0);
- }
- }
- });
- setTitle("HIV Pharmacogenomics\n");
-
- jLabel2.setIcon(new javax.swing.ImageIcon("res/shcs_logo2_small.gif")); // NOI18N
-
- jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
- jLabel1.setText("HIV Pharmacogenomics | Project #693");
-
- javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
- jPanel1.setLayout(jPanel1Layout);
- jPanel1Layout.setHorizontalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap(71, Short.MAX_VALUE)
- .addComponent(jLabel1)
- .addGap(18, 18, 18)
- .addComponent(jLabel2))
- );
- jPanel1Layout.setVerticalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jLabel1)
- .addGap(11, 11, 11))
- .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)
- );
-
- jPanel2.setBackground(new java.awt.Color(255, 255, 255));
- jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
-
- jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<String>(new String[]{"Select Patient"}));
-
- jButton1.setText("Run Test");
- jButton1.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton1ActionPerformed(evt);
- }
- });
-
- JLabel lblNewLabel = new JLabel("");
- lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
- lblNewLabel.setIcon(new javax.swing.ImageIcon("res/gears.png"));
-
-
-
- javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
- jPanel2Layout.setHorizontalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addComponent(jComboBox1, 0, 248, Short.MAX_VALUE)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addGap(75)
- .addGroup(jPanel2Layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jButton1)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 75, GroupLayout.PREFERRED_SIZE))
- .addContainerGap(98, Short.MAX_VALUE))
- );
- jPanel2Layout.setVerticalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addComponent(jComboBox1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED, 223, Short.MAX_VALUE)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jButton1)
- .addGap(19))
- );
- jPanel2.setLayout(jPanel2Layout);
-
- jLabel3.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel3.setText("Select Patient");
-
- jLabel4.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel4.setText("Select Test");
-
- jScrollPane3.setBackground(new java.awt.Color(255, 255, 255));
-
- jMenu1.setText("File");
-
- jMenuItem1.setText("Exit");
- jMenu1.add(jMenuItem1);
-
- jMenuBar1.add(jMenu1);
-
- jMenu2.setText("Edit");
- jMenuBar1.add(jMenu2);
-
- setJMenuBar(jMenuBar1);
-
-
-
- javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
- layout.setHorizontalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(layout.createParallelGroup(Alignment.LEADING, false)
- .addComponent(jLabel3)
- .addComponent(jLabel4)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, 244, Short.MAX_VALUE)
- .addComponent(jScrollPane3))
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 970, Short.MAX_VALUE))
- .addContainerGap())
- );
- layout.setVerticalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel4))
- .addPreferredGap(ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addComponent(jScrollPane3, GroupLayout.PREFERRED_SIZE, 388, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jLabel3)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 785, Short.MAX_VALUE))
- .addContainerGap())
- );
-
-
- jScrollPane2.setAutoscrolls(true);
- jScrollPane3.setAutoscrolls(true);
- tabbedPane.addTab("Report", new ImageIcon("res/report_icon.gif"), jScrollPane2, null);
- tabbedPane.setBackgroundAt(0, new Color(255, 255, 255));
-
- panel = new JPanel();
- tabbedPane.addTab("Survey", new ImageIcon("res/survey_icon.png"), panel, null);
- tabbedPane.setBackgroundAt(1, new Color(255, 255, 255));
- tabbedPane.setEnabledAt(1, true);
-
- panel_1 = new JPanel();
- panel_1.setBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null));
- panel_1.setBackground(UIManager.getColor("Button.background"));
-
- JLabel label = new JLabel("");
- label.setIcon(new ImageIcon("res/shcs_logo2_medium.gif"));
-
- lblDearDoctor = new JLabel("Dear Doctor,");
- lblDearDoctor.setFont(new Font("Tahoma", Font.BOLD, 14));
-
- JScrollPane scrollPane = new JScrollPane();
- scrollPane.setBorder(null);
- GroupLayout gl_panel_1 = new GroupLayout(panel_1);
- gl_panel_1.setHorizontalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(25)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 666, Short.MAX_VALUE)
- .addComponent(lblDearDoctor))
- .addContainerGap())
- );
- gl_panel_1.setVerticalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(22)
- .addComponent(lblDearDoctor)
- .addGap(18)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 120, Short.MAX_VALUE)
- .addContainerGap())
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(36)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 96, GroupLayout.PREFERRED_SIZE)
- .addContainerGap(56, Short.MAX_VALUE))
- );
-
- JTextPane txtpnTodayYouAre = new JTextPane();
- txtpnTodayYouAre.setBorder(null);
- txtpnTodayYouAre.setText("Today you are receiving a pharmacogenetic report based on the genetic information of your patient. Because the human genome contains extremely private and sensitive information of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier, it must be managed with care.\r\nToday you are receiving a pharmacogenetic report based on the genetic information of your patient. Because the human genome contains extremely private and sensitive information of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier, it must be managed with care.\r\nToday you are receiving a pharmacogenetic report based on the genetic information of your patient. Because the human genome contains extremely private and sensitive information of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier, it must be managed with care.");
- txtpnTodayYouAre.setFont(new Font("Tahoma", Font.PLAIN, 13));
- txtpnTodayYouAre.setEditable(false);
- txtpnTodayYouAre.setBackground(SystemColor.menu);
- scrollPane.setViewportView(txtpnTodayYouAre);
- panel_1.setLayout(gl_panel_1);
- jScrollPane4 = new javax.swing.JScrollPane();
- getContentPane().setLayout(layout);
-
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
- ReplySurvey replySurvey = commHandlerAdapter.callServiceSurvey();
-
- map = replySurvey.getQuestions();
- ids = map.keySet();
- locations = replySurvey.getLocations();
-
- panel_2 = new JPanel();
- panel_2.setBackground(Color.WHITE);
- panel_2.setBorder(new BevelBorder(BevelBorder.LOWERED, null, null, null, null));
- jScrollPane4.setViewportView(panel_2);
- panel_2.setLayout(new BoxLayout(panel_2, BoxLayout.Y_AXIS));
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
-
-
- for(Integer id : ids){
- ButtonGroup group = new ButtonGroup();
- JRadioButton r1 = new JRadioButton("1"); r1.setActionCommand("1"); r1.setBackground(Color.WHITE);
- JRadioButton r2 = new JRadioButton("2"); r2.setActionCommand("2"); r2.setBackground(Color.WHITE);
- JRadioButton r3 = new JRadioButton("3"); r3.setActionCommand("3"); r3.setBackground(Color.WHITE);
- JRadioButton r4 = new JRadioButton("4"); r4.setActionCommand("4"); r4.setBackground(Color.WHITE);
- JRadioButton r5 = new JRadioButton("5"); r5.setActionCommand("5"); r5.setBackground(Color.WHITE);
- group.add(r1);
- group.add(r2);
- group.add(r3);
- group.add(r4);
- group.add(r5);
- JPanel radio_panel = new JPanel();
- radio_panel.setLayout((new BoxLayout(radio_panel, BoxLayout.X_AXIS)));
- radio_panel.setBackground(Color.WHITE);
- radio_panel.setAlignmentX(Component.CENTER_ALIGNMENT);
- radio_panel.add(r1);
- radio_panel.add(r2);
- radio_panel.add(r3);
- radio_panel.add(r4);
- radio_panel.add(r5);
- radio_panel.doLayout();
- radio_panel.setPreferredSize(radio_panel.getPreferredSize());
- JTextArea question = new JTextArea(id + ") " + map.get(id).getQuestion());
- question.setLineWrap(true);
- question.setWrapStyleWord(true);
- question.setAlignmentX(Component.CENTER_ALIGNMENT);
- question.setFont(new Font("Tahoma", Font.PLAIN, 13));
- JPanel row_panel = new JPanel();
- row_panel.setLayout(new FlowLayout());
- row_panel.add(radio_panel);
- row_panel.add(question);
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- panel_2.add(row_panel);
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- panel_2.add(radio_panel);
- panel_2.add(new JSeparator());
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- buttonGroupMap.put(id, group);
-
- }
-
-
-
- this.setSize(new Dimension(1200, 865));
-// pack();
- }// </editor-fold>//GEN-END:initComponents
-
-
- private void submitButtonActionPerformed(java.awt.event.ActionEvent evt){
-
- try{
- answers = new HashMap<String, String>();
- StringBuilder sb = new StringBuilder();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- sb.append(q).append(",");
- sb.append(bg.getSelection().getActionCommand()).append(";");
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- String answer = sb.toString();
- Integer id_loc = null;
- for(Integer i: locations.keySet()){
- if(locations.get(i).equals(comboBox.getSelectedItem().toString()))
- id_loc = i;
- }
-
- String id_p;
- if(jComboBox1.getSelectedItem().toString().equals("Select Patient"))
- id_p = "0";
- else
- id_p = jComboBox1.getSelectedItem().toString();
-
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
-
- String reply = commHandlerAdapter.callServiceSurveyAnswer(answer, id_loc.toString(), id_p);
-
- if(reply.equals("1")){
- survey_submitted = true;
-
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Congrats! Your aswers have been sent to the SHCS datacenter.",
- "Information Message",
- JOptionPane.INFORMATION_MESSAGE);
- }
- else{
- throw new IOException();
- }
-
-
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "The SHCS datacenter does not respond. Please save the survey and send it to jean.raisaro@epfl.ch.",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
- private void savePDFButtonActionPerformed(java.awt.event.ActionEvent evt){
- try {
-
- answers = new HashMap<String, String>();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- JFileChooser chooser = new JFileChooser();
- // Note: source for ExampleFileFilter can be found in FileChooserDemo,
- // under the demo/jfc directory in the JDK.
-
- int returnVal = chooser.showSaveDialog(this);
- System.out.println(returnVal);
- if(returnVal == JFileChooser.APPROVE_OPTION) {
- System.out.println("You chose to open this file: " +
- chooser.getSelectedFile().getPath());
- quest = new Questionnaire(chooser.getSelectedFile().getPath() + ".pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }else{
- quest = new Questionnaire("outputPDF/survey.pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }
-
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (DocumentException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (NullPointerException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
-
- private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
-
- JPanel contentPanel = new JPanel();
-
- dialog.setBounds(100, 100, 410, 80);
- dialog.getContentPane().setLayout(new BorderLayout());
- contentPanel.setLayout(new FlowLayout());
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- dialog.getContentPane().add(contentPanel, BorderLayout.CENTER);
- {
- JLabel label = new JLabel("Please wait...The overall computation can take few seconds");
- label.setHorizontalAlignment(SwingConstants.CENTER);
- label.setFont(new Font("Tahoma", Font.PLAIN, 12));
- contentPanel.add(label);
- }
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
- dialog.getContentPane().add(buttonPane, BorderLayout.SOUTH);
- }
- dialog.setLocationRelativeTo(this);
- dialog.setVisible(true);
-
- GUIWorker gw = new GUIWorker(this, props);
- Thread t = new Thread(gw);
- t.start();
-
- }
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JButton jButton1;
- private javax.swing.JComboBox<String> jComboBox1;
- private javax.swing.JLabel jLabel1;
- private javax.swing.JLabel jLabel2;
- private javax.swing.JLabel jLabel3;
- private javax.swing.JLabel jLabel4;
- private javax.swing.JMenu jMenu1;
- private javax.swing.JMenu jMenu2;
- private javax.swing.JMenuBar jMenuBar1;
- private javax.swing.JMenuItem jMenuItem1;
- private javax.swing.JPanel jPanel1;
- private javax.swing.JPanel jPanel2;
- private javax.swing.JScrollPane jScrollPane3;
- private javax.swing.JTabbedPane tabbedPane;
- private javax.swing.JScrollPane jScrollPane2;
- private javax.swing.JScrollPane jScrollPane4;
- private JPanel panel;
- private JPanel panel_1;
- private JPanel panel_2;
- private JLabel lblDearDoctor;
- private JLabel lblNewLabel_1;
- private JLabel lblNewLabel_2;
- private JLabel lblNewLabel_3;
- private JComboBox<String> comboBox;
- private Component rigidArea;
-
- // End of variables declaration//GEN-END:variables
-
-
- class GUIWorker implements Runnable{
-
- private JFrame mainFrame;
- private ClientProperties props;
- private MedUnit mu;
-
- public GUIWorker(GUI gui, ClientProperties props) {
- mainFrame = gui;
-
- this.props = props;
- this.mu = new MedUnit(props, 0);
- }
-
- @Override
- public void run() {
-
- try{
- int patientId = Integer.parseInt((String) jComboBox1.getSelectedItem());
-
- // convert selected tests to test identifiers
- ArrayList<TestName> selectedTests = new ArrayList<TestName>();
- for (String currentName : getSelectedTests()) {
- TestName currentTest = testsByName.get(currentName);
-
- if (currentTest == null) {
- throw new IllegalStateException("Trying to run unknown test: " + currentTest);
- }
-
- selectedTests.add(currentTest);
- }
-
- // run tests
- Diagnostic diagnostic = mu.runTests(patientId, selectedTests);
-
- // warn for tests with missing material
- warnFailedTests(diagnostic, selectedTests);
-
- // create report
- mu.createReport(patientId, selectedTests, diagnostic);
-
- dialog.setVisible(false);
-
- // specify file you wish to open (JPedal handles getting the byte data)
- String filepathReport = props.getPathPDF() + patientId + ".pdf";
-
- // open generated PDF
- // object must be either String in full filepath, or
- // File object which can be relative
- Object[] input = new Object[]{ new File(filepathReport) };
- viewer.executeCommand(Commands.OPENFILE, input);
-
- // display CAD result as bar plot
- if (diagnostic.hasCAD()) {
- System.out.println("CAD = " + diagnostic.getResultCAD());
- BarPlotFrame frame = new BarPlotFrame(diagnostic.getResultCAD(), patientId);
- frame.setVisible(true);
- frame.setAlwaysOnTop(true);
- }
-
-
- } catch (SQLException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Please select a patient.");
- }
-
- }
-
- private void warnFailedTests(Diagnostic diagnostic, ArrayList<TestName> selectedTests) {
- ArrayList<Integer> failedTests = diagnostic.getInvalidTests();
-
- if (!failedTests.isEmpty()) {
- String msg = "Could not complete tests: ";
- boolean first = true;
- for (TestName testName : selectedTests) {
- if (failedTests.contains(testName.getId())) {
- if (first) {
- first = false;
- } else {
- msg += ", ";
- }
- msg += testName.getName();
- }
- }
- displayError(msg);
- }
-
- }
-
- private void displayError(String msg) {
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- mainFrame,
- msg,
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
-
- private ArrayList<String> getSelectedTests() {
- ArrayList<String> tests = new ArrayList<String>();
-
- for (TreePath treePath : jTree.getSelectionPaths()) {
- tests.addAll(getChildrenTests(jTree.getModel(), treePath.getLastPathComponent()));
- }
-
- return tests;
- }
-
- private ArrayList<String> getChildrenTests(TreeModel model, Object node) {
- ArrayList<String> tests = new ArrayList<String>();
-
- if (model.isLeaf(node)) { // leaf
- DefaultMutableTreeNode leaf = (DefaultMutableTreeNode) node;
- tests.add(leaf.toString());
- }
- else { // iterate over children
- for (int i = 0; i < model.getChildCount(node); i++) {
- tests.addAll(getChildrenTests(model, model.getChild(node, i)));
- }
- }
-
- return tests;
- }
-
- }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/ef/c002105a7ba8001419a38fd8608ce0e6 b/.metadata/.plugins/org.eclipse.core.resources/.history/ef/c002105a7ba8001419a38fd8608ce0e6
deleted file mode 100644
index 3ecc3f4..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/ef/c002105a7ba8001419a38fd8608ce0e6
+++ /dev/null
@@ -1,157 +0,0 @@
-package io.serializer.xml;
-
-import io.serializer.ParserNamespace;
-
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.Map;
-import java.util.Set;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
-import org.jdom2.Document;
-import org.jdom2.Element;
-import org.jdom2.JDOMException;
-
-import utils.StringUtils;
-import framework.Question;
-import framework.reply.ReplySurvey;
-
-public class XMLParserSurvey extends XMLParser{
-
- private static final Logger LOGGER = Logger.getLogger(XMLParserSurvey.class.getName());
-
- public String replyToString(ReplySurvey reply) throws IOException {
- Element elemRoot = new Element(ParserNamespace.CNAME_AWR_SURVEY);
- Document doc = new Document(elemRoot);
-
- // add questions
- Element elemQuestionList = new Element(ParserNamespace.CNAME_QUESTION_LIST);
- elemQuestionList.setText(concatQuestionList(reply.getQuestions()));
- elemRoot.addContent(elemQuestionList);
-
- // add locations
- Element elemLocationList = new Element(ParserNamespace.CNAME_LOCATION_LIST);
- elemLocationList.setText(concatLocationList(reply.getLocations()));
- elemRoot.addContent(elemLocationList);
-
-
- return documentToString(doc);
- }
-
-
- public ReplySurvey stringToReply(String replyString) {
- ReplySurvey reply = null;
-
- try {
- Document doc = stringToDocument(replyString);
- Element elemRoot = doc.getRootElement();
-
- Element elemQuestionList = elemRoot.getChild(ParserNamespace.CNAME_QUESTION_LIST);
- Element elemLocationList = elemRoot.getChild(ParserNamespace.CNAME_LOCATION_LIST);
-
-
- Map<Integer, Question> questions = parseConcatQuestionList(elemQuestionList.getText());
- Map<Integer, String> locations = parseConcatLocationList(elemLocationList.getText());
-
-
- reply = new ReplySurvey(questions, locations);
- } catch (JDOMException e) {
- LOGGER.log(Level.SEVERE, null, e);
- }
-
- return reply;
- }
-
- private String concatLocationList(Map<Integer, String> map) {
- if(map == null || map.isEmpty()){
- return "";
- }
- StringBuilder sb = new StringBuilder();
- Set<Integer> ids = map.keySet();
-
- boolean first = true;
- for (Integer id : ids) {
- if (first) {
- first = false;
- } else {
- sb.append(SEP_EXT);
- }
-
- sb.append(id).append(SEP_INT_QUESTIONS).append(map.get(id));
-
- }
-
- return sb.toString();
- }
-
- private String concatQuestionList(Map<Integer, Question> map){
- if(map == null || map.isEmpty()){
- return "";
- }
- StringBuilder sb = new StringBuilder();
- Set<Integer> ids = map.keySet();
-
- boolean first = true;
- for (Integer id : ids) {
- if (first) {
- first = false;
- } else {
- sb.append(SEP_EXT);
- }
-
- sb.append(id).append(SEP_INT_QUESTIONS).append(map.get(id).getQuestion())
- .append(SEP_INT_QUESTIONS).append(map.get(id).getType());
-
- }
-
- return sb.toString();
-
- }
-
- private Map<Integer, String> parseConcatLocationList(String val) {
- if (val.equals("")) {
- return new HashMap<Integer, String>();
- }
- HashMap<Integer, String> map = new HashMap<Integer, String>();
-
- String[] strings = val.split(SEP_EXT, -1);
-
- for(int i = 0; i<strings.length; i++){
- if (strings[i].equals("")) map.put(null, null);
- else{
- String[] values = strings[i].split(SEP_INT_QUESTIONS);
- int id = Integer.parseInt(values[0]);
- String location = values[1];
- map.put(id, location);
- }
- }
-
- return map;
- }
-
- private Map<Integer, Question> parseConcatQuestionList(String val){
- if (val.equals("")) {
- return new HashMap<Integer, Question>();
- }
-
- Map<Integer, Question> map = new HashMap<Integer, Question>();
-
- String[] strings = val.split(SEP_EXT,-1);
- for(int i = 0; i<strings.length-1; i++){
- if (strings[i].equals("")) map.put(null, null);
- else{
- String[] values = strings[i].split(SEP_INT_QUESTIONS);
- int id = Integer.parseInt(values[0]);
- String question = values[1];
- int type = Integer.parseInt(values[2]);
-
- map.put(id, new Question(type, question));
- }
- }
- return map;
-
- }
-
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/f3/80709e6f0fa70014162f978bbd19228b b/.metadata/.plugins/org.eclipse.core.resources/.history/f3/80709e6f0fa70014162f978bbd19228b
deleted file mode 100644
index 7ebfe22..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/f3/80709e6f0fa70014162f978bbd19228b
+++ /dev/null
@@ -1,259 +0,0 @@
-package io;
-
-import java.awt.BorderLayout;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.util.Map;
-import java.util.Set;
-
-import com.itextpdf.text.BaseColor;
-import com.itextpdf.text.Document;
-import com.itextpdf.text.DocumentException;
-import com.itextpdf.text.Element;
-import com.itextpdf.text.ExceptionConverter;
-import com.itextpdf.text.Font;
-import com.itextpdf.text.Font.FontFamily;
-import com.itextpdf.text.FontFactory;
-import com.itextpdf.text.Image;
-import com.itextpdf.text.PageSize;
-import com.itextpdf.text.Paragraph;
-import com.itextpdf.text.Phrase;
-import com.itextpdf.text.Rectangle;
-import com.itextpdf.text.pdf.BaseFont;
-import com.itextpdf.text.pdf.ColumnText;
-import com.itextpdf.text.pdf.GrayColor;
-import com.itextpdf.text.pdf.PdfBorderDictionary;
-import com.itextpdf.text.pdf.PdfContentByte;
-import com.itextpdf.text.pdf.PdfFormField;
-import com.itextpdf.text.pdf.PdfPCell;
-import com.itextpdf.text.pdf.PdfPCellEvent;
-import com.itextpdf.text.pdf.PdfPTable;
-import com.itextpdf.text.pdf.PdfWriter;
-import com.itextpdf.text.pdf.RadioCheckField;
-import com.itextpdf.text.pdf.TextField;
-
-import framework.Question;
-
-public class Questionnaire implements PdfPCellEvent{
-
- /** The path output file. */
- String pathOutputFile;
-
- /** The document. */
- Document document;
-
- int tf;
-
- public Questionnaire(String path){
- pathOutputFile = path;
- document = new Document(PageSize.A4, 25, 25, 50, 50);
- }
- public Questionnaire(int tf){
- this.tf = tf;
- }
-
- /** The resulting PDF. */
- public static final String RESULT1 = "outputPDF/buttons.pdf";
- /** The resulting PDF. */
- public static final String RESULT2 = "outputPDF/buttons_filled.pdf";
- /** Path to a JavaScript resource. */
- public static final String RESOURCE = "res/buttons.js";
- /** Path to an image used as button icon. */
- public static final String IMAGE = "res/info.png";
- /** Possible values of a radio field / checkboxes */
- public static final String[] LANGUAGES = { "English", "German", "French", "Spanish", "Dutch" };
-
- /**
- * Creates a PDF document.
- * @param filename the path to the new PDF document
- * @throws DocumentException
- * @throws IOException
- */
- public void createPdf(Map<Integer, Question> map, Set<Integer> ids) throws IOException, DocumentException {
-
- @SuppressWarnings("unused")
- PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(pathOutputFile));
-
-
- document.open();
- Image logo = Image.getInstance("res/shcs_logo2.gif");
-
- logo.scalePercent(30f);
- float[] columnWidths1 = {0.2f, 0.8f};
- PdfPTable table_title = new PdfPTable(columnWidths1);
- PdfPCell c01 = new PdfPCell(logo, false);
- PdfPCell c02 = new PdfPCell(new Paragraph("HIV Pharmacogenomic report | Project #693 | Survey",
- FontFactory.getFont(FontFactory.HELVETICA, 20, Font.BOLD, BaseColor.BLACK)));
- c01.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c01.setBorder(Rectangle.NO_BORDER);
- c02.setBorder(Rectangle.NO_BORDER);
-
- table_title.addCell(c01);
- table_title.addCell(c02);
- table_title.setWidthPercentage(100);
- table_title.setSpacingBefore(0);
- table_title.setSpacingAfter(25);
- document.add(table_title);
-
-
- //----------------------------------------------------------------------------------
-
-
- PdfPTable table1 = new PdfPTable(1);
- table1.setWidthPercentage(100);
- PdfPCell c11 = new PdfPCell(new Phrase("Today you are receiving a pharmacogenetic report based on the genetic " +
- "information of your patient. Because the human genome contains extremely private and sensitive information" +
- " of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier," +
- " it must be managed with care. ",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.NORMAL, BaseColor.BLACK)));
- c11.setLeading(1.5f, 1.5f);
- c11.setPaddingBottom(8);
-
-
- table1.addCell(c11);
- table1.setSpacingAfter(10);
- document.add(table1);
-
-
- //----------------------------------------------------------------------------------
-
-// // step 4
-// // add the JavaScript
-// writer.addJavaScript(Utilities.readFileToString(RESOURCE));
-
-
-
-
- // add the radio buttons
- for(Integer id: ids){
- PdfPCell c2;
-
- PdfPTable table = new PdfPTable(1);
- table.setSpacingAfter(10);
- table.setWidthPercentage(100);
-// table.setWidths(new int[]{ 1, 2});
-
- PdfPCell c1 = new PdfPCell(new Phrase(id + ") " + map.get(id).getQuestion(),FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c1.setPaddingTop(5);
- c1.setPaddingBottom(5);
- c1.setHorizontalAlignment(Element.ALIGN_CENTER);
- c1.setBorder(Rectangle.NO_BORDER);
- table.addCell(c1);
-
- c2 = new PdfPCell(new Phrase(" 1" +
- " 2" +
- " 3" +
- " 4" +
- " 5",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c2.setHorizontalAlignment(Element.ALIGN_LEFT);
- c2.setCellEvent(new Questionnaire(id));
-// c2.setLeading(1.5f, 1.5f);
- c2.setBorder(Rectangle.TOP);
- c2.setPaddingTop(2);
- c2.setPaddingBottom(5);
- c2.setBackgroundColor(new BaseColor(242, 242, 242));
-
- table.addCell(c2);
-
-
-
- document.add(table);
- }
-
-//
- // step 5
- document.close();
-
- }
-
- @Override
- public void cellLayout(PdfPCell cell, Rectangle position,
- PdfContentByte[] canvases) {
- PdfWriter writer = canvases[0].getPdfWriter();
- PdfFormField radiogroup = PdfFormField.createRadioButton(writer, true);
- radiogroup.setFieldName(String.valueOf(tf));
-
- float llx = position.getLeft();
- float lly = position.getBottom();
- float urx = position.getRight();
- float ury = position.getTop();
- float cell_h = cell.getHeight();
- float cell_w = cell.getWidth();
-
- Rectangle rect;
-
- for(int i=1 ; i<=5; i++){
-
-
- rect = new Rectangle(llx + (3+i)*cell_w/12, lly+cell_h/2-6, llx + (3+i)*cell_w/12+12 ,lly+cell_h/2+6);
-
- RadioCheckField radio = new RadioCheckField(writer, rect, null, String.valueOf(i));
- radio.setBorderColor(GrayColor.GRAYBLACK);
- radio.setCheckType(RadioCheckField.TYPE_SQUARE);
-
-
- try {
- PdfFormField field = radio.getRadioField();
- radiogroup.addKid(field);
-
- writer.addAnnotation(radiogroup);
- }
-
- catch(IOException ioe) {
- throw new ExceptionConverter(ioe);
- }
- catch(DocumentException de) {
- throw new ExceptionConverter(de);
- }
- }
-
-
-
- }
-
-// /**
-// * Manipulates a PDF file src with the file dest as result
-// * @param src the original PDF
-// * @param dest the resulting PDF
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public void manipulatePdf(String src, String dest) throws IOException, DocumentException {
-// PdfReader reader = new PdfReader(src);
-// PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(dest));
-// AcroFields form = stamper.getAcroFields();
-// String[] radiostates = form.getAppearanceStates("language");
-// form.setField("language", radiostates[4]);
-// for (int i = 0; i < LANGUAGES.length; i++) {
-// String[] checkboxstates = form.getAppearanceStates("English");
-// form.setField(LANGUAGES[i], checkboxstates[i % 2 == 0 ? 1 : 0]);
-// }
-// stamper.close();
-// reader.close();
-//
-// PdfReader r = new PdfReader(dest);
-// AcroFields f = r.getAcroFields();
-// Set<String> fields = form.getFields().keySet();
-// for(String key: fields){
-// if(f.getFieldType(key)==AcroFields.FIELD_TYPE_RADIOBUTTON){
-// System.out.println(key);
-// System.out.println(f.getField(key));
-//
-// }
-// }
-// r.close();
-//
-// }
-//
-// /**
-// * Main method
-// * @param args no arguments needed
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public static void main(String[] args) throws IOException, DocumentException {
-// Questionnaire buttons = new Questionnaire();
-// buttons.createPdf(RESULT1);
-// buttons.manipulatePdf(RESULT1, RESULT2);
-// }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/f7/6020714d5aa8001419a38fd8608ce0e6 b/.metadata/.plugins/org.eclipse.core.resources/.history/f7/6020714d5aa8001419a38fd8608ce0e6
deleted file mode 100644
index b31633f..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/f7/6020714d5aa8001419a38fd8608ce0e6
+++ /dev/null
@@ -1,59 +0,0 @@
-package io;
-
-import io.serializer.url.URLParserDecrypt;
-import io.serializer.url.URLParserMaterial;
-import io.serializer.xml.XMLParserDecrypt;
-import io.serializer.xml.XMLParserMaterial;
-import io.serializer.xml.XMLParserSurvey;
-
-import java.util.logging.Logger;
-
-import framework.Type;
-import framework.reply.ReplyDecryption;
-import framework.reply.ReplyMaterial;
-import framework.reply.ReplySurvey;
-import framework.request.RequestDecryption;
-import framework.request.RequestMaterial;
-
-public class CommAdapter {
-
- @SuppressWarnings("unused")
- private static final Logger LOGGER = Logger.getLogger(CommAdapter.class.getName());
-
- public ClientConnection connectSPU = null;
-
- public CommAdapter(ClientConnection connectSPU) {
- this.connectSPU = connectSPU;
- }
-
- public ReplyDecryption callServiceDecrypt(RequestDecryption rqtDecrypt) {
- String requestString = URLParserDecrypt.requestToString(rqtDecrypt);
-// String replyString = "<awr_decrypt><patient>30351</patient><v_timestamp>1417188729390</v_timestamp><decrypt_val>,,,,,,,,,,,,,,,,2,AwHR3OO0/hkwgEHluLDFLtn4aaTBAwBEJjJpMegGa29ASgtyt1ha2OOyxvEvNgkIaY0xWXtTmqrqhSBKDG6J7Lps0g==,AwE/oifhonvUZDA4mqRK8K1WCkoepEuL9SidjdFXMNNZQXCMUvVN6pBUYVFgJeFX6mT2jruK8ic3y6yI14PfKl/Pvg==,AgBHs6HGF9AYNc5RlFTGv025WEaT91i/MPy+HXqhvHOrp0Ol9/aKyvv2BgAzeAdsdSEbVs2sahiyL/kbKjeUoI9tsA==,,,,,,,,,,,,,2,AgHIofEmf4aJMLBnKAY3/8WcLXUETF4y/68fzZR6hsS5btZTyI0E4ZTltDzV6hBzIT14cC4S/BMclo1aoLt5C9f+Cg==,AgDOXZAZAwO4KXslqU1wKctrVlH8CcGvpO8gGrPl3YjrY8SR3a6gStvZvjcUKXhvtDkRwSLAIkD3lFrKSXWestHSqQ==,AgG7Y5so9ZTRng2Xm3ziWx3+7zfaVLkIJ2v7g+qEUx5Vl2/udDOcg/was8W6qbKYeo/W0EGTlNXKTOdIatGVxyuoZA==,,,,,2,AgDAVy0/nE6X4iAengG9lCiYEBMtK6rAAiy7OwC7U/QSbokiEzH0RafH7rb+5L5R/ii9/3kZCcKmgOIoPzkmeloDfg==,AgHuvmLAeIFYm4ObEBO2v9xTK6tjYfdh+x4kwULBpDNlUiW4kNNaeoeziRA7nlRvcSfxPlR070N/3qzBMu3EKZ2csQ==,AgDk/CzCL4XUobuNaLsvrH5s0COMKYBqY/18YRR0d7mIsVVYrKVGF+IWnEluhbLt+BoRBdvL5UElgroyORJpiKz06w==,,,,,2,AgH0nW+2h+vcOZgPe3uR7jEHmEPi+g4izQ3OIU9An2vekwbG1liBFgTo33pEhyXhNWPhGCbSb73sJ7pt0JLL+hhWMw==,AgHG039OnpvmllkV6QBsmoMdqISrRuW2q5M3jfUp5TUbU6F/3S2FK1iSVKWgTsI291re6lz6KH5d8rWrnoCAozhIeg==,AwGjmnLUMd42F7a/tsSkeqcxoHMAXNKdvF4kOXoAxmc6ZSxaUhzkGkcgNOO8SFNiWqTKgtZCffJ7hfI0voAUX0TD1w==,,,,,2,AwHfYRjQFscHzOvVozackTaM3sybOjyd2aLc4B+WQ7KiWHoGKkzQScoDiy8hiA2cJpv8ngfitTqJRLlyegvuM+Ietw==,AwAP92OqrJFpFmdrMUUx6FeFhwVLYtAsfw3sem2RYu7ljPry+uJnvluuzTvVaFhs8BAAD8VBFs1vqrSHyQEq8Ocsmw==,AwDNXg/JA4QXA6wu30DUE7peOk1a10aHbd38iwjN1Q0DKy3BqS36+EQKg5hbwELxN2+/Yu4UA1IKWYJI0zNs6TJUtA==,,,,,2,AwBWFv3ivyQz4CGIilJ7CVtpQGOs1tnIW+0uxQyiWIO3HDjJtfxPyQ1AJWPsBQ9eYmaoKmPnN+euPCm7bP0LxBL/Tg==,AwHg7AZb5DV5OJrl0omtKx2OqckXcQEUT8pZ+Bmo9AyULgL5HOq2AVU04qhvbdy0W4OMYqxF3uBwqT6dNhFptsKEKQ==,AwG9dyMbI5EI8UCXuj5JkQRMimcT1u6zCBAfmRvANtT54yDtC8KS6VeOr7h/NP4qrf/mbl5tMaePbkkHrc6E39ntsA==,,,,,2,AwHkMyCOJm/RlYOybGhX3DchR/wSN2L3PuXKalMszgk3WOCiWSpYlP3SOPLWvJTRQaTxoN+oA5IkCTvlp02+Mduaxg==,AgHhR8HjavXjnsy+rHptc/JSI5pLFjM0RczUygxTX7vqV/yqwZ280Rq7YpXKp2GBfiZvFf0qIQoWe4vx5DBxwvHkdA==,AwEf2yisEpflVm8R2X08SCJM89apu7tUFzbpndsTIt5o9/xdoXKomMUk9REz+yrpkd+jFhlkJMQHHVMhgjiWYCEdpQ==,,,,,2,AwBaIc8ZWFm4O9QO0ofJeS9Q7tki7CAscBXRDnajEp7rmKNgrpRyyu1ezSpborwaloWR9kDKPLdYVV8SNk2V/1EudA==,AwGE8MPAnPKKXF15EyrAx1bRinwgoqYVO4Junz5IXQjGLyQpSr5NwO/hqu5E5egHte20jm380Wn2Qy6GgKNiRLy/gQ==,AwCAOjOQNdMN5uIB0POFzYS/fpxZ0Q5KfhlP5fijNmc/daO5frSrwhgcMH5lMKL4EGjBI1p6JMe3fuMqb5t1ImeTBg==,,,,,2,AgARSg2izcK6iZLFe4YkIS6yZgnt8cd9DFqpQ37gNmcccZwBI+mpsaijTUPo1GT+QUD8zC+6qr/GrzG9q+q7BPxpVw==,AwGM/jFdtoNViQXxgqeL27ZKobjsfyeuXrx8re3UfIe3c4XN16srSpcTfxEZNXDKo1Ff9fRvDVBOwdS6XU2nvo++ng==,AwAtK0eOqcVfzkdJIIkk7BORWwSDTAjtx4aEXwyZ0bla+2rIWDgXi3U5xlgnjeXJNtGsLokkvvX92BOBIw9SuCGhnw==,2,AgCWAAWTW+7jv2a2lc4pGFnumEgyH59wSDRXEYUASCVB249JBmeKFWRKNFTQlph5hTR5Rb+YHFP/qvzmwU11Hs2b0w==,AgANdxpkN+DS4De3aokNjt+e/Ou8GT+p8pUJA+6LHrDBXAddoCR8KpeXW7mESokq6BTEVQXxU3TdqavRkqaeFmpXkw==,AgDDDSEO3e8DCsm1n6dbj2PB9Z/tUzluDCt/utdSLrYFfdFY+Y5K7Vxo9F5/17CzaUbX172SGLt8TfCfuYBrtupgAg==,2,AgB1OG6bj+6kfRvLj8yjMQbl80FdZHZrRVRUfNVRwvjvvbRa5f9s9fNZ8J0a3s3hH+RyfZmGJ4Ufjh5mMiQkwiur6w==,AwBX4GFZNjUdtRdwtWgxyQz7h8Hk0ztaZeM8/e+8ll0o+RjYN+CNP8+lnXEw7wpuC4wcMX05mrjPvHOuy0hOFVNkhQ==,AgDf3el4vbMYIAFEH9WV151/uzl+gkfTQ79T8Iu4KxEVo6UJvCfqkjETlR6aXUJiqaCbSV5odMT50lURsmfgALf6AQ==,,,,,2,AgENmnviZkgQWXZ5QDgCCE2zq0IiXURTqK2UNPtEg3o64yjlrQQUd2rO/KgKolyCQcKYTVoMj7k2VeCSSVRr8KGC7w==,AwFv6ZJzhpV/Ms00QkrkNiCKVRFczn/yqnkiBFUHC1RQv3tqzzYSEUeXmDHmm0/kEBtnfgRWjHQm9zxS8Jzy7srDLQ==,AwB8aS5KA1dFLKCA1a/7Wsjhef+6kkNAB/GO9AOvRZbFW/dhl5fx04Alh+g78fwcVMX+eEIEJgSyH0jhv7kmiQh4ew==,,,,,2,AgG8fXrCra6UgP5G89TaE6PH5E0TANb/PJPbKwzdi78XEHRUmcTz6PIhYtclTmcdq5TH0IwQv+ra5ppf4qR4LtkGig==,AgEKzsmZrikmXzJywMpzkAdG9hAPlOiRY9oXKf4Sh50CL8btUItjfVJWg3ubNhotzJK+fnNlRrcMkWQEBD/aGKpf8A==,AwFi+2cGpuvVdR+pT1P9Ur8jAkzmjJK2XmUQbFpyMi5Jc9a5/fPnBWCxmTX8CH5wks0PicYC6rzZC3NEIt0EoM1Qfg==,,,,,2,AgHbTZgTAv8lLBsoX06Hkm9XPU+crlRqKl0xL8v18xeUUPY1YAvUYf2OAutmTtPRycXyzrDWSpn2h5xfk/dtq/BICg==,AwAjPydfoUhfSVFKWNI4Ox4a/psZGDIGzEEWh9HyVtAmjdNb5ctr/S6z+akiRfPlNCsVf6TdkzJ2Su6BO4sOX/SHKA==,AwBVmjn7AitCe4zQ/Fl0sYW2XqXkJxJBDviwl9jYhoq29v90n9escDsiA3Cy+1uW69MezdZBEszFdEWlX0EzbQZQ6A==,,,,,2,AwCG0RBHwHuame/1G7qtUjmwz0gkCP1tyZiEgm7aTKpsCjt7UsMirMmx/ZrNlvSzkGuVbRO97Szzr+9fo4baH1rEZA==,AwHyMK/q8FUUvoHTt7O7KJUxYz/ZHF6SntbmKfbygLVw4HWc/eFic4DXHKbEGWvrMO5b37GksqxfQHc2xlAuj8ZRIw==,AgB5x0BxqiMYxRvzlq0+/RkbOuNA7hYuMG+7D6wlMOxSskgqyfwA0MfW+AkXFqnqfqsoJRpDy15bABWhH6MIdJsPEA==,,,,,2,AwAS/nCH0pcrsllSy2duadUs1rMtL6vtz7VTUAVhn1/YYlZ068ysBi1Mdz9gJFewdyeGLnFhyg+W15rFB317nyeGHg==,AwBh6f5UVRMM5ekWqkrx6XiVOK/BL0TinjsSLna8BjkQPXU2DvGxiKPhA03/GtBdEpihEX4bVaHQhiOupTf7wh6bCQ==,AgGPDFH8Kv8hz2aUJ955nHu8NiAoTmDjqhlXuJ1T83h+O0sc2GieLhmXmpEjxjEAyxkqjb2nFxvDhi+YGs4MqI4S5A==,,,,,2,AwDqwFv6bqpM/6PTCJ/wgRALYVT+Rn54HIB2icP6ODNexaoqILBS9p1k1QENbQsBZ9LmJJwngRQXi07Q4P8br76Qfw==,AgG8yTiO8tFWZqQELBr+Zt1fKKA3bl08836nUEEpD55Sid0ZywCrWe+Va58xbMIWscISLPbBvXIdO48ZgoHsLgA7Jw==,AwCI1Ud0GJLnS86mSC58HNB91lH9kPpQbufGn+WJErGxAQubtSFBc3rnT0SNE3CbW+1MPjYBbdCgxpHjN/iQf96++w==,,,,;2,AgB9YhljgPngkwwYTBMUaMGR+rWMjvlK0tgrzkG8OT9NGNJfaaLP6AzfhWrT5oe9NRnabU25pQvDhAIGZCajDy8N2g==,AwE5Irce6LOSxfLgn4PZh1PeDPjAHb5wPTNfmQoWFY83dNQLYN44FupJaQRRUqBqyGNB0SL76GKzr8G9tKLAHOxRSQ==,BAG5iWHEhlWkvtyAlQy4bwKa1iNRzJq8WJTh2GE9oT4DeJRmO1pCHy9P+9YktDT+4RgV9s8AzOYih1LmHW14uP27HQGg1nTdHyab9/nFUe9BFxIi8xQTPG8et9++5I+gKIeWGCXBL31sBhpaMewvVhDjl2d3+7H2PUv9IY3lyIRFA6N16A==,2,AwAPIoQJqSbXFKXQAIG9J+/+/41NLX0rDINImk4eBgAnZ4V0R8YSqkHD3nd0IrEMyK7OpkCXkxTzOlwJlfEfti+vew==,AwAQ8KdMYsEOqM3eyGv/XbHnGf+TqCAG39Gz/juBcioOOJmLOFjl6oCITozJOyPusbTRXZ4eIwgQYkl12mt6saTpgQ==,BACkTO+3rRUF81w5yzZskFiIRyVxc6sdJfDFX6C+Jy5A+s/sfHskrFx2GYNklZaYztP0/B64a6v6HvFWVz8GuYj2wgHhiCL+QwLThFpaRxh8kUMSrt4VuXSIjtHwRXzhSdEbG2T6C/+CJZxIFh/ugEV9SS51l1HrLdnJDb2Kdu3QC3lRkQ==;2,AgC99VyiRLJ2kFf3oCkb+JPVV7B4tXVGI2NVT7fdKtB+gEjCcdkbS5YEXm/Sq6NAJEOKilMTFUDLYFDOe+7JHj/4pw==,AgAbT080sbKVHH9lim3tVCYS4cMz+rLownRKqtYZ7AfR8qy819R1GFywQ0kImgcdjEey5C4m0OPTwgtkO+C5uWtKfQ==,BADKYt9i0zTJeh3H8t6d8pZdncz3f28v1oWrssLZwAutkIcF3XKkPNmK3X75K3sImUSch//IIRIB1Yi5/MrZZeDrxQHhQZEg6AA8bDxgt0JdOEX2t4crzDu3gW5I8y+Ya0fZr1RmxvfMr2UxRhSsNsz949v/g+GPfsrEfDqIWTiNlJfwyg==,2,AgEPMjgCfgGRaZ/5I1hLqDoJ8nXYeTlnt9YeK4K8w+HnRAoAD09zkPcLMWajIjupe/CUFrHz00sAvs+vOPeKxGrLiQ==,AgDy7g2DcDwmIW7LtTTteHExD/cyP4BMWimEAM1RfAd/Y6P8XkmRGgglfdLJ7RGTR2YIMB1lxQ/LQUbmzyjTiiuWow==,BAHJ7oHVr/0wweyGlg4f9Dqmx8h0m35jMdrEFwVY8l/ENKpOTxG/oh9vAvo1uw39wUOn4CWGBmAFE2lsvWFW18gt+gHPFt5/9ihUFN9mtxFLT1Q3W4Uf8IdekHPMbNlxEp1wId7EH3XsAox3Eo8b3XnYpwfsAXoDwQa2wyiO5h104Ptvsg==;2,AwClCMGcHdd7rD8sYDC/GXyAtLmZ/JI4v+aOK4PXzjWJi/zvcsXT5dJUOm9bW6AAtzgOKPd0WwU3hSytJ+ATy146Uw==,AgADzN6ysOIC9GAuMF9suYNfkR027H/9OcpeVJb4HRHfZ/EOmQWSdJmJFw3F/NLUrreNnFCvuF1+1bbmHa3tvznjeA==,BADwaRJF9z3DW7HE3qhGu6Yd9d2WBfWy8opd7Mhkg7TpAQsn9oA3UcpCarn4DMSnVGG94Y3Pxsj5vlm5G7GMKiGoxAERnETH6pVgBxhtrnBU6l4vHl+X4rd8I/zheZiG0EFKJza41rmwKHTY4+42PJ8/3Y2rCanbY1RSAJEgiZR89k6nGg==,2,AgCK80PhKSC23aVKQ8uYm+79GWZiwpbV5lc8Fzcpwu8hdKGAMH4f62Y//cmrQmCIltm03PTVPMn6rMwkfoz+9M2LDQ==,AgH5aXThIKUjENFTGCGwcTRql7xIe8vR9h78KikTYkD8itQ+YBDrnx5OaNyWRjpIJHAZ2B61W2aVjZ5Rmo0d1B1Pcw==,BAAEZsEKw59QSRxN1QmWcx4X2LaK4+zBuawh+2CIRPljWyxK6XhIM6EEalr44Klce4OTK2QbxT5n3Kjnh5jNuwCOawAH/wiNrx09+HY8SZrRjCjv1+Lnicybrqg/IFDNoAGT5aguaGRIMmGOLe0QFJr0T0iW3RnYGlmSd/r6ex8+MpOgLw==</decrypt_val></awr_decrypt>";
- String replyString = connectSPU.sendReceive(Type.DECRYPT, requestString);
- System.out.println("REQUEST URL: " + requestString);
- System.out.println("REPLY: " + replyString);
- ReplyDecryption reply = (new XMLParserDecrypt()).stringToReply(replyString);
- return reply;
- }
-
- public ReplyMaterial callServiceMaterial(RequestMaterial rqtMaterial) {
- String requestString = URLParserMaterial.requestToString(rqtMaterial);
- String replyString = connectSPU.sendReceive(Type.MATERIAL, requestString);
-
- System.out.println("Material request:");
- System.out.println(replyString);
-
- ReplyMaterial reply = (new XMLParserMaterial()).stringToReply(replyString);
- return reply;
- }
-
- public ReplySurvey callServiceSurvey(){
-
-// String replyString = connectSPU.sendReceive(Type.SURVEY,"");
- //4::What's your name?::1;5::Where are you from?::2;6::How old are you?::3;7::What's your name?::1;8::Where are you from?::2;9::How old are you?::3;10::What's your name?::1;11::Where are you from?::2;12::How old are you?::3;13::What's your name?::1;14::Where are you from?::2;15::How old are you?::3
- String replyString ="<awr_survey><v_questions>1::What's your name?::1;2::Where are you from?::2;3::How old are you?::3;4::What's your name?::1;5::Where are you from?::2;6::How old are you?::3;7::What's your name?::1;8::Where are you from?::2;9::How old are you?::3;10::What's your name?::1;11::Where are you from?::2;12::How old are you?::3;13::What's your name?::1;14::Where are you from?::2;15::How old are you?::3</v_questions><v_locations>Lausanne;Basel;Zurich</v_locations></awr_survey>";
- ReplySurvey reply = (new XMLParserSurvey()).stringToReply(replyString);
- return reply;
- }
-
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/f8/4062e0334dac001410e2e30aa85db9d1 b/.metadata/.plugins/org.eclipse.core.resources/.history/f8/4062e0334dac001410e2e30aa85db9d1
deleted file mode 100644
index 1c9a898..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/f8/4062e0334dac001410e2e30aa85db9d1
+++ /dev/null
@@ -1,892 +0,0 @@
-package ui;
-
-import io.ClientConnection;
-import io.CommAdapter;
-import io.Questionnaire;
-
-import java.awt.BorderLayout;
-import java.awt.Color;
-import java.awt.Component;
-import java.awt.Dimension;
-import java.awt.FlowLayout;
-import java.awt.Font;
-import java.awt.SystemColor;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.awt.event.WindowAdapter;
-import java.io.File;
-import java.io.IOException;
-import java.sql.SQLException;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.LinkedList;
-import java.util.Map;
-import java.util.Set;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
-import javax.swing.Box;
-import javax.swing.BoxLayout;
-import javax.swing.ButtonGroup;
-import javax.swing.DefaultComboBoxModel;
-import javax.swing.GroupLayout;
-import javax.swing.GroupLayout.Alignment;
-import javax.swing.ImageIcon;
-import javax.swing.JButton;
-import javax.swing.JComboBox;
-import javax.swing.JDialog;
-import javax.swing.JFileChooser;
-import javax.swing.JFrame;
-import javax.swing.JLabel;
-import javax.swing.JOptionPane;
-import javax.swing.JPanel;
-import javax.swing.JRadioButton;
-import javax.swing.JScrollPane;
-import javax.swing.JSeparator;
-import javax.swing.JTabbedPane;
-import javax.swing.JTextArea;
-import javax.swing.JTextPane;
-import javax.swing.JTree;
-import javax.swing.LayoutStyle.ComponentPlacement;
-import javax.swing.SwingConstants;
-import javax.swing.UIManager;
-import javax.swing.border.BevelBorder;
-import javax.swing.border.EmptyBorder;
-import javax.swing.border.EtchedBorder;
-import javax.swing.tree.DefaultMutableTreeNode;
-import javax.swing.tree.TreeModel;
-import javax.swing.tree.TreePath;
-
-import org.jpedal.examples.viewer.Commands;
-import org.jpedal.examples.viewer.Viewer;
-
-import utils.ClientProperties;
-
-import com.itextpdf.text.DocumentException;
-
-import database.DBconnectorClient;
-import framework.Diagnostic;
-import framework.MedUnit;
-import framework.Question;
-import framework.reply.ReplySurvey;
-import framework.test.TestName;
-
-/**
- *
- * @author youssef, raisaro
- */
-public class GUI extends javax.swing.JFrame {
-
- private static final Logger LOGGER = Logger.getLogger(GUI.class.getName());
-
- private static final long serialVersionUID = -4582280515597700650L;
-
- // configuration
- private ClientProperties props;
-
- private JTree jTree;
- private DBconnectorClient connectorClientDB;
- private LinkedList<Integer> patients;
-
- /** List of all relevant tests */
- private HashMap<String, TestName> testsByName;
- private Viewer viewer;
- private JDialog dialog;
- private JFrame frame;
- private boolean survey_submitted;
- private int close_trials;
- private Map<Integer, ButtonGroup> buttonGroupMap;
- private Questionnaire quest;
- private Map<Integer, Question> map;
- private Set<Integer> ids;
- private Map<String,String> answers;
- private Map<Integer, String> locations;
-
-
- /**
- * Creates new form GUI
- */
- public GUI(ClientProperties props){
-
- frame = this;
- this.props = props;
- this.connectorClientDB = new DBconnectorClient(props.getDbMsAccess());
- survey_submitted = false;
- close_trials = 0;
-
-
- try {
- initComponents();
-
- viewer = new Viewer(jScrollPane2, null);
- viewer.setupViewer();
-
- // create questionnare
-
-
- System.out.println("#of questions: " + ids.size());
-
-// viewer_q = new Viewer(jScrollPane4, null);
-// viewer_q.setupViewer();
-//
-// // specify file you wish to open (JPedal handles getting the byte data)
-// String filepathReport = "outputPDF/buttons_filled.pdf";
-//
-// // open generated PDF
-// // object must be either String in full filepath, or
-// // File object which can be relative
-// Object[] input = new Object[]{ new File(filepathReport) };
-// viewer_q.executeCommand(Commands.OPENFILE, input);
-
- JButton btnSubmitQuestionnaire = new JButton("Submit Questionnaire");
- btnSubmitQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- btnSubmitQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- submitButtonActionPerformed(arg0);
- }
- });
- JButton btnResetQuestionnaire = new JButton("Save as PDF");
- btnResetQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- savePDFButtonActionPerformed(arg0);
- }
- });
- btnResetQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- JPanel panel_button = new JPanel();
- panel_button.setLayout(new BoxLayout(panel_button, BoxLayout.X_AXIS));
-
- lblNewLabel_3 = new JLabel("");
- lblNewLabel_3.setIcon(new ImageIcon("res/location_icon.png"));
- panel_button.add(lblNewLabel_3);
-
-
-
- comboBox = new JComboBox<String>();
- comboBox.setFont(new Font("Tahoma", Font.BOLD, 12));
- comboBox.setModel(new DefaultComboBoxModel<String>(new String[] {"Select Location"}));
- for(Integer id_loc : locations.keySet()){
- comboBox.addItem(locations.get(id_loc));
- }
-
-
- panel_button.add(comboBox);
-
- rigidArea = Box.createRigidArea(new Dimension(10, 0));
- panel_button.add(rigidArea);
-
- lblNewLabel_1 = new JLabel("");
- lblNewLabel_1.setIcon(new ImageIcon("res/submit.png"));
- panel_button.add(lblNewLabel_1);
- panel_button.add(btnSubmitQuestionnaire);
-
- panel_button.add(Box.createRigidArea(new Dimension(10,0)));
-
- lblNewLabel_2 = new JLabel("");
- lblNewLabel_2.setIcon(new ImageIcon("res/pdf.png"));
- panel_button.add(lblNewLabel_2);
- panel_button.add(btnResetQuestionnaire);
- panel_button.setPreferredSize(new Dimension(211, 35));
- panel_button.validate();
-
- JPanel panel_3 = new JPanel();
- GroupLayout gl_panel = new GroupLayout(panel);
- gl_panel.setHorizontalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(41)
- .addGroup(gl_panel.createParallelGroup(Alignment.TRAILING)
- .addComponent(jScrollPane4, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE)
- .addComponent(panel_1, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE))
- .addGap(32))
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(63)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addGap(103)
- .addComponent(panel_button, GroupLayout.DEFAULT_SIZE, 488, Short.MAX_VALUE)
- .addGap(241))
- );
- gl_panel.setVerticalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(22)
- .addComponent(panel_1, GroupLayout.DEFAULT_SIZE, 192, Short.MAX_VALUE)
- .addGap(18)
- .addComponent(jScrollPane4, GroupLayout.DEFAULT_SIZE, 437, Short.MAX_VALUE)
- .addGap(26)
- .addGroup(gl_panel.createParallelGroup(Alignment.LEADING)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(panel_button, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE)))
- );
- panel_3.setLayout(new BoxLayout(panel_3, BoxLayout.X_AXIS));
-
-
- panel.setLayout(gl_panel);
-
-
-
-
-
-
- /////////////////////////////////////////////////////////
- // display the tests available
-
- // get the tests
- HashMap<String, ArrayList<TestName>> testsRelevantByGroup = connectorClientDB.getRelevantTestsByGroup();
- ArrayList<String> groups = new ArrayList<String>(testsRelevantByGroup.keySet());
-
- // flatten hashmap into linkedlist
-// tests = new LinkedList<>();
- testsByName = new HashMap<String, TestName>();
- for (String group : groups) {
-// tests.addAll(testsRelevantByGroup.get(group));
- for (TestName test : testsRelevantByGroup.get(group)) {
- testsByName.put(test.getName(), test);
- }
- }
-
- // define tree structure of the tests
- DefaultMutableTreeNode root = new DefaultMutableTreeNode("All");
-
- for (String group : groups) {
- DefaultMutableTreeNode child = new DefaultMutableTreeNode(group);
- root.add(child);
-
- for (TestName test : testsRelevantByGroup.get(group)) {
- DefaultMutableTreeNode grandChild = new DefaultMutableTreeNode(test.getName());
- child.add(grandChild);
- }
- }
-
- // define swing object
- jTree = new JTree(root);
-
- for(int i=0;i<jTree.getRowCount();i++){
- jTree.expandRow(i);
- }
-
- jScrollPane3.setViewportView(jTree);
-// jTree.addTreeSelectionListener(new TreeSelectionListener() {
-//
-// @Override
-// public void valueChanged(TreeSelectionEvent e) {
-// tp = jTree.getSelectionPaths();
-// }
-// });
- jScrollPane3.setViewportView(jTree);
-
- /////////////////////////////////////////////////////////
- // display the patients registered
-
- patients = connectorClientDB.getPatients();
- for (Integer patientId : patients) {
- jComboBox1.addItem(patientId.toString());
- }
-
- } catch (SQLException ex) {
- Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex);
- ex.printStackTrace();
-// } catch (IOException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
-// } catch (DocumentException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
- }
-
- }
-
- /**
- * 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() {
-
- jPanel1 = new javax.swing.JPanel();
- jLabel2 = new javax.swing.JLabel();
- jLabel1 = new javax.swing.JLabel();
- jPanel2 = new javax.swing.JPanel();
- jComboBox1 = new javax.swing.JComboBox<String>();
- jButton1 = new javax.swing.JButton();
- jButton1.setFont(new Font("Tahoma", Font.BOLD, 12));
- jLabel3 = new javax.swing.JLabel();
- jLabel4 = new javax.swing.JLabel();
- jScrollPane3 = new javax.swing.JScrollPane();
- jScrollPane2 = new javax.swing.JScrollPane();
- jMenuBar1 = new javax.swing.JMenuBar();
- jMenu1 = new javax.swing.JMenu();
- jMenuItem1 = new javax.swing.JMenuItem();
- jMenu2 = new javax.swing.JMenu();
- dialog = new JDialog();
- tabbedPane = new JTabbedPane(JTabbedPane.TOP);
-
- setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
- addWindowListener(new WindowAdapter() {
- @Override
- public void windowClosing(java.awt.event.WindowEvent windowEvent) {
- if (!survey_submitted && close_trials <= 2){
- JOptionPane.showMessageDialog(frame, "Before closing the application, please fill in and submit the questionnaire.");
- close_trials++;
- tabbedPane.setSelectedIndex(1);
- }else{
- System.exit(0);
- }
- }
- });
- setTitle("HIV Pharmacogenomics\n");
-
- jLabel2.setIcon(new javax.swing.ImageIcon("res/shcs_logo2_small.gif")); // NOI18N
-
- jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
- jLabel1.setText("HIV Pharmacogenomics | Project #693");
-
- javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
- jPanel1.setLayout(jPanel1Layout);
- jPanel1Layout.setHorizontalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap(71, Short.MAX_VALUE)
- .addComponent(jLabel1)
- .addGap(18, 18, 18)
- .addComponent(jLabel2))
- );
- jPanel1Layout.setVerticalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jLabel1)
- .addGap(11, 11, 11))
- .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)
- );
-
- jPanel2.setBackground(new java.awt.Color(255, 255, 255));
- jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
-
- jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<String>(new String[]{"Select Patient"}));
-
- jButton1.setText("Run Test");
- jButton1.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton1ActionPerformed(evt);
- }
- });
-
- JLabel lblNewLabel = new JLabel("");
- lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
- lblNewLabel.setIcon(new javax.swing.ImageIcon("res/gears.png"));
-
-
-
- javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
- jPanel2Layout.setHorizontalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addComponent(jComboBox1, 0, 248, Short.MAX_VALUE)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addGap(75)
- .addGroup(jPanel2Layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jButton1)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 75, GroupLayout.PREFERRED_SIZE))
- .addContainerGap(98, Short.MAX_VALUE))
- );
- jPanel2Layout.setVerticalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addComponent(jComboBox1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED, 223, Short.MAX_VALUE)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jButton1)
- .addGap(19))
- );
- jPanel2.setLayout(jPanel2Layout);
-
- jLabel3.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel3.setText("Select Patient");
-
- jLabel4.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel4.setText("Select Test");
-
- jScrollPane3.setBackground(new java.awt.Color(255, 255, 255));
-
- jMenu1.setText("File");
-
- jMenuItem1.setText("Exit");
- jMenu1.add(jMenuItem1);
-
- jMenuBar1.add(jMenu1);
-
- jMenu2.setText("Edit");
- jMenuBar1.add(jMenu2);
-
- setJMenuBar(jMenuBar1);
-
-
-
- javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
- layout.setHorizontalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(layout.createParallelGroup(Alignment.LEADING, false)
- .addComponent(jLabel3)
- .addComponent(jLabel4)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, 244, Short.MAX_VALUE)
- .addComponent(jScrollPane3))
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 970, Short.MAX_VALUE))
- .addContainerGap())
- );
- layout.setVerticalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel4))
- .addPreferredGap(ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addComponent(jScrollPane3, GroupLayout.PREFERRED_SIZE, 388, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jLabel3)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 785, Short.MAX_VALUE))
- .addContainerGap())
- );
-
-
- jScrollPane2.setAutoscrolls(true);
- jScrollPane3.setAutoscrolls(true);
- tabbedPane.addTab("Report", new ImageIcon("res/report_icon.gif"), jScrollPane2, null);
- tabbedPane.setBackgroundAt(0, new Color(255, 255, 255));
-
- panel = new JPanel();
- tabbedPane.addTab("Survey", new ImageIcon("res/survey_icon.png"), panel, null);
- tabbedPane.setBackgroundAt(1, new Color(255, 255, 255));
- tabbedPane.setEnabledAt(1, true);
-
- panel_1 = new JPanel();
- panel_1.setBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null));
- panel_1.setBackground(UIManager.getColor("Button.background"));
-
- JLabel label = new JLabel("");
- label.setIcon(new ImageIcon("res/shcs_logo2_medium.gif"));
-
- lblDearDoctor = new JLabel("Dear Doctor,");
- lblDearDoctor.setFont(new Font("Tahoma", Font.BOLD, 14));
-
- JScrollPane scrollPane = new JScrollPane();
- scrollPane.setBorder(null);
- GroupLayout gl_panel_1 = new GroupLayout(panel_1);
- gl_panel_1.setHorizontalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(25)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 666, Short.MAX_VALUE)
- .addComponent(lblDearDoctor))
- .addContainerGap())
- );
- gl_panel_1.setVerticalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(22)
- .addComponent(lblDearDoctor)
- .addGap(18)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 120, Short.MAX_VALUE)
- .addContainerGap())
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(36)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 96, GroupLayout.PREFERRED_SIZE)
- .addContainerGap(56, Short.MAX_VALUE))
- );
-
- JTextPane txtpnTodayYouAre = new JTextPane();
- txtpnTodayYouAre.setBorder(null);
- txtpnTodayYouAre.setText("Today you are receiving a pharmacogenetic report based on the genetic information of your patient. Because the human genome contains extremely private and sensitive information of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier, it must be managed with care.\r\nToday you are receiving a pharmacogenetic report based on the genetic information of your patient. Because the human genome contains extremely private and sensitive information of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier, it must be managed with care.\r\nToday you are receiving a pharmacogenetic report based on the genetic information of your patient. Because the human genome contains extremely private and sensitive information of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier, it must be managed with care.");
- txtpnTodayYouAre.setFont(new Font("Tahoma", Font.PLAIN, 13));
- txtpnTodayYouAre.setEditable(false);
- txtpnTodayYouAre.setBackground(SystemColor.menu);
- scrollPane.setViewportView(txtpnTodayYouAre);
- panel_1.setLayout(gl_panel_1);
- jScrollPane4 = new javax.swing.JScrollPane();
- getContentPane().setLayout(layout);
-
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
- ReplySurvey replySurvey = commHandlerAdapter.callServiceSurvey();
-
- map = replySurvey.getQuestions();
- ids = map.keySet();
- locations = replySurvey.getLocations();
-
- panel_2 = new JPanel();
- panel_2.setBackground(Color.WHITE);
- panel_2.setBorder(new BevelBorder(BevelBorder.LOWERED, null, null, null, null));
- jScrollPane4.setViewportView(panel_2);
- panel_2.setLayout(new BoxLayout(panel_2, BoxLayout.Y_AXIS));
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
-
-
- for(Integer id : ids){
- ButtonGroup group = new ButtonGroup();
- JRadioButton r1 = new JRadioButton("1"); r1.setActionCommand("1"); r1.setBackground(Color.WHITE);
- JRadioButton r2 = new JRadioButton("2"); r2.setActionCommand("2"); r2.setBackground(Color.WHITE);
- JRadioButton r3 = new JRadioButton("3"); r3.setActionCommand("3"); r3.setBackground(Color.WHITE);
- JRadioButton r4 = new JRadioButton("4"); r4.setActionCommand("4"); r4.setBackground(Color.WHITE);
- JRadioButton r5 = new JRadioButton("5"); r5.setActionCommand("5"); r5.setBackground(Color.WHITE);
- group.add(r1);
- group.add(r2);
- group.add(r3);
- group.add(r4);
- group.add(r5);
- JPanel radio_panel = new JPanel();
- radio_panel.setLayout((new BoxLayout(radio_panel, BoxLayout.X_AXIS)));
- radio_panel.setBackground(Color.WHITE);
- radio_panel.setAlignmentX(Component.CENTER_ALIGNMENT);
- radio_panel.add(r1);
- radio_panel.add(r2);
- radio_panel.add(r3);
- radio_panel.add(r4);
- radio_panel.add(r5);
- radio_panel.doLayout();
- radio_panel.setPreferredSize(radio_panel.getPreferredSize());
- JTextArea question = new JTextArea(id + ") " + map.get(id).getQuestion());
- question.setLineWrap(true);
- question.setWrapStyleWord(true);
- question.setAlignmentX(Component.CENTER_ALIGNMENT);
- question.setFont(new Font("Tahoma", Font.PLAIN, 13));
- JPanel row_panel = new JPanel();
- row_panel.setLayout(new BoxLayout(row_panel, BoxLayout.X_AXIS));
- row_panel.add(question);
- row_panel.add(Box.createRigidArea(new Dimension(10,0)));
- row_panel.add(radio_panel);
-
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- panel_2.add(row_panel);
-// panel_2.add(Box.createRigidArea(new Dimension(0,5)));
-// panel_2.add(radio_panel);
- panel_2.add(new JSeparator());
-// panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- buttonGroupMap.put(id, group);
-
- }
-
-
-
- this.setSize(new Dimension(1200, 865));
-// pack();
- }// </editor-fold>//GEN-END:initComponents
-
-
- private void submitButtonActionPerformed(java.awt.event.ActionEvent evt){
-
- try{
- answers = new HashMap<String, String>();
- StringBuilder sb = new StringBuilder();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- sb.append(q).append(",");
- sb.append(bg.getSelection().getActionCommand()).append(";");
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- String answer = sb.toString();
- Integer id_loc = null;
- for(Integer i: locations.keySet()){
- if(locations.get(i).equals(comboBox.getSelectedItem().toString()))
- id_loc = i;
- }
-
- String id_p;
- if(jComboBox1.getSelectedItem().toString().equals("Select Patient"))
- id_p = "0";
- else
- id_p = jComboBox1.getSelectedItem().toString();
-
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
-
- String reply = commHandlerAdapter.callServiceSurveyAnswer(answer, id_loc.toString(), id_p);
-
- if(reply.equals("1")){
- survey_submitted = true;
-
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Congrats! Your aswers have been sent to the SHCS datacenter.",
- "Information Message",
- JOptionPane.INFORMATION_MESSAGE);
- }
- else{
- throw new IOException();
- }
-
-
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "The SHCS datacenter does not respond. Please save the survey and send it to jean.raisaro@epfl.ch.",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
- private void savePDFButtonActionPerformed(java.awt.event.ActionEvent evt){
- try {
-
- answers = new HashMap<String, String>();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- JFileChooser chooser = new JFileChooser();
- // Note: source for ExampleFileFilter can be found in FileChooserDemo,
- // under the demo/jfc directory in the JDK.
-
- int returnVal = chooser.showSaveDialog(this);
- System.out.println(returnVal);
- if(returnVal == JFileChooser.APPROVE_OPTION) {
- System.out.println("You chose to open this file: " +
- chooser.getSelectedFile().getPath());
- quest = new Questionnaire(chooser.getSelectedFile().getPath() + ".pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }else{
- quest = new Questionnaire("outputPDF/survey.pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }
-
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (DocumentException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (NullPointerException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
-
- private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
-
- JPanel contentPanel = new JPanel();
-
- dialog.setBounds(100, 100, 410, 80);
- dialog.getContentPane().setLayout(new BorderLayout());
- contentPanel.setLayout(new FlowLayout());
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- dialog.getContentPane().add(contentPanel, BorderLayout.CENTER);
- {
- JLabel label = new JLabel("Please wait...The overall computation can take few seconds");
- label.setHorizontalAlignment(SwingConstants.CENTER);
- label.setFont(new Font("Tahoma", Font.PLAIN, 12));
- contentPanel.add(label);
- }
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
- dialog.getContentPane().add(buttonPane, BorderLayout.SOUTH);
- }
- dialog.setLocationRelativeTo(this);
- dialog.setVisible(true);
-
- GUIWorker gw = new GUIWorker(this, props);
- Thread t = new Thread(gw);
- t.start();
-
- }
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JButton jButton1;
- private javax.swing.JComboBox<String> jComboBox1;
- private javax.swing.JLabel jLabel1;
- private javax.swing.JLabel jLabel2;
- private javax.swing.JLabel jLabel3;
- private javax.swing.JLabel jLabel4;
- private javax.swing.JMenu jMenu1;
- private javax.swing.JMenu jMenu2;
- private javax.swing.JMenuBar jMenuBar1;
- private javax.swing.JMenuItem jMenuItem1;
- private javax.swing.JPanel jPanel1;
- private javax.swing.JPanel jPanel2;
- private javax.swing.JScrollPane jScrollPane3;
- private javax.swing.JTabbedPane tabbedPane;
- private javax.swing.JScrollPane jScrollPane2;
- private javax.swing.JScrollPane jScrollPane4;
- private JPanel panel;
- private JPanel panel_1;
- private JPanel panel_2;
- private JLabel lblDearDoctor;
- private JLabel lblNewLabel_1;
- private JLabel lblNewLabel_2;
- private JLabel lblNewLabel_3;
- private JComboBox<String> comboBox;
- private Component rigidArea;
-
- // End of variables declaration//GEN-END:variables
-
-
- class GUIWorker implements Runnable{
-
- private JFrame mainFrame;
- private ClientProperties props;
- private MedUnit mu;
-
- public GUIWorker(GUI gui, ClientProperties props) {
- mainFrame = gui;
-
- this.props = props;
- this.mu = new MedUnit(props, 0);
- }
-
- @Override
- public void run() {
-
- try{
- int patientId = Integer.parseInt((String) jComboBox1.getSelectedItem());
-
- // convert selected tests to test identifiers
- ArrayList<TestName> selectedTests = new ArrayList<TestName>();
- for (String currentName : getSelectedTests()) {
- TestName currentTest = testsByName.get(currentName);
-
- if (currentTest == null) {
- throw new IllegalStateException("Trying to run unknown test: " + currentTest);
- }
-
- selectedTests.add(currentTest);
- }
-
- // run tests
- Diagnostic diagnostic = mu.runTests(patientId, selectedTests);
-
- // warn for tests with missing material
- warnFailedTests(diagnostic, selectedTests);
-
- // create report
- mu.createReport(patientId, selectedTests, diagnostic);
-
- dialog.setVisible(false);
-
- // specify file you wish to open (JPedal handles getting the byte data)
- String filepathReport = props.getPathPDF() + patientId + ".pdf";
-
- // open generated PDF
- // object must be either String in full filepath, or
- // File object which can be relative
- Object[] input = new Object[]{ new File(filepathReport) };
- viewer.executeCommand(Commands.OPENFILE, input);
-
- // display CAD result as bar plot
- if (diagnostic.hasCAD()) {
- System.out.println("CAD = " + diagnostic.getResultCAD());
- BarPlotFrame frame = new BarPlotFrame(diagnostic.getResultCAD(), patientId);
- frame.setVisible(true);
- frame.setAlwaysOnTop(true);
- }
-
-
- } catch (SQLException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Please select a patient.");
- }
-
- }
-
- private void warnFailedTests(Diagnostic diagnostic, ArrayList<TestName> selectedTests) {
- ArrayList<Integer> failedTests = diagnostic.getInvalidTests();
-
- if (!failedTests.isEmpty()) {
- String msg = "Could not complete tests: ";
- boolean first = true;
- for (TestName testName : selectedTests) {
- if (failedTests.contains(testName.getId())) {
- if (first) {
- first = false;
- } else {
- msg += ", ";
- }
- msg += testName.getName();
- }
- }
- displayError(msg);
- }
-
- }
-
- private void displayError(String msg) {
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- mainFrame,
- msg,
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
-
- private ArrayList<String> getSelectedTests() {
- ArrayList<String> tests = new ArrayList<String>();
-
- for (TreePath treePath : jTree.getSelectionPaths()) {
- tests.addAll(getChildrenTests(jTree.getModel(), treePath.getLastPathComponent()));
- }
-
- return tests;
- }
-
- private ArrayList<String> getChildrenTests(TreeModel model, Object node) {
- ArrayList<String> tests = new ArrayList<String>();
-
- if (model.isLeaf(node)) { // leaf
- DefaultMutableTreeNode leaf = (DefaultMutableTreeNode) node;
- tests.add(leaf.toString());
- }
- else { // iterate over children
- for (int i = 0; i < model.getChildCount(node); i++) {
- tests.addAll(getChildrenTests(model, model.getChild(node, i)));
- }
- }
-
- return tests;
- }
-
- }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/f9/b05d0e2ff0a60014162f978bbd19228b b/.metadata/.plugins/org.eclipse.core.resources/.history/f9/b05d0e2ff0a60014162f978bbd19228b
deleted file mode 100644
index e01838b..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/f9/b05d0e2ff0a60014162f978bbd19228b
+++ /dev/null
@@ -1,21 +0,0 @@
-package io;
-
-import com.itextpdf.text.Rectangle;
-import com.itextpdf.text.pdf.PdfContentByte;
-import com.itextpdf.text.pdf.PdfPCell;
-import com.itextpdf.text.pdf.PdfPCellEvent;
-
-public class RadioGroup implements PdfPCellEvent{
-
- protected int id;
-
-
-
- @Override
- public void cellLayout(PdfPCell cell, Rectangle position,
- PdfContentByte[] canvases) {
- // TODO Auto-generated method stub
-
- }
-
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/f9/d00db2ba62a8001419a38fd8608ce0e6 b/.metadata/.plugins/org.eclipse.core.resources/.history/f9/d00db2ba62a8001419a38fd8608ce0e6
deleted file mode 100644
index fdbdc6d..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/f9/d00db2ba62a8001419a38fd8608ce0e6
+++ /dev/null
@@ -1,297 +0,0 @@
-package io;
-
-import java.awt.BorderLayout;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.util.Map;
-import java.util.Set;
-
-import com.itextpdf.text.BaseColor;
-import com.itextpdf.text.Document;
-import com.itextpdf.text.DocumentException;
-import com.itextpdf.text.Element;
-import com.itextpdf.text.ExceptionConverter;
-import com.itextpdf.text.Font;
-import com.itextpdf.text.Font.FontFamily;
-import com.itextpdf.text.FontFactory;
-import com.itextpdf.text.Image;
-import com.itextpdf.text.PageSize;
-import com.itextpdf.text.Paragraph;
-import com.itextpdf.text.Phrase;
-import com.itextpdf.text.Rectangle;
-import com.itextpdf.text.pdf.AcroFields;
-import com.itextpdf.text.pdf.BaseFont;
-import com.itextpdf.text.pdf.ColumnText;
-import com.itextpdf.text.pdf.GrayColor;
-import com.itextpdf.text.pdf.PdfAction;
-import com.itextpdf.text.pdf.PdfBorderDictionary;
-import com.itextpdf.text.pdf.PdfContentByte;
-import com.itextpdf.text.pdf.PdfFormField;
-import com.itextpdf.text.pdf.PdfPCell;
-import com.itextpdf.text.pdf.PdfPCellEvent;
-import com.itextpdf.text.pdf.PdfPTable;
-import com.itextpdf.text.pdf.PdfReader;
-import com.itextpdf.text.pdf.PdfStamper;
-import com.itextpdf.text.pdf.PdfWriter;
-import com.itextpdf.text.pdf.PushbuttonField;
-import com.itextpdf.text.pdf.RadioCheckField;
-import com.itextpdf.text.pdf.TextField;
-
-import framework.Question;
-
-public class Questionnaire implements PdfPCellEvent{
-
- /** The path output file. */
- String pathOutputFile;
-
- /** The document. */
- Document document;
-
-
-
- int tf;
-
- public Questionnaire(String path){
- pathOutputFile = path;
- document = new Document(PageSize.A4, 25, 25, 50, 50);
- }
- public Questionnaire(int tf){
- this.tf = tf;
-
- }
-
- /** The resulting PDF. */
- public static final String RESULT1 = "outputPDF/buttons.pdf";
- /** The resulting PDF. */
- public static final String RESULT2 = "outputPDF/buttons_filled.pdf";
- /** Path to a JavaScript resource. */
- public static final String RESOURCE = "res/buttons.js";
- /** Path to an image used as button icon. */
- public static final String IMAGE = "res/info.png";
- /** Possible values of a radio field / checkboxes */
- public static final String[] LANGUAGES = { "English", "German", "French", "Spanish", "Dutch" };
-
- /**
- * Creates a PDF document.
- * @param filename the path to the new PDF document
- * @throws DocumentException
- * @throws IOException
- */
- public void createPdf(Map<Integer, Question> map, Set<Integer> ids) throws IOException, DocumentException {
-
- @SuppressWarnings("unused")
- PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(pathOutputFile));
-
-
- document.open();
- Image logo = Image.getInstance("res/shcs_logo2.gif");
-
- logo.scalePercent(30f);
- float[] columnWidths1 = {0.2f, 0.8f};
- PdfPTable table_title = new PdfPTable(columnWidths1);
- PdfPCell c01 = new PdfPCell(logo, false);
- PdfPCell c02 = new PdfPCell(new Paragraph("Survery | Project #693",
- FontFactory.getFont(FontFactory.HELVETICA, 20, Font.BOLD, BaseColor.BLACK)));
- c01.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c02.setHorizontalAlignment(Element.ALIGN_CENTER);
- c01.setBorder(Rectangle.NO_BORDER);
- c02.setBorder(Rectangle.NO_BORDER);
-
- table_title.addCell(c01);
- table_title.addCell(c02);
- table_title.setWidthPercentage(100);
- table_title.setSpacingBefore(0);
- table_title.setSpacingAfter(25);
- document.add(table_title);
-
-
- //----------------------------------------------------------------------------------
-
-
- PdfPTable table1 = new PdfPTable(1);
- table1.setWidthPercentage(100);
- PdfPCell c11 = new PdfPCell(new Phrase("Today you are receiving a pharmacogenetic report based on the genetic " +
- "information of your patient. Because the human genome contains extremely private and sensitive information" +
- " of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier," +
- " it must be managed with care. ",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.NORMAL, BaseColor.BLACK)));
- c11.setLeading(1.5f, 1.5f);
- c11.setPaddingBottom(8);
-
-
- table1.addCell(c11);
- table1.setSpacingAfter(10);
- document.add(table1);
-
-
- //----------------------------------------------------------------------------------
-
-// // step 4
-// // add the JavaScript
-// writer.addJavaScript(Utilities.readFileToString(RESOURCE));
-
- for(Integer id: ids){
- PdfPCell c2;
-
- PdfPTable table = new PdfPTable(1);
- table.setSpacingAfter(10);
- table.setWidthPercentage(100);
-
- PdfPCell c1 = new PdfPCell(new Phrase(id + ") " + map.get(id).getQuestion(),FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c1.setPaddingTop(5);
- c1.setPaddingBottom(5);
- c1.setHorizontalAlignment(Element.ALIGN_CENTER);
- c1.setBorder(Rectangle.NO_BORDER);
- table.addCell(c1);
-
- c2 = new PdfPCell(new Phrase(" 1" +
- " 2" +
- " 3" +
- " 4" +
- " 5",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
- c2.setHorizontalAlignment(Element.ALIGN_LEFT);
- c2.setVerticalAlignment(Element.ALIGN_MIDDLE);
- c2.setCellEvent(new Questionnaire(id));
- c2.setBorder(Rectangle.TOP);
- c2.setPaddingTop(2);
- c2.setPaddingBottom(5);
- c2.setBackgroundColor(new BaseColor(242, 242, 242));
-
- table.addCell(c2);
-
-
-
- document.add(table);
- }
-
-
- //----------------------------------------------------------------------------------
-
- // step 5
- document.close();
-
-
-
- }
-
- @Override
- public void cellLayout(PdfPCell cell, Rectangle position,
- PdfContentByte[] canvases) {
- PdfWriter writer = canvases[0].getPdfWriter();
- PdfFormField radiogroup = PdfFormField.createRadioButton(writer, true);
- radiogroup.setFieldName(String.valueOf(tf));
- System.out.println(tf);
-
- float llx = position.getLeft();
- float lly = position.getBottom();
-
- float cell_h = cell.getHeight();
- float cell_w = cell.getWidth();
-
- Rectangle rect;
-
- for(int i=1 ; i<=5; i++){
-
- rect = new Rectangle(llx + (3+i)*cell_w/12, lly+cell_h/2-6, llx + (3+i)*cell_w/12+12 ,lly+cell_h/2+6);
-
- RadioCheckField radio = new RadioCheckField(writer, rect, null, String.valueOf(i));
- radio.setBorderColor(GrayColor.GRAYBLACK);
- radio.setCheckType(RadioCheckField.TYPE_SQUARE);
-
-
- try {
- PdfFormField field = radio.getRadioField();
- radiogroup.addKid(field);
-
- writer.addAnnotation(radiogroup);
- }
-
- catch(IOException ioe) {
- throw new ExceptionConverter(ioe);
- }
- catch(DocumentException de) {
- throw new ExceptionConverter(de);
- }
- }
-
-
-
- }
-
-
- public String writeAnswers(Map<Integer, Integer> answers) throws IOException, DocumentException{
-
- PdfReader reader = new PdfReader(pathOutputFile);
- PdfStamper stamper = new PdfStamper(reader, new FileOutputStream("outputPDF/buttons_filled2.pdf"));
-
-
- AcroFields form = stamper.getAcroFields();
-
-
-
-
- Set<String> fields = form.getFields().keySet();
- for(String key: fields){
- System.out.println("key = " + key);
- if(form.getFieldType(key)==AcroFields.FIELD_TYPE_RADIOBUTTON){
- sb.append(key);
- sb.append(",");
- sb.append(form.getField(key));
- sb.append(";");
- }
- }
- stamper.close();
- reader.close();
-
-
- return sb.toString();
-
- }
-
-
-// /**
-// * Manipulates a PDF file src with the file dest as result
-// * @param src the original PDF
-// * @param dest the resulting PDF
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public void manipulatePdf(String src, String dest) throws IOException, DocumentException {
-// PdfReader reader = new PdfReader(src);
-// PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(dest));
-// AcroFields form = stamper.getAcroFields();
-// String[] radiostates = form.getAppearanceStates("language");
-// form.setField("language", radiostates[4]);
-// for (int i = 0; i < LANGUAGES.length; i++) {
-// String[] checkboxstates = form.getAppearanceStates("English");
-// form.setField(LANGUAGES[i], checkboxstates[i % 2 == 0 ? 1 : 0]);
-// }
-// stamper.close();
-// reader.close();
-//
-// PdfReader r = new PdfReader(dest);
-// AcroFields f = r.getAcroFields();
-// Set<String> fields = form.getFields().keySet();
-// for(String key: fields){
-// if(f.getFieldType(key)==AcroFields.FIELD_TYPE_RADIOBUTTON){
-// System.out.println(key);
-// System.out.println(f.getField(key));
-//
-// }
-// }
-// r.close();
-//
-// }
-//
-// /**
-// * Main method
-// * @param args no arguments needed
-// * @throws IOException
-// * @throws DocumentException
-// */
-// public static void main(String[] args) throws IOException, DocumentException {
-// Questionnaire buttons = new Questionnaire();
-// buttons.createPdf(RESULT1);
-// buttons.manipulatePdf(RESULT1, RESULT2);
-// }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/fc/00d8f53ba4a7001417ceadf0100b5ef7 b/.metadata/.plugins/org.eclipse.core.resources/.history/fc/00d8f53ba4a7001417ceadf0100b5ef7
deleted file mode 100644
index e312141..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/fc/00d8f53ba4a7001417ceadf0100b5ef7
+++ /dev/null
@@ -1,5 +0,0 @@
-package io;
-
-public class Subscribe {
-
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/fd/200a3a15b2a7001417ceadf0100b5ef7 b/.metadata/.plugins/org.eclipse.core.resources/.history/fd/200a3a15b2a7001417ceadf0100b5ef7
deleted file mode 100644
index e69de29..0000000
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/fe/400bb1184eac001410e2e30aa85db9d1 b/.metadata/.plugins/org.eclipse.core.resources/.history/fe/400bb1184eac001410e2e30aa85db9d1
deleted file mode 100644
index 084c793..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/fe/400bb1184eac001410e2e30aa85db9d1
+++ /dev/null
@@ -1,71 +0,0 @@
-package io;
-
-import io.serializer.url.URLParserDecrypt;
-import io.serializer.url.URLParserMaterial;
-import io.serializer.xml.XMLParserDecrypt;
-import io.serializer.xml.XMLParserMaterial;
-import io.serializer.xml.XMLParserSurvey;
-
-import java.util.logging.Logger;
-
-import framework.Type;
-import framework.reply.ReplyDecryption;
-import framework.reply.ReplyMaterial;
-import framework.reply.ReplySurvey;
-import framework.request.RequestDecryption;
-import framework.request.RequestMaterial;
-
-public class CommAdapter {
-
- @SuppressWarnings("unused")
- private static final Logger LOGGER = Logger.getLogger(CommAdapter.class.getName());
-
- public ClientConnection connectSPU = null;
-
- public CommAdapter(ClientConnection connectSPU) {
- this.connectSPU = connectSPU;
- }
-
- public ReplyDecryption callServiceDecrypt(RequestDecryption rqtDecrypt) {
- String requestString = URLParserDecrypt.requestToString(rqtDecrypt);
-// String replyString = "<awr_decrypt><patient>30351</patient><v_timestamp>1417188729390</v_timestamp><decrypt_val>,,,,,,,,,,,,,,,,2,AwHR3OO0/hkwgEHluLDFLtn4aaTBAwBEJjJpMegGa29ASgtyt1ha2OOyxvEvNgkIaY0xWXtTmqrqhSBKDG6J7Lps0g==,AwE/oifhonvUZDA4mqRK8K1WCkoepEuL9SidjdFXMNNZQXCMUvVN6pBUYVFgJeFX6mT2jruK8ic3y6yI14PfKl/Pvg==,AgBHs6HGF9AYNc5RlFTGv025WEaT91i/MPy+HXqhvHOrp0Ol9/aKyvv2BgAzeAdsdSEbVs2sahiyL/kbKjeUoI9tsA==,,,,,,,,,,,,,2,AgHIofEmf4aJMLBnKAY3/8WcLXUETF4y/68fzZR6hsS5btZTyI0E4ZTltDzV6hBzIT14cC4S/BMclo1aoLt5C9f+Cg==,AgDOXZAZAwO4KXslqU1wKctrVlH8CcGvpO8gGrPl3YjrY8SR3a6gStvZvjcUKXhvtDkRwSLAIkD3lFrKSXWestHSqQ==,AgG7Y5so9ZTRng2Xm3ziWx3+7zfaVLkIJ2v7g+qEUx5Vl2/udDOcg/was8W6qbKYeo/W0EGTlNXKTOdIatGVxyuoZA==,,,,,2,AgDAVy0/nE6X4iAengG9lCiYEBMtK6rAAiy7OwC7U/QSbokiEzH0RafH7rb+5L5R/ii9/3kZCcKmgOIoPzkmeloDfg==,AgHuvmLAeIFYm4ObEBO2v9xTK6tjYfdh+x4kwULBpDNlUiW4kNNaeoeziRA7nlRvcSfxPlR070N/3qzBMu3EKZ2csQ==,AgDk/CzCL4XUobuNaLsvrH5s0COMKYBqY/18YRR0d7mIsVVYrKVGF+IWnEluhbLt+BoRBdvL5UElgroyORJpiKz06w==,,,,,2,AgH0nW+2h+vcOZgPe3uR7jEHmEPi+g4izQ3OIU9An2vekwbG1liBFgTo33pEhyXhNWPhGCbSb73sJ7pt0JLL+hhWMw==,AgHG039OnpvmllkV6QBsmoMdqISrRuW2q5M3jfUp5TUbU6F/3S2FK1iSVKWgTsI291re6lz6KH5d8rWrnoCAozhIeg==,AwGjmnLUMd42F7a/tsSkeqcxoHMAXNKdvF4kOXoAxmc6ZSxaUhzkGkcgNOO8SFNiWqTKgtZCffJ7hfI0voAUX0TD1w==,,,,,2,AwHfYRjQFscHzOvVozackTaM3sybOjyd2aLc4B+WQ7KiWHoGKkzQScoDiy8hiA2cJpv8ngfitTqJRLlyegvuM+Ietw==,AwAP92OqrJFpFmdrMUUx6FeFhwVLYtAsfw3sem2RYu7ljPry+uJnvluuzTvVaFhs8BAAD8VBFs1vqrSHyQEq8Ocsmw==,AwDNXg/JA4QXA6wu30DUE7peOk1a10aHbd38iwjN1Q0DKy3BqS36+EQKg5hbwELxN2+/Yu4UA1IKWYJI0zNs6TJUtA==,,,,,2,AwBWFv3ivyQz4CGIilJ7CVtpQGOs1tnIW+0uxQyiWIO3HDjJtfxPyQ1AJWPsBQ9eYmaoKmPnN+euPCm7bP0LxBL/Tg==,AwHg7AZb5DV5OJrl0omtKx2OqckXcQEUT8pZ+Bmo9AyULgL5HOq2AVU04qhvbdy0W4OMYqxF3uBwqT6dNhFptsKEKQ==,AwG9dyMbI5EI8UCXuj5JkQRMimcT1u6zCBAfmRvANtT54yDtC8KS6VeOr7h/NP4qrf/mbl5tMaePbkkHrc6E39ntsA==,,,,,2,AwHkMyCOJm/RlYOybGhX3DchR/wSN2L3PuXKalMszgk3WOCiWSpYlP3SOPLWvJTRQaTxoN+oA5IkCTvlp02+Mduaxg==,AgHhR8HjavXjnsy+rHptc/JSI5pLFjM0RczUygxTX7vqV/yqwZ280Rq7YpXKp2GBfiZvFf0qIQoWe4vx5DBxwvHkdA==,AwEf2yisEpflVm8R2X08SCJM89apu7tUFzbpndsTIt5o9/xdoXKomMUk9REz+yrpkd+jFhlkJMQHHVMhgjiWYCEdpQ==,,,,,2,AwBaIc8ZWFm4O9QO0ofJeS9Q7tki7CAscBXRDnajEp7rmKNgrpRyyu1ezSpborwaloWR9kDKPLdYVV8SNk2V/1EudA==,AwGE8MPAnPKKXF15EyrAx1bRinwgoqYVO4Junz5IXQjGLyQpSr5NwO/hqu5E5egHte20jm380Wn2Qy6GgKNiRLy/gQ==,AwCAOjOQNdMN5uIB0POFzYS/fpxZ0Q5KfhlP5fijNmc/daO5frSrwhgcMH5lMKL4EGjBI1p6JMe3fuMqb5t1ImeTBg==,,,,,2,AgARSg2izcK6iZLFe4YkIS6yZgnt8cd9DFqpQ37gNmcccZwBI+mpsaijTUPo1GT+QUD8zC+6qr/GrzG9q+q7BPxpVw==,AwGM/jFdtoNViQXxgqeL27ZKobjsfyeuXrx8re3UfIe3c4XN16srSpcTfxEZNXDKo1Ff9fRvDVBOwdS6XU2nvo++ng==,AwAtK0eOqcVfzkdJIIkk7BORWwSDTAjtx4aEXwyZ0bla+2rIWDgXi3U5xlgnjeXJNtGsLokkvvX92BOBIw9SuCGhnw==,2,AgCWAAWTW+7jv2a2lc4pGFnumEgyH59wSDRXEYUASCVB249JBmeKFWRKNFTQlph5hTR5Rb+YHFP/qvzmwU11Hs2b0w==,AgANdxpkN+DS4De3aokNjt+e/Ou8GT+p8pUJA+6LHrDBXAddoCR8KpeXW7mESokq6BTEVQXxU3TdqavRkqaeFmpXkw==,AgDDDSEO3e8DCsm1n6dbj2PB9Z/tUzluDCt/utdSLrYFfdFY+Y5K7Vxo9F5/17CzaUbX172SGLt8TfCfuYBrtupgAg==,2,AgB1OG6bj+6kfRvLj8yjMQbl80FdZHZrRVRUfNVRwvjvvbRa5f9s9fNZ8J0a3s3hH+RyfZmGJ4Ufjh5mMiQkwiur6w==,AwBX4GFZNjUdtRdwtWgxyQz7h8Hk0ztaZeM8/e+8ll0o+RjYN+CNP8+lnXEw7wpuC4wcMX05mrjPvHOuy0hOFVNkhQ==,AgDf3el4vbMYIAFEH9WV151/uzl+gkfTQ79T8Iu4KxEVo6UJvCfqkjETlR6aXUJiqaCbSV5odMT50lURsmfgALf6AQ==,,,,,2,AgENmnviZkgQWXZ5QDgCCE2zq0IiXURTqK2UNPtEg3o64yjlrQQUd2rO/KgKolyCQcKYTVoMj7k2VeCSSVRr8KGC7w==,AwFv6ZJzhpV/Ms00QkrkNiCKVRFczn/yqnkiBFUHC1RQv3tqzzYSEUeXmDHmm0/kEBtnfgRWjHQm9zxS8Jzy7srDLQ==,AwB8aS5KA1dFLKCA1a/7Wsjhef+6kkNAB/GO9AOvRZbFW/dhl5fx04Alh+g78fwcVMX+eEIEJgSyH0jhv7kmiQh4ew==,,,,,2,AgG8fXrCra6UgP5G89TaE6PH5E0TANb/PJPbKwzdi78XEHRUmcTz6PIhYtclTmcdq5TH0IwQv+ra5ppf4qR4LtkGig==,AgEKzsmZrikmXzJywMpzkAdG9hAPlOiRY9oXKf4Sh50CL8btUItjfVJWg3ubNhotzJK+fnNlRrcMkWQEBD/aGKpf8A==,AwFi+2cGpuvVdR+pT1P9Ur8jAkzmjJK2XmUQbFpyMi5Jc9a5/fPnBWCxmTX8CH5wks0PicYC6rzZC3NEIt0EoM1Qfg==,,,,,2,AgHbTZgTAv8lLBsoX06Hkm9XPU+crlRqKl0xL8v18xeUUPY1YAvUYf2OAutmTtPRycXyzrDWSpn2h5xfk/dtq/BICg==,AwAjPydfoUhfSVFKWNI4Ox4a/psZGDIGzEEWh9HyVtAmjdNb5ctr/S6z+akiRfPlNCsVf6TdkzJ2Su6BO4sOX/SHKA==,AwBVmjn7AitCe4zQ/Fl0sYW2XqXkJxJBDviwl9jYhoq29v90n9escDsiA3Cy+1uW69MezdZBEszFdEWlX0EzbQZQ6A==,,,,,2,AwCG0RBHwHuame/1G7qtUjmwz0gkCP1tyZiEgm7aTKpsCjt7UsMirMmx/ZrNlvSzkGuVbRO97Szzr+9fo4baH1rEZA==,AwHyMK/q8FUUvoHTt7O7KJUxYz/ZHF6SntbmKfbygLVw4HWc/eFic4DXHKbEGWvrMO5b37GksqxfQHc2xlAuj8ZRIw==,AgB5x0BxqiMYxRvzlq0+/RkbOuNA7hYuMG+7D6wlMOxSskgqyfwA0MfW+AkXFqnqfqsoJRpDy15bABWhH6MIdJsPEA==,,,,,2,AwAS/nCH0pcrsllSy2duadUs1rMtL6vtz7VTUAVhn1/YYlZ068ysBi1Mdz9gJFewdyeGLnFhyg+W15rFB317nyeGHg==,AwBh6f5UVRMM5ekWqkrx6XiVOK/BL0TinjsSLna8BjkQPXU2DvGxiKPhA03/GtBdEpihEX4bVaHQhiOupTf7wh6bCQ==,AgGPDFH8Kv8hz2aUJ955nHu8NiAoTmDjqhlXuJ1T83h+O0sc2GieLhmXmpEjxjEAyxkqjb2nFxvDhi+YGs4MqI4S5A==,,,,,2,AwDqwFv6bqpM/6PTCJ/wgRALYVT+Rn54HIB2icP6ODNexaoqILBS9p1k1QENbQsBZ9LmJJwngRQXi07Q4P8br76Qfw==,AgG8yTiO8tFWZqQELBr+Zt1fKKA3bl08836nUEEpD55Sid0ZywCrWe+Va58xbMIWscISLPbBvXIdO48ZgoHsLgA7Jw==,AwCI1Ud0GJLnS86mSC58HNB91lH9kPpQbufGn+WJErGxAQubtSFBc3rnT0SNE3CbW+1MPjYBbdCgxpHjN/iQf96++w==,,,,;2,AgB9YhljgPngkwwYTBMUaMGR+rWMjvlK0tgrzkG8OT9NGNJfaaLP6AzfhWrT5oe9NRnabU25pQvDhAIGZCajDy8N2g==,AwE5Irce6LOSxfLgn4PZh1PeDPjAHb5wPTNfmQoWFY83dNQLYN44FupJaQRRUqBqyGNB0SL76GKzr8G9tKLAHOxRSQ==,BAG5iWHEhlWkvtyAlQy4bwKa1iNRzJq8WJTh2GE9oT4DeJRmO1pCHy9P+9YktDT+4RgV9s8AzOYih1LmHW14uP27HQGg1nTdHyab9/nFUe9BFxIi8xQTPG8et9++5I+gKIeWGCXBL31sBhpaMewvVhDjl2d3+7H2PUv9IY3lyIRFA6N16A==,2,AwAPIoQJqSbXFKXQAIG9J+/+/41NLX0rDINImk4eBgAnZ4V0R8YSqkHD3nd0IrEMyK7OpkCXkxTzOlwJlfEfti+vew==,AwAQ8KdMYsEOqM3eyGv/XbHnGf+TqCAG39Gz/juBcioOOJmLOFjl6oCITozJOyPusbTRXZ4eIwgQYkl12mt6saTpgQ==,BACkTO+3rRUF81w5yzZskFiIRyVxc6sdJfDFX6C+Jy5A+s/sfHskrFx2GYNklZaYztP0/B64a6v6HvFWVz8GuYj2wgHhiCL+QwLThFpaRxh8kUMSrt4VuXSIjtHwRXzhSdEbG2T6C/+CJZxIFh/ugEV9SS51l1HrLdnJDb2Kdu3QC3lRkQ==;2,AgC99VyiRLJ2kFf3oCkb+JPVV7B4tXVGI2NVT7fdKtB+gEjCcdkbS5YEXm/Sq6NAJEOKilMTFUDLYFDOe+7JHj/4pw==,AgAbT080sbKVHH9lim3tVCYS4cMz+rLownRKqtYZ7AfR8qy819R1GFywQ0kImgcdjEey5C4m0OPTwgtkO+C5uWtKfQ==,BADKYt9i0zTJeh3H8t6d8pZdncz3f28v1oWrssLZwAutkIcF3XKkPNmK3X75K3sImUSch//IIRIB1Yi5/MrZZeDrxQHhQZEg6AA8bDxgt0JdOEX2t4crzDu3gW5I8y+Ya0fZr1RmxvfMr2UxRhSsNsz949v/g+GPfsrEfDqIWTiNlJfwyg==,2,AgEPMjgCfgGRaZ/5I1hLqDoJ8nXYeTlnt9YeK4K8w+HnRAoAD09zkPcLMWajIjupe/CUFrHz00sAvs+vOPeKxGrLiQ==,AgDy7g2DcDwmIW7LtTTteHExD/cyP4BMWimEAM1RfAd/Y6P8XkmRGgglfdLJ7RGTR2YIMB1lxQ/LQUbmzyjTiiuWow==,BAHJ7oHVr/0wweyGlg4f9Dqmx8h0m35jMdrEFwVY8l/ENKpOTxG/oh9vAvo1uw39wUOn4CWGBmAFE2lsvWFW18gt+gHPFt5/9ihUFN9mtxFLT1Q3W4Uf8IdekHPMbNlxEp1wId7EH3XsAox3Eo8b3XnYpwfsAXoDwQa2wyiO5h104Ptvsg==;2,AwClCMGcHdd7rD8sYDC/GXyAtLmZ/JI4v+aOK4PXzjWJi/zvcsXT5dJUOm9bW6AAtzgOKPd0WwU3hSytJ+ATy146Uw==,AgADzN6ysOIC9GAuMF9suYNfkR027H/9OcpeVJb4HRHfZ/EOmQWSdJmJFw3F/NLUrreNnFCvuF1+1bbmHa3tvznjeA==,BADwaRJF9z3DW7HE3qhGu6Yd9d2WBfWy8opd7Mhkg7TpAQsn9oA3UcpCarn4DMSnVGG94Y3Pxsj5vlm5G7GMKiGoxAERnETH6pVgBxhtrnBU6l4vHl+X4rd8I/zheZiG0EFKJza41rmwKHTY4+42PJ8/3Y2rCanbY1RSAJEgiZR89k6nGg==,2,AgCK80PhKSC23aVKQ8uYm+79GWZiwpbV5lc8Fzcpwu8hdKGAMH4f62Y//cmrQmCIltm03PTVPMn6rMwkfoz+9M2LDQ==,AgH5aXThIKUjENFTGCGwcTRql7xIe8vR9h78KikTYkD8itQ+YBDrnx5OaNyWRjpIJHAZ2B61W2aVjZ5Rmo0d1B1Pcw==,BAAEZsEKw59QSRxN1QmWcx4X2LaK4+zBuawh+2CIRPljWyxK6XhIM6EEalr44Klce4OTK2QbxT5n3Kjnh5jNuwCOawAH/wiNrx09+HY8SZrRjCjv1+Lnicybrqg/IFDNoAGT5aguaGRIMmGOLe0QFJr0T0iW3RnYGlmSd/r6ex8+MpOgLw==</decrypt_val></awr_decrypt>";
- String replyString = connectSPU.sendReceive(Type.DECRYPT, requestString);
- System.out.println("REQUEST URL: " + requestString);
- System.out.println("REPLY: " + replyString);
- ReplyDecryption reply = (new XMLParserDecrypt()).stringToReply(replyString);
- return reply;
- }
-
- public ReplyMaterial callServiceMaterial(RequestMaterial rqtMaterial) {
- String requestString = URLParserMaterial.requestToString(rqtMaterial);
- String replyString = connectSPU.sendReceive(Type.MATERIAL, requestString);
-
- System.out.println("Material request:");
- System.out.println(replyString);
-
- ReplyMaterial reply = (new XMLParserMaterial()).stringToReply(replyString);
- return reply;
- }
-
- public ReplySurvey callServiceSurvey(){
-
-// String replyString = connectSPU.sendReceive(Type.SURVEY_Q,"");
- //4::What's your name?::1;5::Where are you from?::2;6::How old are you?::3;7::What's your name?::1;8::Where are you from?::2;9::How old are you?::3;10::What's your name?::1;11::Where are you from?::2;12::How old are you?::3;13::What's your name?::1;14::Where are you from?::2;15::How old are you?::3
- String replyString ="<awr_survey><v_questions>1::What's your name?::1;2::Where are you from?::2;3::How old are you?::3;5::A hacker or a disgruntled employee steals from a hospital database the unprotected genome of a known personality. He finds out this person's ethnicity and predisposition to diseases. As a result, he sells this information to tabloids and newspapers. Theft of unprotected medical data is an important concern and hospitals should take more steps to make sure that unauthorized people cannot access personal information in their computers.::3;4::A hacker or a disgruntled employee steals from a hospital database the unprotected genome of a known personality. He finds out this person's ethnicity and predisposition to diseases. As a result, he sells this information to tabloids and newspapers. Theft of unprotected medical data is an important concern and hospitals should take more steps to make sure that unauthorized people cannot access personal information in their computers.::3;6::A hacker or a disgruntled employee steals from a hospital database the unprotected genome of a known personality. He finds out this person's ethnicity and predisposition to diseases. As a result, he sells this information to tabloids and newspapers. Theft of unprotected medical data is an important concern and hospitals should take more steps to make sure that unauthorized people cannot access personal information in their computers.::3;7::A hacker or a disgruntled employee steals from a hospital database the unprotected genome of a known personality. He finds out this person's ethnicity and predisposition to diseases. As a result, he sells this information to tabloids and newspapers. Theft of unprotected medical data is an important concern and hospitals should take more steps to make sure that unauthorized people cannot access personal information in their computers.::3;8::A hacker or a disgruntled employee steals from a hospital database the unprotected genome of a known personality. He finds out this person's ethnicity and predisposition to diseases. As a result, he sells this information to tabloids and newspapers. Theft of unprotected medical data is an important concern and hospitals should take more steps to make sure that unauthorized people cannot access personal information in their computers.::3;</v_questions><v_locations>50::Lausanne;60::Basel;70::Zurich</v_locations></awr_survey>";
- ReplySurvey reply = (new XMLParserSurvey()).stringToReply(replyString);
- return reply;
- }
-
- public String callServiceSurveyAnswer(String survey, String id_loc, String id_p){
-
- StringBuilder sb = new StringBuilder();
- sb.append("id_p=").append(id_p);
- sb.append("&timestamp=").append(System.currentTimeMillis());
- sb.append("&id_loc=").append(id_loc);
- sb.append("&answer=").append(survey);
- String replyString = connectSPU.sendReceive(Type.SURVEY_A, sb.toString());
- return replyString;
-
- }
-
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/ff/00a67f2a4fac001410e2e30aa85db9d1 b/.metadata/.plugins/org.eclipse.core.resources/.history/ff/00a67f2a4fac001410e2e30aa85db9d1
deleted file mode 100644
index f147e42..0000000
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/ff/00a67f2a4fac001410e2e30aa85db9d1
+++ /dev/null
@@ -1,893 +0,0 @@
-package ui;
-
-import io.ClientConnection;
-import io.CommAdapter;
-import io.Questionnaire;
-
-import java.awt.BorderLayout;
-import java.awt.Color;
-import java.awt.Component;
-import java.awt.Dimension;
-import java.awt.FlowLayout;
-import java.awt.Font;
-import java.awt.SystemColor;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.awt.event.WindowAdapter;
-import java.io.File;
-import java.io.IOException;
-import java.sql.SQLException;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.LinkedList;
-import java.util.Map;
-import java.util.Set;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
-import javax.swing.Box;
-import javax.swing.BoxLayout;
-import javax.swing.ButtonGroup;
-import javax.swing.DefaultComboBoxModel;
-import javax.swing.GroupLayout;
-import javax.swing.GroupLayout.Alignment;
-import javax.swing.ImageIcon;
-import javax.swing.JButton;
-import javax.swing.JComboBox;
-import javax.swing.JDialog;
-import javax.swing.JFileChooser;
-import javax.swing.JFrame;
-import javax.swing.JLabel;
-import javax.swing.JOptionPane;
-import javax.swing.JPanel;
-import javax.swing.JRadioButton;
-import javax.swing.JScrollPane;
-import javax.swing.JSeparator;
-import javax.swing.JTabbedPane;
-import javax.swing.JTextArea;
-import javax.swing.JTextPane;
-import javax.swing.JTree;
-import javax.swing.LayoutStyle.ComponentPlacement;
-import javax.swing.SwingConstants;
-import javax.swing.UIManager;
-import javax.swing.border.BevelBorder;
-import javax.swing.border.EmptyBorder;
-import javax.swing.border.EtchedBorder;
-import javax.swing.tree.DefaultMutableTreeNode;
-import javax.swing.tree.TreeModel;
-import javax.swing.tree.TreePath;
-
-import org.jpedal.examples.viewer.Commands;
-import org.jpedal.examples.viewer.Viewer;
-
-import utils.ClientProperties;
-
-import com.itextpdf.text.DocumentException;
-
-import database.DBconnectorClient;
-import framework.Diagnostic;
-import framework.MedUnit;
-import framework.Question;
-import framework.reply.ReplySurvey;
-import framework.test.TestName;
-
-/**
- *
- * @author youssef, raisaro
- */
-public class GUI extends javax.swing.JFrame {
-
- private static final Logger LOGGER = Logger.getLogger(GUI.class.getName());
-
- private static final long serialVersionUID = -4582280515597700650L;
-
- // configuration
- private ClientProperties props;
-
- private JTree jTree;
- private DBconnectorClient connectorClientDB;
- private LinkedList<Integer> patients;
-
- /** List of all relevant tests */
- private HashMap<String, TestName> testsByName;
- private Viewer viewer;
- private JDialog dialog;
- private JFrame frame;
- private boolean survey_submitted;
- private int close_trials;
- private Map<Integer, ButtonGroup> buttonGroupMap;
- private Questionnaire quest;
- private Map<Integer, Question> map;
- private Set<Integer> ids;
- private Map<String,String> answers;
- private Map<Integer, String> locations;
-
-
- /**
- * Creates new form GUI
- */
- public GUI(ClientProperties props){
-
- frame = this;
- this.props = props;
- this.connectorClientDB = new DBconnectorClient(props.getDbMsAccess());
- survey_submitted = false;
- close_trials = 0;
-
-
- try {
- initComponents();
-
- viewer = new Viewer(jScrollPane2, null);
- viewer.setupViewer();
-
- // create questionnare
-
-
- System.out.println("#of questions: " + ids.size());
-
-// viewer_q = new Viewer(jScrollPane4, null);
-// viewer_q.setupViewer();
-//
-// // specify file you wish to open (JPedal handles getting the byte data)
-// String filepathReport = "outputPDF/buttons_filled.pdf";
-//
-// // open generated PDF
-// // object must be either String in full filepath, or
-// // File object which can be relative
-// Object[] input = new Object[]{ new File(filepathReport) };
-// viewer_q.executeCommand(Commands.OPENFILE, input);
-
- JButton btnSubmitQuestionnaire = new JButton("Submit Questionnaire");
- btnSubmitQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- btnSubmitQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- submitButtonActionPerformed(arg0);
- }
- });
- JButton btnResetQuestionnaire = new JButton("Save as PDF");
- btnResetQuestionnaire.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- savePDFButtonActionPerformed(arg0);
- }
- });
- btnResetQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
- JPanel panel_button = new JPanel();
- panel_button.setLayout(new BoxLayout(panel_button, BoxLayout.X_AXIS));
-
- lblNewLabel_3 = new JLabel("");
- lblNewLabel_3.setIcon(new ImageIcon("res/location_icon.png"));
- panel_button.add(lblNewLabel_3);
-
-
-
- comboBox = new JComboBox<String>();
- comboBox.setFont(new Font("Tahoma", Font.BOLD, 12));
- comboBox.setModel(new DefaultComboBoxModel<String>(new String[] {"Select Location"}));
- for(Integer id_loc : locations.keySet()){
- comboBox.addItem(locations.get(id_loc));
- }
-
-
- panel_button.add(comboBox);
-
- rigidArea = Box.createRigidArea(new Dimension(10, 0));
- panel_button.add(rigidArea);
-
- lblNewLabel_1 = new JLabel("");
- lblNewLabel_1.setIcon(new ImageIcon("res/submit.png"));
- panel_button.add(lblNewLabel_1);
- panel_button.add(btnSubmitQuestionnaire);
-
- panel_button.add(Box.createRigidArea(new Dimension(10,0)));
-
- lblNewLabel_2 = new JLabel("");
- lblNewLabel_2.setIcon(new ImageIcon("res/pdf.png"));
- panel_button.add(lblNewLabel_2);
- panel_button.add(btnResetQuestionnaire);
- panel_button.setPreferredSize(new Dimension(211, 35));
- panel_button.validate();
-
- JPanel panel_3 = new JPanel();
- GroupLayout gl_panel = new GroupLayout(panel);
- gl_panel.setHorizontalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(41)
- .addGroup(gl_panel.createParallelGroup(Alignment.TRAILING)
- .addComponent(jScrollPane4, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE)
- .addComponent(panel_1, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE))
- .addGap(32))
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(63)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addGap(103)
- .addComponent(panel_button, GroupLayout.DEFAULT_SIZE, 488, Short.MAX_VALUE)
- .addGap(241))
- );
- gl_panel.setVerticalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel.createSequentialGroup()
- .addGap(22)
- .addComponent(panel_1, GroupLayout.DEFAULT_SIZE, 192, Short.MAX_VALUE)
- .addGap(18)
- .addComponent(jScrollPane4, GroupLayout.DEFAULT_SIZE, 437, Short.MAX_VALUE)
- .addGap(26)
- .addGroup(gl_panel.createParallelGroup(Alignment.LEADING)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(panel_button, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE)))
- );
- panel_3.setLayout(new BoxLayout(panel_3, BoxLayout.X_AXIS));
-
-
- panel.setLayout(gl_panel);
-
-
-
-
-
-
- /////////////////////////////////////////////////////////
- // display the tests available
-
- // get the tests
- HashMap<String, ArrayList<TestName>> testsRelevantByGroup = connectorClientDB.getRelevantTestsByGroup();
- ArrayList<String> groups = new ArrayList<String>(testsRelevantByGroup.keySet());
-
- // flatten hashmap into linkedlist
-// tests = new LinkedList<>();
- testsByName = new HashMap<String, TestName>();
- for (String group : groups) {
-// tests.addAll(testsRelevantByGroup.get(group));
- for (TestName test : testsRelevantByGroup.get(group)) {
- testsByName.put(test.getName(), test);
- }
- }
-
- // define tree structure of the tests
- DefaultMutableTreeNode root = new DefaultMutableTreeNode("All");
-
- for (String group : groups) {
- DefaultMutableTreeNode child = new DefaultMutableTreeNode(group);
- root.add(child);
-
- for (TestName test : testsRelevantByGroup.get(group)) {
- DefaultMutableTreeNode grandChild = new DefaultMutableTreeNode(test.getName());
- child.add(grandChild);
- }
- }
-
- // define swing object
- jTree = new JTree(root);
-
- for(int i=0;i<jTree.getRowCount();i++){
- jTree.expandRow(i);
- }
-
- jScrollPane3.setViewportView(jTree);
-// jTree.addTreeSelectionListener(new TreeSelectionListener() {
-//
-// @Override
-// public void valueChanged(TreeSelectionEvent e) {
-// tp = jTree.getSelectionPaths();
-// }
-// });
- jScrollPane3.setViewportView(jTree);
-
- /////////////////////////////////////////////////////////
- // display the patients registered
-
- patients = connectorClientDB.getPatients();
- for (Integer patientId : patients) {
- jComboBox1.addItem(patientId.toString());
- }
-
- } catch (SQLException ex) {
- Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex);
- ex.printStackTrace();
-// } catch (IOException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
-// } catch (DocumentException e) {
-// // TODO Auto-generated catch block
-// e.printStackTrace();
- }
-
- }
-
- /**
- * 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() {
-
- jPanel1 = new javax.swing.JPanel();
- jLabel2 = new javax.swing.JLabel();
- jLabel1 = new javax.swing.JLabel();
- jPanel2 = new javax.swing.JPanel();
- jComboBox1 = new javax.swing.JComboBox<String>();
- jButton1 = new javax.swing.JButton();
- jButton1.setFont(new Font("Tahoma", Font.BOLD, 12));
- jLabel3 = new javax.swing.JLabel();
- jLabel4 = new javax.swing.JLabel();
- jScrollPane3 = new javax.swing.JScrollPane();
- jScrollPane2 = new javax.swing.JScrollPane();
- jMenuBar1 = new javax.swing.JMenuBar();
- jMenu1 = new javax.swing.JMenu();
- jMenuItem1 = new javax.swing.JMenuItem();
- jMenu2 = new javax.swing.JMenu();
- dialog = new JDialog();
- tabbedPane = new JTabbedPane(JTabbedPane.TOP);
-
- setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
- addWindowListener(new WindowAdapter() {
- @Override
- public void windowClosing(java.awt.event.WindowEvent windowEvent) {
- if (!survey_submitted && close_trials <= 2){
- JOptionPane.showMessageDialog(frame, "Before closing the application, please fill in and submit the questionnaire.");
- close_trials++;
- tabbedPane.setSelectedIndex(1);
- }else{
- System.exit(0);
- }
- }
- });
- setTitle("HIV Pharmacogenomics\n");
-
- jLabel2.setIcon(new javax.swing.ImageIcon("res/shcs_logo2_small.gif")); // NOI18N
-
- jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
- jLabel1.setText("HIV Pharmacogenomics | Project #693");
-
- javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
- jPanel1.setLayout(jPanel1Layout);
- jPanel1Layout.setHorizontalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap(71, Short.MAX_VALUE)
- .addComponent(jLabel1)
- .addGap(18, 18, 18)
- .addComponent(jLabel2))
- );
- jPanel1Layout.setVerticalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jLabel1)
- .addGap(11, 11, 11))
- .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)
- );
-
- jPanel2.setBackground(new java.awt.Color(255, 255, 255));
- jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
-
- jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<String>(new String[]{"Select Patient"}));
-
- jButton1.setText("Run Test");
- jButton1.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton1ActionPerformed(evt);
- }
- });
-
- JLabel lblNewLabel = new JLabel("");
- lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
- lblNewLabel.setIcon(new javax.swing.ImageIcon("res/gears.png"));
-
-
-
- javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
- jPanel2Layout.setHorizontalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addComponent(jComboBox1, 0, 248, Short.MAX_VALUE)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addGap(75)
- .addGroup(jPanel2Layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jButton1)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 75, GroupLayout.PREFERRED_SIZE))
- .addContainerGap(98, Short.MAX_VALUE))
- );
- jPanel2Layout.setVerticalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addComponent(jComboBox1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED, 223, Short.MAX_VALUE)
- .addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jButton1)
- .addGap(19))
- );
- jPanel2.setLayout(jPanel2Layout);
-
- jLabel3.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel3.setText("Select Patient");
-
- jLabel4.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel4.setText("Select Test");
-
- jScrollPane3.setBackground(new java.awt.Color(255, 255, 255));
-
- jMenu1.setText("File");
-
- jMenuItem1.setText("Exit");
- jMenu1.add(jMenuItem1);
-
- jMenuBar1.add(jMenu1);
-
- jMenu2.setText("Edit");
- jMenuBar1.add(jMenu2);
-
- setJMenuBar(jMenuBar1);
-
-
-
- javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
- layout.setHorizontalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(layout.createParallelGroup(Alignment.LEADING, false)
- .addComponent(jLabel3)
- .addComponent(jLabel4)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, 244, Short.MAX_VALUE)
- .addComponent(jScrollPane3))
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 970, Short.MAX_VALUE))
- .addContainerGap())
- );
- layout.setVerticalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel4))
- .addPreferredGap(ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addComponent(jScrollPane3, GroupLayout.PREFERRED_SIZE, 388, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jLabel3)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 785, Short.MAX_VALUE))
- .addContainerGap())
- );
-
-
- jScrollPane2.setAutoscrolls(true);
- jScrollPane3.setAutoscrolls(true);
- tabbedPane.addTab("Report", new ImageIcon("res/report_icon.gif"), jScrollPane2, null);
- tabbedPane.setBackgroundAt(0, new Color(255, 255, 255));
-
- panel = new JPanel();
- tabbedPane.addTab("Survey", new ImageIcon("res/survey_icon.png"), panel, null);
- tabbedPane.setBackgroundAt(1, new Color(255, 255, 255));
- tabbedPane.setEnabledAt(1, true);
-
- panel_1 = new JPanel();
- panel_1.setBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null));
- panel_1.setBackground(UIManager.getColor("Button.background"));
-
- JLabel label = new JLabel("");
- label.setIcon(new ImageIcon("res/shcs_logo2_medium.gif"));
-
- lblDearDoctor = new JLabel("Dear Doctor,");
- lblDearDoctor.setFont(new Font("Tahoma", Font.BOLD, 14));
-
- JScrollPane scrollPane = new JScrollPane();
- scrollPane.setBorder(null);
- GroupLayout gl_panel_1 = new GroupLayout(panel_1);
- gl_panel_1.setHorizontalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(25)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 666, Short.MAX_VALUE)
- .addComponent(lblDearDoctor))
- .addContainerGap())
- );
- gl_panel_1.setVerticalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(22)
- .addComponent(lblDearDoctor)
- .addGap(18)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 120, Short.MAX_VALUE)
- .addContainerGap())
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(36)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 96, GroupLayout.PREFERRED_SIZE)
- .addContainerGap(56, Short.MAX_VALUE))
- );
-
- JTextPane txtpnTodayYouAre = new JTextPane();
- txtpnTodayYouAre.setBorder(null);
- txtpnTodayYouAre.setText("Today you are receiving a pharmacogenetics report based on the genome of your patient. Because of its highly sensitive nature, the genetic information you are provided with is processed in a privacy-preserving way. In particular, to protect patients’ genomic privacy, their genetic and clinical data is stored encrypted at the SHCS data center, and securely analyzed through a sophisticated algorithm designed and developed at EPFL [1, 2]. The actual clinical and genetic information is never revealed. Only the authorized users, such as you, can get some processed information, for example, the final result of a pharmacogenetics risk test.\nThis mechanism protects the data against insiders or hackers trying to illegally access patients’ medical information, while still allowing authorized users to obtain the information they need.");
- txtpnTodayYouAre.setFont(new Font("Tahoma", Font.PLAIN, 13));
- txtpnTodayYouAre.setEditable(false);
- txtpnTodayYouAre.setBackground(SystemColor.menu);
- scrollPane.setViewportView(txtpnTodayYouAre);
- panel_1.setLayout(gl_panel_1);
- jScrollPane4 = new javax.swing.JScrollPane();
- getContentPane().setLayout(layout);
-
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
- ReplySurvey replySurvey = commHandlerAdapter.callServiceSurvey();
-
- map = replySurvey.getQuestions();
- ids = map.keySet();
- locations = replySurvey.getLocations();
-
- panel_2 = new JPanel();
- panel_2.setBackground(Color.WHITE);
- panel_2.setBorder(new BevelBorder(BevelBorder.LOWERED, null, null, null, null));
- jScrollPane4.setViewportView(panel_2);
- panel_2.setLayout(new BoxLayout(panel_2, BoxLayout.Y_AXIS));
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
-
-
- for(Integer id : ids){
- ButtonGroup group = new ButtonGroup();
- JRadioButton r1 = new JRadioButton("1"); r1.setActionCommand("1"); r1.setBackground(Color.WHITE);
- JRadioButton r2 = new JRadioButton("2"); r2.setActionCommand("2"); r2.setBackground(Color.WHITE);
- JRadioButton r3 = new JRadioButton("3"); r3.setActionCommand("3"); r3.setBackground(Color.WHITE);
- JRadioButton r4 = new JRadioButton("4"); r4.setActionCommand("4"); r4.setBackground(Color.WHITE);
- JRadioButton r5 = new JRadioButton("5"); r5.setActionCommand("5"); r5.setBackground(Color.WHITE);
- group.add(r1);
- group.add(r2);
- group.add(r3);
- group.add(r4);
- group.add(r5);
- JPanel radio_panel = new JPanel();
- radio_panel.setLayout((new BoxLayout(radio_panel, BoxLayout.X_AXIS)));
- radio_panel.setBackground(Color.WHITE);
- radio_panel.setAlignmentX(Component.CENTER_ALIGNMENT);
- radio_panel.add(r1);
- radio_panel.add(r2);
- radio_panel.add(r3);
- radio_panel.add(r4);
- radio_panel.add(r5);
- radio_panel.doLayout();
- radio_panel.setPreferredSize(radio_panel.getPreferredSize());
- JTextArea question = new JTextArea(id + ") " + map.get(id).getQuestion());
- question.setLineWrap(true);
- question.setWrapStyleWord(true);
- question.setAlignmentX(Component.CENTER_ALIGNMENT);
- question.setFont(new Font("Tahoma", Font.PLAIN, 13));
- JPanel row_panel = new JPanel();
- row_panel.setLayout(new BoxLayout(row_panel, BoxLayout.X_AXIS));
- row_panel.add(question);
- row_panel.add(Box.createRigidArea(new Dimension(20,0)));
- row_panel.add(radio_panel);
-
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
- panel_2.add(row_panel);
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
-// panel_2.add(radio_panel);
- panel_2.add(new JSeparator());
- panel_2.add(Box.createRigidArea(new Dimension(0,5)));
-// panel_2.setPreferredSize(panel_2.getPreferredSize());
- buttonGroupMap.put(id, group);
-
- }
-
-
-
- this.setSize(new Dimension(1200, 865));
-// pack();
- }// </editor-fold>//GEN-END:initComponents
-
-
- private void submitButtonActionPerformed(java.awt.event.ActionEvent evt){
-
- try{
- answers = new HashMap<String, String>();
- StringBuilder sb = new StringBuilder();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- sb.append(q).append(",");
- sb.append(bg.getSelection().getActionCommand()).append(";");
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- String answer = sb.toString();
- Integer id_loc = null;
- for(Integer i: locations.keySet()){
- if(locations.get(i).equals(comboBox.getSelectedItem().toString()))
- id_loc = i;
- }
-
- String id_p;
- if(jComboBox1.getSelectedItem().toString().equals("Select Patient"))
- id_p = "0";
- else
- id_p = jComboBox1.getSelectedItem().toString();
-
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
-
- String reply = commHandlerAdapter.callServiceSurveyAnswer(answer, id_loc.toString(), id_p);
-
- if(reply.equals("1")){
- survey_submitted = true;
-
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Congrats! Your aswers have been sent to the SHCS datacenter.",
- "Information Message",
- JOptionPane.INFORMATION_MESSAGE);
- }
- else{
- throw new IOException();
- }
-
-
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "The SHCS datacenter does not respond. Please save the survey and send it to jean.raisaro@epfl.ch.",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
- private void savePDFButtonActionPerformed(java.awt.event.ActionEvent evt){
- try {
-
- answers = new HashMap<String, String>();
- Set<Integer> questions_id = buttonGroupMap.keySet();
- for(Integer q: questions_id){
- ButtonGroup bg = buttonGroupMap.get(q);
- answers.put(q.toString(),bg.getSelection().getActionCommand());
- }
-
- JFileChooser chooser = new JFileChooser();
- // Note: source for ExampleFileFilter can be found in FileChooserDemo,
- // under the demo/jfc directory in the JDK.
-
- int returnVal = chooser.showSaveDialog(this);
- System.out.println(returnVal);
- if(returnVal == JFileChooser.APPROVE_OPTION) {
- System.out.println("You chose to open this file: " +
- chooser.getSelectedFile().getPath());
- quest = new Questionnaire(chooser.getSelectedFile().getPath() + ".pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }else{
- quest = new Questionnaire("outputPDF/survey.pdf");
- quest.createPdf(map, ids);
- quest.writeAnswers(answers);
- survey_submitted = true;
- }
-
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (DocumentException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (NullPointerException e) {
- LOGGER.log(Level.SEVERE, null, e);
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- this,
- "Please respond to all the questions!",
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
- }
-
-
- private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
-
- JPanel contentPanel = new JPanel();
-
- dialog.setBounds(100, 100, 410, 80);
- dialog.getContentPane().setLayout(new BorderLayout());
- contentPanel.setLayout(new FlowLayout());
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- dialog.getContentPane().add(contentPanel, BorderLayout.CENTER);
- {
- JLabel label = new JLabel("Please wait...The overall computation can take few seconds");
- label.setHorizontalAlignment(SwingConstants.CENTER);
- label.setFont(new Font("Tahoma", Font.PLAIN, 12));
- contentPanel.add(label);
- }
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
- dialog.getContentPane().add(buttonPane, BorderLayout.SOUTH);
- }
- dialog.setLocationRelativeTo(this);
- dialog.setVisible(true);
-
- GUIWorker gw = new GUIWorker(this, props);
- Thread t = new Thread(gw);
- t.start();
-
- }
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JButton jButton1;
- private javax.swing.JComboBox<String> jComboBox1;
- private javax.swing.JLabel jLabel1;
- private javax.swing.JLabel jLabel2;
- private javax.swing.JLabel jLabel3;
- private javax.swing.JLabel jLabel4;
- private javax.swing.JMenu jMenu1;
- private javax.swing.JMenu jMenu2;
- private javax.swing.JMenuBar jMenuBar1;
- private javax.swing.JMenuItem jMenuItem1;
- private javax.swing.JPanel jPanel1;
- private javax.swing.JPanel jPanel2;
- private javax.swing.JScrollPane jScrollPane3;
- private javax.swing.JTabbedPane tabbedPane;
- private javax.swing.JScrollPane jScrollPane2;
- private javax.swing.JScrollPane jScrollPane4;
- private JPanel panel;
- private JPanel panel_1;
- private JPanel panel_2;
- private JLabel lblDearDoctor;
- private JLabel lblNewLabel_1;
- private JLabel lblNewLabel_2;
- private JLabel lblNewLabel_3;
- private JComboBox<String> comboBox;
- private Component rigidArea;
-
- // End of variables declaration//GEN-END:variables
-
-
- class GUIWorker implements Runnable{
-
- private JFrame mainFrame;
- private ClientProperties props;
- private MedUnit mu;
-
- public GUIWorker(GUI gui, ClientProperties props) {
- mainFrame = gui;
-
- this.props = props;
- this.mu = new MedUnit(props, 0);
- }
-
- @Override
- public void run() {
-
- try{
- int patientId = Integer.parseInt((String) jComboBox1.getSelectedItem());
-
- // convert selected tests to test identifiers
- ArrayList<TestName> selectedTests = new ArrayList<TestName>();
- for (String currentName : getSelectedTests()) {
- TestName currentTest = testsByName.get(currentName);
-
- if (currentTest == null) {
- throw new IllegalStateException("Trying to run unknown test: " + currentTest);
- }
-
- selectedTests.add(currentTest);
- }
-
- // run tests
- Diagnostic diagnostic = mu.runTests(patientId, selectedTests);
-
- // warn for tests with missing material
- warnFailedTests(diagnostic, selectedTests);
-
- // create report
- mu.createReport(patientId, selectedTests, diagnostic);
-
- dialog.setVisible(false);
-
- // specify file you wish to open (JPedal handles getting the byte data)
- String filepathReport = props.getPathPDF() + patientId + ".pdf";
-
- // open generated PDF
- // object must be either String in full filepath, or
- // File object which can be relative
- Object[] input = new Object[]{ new File(filepathReport) };
- viewer.executeCommand(Commands.OPENFILE, input);
-
- // display CAD result as bar plot
- if (diagnostic.hasCAD()) {
- System.out.println("CAD = " + diagnostic.getResultCAD());
- BarPlotFrame frame = new BarPlotFrame(diagnostic.getResultCAD(), patientId);
- frame.setVisible(true);
- frame.setAlwaysOnTop(true);
- }
-
-
- } catch (SQLException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Please select a patient.");
- }
-
- }
-
- private void warnFailedTests(Diagnostic diagnostic, ArrayList<TestName> selectedTests) {
- ArrayList<Integer> failedTests = diagnostic.getInvalidTests();
-
- if (!failedTests.isEmpty()) {
- String msg = "Could not complete tests: ";
- boolean first = true;
- for (TestName testName : selectedTests) {
- if (failedTests.contains(testName.getId())) {
- if (first) {
- first = false;
- } else {
- msg += ", ";
- }
- msg += testName.getName();
- }
- }
- displayError(msg);
- }
-
- }
-
- private void displayError(String msg) {
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- mainFrame,
- msg,
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
-
- private ArrayList<String> getSelectedTests() {
- ArrayList<String> tests = new ArrayList<String>();
-
- for (TreePath treePath : jTree.getSelectionPaths()) {
- tests.addAll(getChildrenTests(jTree.getModel(), treePath.getLastPathComponent()));
- }
-
- return tests;
- }
-
- private ArrayList<String> getChildrenTests(TreeModel model, Object node) {
- ArrayList<String> tests = new ArrayList<String>();
-
- if (model.isLeaf(node)) { // leaf
- DefaultMutableTreeNode leaf = (DefaultMutableTreeNode) node;
- tests.add(leaf.toString());
- }
- else { // iterate over children
- for (int i = 0; i < model.getChildCount(node); i++) {
- tests.addAll(getChildrenTests(model, model.getChild(node, i)));
- }
- }
-
- return tests;
- }
-
- }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/ff/40964435a4a7001417ceadf0100b5ef7 b/.metadata/.plugins/org.eclipse.core.resources/.history/ff/40964435a4a7001417ceadf0100b5ef7
deleted file mode 100644
index e69de29..0000000
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.projects/PPPCertifiedInstitution/.markers b/.metadata/.plugins/org.eclipse.core.resources/.projects/PPPCertifiedInstitution/.markers
index 858fae8..6bdde2e 100644
Binary files a/.metadata/.plugins/org.eclipse.core.resources/.projects/PPPCertifiedInstitution/.markers and b/.metadata/.plugins/org.eclipse.core.resources/.projects/PPPCertifiedInstitution/.markers differ
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.projects/PPPCertifiedInstitution/.markers.snap b/.metadata/.plugins/org.eclipse.core.resources/.projects/PPPCertifiedInstitution/.markers.snap
deleted file mode 100644
index 94775e8..0000000
Binary files a/.metadata/.plugins/org.eclipse.core.resources/.projects/PPPCertifiedInstitution/.markers.snap and /dev/null differ
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.projects/PPPCertifiedInstitution/.syncinfo.snap b/.metadata/.plugins/org.eclipse.core.resources/.projects/PPPCertifiedInstitution/.syncinfo.snap
deleted file mode 100644
index 91d6c54..0000000
Binary files a/.metadata/.plugins/org.eclipse.core.resources/.projects/PPPCertifiedInstitution/.syncinfo.snap and /dev/null differ
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.projects/PPPCertifiedInstitution/org.eclipse.jdt.core/state.dat b/.metadata/.plugins/org.eclipse.core.resources/.projects/PPPCertifiedInstitution/org.eclipse.jdt.core/state.dat
new file mode 100644
index 0000000..0da8675
Binary files /dev/null and b/.metadata/.plugins/org.eclipse.core.resources/.projects/PPPCertifiedInstitution/org.eclipse.jdt.core/state.dat differ
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.projects/PPPClient/.indexes/a0/history.index b/.metadata/.plugins/org.eclipse.core.resources/.projects/PPPClient/.indexes/a0/history.index
deleted file mode 100644
index 7105d59..0000000
Binary files a/.metadata/.plugins/org.eclipse.core.resources/.projects/PPPClient/.indexes/a0/history.index and /dev/null differ
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.projects/PPPClient/.indexes/e4/26/history.index b/.metadata/.plugins/org.eclipse.core.resources/.projects/PPPClient/.indexes/e4/26/history.index
deleted file mode 100644
index 7b9267e..0000000
Binary files a/.metadata/.plugins/org.eclipse.core.resources/.projects/PPPClient/.indexes/e4/26/history.index and /dev/null differ
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.projects/PPPClient/.indexes/e4/94/history.index b/.metadata/.plugins/org.eclipse.core.resources/.projects/PPPClient/.indexes/e4/94/history.index
index 2e49c1d..30385ff 100644
Binary files a/.metadata/.plugins/org.eclipse.core.resources/.projects/PPPClient/.indexes/e4/94/history.index and b/.metadata/.plugins/org.eclipse.core.resources/.projects/PPPClient/.indexes/e4/94/history.index differ
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.projects/PPPClient/.indexes/e4/94/properties.index b/.metadata/.plugins/org.eclipse.core.resources/.projects/PPPClient/.indexes/e4/94/properties.index
index 0be1445..c8bd735 100644
Binary files a/.metadata/.plugins/org.eclipse.core.resources/.projects/PPPClient/.indexes/e4/94/properties.index and b/.metadata/.plugins/org.eclipse.core.resources/.projects/PPPClient/.indexes/e4/94/properties.index differ
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.projects/PPPClient/.indexes/e4/b1/history.index b/.metadata/.plugins/org.eclipse.core.resources/.projects/PPPClient/.indexes/e4/b1/history.index
deleted file mode 100644
index f90ecb3..0000000
Binary files a/.metadata/.plugins/org.eclipse.core.resources/.projects/PPPClient/.indexes/e4/b1/history.index and /dev/null differ
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.projects/PPPClient/.indexes/e4/e0/history.index b/.metadata/.plugins/org.eclipse.core.resources/.projects/PPPClient/.indexes/e4/e0/history.index
deleted file mode 100644
index 1268ee5..0000000
Binary files a/.metadata/.plugins/org.eclipse.core.resources/.projects/PPPClient/.indexes/e4/e0/history.index and /dev/null differ
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.projects/PPPClient/.indexes/e4/history.index b/.metadata/.plugins/org.eclipse.core.resources/.projects/PPPClient/.indexes/e4/history.index
deleted file mode 100644
index 2471fa2..0000000
Binary files a/.metadata/.plugins/org.eclipse.core.resources/.projects/PPPClient/.indexes/e4/history.index and /dev/null differ
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.projects/PPPClient/.markers b/.metadata/.plugins/org.eclipse.core.resources/.projects/PPPClient/.markers
index 33be169..81474d0 100644
Binary files a/.metadata/.plugins/org.eclipse.core.resources/.projects/PPPClient/.markers and b/.metadata/.plugins/org.eclipse.core.resources/.projects/PPPClient/.markers differ
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.projects/PPPClient/.markers.snap b/.metadata/.plugins/org.eclipse.core.resources/.projects/PPPClient/.markers.snap
deleted file mode 100644
index 1bb37f9..0000000
Binary files a/.metadata/.plugins/org.eclipse.core.resources/.projects/PPPClient/.markers.snap and /dev/null differ
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.projects/PPPClient/.syncinfo.snap b/.metadata/.plugins/org.eclipse.core.resources/.projects/PPPClient/.syncinfo.snap
deleted file mode 100644
index 91d6c54..0000000
Binary files a/.metadata/.plugins/org.eclipse.core.resources/.projects/PPPClient/.syncinfo.snap and /dev/null differ
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.projects/PPPClient/org.eclipse.jdt.core/state.dat b/.metadata/.plugins/org.eclipse.core.resources/.projects/PPPClient/org.eclipse.jdt.core/state.dat
new file mode 100644
index 0000000..97ac51b
Binary files /dev/null and b/.metadata/.plugins/org.eclipse.core.resources/.projects/PPPClient/org.eclipse.jdt.core/state.dat differ
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.projects/PPPCommons/.indexes/e4/26/6e/17/history.index b/.metadata/.plugins/org.eclipse.core.resources/.projects/PPPCommons/.indexes/e4/26/6e/17/history.index
deleted file mode 100644
index 4e4033d..0000000
Binary files a/.metadata/.plugins/org.eclipse.core.resources/.projects/PPPCommons/.indexes/e4/26/6e/17/history.index and /dev/null differ
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.projects/PPPCommons/.markers b/.metadata/.plugins/org.eclipse.core.resources/.projects/PPPCommons/.markers
index 7131e80..68facfb 100644
Binary files a/.metadata/.plugins/org.eclipse.core.resources/.projects/PPPCommons/.markers and b/.metadata/.plugins/org.eclipse.core.resources/.projects/PPPCommons/.markers differ
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.projects/PPPCommons/.markers.snap b/.metadata/.plugins/org.eclipse.core.resources/.projects/PPPCommons/.markers.snap
deleted file mode 100644
index 91d6c54..0000000
Binary files a/.metadata/.plugins/org.eclipse.core.resources/.projects/PPPCommons/.markers.snap and /dev/null differ
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.projects/PPPCommons/.syncinfo.snap b/.metadata/.plugins/org.eclipse.core.resources/.projects/PPPCommons/.syncinfo.snap
deleted file mode 100644
index 91d6c54..0000000
Binary files a/.metadata/.plugins/org.eclipse.core.resources/.projects/PPPCommons/.syncinfo.snap and /dev/null differ
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.projects/PPPCommons/org.eclipse.jdt.core/state.dat b/.metadata/.plugins/org.eclipse.core.resources/.projects/PPPCommons/org.eclipse.jdt.core/state.dat
index c7d98f3..68aa073 100644
Binary files a/.metadata/.plugins/org.eclipse.core.resources/.projects/PPPCommons/org.eclipse.jdt.core/state.dat and b/.metadata/.plugins/org.eclipse.core.resources/.projects/PPPCommons/org.eclipse.jdt.core/state.dat differ
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.projects/PPPServer/.markers.snap b/.metadata/.plugins/org.eclipse.core.resources/.projects/PPPServer/.markers.snap
deleted file mode 100644
index 91d6c54..0000000
Binary files a/.metadata/.plugins/org.eclipse.core.resources/.projects/PPPServer/.markers.snap and /dev/null differ
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.projects/PPPServer/.syncinfo.snap b/.metadata/.plugins/org.eclipse.core.resources/.projects/PPPServer/.syncinfo.snap
deleted file mode 100644
index 91d6c54..0000000
Binary files a/.metadata/.plugins/org.eclipse.core.resources/.projects/PPPServer/.syncinfo.snap and /dev/null differ
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.projects/PPPServer/org.eclipse.jdt.core/state.dat b/.metadata/.plugins/org.eclipse.core.resources/.projects/PPPServer/org.eclipse.jdt.core/state.dat
new file mode 100644
index 0000000..95550a2
Binary files /dev/null and b/.metadata/.plugins/org.eclipse.core.resources/.projects/PPPServer/org.eclipse.jdt.core/state.dat differ
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.root/.markers.snap b/.metadata/.plugins/org.eclipse.core.resources/.root/.markers.snap
deleted file mode 100644
index bdb00bf..0000000
Binary files a/.metadata/.plugins/org.eclipse.core.resources/.root/.markers.snap and /dev/null differ
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.root/45.tree b/.metadata/.plugins/org.eclipse.core.resources/.root/45.tree
deleted file mode 100644
index 12b285b..0000000
Binary files a/.metadata/.plugins/org.eclipse.core.resources/.root/45.tree and /dev/null differ
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.root/70.tree b/.metadata/.plugins/org.eclipse.core.resources/.root/70.tree
new file mode 100644
index 0000000..49f2e9c
Binary files /dev/null and b/.metadata/.plugins/org.eclipse.core.resources/.root/70.tree differ
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.safetable/org.eclipse.core.resources b/.metadata/.plugins/org.eclipse.core.resources/.safetable/org.eclipse.core.resources
index 1f81362..54b1fd3 100644
Binary files a/.metadata/.plugins/org.eclipse.core.resources/.safetable/org.eclipse.core.resources and b/.metadata/.plugins/org.eclipse.core.resources/.safetable/org.eclipse.core.resources differ
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.snap b/.metadata/.plugins/org.eclipse.core.resources/.snap
deleted file mode 100644
index 2e358e9..0000000
Binary files a/.metadata/.plugins/org.eclipse.core.resources/.snap and /dev/null differ
diff --git a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.wb.core.prefs b/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.wb.core.prefs
index 79dd918..58ff494 100644
--- a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.wb.core.prefs
+++ b/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.wb.core.prefs
@@ -1,3 +1,3 @@
design.palette.flyout.width=150
-design.structure.flyout.width=339
+design.structure.flyout.width=304
eclipse.preferences.version=1
diff --git a/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi b/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi
index d2650db..fa201be 100644
--- a/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi
+++ b/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi
@@ -1,2301 +1,2248 @@
<?xml version="1.0" encoding="ASCII"?>
<application:Application xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:advanced="http://www.eclipse.org/ui/2010/UIModel/application/ui/advanced" xmlns:application="http://www.eclipse.org/ui/2010/UIModel/application" xmlns:basic="http://www.eclipse.org/ui/2010/UIModel/application/ui/basic" xmlns:menu="http://www.eclipse.org/ui/2010/UIModel/application/ui/menu" xmi:id="_0LpfYUSyEeSN3ZLFRXim_g" elementId="org.eclipse.e4.legacy.ide.application" contributorURI="platform:/plugin/org.eclipse.platform" selectedElement="_0LpfYkSyEeSN3ZLFRXim_g" bindingContexts="_0Lpfa0SyEeSN3ZLFRXim_g">
<tags>activeSchemeId:org.eclipse.ui.defaultAcceleratorConfiguration</tags>
- <children xsi:type="basic:TrimmedWindow" xmi:id="_0LpfYkSyEeSN3ZLFRXim_g" elementId="IDEWindow" contributorURI="platform:/plugin/org.eclipse.platform" selectedElement="_0a9twUSyEeSN3ZLFRXim_g" label="%trimmedwindow.label.eclipseSDK" x="0" y="0" width="1024" height="768">
+ <children xsi:type="basic:TrimmedWindow" xmi:id="_0LpfYkSyEeSN3ZLFRXim_g" elementId="IDEWindow" contributorURI="platform:/plugin/org.eclipse.platform" selectedElement="_0a9twUSyEeSN3ZLFRXim_g" label="%trimmedwindow.label.eclipseSDK" x="0" y="0" width="1024" height="728">
<tags>topLevel</tags>
<tags>shellMaximized</tags>
<children xsi:type="basic:PartSashContainer" xmi:id="_0a9twUSyEeSN3ZLFRXim_g" selectedElement="_0a-U0ESyEeSN3ZLFRXim_g" horizontal="true">
<children xsi:type="advanced:PerspectiveStack" xmi:id="_0a-U0ESyEeSN3ZLFRXim_g" containerData="7500" selectedElement="_0jk3MESyEeSN3ZLFRXim_g">
<children xsi:type="advanced:Perspective" xmi:id="_0jk3MESyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.JavaPerspective" selectedElement="_0jk3MUSyEeSN3ZLFRXim_g" label="Java" iconURI="platform:/plugin/org.eclipse.jdt.ui/icons/full/eview16/jperspective.gif">
<persistedState key="persp.hiddenItems" value="persp.hideToolbarSC:org.eclipse.debug.ui.commands.RunToLine,persp.hideToolbarSC:org.eclipse.jdt.ui.actions.OpenProjectWizard,persp.hideToolbarSC:org.eclipse.ui.edit.text.toggleShowSelectedElementOnly,"/>
<tags>persp.actionSet:org.eclipse.ui.cheatsheets.actionSet</tags>
<tags>persp.actionSet:org.eclipse.search.searchActionSet</tags>
<tags>persp.actionSet:org.eclipse.ui.edit.text.actionSet.annotationNavigation</tags>
<tags>persp.actionSet:org.eclipse.ui.edit.text.actionSet.navigation</tags>
<tags>persp.actionSet:org.eclipse.ui.edit.text.actionSet.convertLineDelimitersTo</tags>
<tags>persp.actionSet:org.eclipse.ui.externaltools.ExternalToolsSet</tags>
<tags>persp.actionSet:org.eclipse.ui.actionSet.keyBindings</tags>
<tags>persp.actionSet:org.eclipse.ui.actionSet.openFiles</tags>
<tags>persp.actionSet:org.eclipse.debug.ui.launchActionSet</tags>
<tags>persp.actionSet:org.eclipse.jdt.ui.JavaActionSet</tags>
<tags>persp.actionSet:org.eclipse.jdt.ui.JavaElementCreationActionSet</tags>
<tags>persp.actionSet:org.eclipse.ui.NavigateActionSet</tags>
<tags>persp.viewSC:org.eclipse.jdt.ui.PackageExplorer</tags>
<tags>persp.viewSC:org.eclipse.jdt.ui.TypeHierarchy</tags>
<tags>persp.viewSC:org.eclipse.jdt.ui.SourceView</tags>
<tags>persp.viewSC:org.eclipse.jdt.ui.JavadocView</tags>
<tags>persp.viewSC:org.eclipse.search.ui.views.SearchView</tags>
<tags>persp.viewSC:org.eclipse.ui.console.ConsoleView</tags>
<tags>persp.viewSC:org.eclipse.ui.views.ContentOutline</tags>
<tags>persp.viewSC:org.eclipse.ui.views.ProblemView</tags>
<tags>persp.viewSC:org.eclipse.ui.views.ResourceNavigator</tags>
<tags>persp.viewSC:org.eclipse.ui.views.TaskList</tags>
<tags>persp.viewSC:org.eclipse.ui.views.ProgressView</tags>
<tags>persp.viewSC:org.eclipse.ui.navigator.ProjectExplorer</tags>
<tags>persp.viewSC:org.eclipse.ui.texteditor.TemplatesView</tags>
<tags>persp.viewSC:org.eclipse.pde.runtime.LogView</tags>
<tags>persp.newWizSC:org.eclipse.jdt.ui.wizards.JavaProjectWizard</tags>
<tags>persp.newWizSC:org.eclipse.jdt.ui.wizards.NewPackageCreationWizard</tags>
<tags>persp.newWizSC:org.eclipse.jdt.ui.wizards.NewClassCreationWizard</tags>
<tags>persp.newWizSC:org.eclipse.jdt.ui.wizards.NewInterfaceCreationWizard</tags>
<tags>persp.newWizSC:org.eclipse.jdt.ui.wizards.NewEnumCreationWizard</tags>
<tags>persp.newWizSC:org.eclipse.jdt.ui.wizards.NewAnnotationCreationWizard</tags>
<tags>persp.newWizSC:org.eclipse.jdt.ui.wizards.NewSourceFolderCreationWizard</tags>
<tags>persp.newWizSC:org.eclipse.jdt.ui.wizards.NewSnippetFileCreationWizard</tags>
<tags>persp.newWizSC:org.eclipse.jdt.ui.wizards.NewJavaWorkingSetWizard</tags>
<tags>persp.newWizSC:org.eclipse.ui.wizards.new.folder</tags>
<tags>persp.newWizSC:org.eclipse.ui.wizards.new.file</tags>
<tags>persp.newWizSC:org.eclipse.ui.editors.wizards.UntitledTextFileWizard</tags>
<tags>persp.perspSC:org.eclipse.jdt.ui.JavaBrowsingPerspective</tags>
<tags>persp.perspSC:org.eclipse.debug.ui.DebugPerspective</tags>
<tags>persp.newWizSC:com.android.ide.eclipse.adt.project.NewProjectWizard</tags>
<tags>persp.newWizSC:com.android.ide.eclipse.editors.wizards.NewXmlFileWizard</tags>
<tags>persp.actionSet:adt.actionSet.wizards</tags>
<tags>persp.actionSet:adt.actionSet.avdManager</tags>
<tags>persp.actionSet:adt.actionSet.lint</tags>
<tags>persp.actionSet:adt.actionSet.refactorings</tags>
<tags>persp.perspSC:com.android.ide.eclipse.ddms.Perspective</tags>
<tags>persp.perspSC:com.android.ide.eclipse.hierarchyviewer.PixelPerfectPespective</tags>
<tags>persp.perspSC:com.android.ide.eclipse.hierarchyviewer.TreeViewPerspective</tags>
<tags>persp.showIn:org.eclipse.egit.ui.RepositoriesView</tags>
<tags>persp.actionSet:org.eclipse.debug.ui.breakpointActionSet</tags>
<tags>persp.actionSet:org.eclipse.jdt.debug.ui.JDTDebugActionSet</tags>
<tags>persp.newWizSC:org.eclipse.jdt.junit.wizards.NewTestCaseCreationWizard</tags>
<tags>persp.actionSet:org.eclipse.jdt.junit.JUnitActionSet</tags>
<tags>persp.showIn:org.eclipse.jdt.ui.PackageExplorer</tags>
<tags>persp.showIn:org.eclipse.team.ui.GenericHistoryView</tags>
<tags>persp.showIn:org.eclipse.ui.views.ResourceNavigator</tags>
<tags>persp.showIn:org.eclipse.ui.navigator.ProjectExplorer</tags>
<tags>persp.actionSet:org.eclipse.wb.core.ui.actionset</tags>
<children xsi:type="basic:PartSashContainer" xmi:id="_0jk3MUSyEeSN3ZLFRXim_g" selectedElement="_0jleSESyEeSN3ZLFRXim_g" horizontal="true">
- <children xsi:type="basic:PartSashContainer" xmi:id="_0jk3MkSyEeSN3ZLFRXim_g" containerData="2023" selectedElement="_0jleQESyEeSN3ZLFRXim_g">
- <children xsi:type="basic:PartStack" xmi:id="_0jleQESyEeSN3ZLFRXim_g" elementId="left" containerData="6000" selectedElement="_0jleQUSyEeSN3ZLFRXim_g">
+ <children xsi:type="basic:PartSashContainer" xmi:id="_0jk3MkSyEeSN3ZLFRXim_g" visible="false" containerData="2023" selectedElement="_0jleQESyEeSN3ZLFRXim_g">
+ <children xsi:type="basic:PartStack" xmi:id="_0jleQESyEeSN3ZLFRXim_g" elementId="left" visible="false" containerData="6000" selectedElement="_0jleQUSyEeSN3ZLFRXim_g">
<tags>newtablook</tags>
<tags>org.eclipse.e4.primaryNavigationStack</tags>
+ <tags>Minimized</tags>
<children xsi:type="advanced:Placeholder" xmi:id="_0jleQUSyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.PackageExplorer" ref="_0jTKYESyEeSN3ZLFRXim_g"/>
<children xsi:type="advanced:Placeholder" xmi:id="_0jleQkSyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.TypeHierarchy" toBeRendered="false" ref="_0jW0wESyEeSN3ZLFRXim_g"/>
<children xsi:type="advanced:Placeholder" xmi:id="_0jleQ0SyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.views.ResourceNavigator" ref="_0jW0wUSyEeSN3ZLFRXim_g"/>
<children xsi:type="advanced:Placeholder" xmi:id="_0jleRESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.navigator.ProjectExplorer" toBeRendered="false" ref="_0jW0wkSyEeSN3ZLFRXim_g"/>
<children xsi:type="advanced:Placeholder" xmi:id="_0jleRUSyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.junit.ResultView" toBeRendered="false" ref="_0jkQIESyEeSN3ZLFRXim_g"/>
</children>
<children xsi:type="basic:PartStack" xmi:id="_0jleRkSyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.RepositoriesViewMStack" toBeRendered="false" containerData="4000">
<tags>newtablook</tags>
<children xsi:type="advanced:Placeholder" xmi:id="_0jleR0SyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.RepositoriesView" toBeRendered="false" ref="_0jjpEESyEeSN3ZLFRXim_g"/>
</children>
</children>
- <children xsi:type="basic:PartSashContainer" xmi:id="_0jleSESyEeSN3ZLFRXim_g" containerData="7977" selectedElement="_0jmFUESyEeSN3ZLFRXim_g">
+ <children xsi:type="basic:PartSashContainer" xmi:id="_0jleSESyEeSN3ZLFRXim_g" containerData="7977" selectedElement="_0jleSUSyEeSN3ZLFRXim_g">
<children xsi:type="basic:PartSashContainer" xmi:id="_0jleSUSyEeSN3ZLFRXim_g" containerData="7081" selectedElement="_0jleSkSyEeSN3ZLFRXim_g" horizontal="true">
<children xsi:type="advanced:Placeholder" xmi:id="_0jleSkSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.editorss" containerData="7500" ref="_0jBdkESyEeSN3ZLFRXim_g">
<tags>Maximized</tags>
</children>
<children xsi:type="basic:PartStack" xmi:id="_0jleS0SyEeSN3ZLFRXim_g" elementId="right" visible="false" containerData="2500" selectedElement="_0jleTESyEeSN3ZLFRXim_g">
<tags>newtablook</tags>
<tags>org.eclipse.e4.secondaryNavigationStack</tags>
<tags>Minimized</tags>
<children xsi:type="advanced:Placeholder" xmi:id="_0jleTESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.views.ContentOutline" ref="_0jYp8USyEeSN3ZLFRXim_g"/>
<children xsi:type="advanced:Placeholder" xmi:id="_0jleTUSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.texteditor.TemplatesView" toBeRendered="false" ref="_0jYp8kSyEeSN3ZLFRXim_g"/>
</children>
</children>
<children xsi:type="basic:PartStack" xmi:id="_0jmFUESyEeSN3ZLFRXim_g" elementId="bottom" visible="false" containerData="2919" selectedElement="_0jmFVUSyEeSN3ZLFRXim_g">
<tags>newtablook</tags>
<tags>org.eclipse.e4.secondaryDataStack</tags>
<tags>Minimized</tags>
<children xsi:type="advanced:Placeholder" xmi:id="_0jmFUUSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.views.ProblemView" ref="_0jW0w0SyEeSN3ZLFRXim_g"/>
<children xsi:type="advanced:Placeholder" xmi:id="_0jmFUkSyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.JavadocView" ref="_0jXb0ESyEeSN3ZLFRXim_g"/>
<children xsi:type="advanced:Placeholder" xmi:id="_0jmFU0SyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.SourceView" ref="_0jYC4ESyEeSN3ZLFRXim_g"/>
<children xsi:type="advanced:Placeholder" xmi:id="_0jmFVESyEeSN3ZLFRXim_g" elementId="org.eclipse.search.ui.views.SearchView" ref="_0jYC4USyEeSN3ZLFRXim_g"/>
<children xsi:type="advanced:Placeholder" xmi:id="_0jmFVUSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.console.ConsoleView" ref="_0jYC4kSyEeSN3ZLFRXim_g"/>
<children xsi:type="advanced:Placeholder" xmi:id="_0jmFVkSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.views.BookmarkView" toBeRendered="false" ref="_0jYC40SyEeSN3ZLFRXim_g"/>
<children xsi:type="advanced:Placeholder" xmi:id="_0jmFV0SyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.views.ProgressView" toBeRendered="false" ref="_0jYp8ESyEeSN3ZLFRXim_g"/>
</children>
</children>
</children>
</children>
<children xsi:type="advanced:Perspective" xmi:id="__wzJxGjyEeShLY_bOPaoSA" elementId="org.eclipse.debug.ui.DebugPerspective" selectedElement="__wzJxWjyEeShLY_bOPaoSA" label="Debug" iconURI="platform:/plugin/org.eclipse.debug.ui/icons/full/eview16/debug_persp.gif">
<persistedState key="persp.hiddenItems" value="persp.hideToolbarSC:org.eclipse.debug.ui.commands.RunToLine,persp.hideToolbarSC:org.eclipse.jdt.ui.actions.OpenProjectWizard,persp.hideToolbarSC:org.eclipse.ui.edit.text.toggleShowSelectedElementOnly,"/>
<tags>persp.actionSet:org.eclipse.ui.cheatsheets.actionSet</tags>
<tags>persp.actionSet:org.eclipse.search.searchActionSet</tags>
<tags>persp.actionSet:org.eclipse.ui.edit.text.actionSet.annotationNavigation</tags>
<tags>persp.actionSet:org.eclipse.ui.edit.text.actionSet.navigation</tags>
<tags>persp.actionSet:org.eclipse.ui.edit.text.actionSet.convertLineDelimitersTo</tags>
<tags>persp.actionSet:org.eclipse.ui.externaltools.ExternalToolsSet</tags>
<tags>persp.actionSet:org.eclipse.ui.actionSet.keyBindings</tags>
<tags>persp.actionSet:org.eclipse.ui.actionSet.openFiles</tags>
<tags>persp.actionSet:org.eclipse.debug.ui.launchActionSet</tags>
<tags>persp.actionSet:org.eclipse.debug.ui.debugActionSet</tags>
<tags>persp.viewSC:org.eclipse.debug.ui.DebugView</tags>
<tags>persp.viewSC:org.eclipse.debug.ui.VariableView</tags>
<tags>persp.viewSC:org.eclipse.debug.ui.BreakpointView</tags>
<tags>persp.viewSC:org.eclipse.debug.ui.ExpressionView</tags>
<tags>persp.viewSC:org.eclipse.ui.views.ContentOutline</tags>
<tags>persp.viewSC:org.eclipse.ui.console.ConsoleView</tags>
<tags>persp.viewSC:org.eclipse.ui.views.TaskList</tags>
<tags>persp.viewSC:com.android.ide.eclipse.ddms.views.LogCatView</tags>
<tags>persp.viewSC:com.android.ide.eclipse.ddms.views.DeviceView</tags>
<tags>persp.perspSC:com.android.ide.eclipse.ddms.Perspective</tags>
<tags>persp.viewSC:org.eclipse.cdt.debug.ui.SignalsView</tags>
<tags>persp.viewSC:org.eclipse.debug.ui.RegisterView</tags>
<tags>persp.viewSC:org.eclipse.debug.ui.ModuleView</tags>
<tags>persp.viewSC:org.eclipse.debug.ui.MemoryView</tags>
<tags>persp.viewSC:org.eclipse.ui.views.ProblemView</tags>
<tags>persp.viewSC:org.eclipse.cdt.debug.ui.executablesView</tags>
<tags>persp.actionSet:org.eclipse.cdt.debug.ui.debugActionSet</tags>
<tags>persp.viewSC:org.eclipse.cdt.dsf.gdb.ui.tracecontrol.view</tags>
<tags>persp.viewSC:org.eclipse.cdt.dsf.debug.ui.disassembly.view</tags>
<tags>persp.perspSC:org.eclipse.cdt.ui.CPerspective</tags>
<tags>persp.actionSet:org.eclipse.ui.NavigateActionSet</tags>
<tags>persp.actionSet:org.eclipse.debug.ui.breakpointActionSet</tags>
<tags>persp.viewSC:org.eclipse.pde.runtime.LogView</tags>
<tags>persp.showIn:org.eclipse.egit.ui.RepositoriesView</tags>
<tags>persp.actionSet:org.eclipse.jdt.debug.ui.JDTDebugActionSet</tags>
<tags>persp.viewSC:org.eclipse.jdt.debug.ui.DisplayView</tags>
<tags>persp.perspSC:org.eclipse.jdt.ui.JavaPerspective</tags>
<tags>persp.perspSC:org.eclipse.jdt.ui.JavaBrowsingPerspective</tags>
<tags>persp.actionSet:org.eclipse.jdt.ui.JavaActionSet</tags>
<tags>persp.showIn:org.eclipse.jdt.ui.PackageExplorer</tags>
<tags>persp.perspSC:org.eclipse.wst.xml.ui.perspective</tags>
<tags>persp.actionSet:org.eclipse.wb.core.ui.actionset</tags>
<children xsi:type="basic:PartSashContainer" xmi:id="__wzJxWjyEeShLY_bOPaoSA" selectedElement="__wzJ2mjyEeShLY_bOPaoSA">
<children xsi:type="basic:PartSashContainer" xmi:id="__wzJxmjyEeShLY_bOPaoSA" containerData="7500" selectedElement="__wzJ1GjyEeShLY_bOPaoSA">
<children xsi:type="basic:PartSashContainer" xmi:id="__wzJx2jyEeShLY_bOPaoSA" containerData="3186" selectedElement="__wzJyGjyEeShLY_bOPaoSA" horizontal="true">
<children xsi:type="basic:PartStack" xmi:id="__wzJyGjyEeShLY_bOPaoSA" elementId="org.eclipse.debug.internal.ui.NavigatorFolderView" containerData="5000" selectedElement="__wzJyWjyEeShLY_bOPaoSA">
<tags>newtablook</tags>
<tags>org.eclipse.e4.primaryNavigationStack</tags>
<children xsi:type="advanced:Placeholder" xmi:id="__wzJyWjyEeShLY_bOPaoSA" elementId="org.eclipse.debug.ui.DebugView" ref="__wpYwmjyEeShLY_bOPaoSA"/>
<children xsi:type="advanced:Placeholder" xmi:id="__wzJymjyEeShLY_bOPaoSA" elementId="org.eclipse.ui.views.ResourceNavigator" toBeRendered="false" ref="_0jW0wUSyEeSN3ZLFRXim_g"/>
<children xsi:type="advanced:Placeholder" xmi:id="__wzJy2jyEeShLY_bOPaoSA" elementId="org.eclipse.jdt.ui.PackageExplorer" toBeRendered="false" ref="_0jTKYESyEeSN3ZLFRXim_g"/>
<children xsi:type="advanced:Placeholder" xmi:id="__wzJzGjyEeShLY_bOPaoSA" elementId="org.eclipse.jdt.ui.TypeHierarchy" toBeRendered="false" ref="_0jW0wESyEeSN3ZLFRXim_g"/>
</children>
<children xsi:type="basic:PartStack" xmi:id="__wzJzWjyEeShLY_bOPaoSA" elementId="org.eclipse.debug.internal.ui.ToolsFolderView" containerData="5000" selectedElement="__wzJzmjyEeShLY_bOPaoSA">
<tags>newtablook</tags>
<children xsi:type="advanced:Placeholder" xmi:id="__wzJzmjyEeShLY_bOPaoSA" elementId="org.eclipse.debug.ui.VariableView" ref="__wpYw2jyEeShLY_bOPaoSA"/>
<children xsi:type="advanced:Placeholder" xmi:id="__wzJz2jyEeShLY_bOPaoSA" elementId="org.eclipse.debug.ui.BreakpointView" ref="__wpYxGjyEeShLY_bOPaoSA"/>
<children xsi:type="advanced:Placeholder" xmi:id="__wzJ0GjyEeShLY_bOPaoSA" elementId="org.eclipse.debug.ui.ExpressionView" toBeRendered="false" ref="__wpYxWjyEeShLY_bOPaoSA"/>
<children xsi:type="advanced:Placeholder" xmi:id="__wzJ0WjyEeShLY_bOPaoSA" elementId="org.eclipse.debug.ui.RegisterView" toBeRendered="false" ref="__wpYxmjyEeShLY_bOPaoSA"/>
<children xsi:type="advanced:Placeholder" xmi:id="__wzJ0mjyEeShLY_bOPaoSA" elementId="org.eclipse.cdt.debug.ui.SignalsView" toBeRendered="false" ref="__wpYyGjyEeShLY_bOPaoSA"/>
<children xsi:type="advanced:Placeholder" xmi:id="__wzJ02jyEeShLY_bOPaoSA" elementId="org.eclipse.debug.ui.ModuleView" toBeRendered="false" ref="__wpYyWjyEeShLY_bOPaoSA"/>
</children>
</children>
<children xsi:type="basic:PartSashContainer" xmi:id="__wzJ1GjyEeShLY_bOPaoSA" containerData="6814" selectedElement="__wzJ1WjyEeShLY_bOPaoSA" horizontal="true">
<children xsi:type="advanced:Placeholder" xmi:id="__wzJ1WjyEeShLY_bOPaoSA" elementId="org.eclipse.ui.editorss" containerData="7500" ref="_0jBdkESyEeSN3ZLFRXim_g"/>
<children xsi:type="basic:PartStack" xmi:id="__wzJ1mjyEeShLY_bOPaoSA" elementId="org.eclipse.debug.internal.ui.OutlineFolderView" containerData="2500" selectedElement="__wzJ12jyEeShLY_bOPaoSA">
<tags>newtablook</tags>
<tags>org.eclipse.e4.secondaryNavigationStack</tags>
<children xsi:type="advanced:Placeholder" xmi:id="__wzJ12jyEeShLY_bOPaoSA" elementId="org.eclipse.ui.views.ContentOutline" ref="_0jYp8USyEeSN3ZLFRXim_g"/>
<children xsi:type="advanced:Placeholder" xmi:id="__wzJ2GjyEeShLY_bOPaoSA" elementId="org.eclipse.cdt.dsf.gdb.ui.tracecontrol.view" toBeRendered="false" ref="__wzJwGjyEeShLY_bOPaoSA"/>
<children xsi:type="advanced:Placeholder" xmi:id="__wzJ2WjyEeShLY_bOPaoSA" elementId="org.eclipse.cdt.dsf.debug.ui.disassembly.view" toBeRendered="false" ref="__wzJwWjyEeShLY_bOPaoSA"/>
</children>
</children>
</children>
<children xsi:type="basic:PartSashContainer" xmi:id="__wzJ2mjyEeShLY_bOPaoSA" containerData="2500" selectedElement="__wzJ3WjyEeShLY_bOPaoSA" horizontal="true">
<children xsi:type="basic:PartStack" xmi:id="__wzJ22jyEeShLY_bOPaoSA" elementId="com.android.ide.eclipse.ddms.views.LogCatViewMStack" visible="false" containerData="5000" selectedElement="__wzJ3GjyEeShLY_bOPaoSA">
<tags>newtablook</tags>
<tags>Minimized</tags>
<children xsi:type="advanced:Placeholder" xmi:id="__wzJ3GjyEeShLY_bOPaoSA" elementId="com.android.ide.eclipse.ddms.views.LogCatView" ref="__wpYx2jyEeShLY_bOPaoSA"/>
</children>
<children xsi:type="basic:PartStack" xmi:id="__wzJ3WjyEeShLY_bOPaoSA" elementId="org.eclipse.debug.internal.ui.ConsoleFolderView" containerData="5000" selectedElement="__wzJ3mjyEeShLY_bOPaoSA">
<tags>newtablook</tags>
<tags>org.eclipse.e4.secondaryDataStack</tags>
<children xsi:type="advanced:Placeholder" xmi:id="__wzJ3mjyEeShLY_bOPaoSA" elementId="org.eclipse.ui.console.ConsoleView" ref="_0jYC4kSyEeSN3ZLFRXim_g"/>
<children xsi:type="advanced:Placeholder" xmi:id="__wzJ32jyEeShLY_bOPaoSA" elementId="org.eclipse.ui.views.TaskList" ref="__wpYwGjyEeShLY_bOPaoSA"/>
<children xsi:type="advanced:Placeholder" xmi:id="__wzJ4GjyEeShLY_bOPaoSA" elementId="org.eclipse.ui.views.BookmarkView" toBeRendered="false" ref="_0jYC40SyEeSN3ZLFRXim_g"/>
<children xsi:type="advanced:Placeholder" xmi:id="__wzJ4WjyEeShLY_bOPaoSA" elementId="org.eclipse.ui.views.PropertySheet" toBeRendered="false" ref="__wpYwWjyEeShLY_bOPaoSA"/>
<children xsi:type="advanced:Placeholder" xmi:id="__wzJ4mjyEeShLY_bOPaoSA" elementId="org.eclipse.ui.views.ProblemView" ref="_0jW0w0SyEeSN3ZLFRXim_g"/>
<children xsi:type="advanced:Placeholder" xmi:id="__wzJ42jyEeShLY_bOPaoSA" elementId="org.eclipse.cdt.debug.ui.executablesView" ref="__wpYymjyEeShLY_bOPaoSA"/>
<children xsi:type="advanced:Placeholder" xmi:id="__wzJ5GjyEeShLY_bOPaoSA" elementId="org.eclipse.jdt.debug.ui.DisplayView" toBeRendered="false" ref="__wzJwmjyEeShLY_bOPaoSA"/>
<children xsi:type="advanced:Placeholder" xmi:id="__wzJ5WjyEeShLY_bOPaoSA" elementId="org.eclipse.search.SearchResultView" toBeRendered="false" ref="__wzJw2jyEeShLY_bOPaoSA"/>
</children>
</children>
</children>
</children>
</children>
<children xsi:type="basic:PartStack" xmi:id="_0a-U0USyEeSN3ZLFRXim_g" elementId="stickyFolderRight" toBeRendered="false" containerData="2500">
<children xsi:type="advanced:Placeholder" xmi:id="_0a-U0kSyEeSN3ZLFRXim_g" elementId="org.eclipse.help.ui.HelpView" toBeRendered="false" ref="_0a74kESyEeSN3ZLFRXim_g"/>
<children xsi:type="advanced:Placeholder" xmi:id="_0a-U00SyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.internal.introview" toBeRendered="false" ref="_0a9GsESyEeSN3ZLFRXim_g"/>
<children xsi:type="advanced:Placeholder" xmi:id="_0a-U1ESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.cheatsheets.views.CheatSheetView" toBeRendered="false" ref="_0a9twESyEeSN3ZLFRXim_g"/>
</children>
</children>
<sharedElements xsi:type="basic:Part" xmi:id="_0a74kESyEeSN3ZLFRXim_g" elementId="org.eclipse.help.ui.HelpView" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView" label="Help" iconURI="platform:/plugin/org.eclipse.help.ui/icons/view16/help_view.gif" closeable="true">
<tags>View</tags>
<tags>categoryTag:Help</tags>
</sharedElements>
<sharedElements xsi:type="basic:Part" xmi:id="_0a9GsESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.internal.introview" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView" label="Welcome" iconURI="platform:/plugin/org.eclipse.ui/icons/full/eview16/defaultview_misc.gif" closeable="true">
<tags>View</tags>
<tags>categoryTag:General</tags>
</sharedElements>
<sharedElements xsi:type="basic:Part" xmi:id="_0a9twESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.cheatsheets.views.CheatSheetView" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView" label="Cheat Sheets" iconURI="platform:/plugin/org.eclipse.ui.cheatsheets/icons/view16/cheatsheet_view.gif" closeable="true">
<tags>View</tags>
<tags>categoryTag:Help</tags>
</sharedElements>
<sharedElements xsi:type="advanced:Area" xmi:id="_0jBdkESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.editorss" selectedElement="_0jCEoESyEeSN3ZLFRXim_g">
- <children xsi:type="basic:PartStack" xmi:id="_0jCEoESyEeSN3ZLFRXim_g" elementId="org.eclipse.e4.primaryDataStack" selectedElement="_wRZFgKb4EeS7zOLZ133OcQ">
+ <children xsi:type="basic:PartStack" xmi:id="_0jCEoESyEeSN3ZLFRXim_g" elementId="org.eclipse.e4.primaryDataStack" selectedElement="_I8qycLB7EeSrgJnondPT0g">
<tags>newtablook</tags>
<tags>org.eclipse.e4.primaryDataStack</tags>
<tags>EditorStack</tags>
- <children xsi:type="basic:Part" xmi:id="_kAjPsKbcEeS7zOLZ133OcQ" elementId="org.eclipse.e4.ui.compatibility.editor" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor" label="GUI.java" iconURI="platform:/plugin/org.eclipse.wb.core.ui/icons/gui_editor.gif" tooltip="PPPClient/src/ui/GUI.java" closeable="true">
- <persistedState key="memento" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?>&#xD;&#xA;&lt;editor id=&quot;org.eclipse.wb.core.guiEditor&quot;>&#xD;&#xA;&lt;input factoryID=&quot;org.eclipse.ui.part.FileEditorInputFactory&quot; path=&quot;/PPPClient/src/ui/GUI.java&quot;/>&#xD;&#xA;&lt;editorState selectionHorizontalPixel=&quot;0&quot; selectionLength=&quot;0&quot; selectionOffset=&quot;27732&quot; selectionTopPixel=&quot;8355&quot;/>&#xD;&#xA;&lt;/editor>"/>
+ <children xsi:type="basic:Part" xmi:id="_vS-Q4LB5EeSrgJnondPT0g" elementId="org.eclipse.e4.ui.compatibility.editor" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor" label="GUI.java" iconURI="platform:/plugin/org.eclipse.wb.core.ui/icons/gui_editor.gif" tooltip="PPPClient/src/ui/GUI.java" closeable="true">
+ <persistedState key="memento" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?>&#xD;&#xA;&lt;editor id=&quot;org.eclipse.wb.core.guiEditor&quot;>&#xD;&#xA;&lt;input factoryID=&quot;org.eclipse.ui.part.FileEditorInputFactory&quot; path=&quot;/PPPClient/src/ui/GUI.java&quot;/>&#xD;&#xA;&lt;editorState selectionHorizontalPixel=&quot;0&quot; selectionLength=&quot;0&quot; selectionOffset=&quot;24089&quot; selectionTopPixel=&quot;7777&quot;/>&#xD;&#xA;&lt;/editor>"/>
<tags>Editor</tags>
<tags>org.eclipse.wb.core.guiEditor</tags>
<tags>removeOnHide</tags>
</children>
- <children xsi:type="basic:Part" xmi:id="_373uoKbcEeS7zOLZ133OcQ" elementId="org.eclipse.e4.ui.compatibility.editor" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor" label="Writer.java" iconURI="platform:/plugin/org.eclipse.jdt.ui/icons/full/obj16/jcu_obj.gif" tooltip="PPPClient/src/io/Writer.java" closeable="true">
- <persistedState key="memento" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?>&#xD;&#xA;&lt;editor id=&quot;org.eclipse.jdt.ui.CompilationUnitEditor&quot;>&#xD;&#xA;&lt;input factoryID=&quot;org.eclipse.ui.part.FileEditorInputFactory&quot; path=&quot;/PPPClient/src/io/Writer.java&quot;/>&#xD;&#xA;&lt;editorState selectionHorizontalPixel=&quot;0&quot; selectionLength=&quot;7&quot; selectionOffset=&quot;12623&quot; selectionTopPixel=&quot;4355&quot;/>&#xD;&#xA;&lt;/editor>"/>
- <tags>Editor</tags>
- <tags>org.eclipse.jdt.ui.CompilationUnitEditor</tags>
- <tags>removeOnHide</tags>
- </children>
- <children xsi:type="basic:Part" xmi:id="_YAH-EKYIEeSYsYnXVUxvVg" elementId="org.eclipse.e4.ui.compatibility.editor" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor" label="Questionnaire.java" iconURI="platform:/plugin/org.eclipse.jdt.ui/icons/full/obj16/jcu_obj.gif" tooltip="PPPClient/src/io/Questionnaire.java" closeable="true">
- <persistedState key="memento" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?>&#xD;&#xA;&lt;editor id=&quot;org.eclipse.jdt.ui.CompilationUnitEditor&quot;>&#xD;&#xA;&lt;input factoryID=&quot;org.eclipse.ui.part.FileEditorInputFactory&quot; path=&quot;/PPPClient/src/io/Questionnaire.java&quot;/>&#xD;&#xA;&lt;editorState selectionHorizontalPixel=&quot;0&quot; selectionLength=&quot;0&quot; selectionOffset=&quot;4692&quot; selectionTopPixel=&quot;1025&quot;/>&#xD;&#xA;&lt;/editor>"/>
- <tags>Editor</tags>
- <tags>org.eclipse.jdt.ui.CompilationUnitEditor</tags>
- <tags>removeOnHide</tags>
- </children>
- <children xsi:type="basic:Part" xmi:id="_wRZFgKb4EeS7zOLZ133OcQ" elementId="org.eclipse.e4.ui.compatibility.editor" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor" label="CommAdapter.java" iconURI="platform:/plugin/org.eclipse.jdt.ui/icons/full/obj16/jcu_obj.gif" tooltip="PPPClient/src/io/CommAdapter.java" closeable="true">
- <persistedState key="memento" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?>&#xD;&#xA;&lt;editor id=&quot;org.eclipse.jdt.ui.CompilationUnitEditor&quot;>&#xD;&#xA;&lt;input factoryID=&quot;org.eclipse.ui.part.FileEditorInputFactory&quot; path=&quot;/PPPClient/src/io/CommAdapter.java&quot;/>&#xD;&#xA;&lt;editorState selectionHorizontalPixel=&quot;0&quot; selectionLength=&quot;0&quot; selectionOffset=&quot;9096&quot; selectionTopPixel=&quot;0&quot;/>&#xD;&#xA;&lt;/editor>"/>
- <tags>Editor</tags>
- <tags>org.eclipse.jdt.ui.CompilationUnitEditor</tags>
- <tags>removeOnHide</tags>
- </children>
- <children xsi:type="basic:Part" xmi:id="_pKOBoKhwEeSE0vkzDJ8UPQ" elementId="org.eclipse.e4.ui.compatibility.editor" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor" label="ClientConnection.java" iconURI="platform:/plugin/org.eclipse.jdt.ui/icons/full/obj16/jcu_obj.gif" tooltip="PPPCommons/src/io/ClientConnection.java" closeable="true">
- <persistedState key="memento" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?>&#xD;&#xA;&lt;editor id=&quot;org.eclipse.jdt.ui.CompilationUnitEditor&quot;>&#xD;&#xA;&lt;input factoryID=&quot;org.eclipse.ui.part.FileEditorInputFactory&quot; path=&quot;/PPPCommons/src/io/ClientConnection.java&quot;/>&#xD;&#xA;&lt;editorState selectionHorizontalPixel=&quot;0&quot; selectionLength=&quot;0&quot; selectionOffset=&quot;1662&quot; selectionTopPixel=&quot;810&quot;/>&#xD;&#xA;&lt;/editor>"/>
- <tags>Editor</tags>
- <tags>org.eclipse.jdt.ui.CompilationUnitEditor</tags>
- <tags>removeOnHide</tags>
- </children>
- <children xsi:type="basic:Part" xmi:id="_yJMu0KhwEeSE0vkzDJ8UPQ" elementId="org.eclipse.e4.ui.compatibility.editor" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor" label="ClientProperties.java" iconURI="platform:/plugin/org.eclipse.jdt.ui/icons/full/obj16/jcu_obj.gif" tooltip="PPPClient/src/utils/ClientProperties.java" closeable="true">
- <persistedState key="memento" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?>&#xD;&#xA;&lt;editor id=&quot;org.eclipse.jdt.ui.CompilationUnitEditor&quot;>&#xD;&#xA;&lt;input factoryID=&quot;org.eclipse.ui.part.FileEditorInputFactory&quot; path=&quot;/PPPClient/src/utils/ClientProperties.java&quot;/>&#xD;&#xA;&lt;editorState selectionHorizontalPixel=&quot;0&quot; selectionLength=&quot;0&quot; selectionOffset=&quot;2833&quot; selectionTopPixel=&quot;1010&quot;/>&#xD;&#xA;&lt;/editor>"/>
- <tags>Editor</tags>
- <tags>org.eclipse.jdt.ui.CompilationUnitEditor</tags>
- <tags>removeOnHide</tags>
- </children>
- <children xsi:type="basic:Part" xmi:id="_OBAjMKhxEeSE0vkzDJ8UPQ" elementId="org.eclipse.e4.ui.compatibility.editor" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor" label="Type.java" iconURI="platform:/plugin/org.eclipse.jdt.ui/icons/full/obj16/jcu_obj.gif" tooltip="PPPCommons/src/framework/Type.java" closeable="true">
- <persistedState key="memento" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?>&#xD;&#xA;&lt;editor id=&quot;org.eclipse.jdt.ui.CompilationUnitEditor&quot;>&#xD;&#xA;&lt;input factoryID=&quot;org.eclipse.ui.part.FileEditorInputFactory&quot; path=&quot;/PPPCommons/src/framework/Type.java&quot;/>&#xD;&#xA;&lt;editorState selectionHorizontalPixel=&quot;0&quot; selectionLength=&quot;0&quot; selectionOffset=&quot;643&quot; selectionTopPixel=&quot;0&quot;/>&#xD;&#xA;&lt;/editor>"/>
- <tags>Editor</tags>
- <tags>org.eclipse.jdt.ui.CompilationUnitEditor</tags>
- <tags>removeOnHide</tags>
- </children>
- <children xsi:type="basic:Part" xmi:id="_wl_aMKhxEeSE0vkzDJ8UPQ" elementId="org.eclipse.e4.ui.compatibility.editor" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor" label="XMLParserSurvey.java" iconURI="platform:/plugin/org.eclipse.jdt.ui/icons/full/obj16/jcu_obj.gif" tooltip="PPPCommons/src/io/serializer/xml/XMLParserSurvey.java" closeable="true">
- <persistedState key="memento" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?>&#xD;&#xA;&lt;editor id=&quot;org.eclipse.jdt.ui.CompilationUnitEditor&quot;>&#xD;&#xA;&lt;input factoryID=&quot;org.eclipse.ui.part.FileEditorInputFactory&quot; path=&quot;/PPPCommons/src/io/serializer/xml/XMLParserSurvey.java&quot;/>&#xD;&#xA;&lt;editorState selectionHorizontalPixel=&quot;0&quot; selectionLength=&quot;0&quot; selectionOffset=&quot;2342&quot; selectionTopPixel=&quot;0&quot;/>&#xD;&#xA;&lt;/editor>"/>
- <tags>Editor</tags>
- <tags>org.eclipse.jdt.ui.CompilationUnitEditor</tags>
- <tags>removeOnHide</tags>
- </children>
- <children xsi:type="basic:Part" xmi:id="_0Rro0KhxEeSE0vkzDJ8UPQ" elementId="org.eclipse.e4.ui.compatibility.editor" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor" label="ParserNamespace.java" iconURI="platform:/plugin/org.eclipse.jdt.ui/icons/full/obj16/jcu_obj.gif" tooltip="PPPCommons/src/io/serializer/ParserNamespace.java" closeable="true">
- <persistedState key="memento" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?>&#xD;&#xA;&lt;editor id=&quot;org.eclipse.jdt.ui.CompilationUnitEditor&quot;>&#xD;&#xA;&lt;input factoryID=&quot;org.eclipse.ui.part.FileEditorInputFactory&quot; path=&quot;/PPPCommons/src/io/serializer/ParserNamespace.java&quot;/>&#xD;&#xA;&lt;editorState selectionHorizontalPixel=&quot;0&quot; selectionLength=&quot;0&quot; selectionOffset=&quot;1190&quot; selectionTopPixel=&quot;0&quot;/>&#xD;&#xA;&lt;/editor>"/>
- <tags>Editor</tags>
- <tags>org.eclipse.jdt.ui.CompilationUnitEditor</tags>
- <tags>removeOnHide</tags>
- </children>
- <children xsi:type="basic:Part" xmi:id="_PdQpUKhyEeSE0vkzDJ8UPQ" elementId="org.eclipse.e4.ui.compatibility.editor" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor" label="GUIbis.java" iconURI="platform:/plugin/org.eclipse.wb.core.ui/icons/gui_editor.gif" tooltip="PPPClient/src/ui/GUIbis.java" closeable="true">
- <persistedState key="memento" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?>&#xD;&#xA;&lt;editor id=&quot;org.eclipse.wb.core.guiEditor&quot;>&#xD;&#xA;&lt;input factoryID=&quot;org.eclipse.ui.part.FileEditorInputFactory&quot; path=&quot;/PPPClient/src/ui/GUIbis.java&quot;/>&#xD;&#xA;&lt;editorState selectionHorizontalPixel=&quot;0&quot; selectionLength=&quot;0&quot; selectionOffset=&quot;0&quot; selectionTopPixel=&quot;0&quot;/>&#xD;&#xA;&lt;/editor>"/>
+ <children xsi:type="basic:Part" xmi:id="_I8qycLB7EeSrgJnondPT0g" elementId="org.eclipse.e4.ui.compatibility.editor" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor" label="ClientApp.java" iconURI="platform:/plugin/org.eclipse.wb.core.ui/icons/gui_editor.gif" tooltip="PPPClient/src/ClientApp.java" closeable="true">
+ <persistedState key="memento" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?>&#xD;&#xA;&lt;editor id=&quot;org.eclipse.wb.core.guiEditor&quot;>&#xD;&#xA;&lt;input factoryID=&quot;org.eclipse.ui.part.FileEditorInputFactory&quot; path=&quot;/PPPClient/src/ClientApp.java&quot;/>&#xD;&#xA;&lt;editorState selectionHorizontalPixel=&quot;0&quot; selectionLength=&quot;0&quot; selectionOffset=&quot;142&quot; selectionTopPixel=&quot;0&quot;/>&#xD;&#xA;&lt;/editor>"/>
<tags>Editor</tags>
<tags>org.eclipse.wb.core.guiEditor</tags>
<tags>removeOnHide</tags>
- </children>
- <children xsi:type="basic:Part" xmi:id="_wS8zUKh6EeSE0vkzDJ8UPQ" elementId="org.eclipse.e4.ui.compatibility.editor" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor" label="ReplySurvey.java" iconURI="platform:/plugin/org.eclipse.jdt.ui/icons/full/obj16/jcu_obj.gif" tooltip="PPPCommons/src/framework/reply/ReplySurvey.java" closeable="true">
- <persistedState key="memento" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?>&#xD;&#xA;&lt;editor id=&quot;org.eclipse.jdt.ui.CompilationUnitEditor&quot;>&#xD;&#xA;&lt;input factoryID=&quot;org.eclipse.ui.part.FileEditorInputFactory&quot; path=&quot;/PPPCommons/src/framework/reply/ReplySurvey.java&quot;/>&#xD;&#xA;&lt;editorState selectionHorizontalPixel=&quot;0&quot; selectionLength=&quot;0&quot; selectionOffset=&quot;531&quot; selectionTopPixel=&quot;0&quot;/>&#xD;&#xA;&lt;/editor>"/>
- <tags>Editor</tags>
- <tags>org.eclipse.jdt.ui.CompilationUnitEditor</tags>
- <tags>removeOnHide</tags>
- </children>
- <children xsi:type="basic:Part" xmi:id="_9O2vcKiCEeSE0vkzDJ8UPQ" elementId="org.eclipse.e4.ui.compatibility.editor" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor" label="ClinicalEngine.java" iconURI="platform:/plugin/org.eclipse.jdt.ui/icons/full/obj16/jcu_obj.gif" tooltip="PPPClient/src/framework/ClinicalEngine.java" closeable="true">
- <persistedState key="memento" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?>&#xD;&#xA;&lt;editor id=&quot;org.eclipse.jdt.ui.CompilationUnitEditor&quot;>&#xD;&#xA;&lt;input factoryID=&quot;org.eclipse.ui.part.FileEditorInputFactory&quot; path=&quot;/PPPClient/src/framework/ClinicalEngine.java&quot;/>&#xD;&#xA;&lt;editorState selectionHorizontalPixel=&quot;0&quot; selectionLength=&quot;40&quot; selectionOffset=&quot;9322&quot; selectionTopPixel=&quot;3435&quot;/>&#xD;&#xA;&lt;/editor>"/>
- <tags>Editor</tags>
- <tags>org.eclipse.jdt.ui.CompilationUnitEditor</tags>
- <tags>removeOnHide</tags>
- </children>
- <children xsi:type="basic:Part" xmi:id="_iTwOMKrjEeS_i7cIBIv0iA" elementId="org.eclipse.e4.ui.compatibility.editor" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor" label="BarPlotFrame.java" iconURI="platform:/plugin/org.eclipse.jdt.ui/icons/full/obj16/jcu_obj.gif" tooltip="PPPClient/src/ui/BarPlotFrame.java" closeable="true">
- <persistedState key="memento" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?>&#xD;&#xA;&lt;editor id=&quot;org.eclipse.jdt.ui.CompilationUnitEditor&quot;>&#xD;&#xA;&lt;input factoryID=&quot;org.eclipse.ui.part.FileEditorInputFactory&quot; path=&quot;/PPPClient/src/ui/BarPlotFrame.java&quot;/>&#xD;&#xA;&lt;editorState selectionHorizontalPixel=&quot;0&quot; selectionLength=&quot;0&quot; selectionOffset=&quot;1165&quot; selectionTopPixel=&quot;0&quot;/>&#xD;&#xA;&lt;/editor>"/>
- <tags>Editor</tags>
- <tags>org.eclipse.jdt.ui.CompilationUnitEditor</tags>
- <tags>removeOnHide</tags>
- </children>
- <children xsi:type="basic:Part" xmi:id="_zgNnQKrwEeSTzp3w-Mbcfg" elementId="org.eclipse.e4.ui.compatibility.editor" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor" label="ReaderHLA.java" iconURI="platform:/plugin/org.eclipse.jdt.ui/icons/full/obj16/jcu_obj.gif" tooltip="PPPCertifiedInstitution/src/io/ReaderHLA.java" closeable="true">
- <persistedState key="memento" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?>&#xD;&#xA;&lt;editor id=&quot;org.eclipse.jdt.ui.CompilationUnitEditor&quot;>&#xD;&#xA;&lt;input factoryID=&quot;org.eclipse.ui.part.FileEditorInputFactory&quot; path=&quot;/PPPCertifiedInstitution/src/io/ReaderHLA.java&quot;/>&#xD;&#xA;&lt;editorState selectionHorizontalPixel=&quot;0&quot; selectionLength=&quot;0&quot; selectionOffset=&quot;0&quot; selectionTopPixel=&quot;0&quot;/>&#xD;&#xA;&lt;/editor>"/>
- <tags>Editor</tags>
- <tags>org.eclipse.jdt.ui.CompilationUnitEditor</tags>
- <tags>removeOnHide</tags>
+ <tags>activeOnClose</tags>
</children>
</children>
</sharedElements>
<sharedElements xsi:type="basic:Part" xmi:id="_0jTKYESyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.PackageExplorer" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView" label="Package Explorer" iconURI="platform:/plugin/org.eclipse.jdt.ui/icons/full/eview16/package.gif" tooltip="Workspace" closeable="true">
<persistedState key="memento" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?>&#xD;&#xA;&lt;view group_libraries=&quot;1&quot; layout=&quot;2&quot; linkWithEditor=&quot;0&quot; rootMode=&quot;1&quot; workingSetName=&quot;&quot;>&#xD;&#xA;&lt;customFilters userDefinedPatternsEnabled=&quot;false&quot;>&#xD;&#xA;&lt;xmlDefinedFilters>&#xD;&#xA;&lt;child filterId=&quot;org.eclipse.jdt.ui.PackageExplorer.StaticsFilter&quot; isEnabled=&quot;false&quot;/>&#xD;&#xA;&lt;child filterId=&quot;org.eclipse.jdt.ui.PackageExplorer.NonJavaProjectsFilter&quot; isEnabled=&quot;false&quot;/>&#xD;&#xA;&lt;child filterId=&quot;org.eclipse.jdt.ui.PackageExplorer_patternFilterId_.*&quot; isEnabled=&quot;true&quot;/>&#xD;&#xA;&lt;child filterId=&quot;org.eclipse.jdt.ui.PackageExplorer.NonSharedProjectsFilter&quot; isEnabled=&quot;false&quot;/>&#xD;&#xA;&lt;child filterId=&quot;org.eclipse.jdt.ui.PackageExplorer.SyntheticMembersFilter&quot; isEnabled=&quot;true&quot;/>&#xD;&#xA;&lt;child filterId=&quot;org.eclipse.jdt.ui.PackageExplorer.ContainedLibraryFilter&quot; isEnabled=&quot;false&quot;/>&#xD;&#xA;&lt;child filterId=&quot;org.eclipse.jdt.internal.ui.PackageExplorer.HideInnerClassFilesFilter&quot; isEnabled=&quot;true&quot;/>&#xD;&#xA;&lt;child filterId=&quot;org.eclipse.jdt.internal.ui.PackageExplorer.EmptyInnerPackageFilter&quot; isEnabled=&quot;true&quot;/>&#xD;&#xA;&lt;child filterId=&quot;org.eclipse.jdt.ui.PackageExplorer.ClosedProjectsFilter&quot; isEnabled=&quot;false&quot;/>&#xD;&#xA;&lt;child filterId=&quot;org.eclipse.jdt.ui.PackageExplorer.EmptyLibraryContainerFilter&quot; isEnabled=&quot;true&quot;/>&#xD;&#xA;&lt;child filterId=&quot;org.eclipse.jdt.ui.PackageExplorer.PackageDeclarationFilter&quot; isEnabled=&quot;true&quot;/>&#xD;&#xA;&lt;child filterId=&quot;org.eclipse.jdt.ui.PackageExplorer.ImportDeclarationFilter&quot; isEnabled=&quot;true&quot;/>&#xD;&#xA;&lt;child filterId=&quot;org.eclipse.jdt.ui.PackageExplorer.NonJavaElementFilter&quot; isEnabled=&quot;false&quot;/>&#xD;&#xA;&lt;child filterId=&quot;org.eclipse.jdt.ui.PackageExplorer.LibraryFilter&quot; isEnabled=&quot;false&quot;/>&#xD;&#xA;&lt;child filterId=&quot;org.eclipse.jdt.ui.PackageExplorer.CuAndClassFileFilter&quot; isEnabled=&quot;false&quot;/>&#xD;&#xA;&lt;child filterId=&quot;org.eclipse.jdt.internal.ui.PackageExplorer.EmptyPackageFilter&quot; isEnabled=&quot;false&quot;/>&#xD;&#xA;&lt;child filterId=&quot;org.eclipse.jdt.ui.PackageExplorer.NonPublicFilter&quot; isEnabled=&quot;false&quot;/>&#xD;&#xA;&lt;child filterId=&quot;org.eclipse.jdt.ui.PackageExplorer.LocalTypesFilter&quot; isEnabled=&quot;false&quot;/>&#xD;&#xA;&lt;child filterId=&quot;org.eclipse.jdt.ui.PackageExplorer.FieldsFilter&quot; isEnabled=&quot;false&quot;/>&#xD;&#xA;&lt;/xmlDefinedFilters>&#xD;&#xA;&lt;/customFilters>&#xD;&#xA;&lt;/view>"/>
<tags>View</tags>
<tags>categoryTag:Java</tags>
<menus xmi:id="_0kZ9oESyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.PackageExplorer">
<tags>ViewMenu</tags>
<tags>menuContribution:menu</tags>
</menus>
<toolbar xmi:id="_0kaksESyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.PackageExplorer" visible="false"/>
</sharedElements>
<sharedElements xsi:type="basic:Part" xmi:id="_0jW0wESyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.TypeHierarchy" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView" label="Type Hierarchy" iconURI="platform:/plugin/org.eclipse.jdt.ui/icons/full/eview16/class_hi.gif" closeable="true">
<tags>View</tags>
<tags>categoryTag:Java</tags>
</sharedElements>
<sharedElements xsi:type="basic:Part" xmi:id="_0jW0wUSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.views.ResourceNavigator" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView" label="Navigator" iconURI="platform:/plugin/org.eclipse.ui.ide/icons/full/eview16/filenav_nav.gif" tooltip="" closeable="true">
<persistedState key="memento" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?>&#xD;&#xA;&lt;view LINK_NAVIGATOR_TO_EDITOR=&quot;0&quot; sorter=&quot;1&quot;>&#xD;&#xA;&lt;filters>&#xD;&#xA;&lt;filter element=&quot;*.class&quot; isEnabled=&quot;false&quot;/>&#xD;&#xA;&lt;filter element=&quot;.*&quot; isEnabled=&quot;false&quot;/>&#xD;&#xA;&lt;/filters>&#xD;&#xA;&lt;expanded>&#xD;&#xA;&lt;element path=&quot;/PPPCommons&quot;/>&#xD;&#xA;&lt;element path=&quot;/PPPCommons/lib&quot;/>&#xD;&#xA;&lt;/expanded>&#xD;&#xA;&lt;selection>&#xD;&#xA;&lt;element path=&quot;/PPPCommons/lib/jdom-2.0.5.jar&quot;/>&#xD;&#xA;&lt;/selection>&#xD;&#xA;&lt;/view>"/>
<tags>View</tags>
<tags>categoryTag:General</tags>
<menus xmi:id="_j8rHUF6FEeSBz78r8TmDuQ" elementId="org.eclipse.ui.views.ResourceNavigator">
<tags>ViewMenu</tags>
<tags>menuContribution:menu</tags>
</menus>
<toolbar xmi:id="_j8rHUV6FEeSBz78r8TmDuQ" elementId="org.eclipse.ui.views.ResourceNavigator" visible="false"/>
</sharedElements>
<sharedElements xsi:type="basic:Part" xmi:id="_0jW0wkSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.navigator.ProjectExplorer" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView" label="Project Explorer" iconURI="platform:/plugin/org.eclipse.ui.navigator.resources/icons/full/eview16/resource_persp.gif" closeable="true">
<tags>View</tags>
<tags>categoryTag:General</tags>
</sharedElements>
- <sharedElements xsi:type="basic:Part" xmi:id="_0jW0w0SyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.views.ProblemView" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView" label="Problems" iconURI="platform:/plugin/org.eclipse.ui.ide/icons/full/eview16/problems_view.gif" tooltip="0 errors, 16 warnings, 0 others" closeable="true">
+ <sharedElements xsi:type="basic:Part" xmi:id="_0jW0w0SyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.views.ProblemView" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView" label="Problems" iconURI="platform:/plugin/org.eclipse.ui.ide/icons/full/eview16/problems_view.gif" tooltip="0 items" closeable="true">
<persistedState key="memento" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?>&#xD;&#xA;&lt;view PRIMARY_SORT_FIELD=&quot;org.eclipse.ui.ide.severityAndDescriptionField&quot; categoryGroup=&quot;org.eclipse.ui.ide.severity&quot; markerContentGenerator=&quot;org.eclipse.ui.ide.problemsGenerator&quot; partName=&quot;Problems&quot;>&#xD;&#xA;&lt;columnWidths org.eclipse.ui.ide.locationField=&quot;90&quot; org.eclipse.ui.ide.markerType=&quot;90&quot; org.eclipse.ui.ide.pathField=&quot;120&quot; org.eclipse.ui.ide.resourceField=&quot;90&quot; org.eclipse.ui.ide.severityAndDescriptionField=&quot;300&quot;/>&#xD;&#xA;&lt;visible IMemento.internal.id=&quot;org.eclipse.ui.ide.severityAndDescriptionField&quot;/>&#xD;&#xA;&lt;visible IMemento.internal.id=&quot;org.eclipse.ui.ide.resourceField&quot;/>&#xD;&#xA;&lt;visible IMemento.internal.id=&quot;org.eclipse.ui.ide.pathField&quot;/>&#xD;&#xA;&lt;visible IMemento.internal.id=&quot;org.eclipse.ui.ide.locationField&quot;/>&#xD;&#xA;&lt;visible IMemento.internal.id=&quot;org.eclipse.ui.ide.markerType&quot;/>&#xD;&#xA;&lt;/view>"/>
<tags>View</tags>
<tags>categoryTag:General</tags>
<menus xmi:id="_0qL1gESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.views.ProblemView">
<tags>ViewMenu</tags>
<tags>menuContribution:menu</tags>
</menus>
<toolbar xmi:id="_0qL1gUSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.views.ProblemView" visible="false"/>
</sharedElements>
<sharedElements xsi:type="basic:Part" xmi:id="_0jXb0ESyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.JavadocView" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView" label="Javadoc" iconURI="platform:/plugin/org.eclipse.jdt.ui/icons/full/eview16/javadoc.gif" closeable="true">
<tags>View</tags>
<tags>categoryTag:Java</tags>
</sharedElements>
<sharedElements xsi:type="basic:Part" xmi:id="_0jYC4ESyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.SourceView" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView" label="Declaration" iconURI="platform:/plugin/org.eclipse.jdt.ui/icons/full/eview16/source.gif" closeable="true">
<tags>View</tags>
<tags>categoryTag:Java</tags>
</sharedElements>
<sharedElements xsi:type="basic:Part" xmi:id="_0jYC4USyEeSN3ZLFRXim_g" elementId="org.eclipse.search.ui.views.SearchView" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView" label="Search" iconURI="platform:/plugin/org.eclipse.search/icons/full/eview16/searchres.gif" tooltip="" closeable="true">
- <persistedState key="memento" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?>&#xD;&#xA;&lt;view isPinned=&quot;false&quot;>&#xD;&#xA;&lt;view IMemento.internal.id=&quot;org.eclipse.jdt.ui.JavaSearchResultPage&quot; org.eclipse.jdt.search.resultpage.grouping=&quot;3&quot; org.eclipse.jdt.search.resultpage.limit=&quot;1000&quot; org.eclipse.jdt.search.resultpage.limit_enabled=&quot;TRUE&quot; org.eclipse.jdt.search.resultpage.sorting=&quot;1&quot; org.eclipse.search.lastActivation=&quot;1&quot; org.eclipse.search.resultpage.layout=&quot;2&quot;/>&#xD;&#xA;&lt;view IMemento.internal.id=&quot;&quot; org.eclipse.search.lastActivation=&quot;0&quot;/>&#xD;&#xA;&lt;/view>"/>
+ <persistedState key="memento" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?>&#xD;&#xA;&lt;view isPinned=&quot;false&quot;>&#xD;&#xA;&lt;view IMemento.internal.id=&quot;&quot; org.eclipse.search.lastActivation=&quot;0&quot;/>&#xD;&#xA;&lt;view IMemento.internal.id=&quot;org.eclipse.jdt.ui.JavaSearchResultPage&quot; org.eclipse.jdt.search.resultpage.grouping=&quot;3&quot; org.eclipse.jdt.search.resultpage.limit=&quot;1000&quot; org.eclipse.jdt.search.resultpage.limit_enabled=&quot;TRUE&quot; org.eclipse.jdt.search.resultpage.sorting=&quot;1&quot; org.eclipse.search.lastActivation=&quot;1&quot; org.eclipse.search.resultpage.layout=&quot;2&quot;/>&#xD;&#xA;&lt;/view>"/>
<tags>View</tags>
<tags>categoryTag:General</tags>
<menus xmi:id="_6dVwgF6IEeSBz78r8TmDuQ" elementId="org.eclipse.search.ui.views.SearchView">
<tags>ViewMenu</tags>
<tags>menuContribution:menu</tags>
</menus>
<toolbar xmi:id="_6dVwgV6IEeSBz78r8TmDuQ" elementId="org.eclipse.search.ui.views.SearchView" visible="false"/>
</sharedElements>
<sharedElements xsi:type="basic:Part" xmi:id="_0jYC4kSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.console.ConsoleView" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView" label="Console" iconURI="platform:/plugin/org.eclipse.ui.console/icons/full/cview16/console_view.gif" tooltip="" closeable="true">
<persistedState key="memento" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?>&#xD;&#xA;&lt;view/>"/>
<tags>View</tags>
<tags>categoryTag:General</tags>
- <tags>activeOnClose</tags>
<menus xmi:id="_-c5FsESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.console.ConsoleView">
<tags>ViewMenu</tags>
<tags>menuContribution:menu</tags>
</menus>
<toolbar xmi:id="_-c5FsUSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.console.ConsoleView" visible="false"/>
</sharedElements>
<sharedElements xsi:type="basic:Part" xmi:id="_0jYC40SyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.views.BookmarkView" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView" label="Bookmarks" iconURI="platform:/plugin/org.eclipse.ui.ide/icons/full/eview16/bkmrk_nav.gif" closeable="true">
<tags>View</tags>
<tags>categoryTag:General</tags>
</sharedElements>
<sharedElements xsi:type="basic:Part" xmi:id="_0jYp8ESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.views.ProgressView" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView" label="Progress" iconURI="platform:/plugin/org.eclipse.ui.ide/icons/full/eview16/pview.gif" closeable="true">
<tags>View</tags>
<tags>categoryTag:General</tags>
</sharedElements>
<sharedElements xsi:type="basic:Part" xmi:id="_0jYp8USyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.views.ContentOutline" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView" label="Outline" iconURI="platform:/plugin/org.eclipse.ui.views/icons/full/eview16/outline_co.gif" tooltip="" closeable="true">
<persistedState key="memento" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?>&#xD;&#xA;&lt;view/>"/>
<tags>View</tags>
<tags>categoryTag:General</tags>
<menus xmi:id="_0pG3cESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.views.ContentOutline">
<tags>ViewMenu</tags>
<tags>menuContribution:menu</tags>
</menus>
<toolbar xmi:id="_0pG3cUSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.views.ContentOutline" visible="false"/>
</sharedElements>
<sharedElements xsi:type="basic:Part" xmi:id="_0jYp8kSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.texteditor.TemplatesView" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView" label="Templates" iconURI="platform:/plugin/org.eclipse.jdt.ui/icons/full/eview16/templates.gif" closeable="true">
<tags>View</tags>
<tags>categoryTag:General</tags>
</sharedElements>
<sharedElements xsi:type="basic:Part" xmi:id="_0jjpEESyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.RepositoriesView" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView" label="Git Repositories" iconURI="platform:/plugin/org.eclipse.egit.ui/icons/eview16/repo_rep.gif" closeable="true">
<tags>View</tags>
<tags>categoryTag:Git</tags>
</sharedElements>
<sharedElements xsi:type="basic:Part" xmi:id="_0jkQIESyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.junit.ResultView" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView" label="JUnit" iconURI="platform:/plugin/org.eclipse.jdt.junit/icons/full/eview16/junit.gif" closeable="true">
<tags>View</tags>
<tags>categoryTag:Java</tags>
</sharedElements>
<sharedElements xsi:type="basic:Part" xmi:id="__wpYwGjyEeShLY_bOPaoSA" elementId="org.eclipse.ui.views.TaskList" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView" label="Tasks" iconURI="platform:/plugin/org.eclipse.ui.ide/icons/full/eview16/tasks_tsk.gif" closeable="true">
<tags>View</tags>
<tags>categoryTag:General</tags>
</sharedElements>
<sharedElements xsi:type="basic:Part" xmi:id="__wpYwWjyEeShLY_bOPaoSA" elementId="org.eclipse.ui.views.PropertySheet" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView" label="Properties" iconURI="platform:/plugin/org.eclipse.ui.views/icons/full/eview16/prop_ps.gif" closeable="true">
<tags>View</tags>
<tags>categoryTag:General</tags>
</sharedElements>
<sharedElements xsi:type="basic:Part" xmi:id="__wpYwmjyEeShLY_bOPaoSA" elementId="org.eclipse.debug.ui.DebugView" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView" label="Debug" iconURI="platform:/plugin/org.eclipse.debug.ui/icons/full/eview16/debug_view.gif" tooltip="" closeable="true">
<persistedState key="memento" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?>&#xD;&#xA;&lt;view/>"/>
<tags>View</tags>
<tags>categoryTag:Debug</tags>
<menus xmi:id="__xGEsGjyEeShLY_bOPaoSA" elementId="org.eclipse.debug.ui.DebugView">
<tags>ViewMenu</tags>
<tags>menuContribution:menu</tags>
</menus>
<toolbar xmi:id="__xGEsWjyEeShLY_bOPaoSA" elementId="org.eclipse.debug.ui.DebugView" visible="false"/>
</sharedElements>
<sharedElements xsi:type="basic:Part" xmi:id="__wpYw2jyEeShLY_bOPaoSA" elementId="org.eclipse.debug.ui.VariableView" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView" label="Variables" iconURI="platform:/plugin/org.eclipse.debug.ui/icons/full/eview16/variable_view.gif" tooltip="" closeable="true">
<persistedState key="memento" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?>&#xD;&#xA;&lt;view/>"/>
<tags>View</tags>
<tags>categoryTag:Debug</tags>
<menus xmi:id="__zB-YGjyEeShLY_bOPaoSA" elementId="org.eclipse.debug.ui.VariableView">
<tags>ViewMenu</tags>
<tags>menuContribution:menu</tags>
</menus>
<toolbar xmi:id="__zB-YWjyEeShLY_bOPaoSA" elementId="org.eclipse.debug.ui.VariableView" visible="false"/>
</sharedElements>
<sharedElements xsi:type="basic:Part" xmi:id="__wpYxGjyEeShLY_bOPaoSA" elementId="org.eclipse.debug.ui.BreakpointView" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView" label="Breakpoints" iconURI="platform:/plugin/org.eclipse.debug.ui/icons/full/eview16/breakpoint_view.gif" tooltip="" closeable="true">
<persistedState key="memento" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?>&#xD;&#xA;&lt;view/>"/>
<tags>View</tags>
<tags>categoryTag:Debug</tags>
<menus xmi:id="_CFEScGjzEeShLY_bOPaoSA" elementId="org.eclipse.debug.ui.BreakpointView">
<tags>ViewMenu</tags>
<tags>menuContribution:menu</tags>
</menus>
<toolbar xmi:id="_CFEScWjzEeShLY_bOPaoSA" elementId="org.eclipse.debug.ui.BreakpointView" visible="false"/>
</sharedElements>
<sharedElements xsi:type="basic:Part" xmi:id="__wpYxWjyEeShLY_bOPaoSA" elementId="org.eclipse.debug.ui.ExpressionView" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView" label="Expressions" iconURI="platform:/plugin/org.eclipse.debug.ui/icons/full/eview16/watchlist_view.gif" closeable="true">
<tags>View</tags>
<tags>categoryTag:Debug</tags>
</sharedElements>
<sharedElements xsi:type="basic:Part" xmi:id="__wpYxmjyEeShLY_bOPaoSA" elementId="org.eclipse.debug.ui.RegisterView" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView" label="Registers" iconURI="platform:/plugin/org.eclipse.debug.ui/icons/full/eview16/register_view.gif" closeable="true">
<tags>View</tags>
<tags>categoryTag:Debug</tags>
</sharedElements>
<sharedElements xsi:type="basic:Part" xmi:id="__wpYx2jyEeShLY_bOPaoSA" elementId="com.android.ide.eclipse.ddms.views.LogCatView" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView" label="LogCat" iconURI="platform:/plugin/com.android.ide.eclipse.ddms/icons/logcat.png" tooltip="" closeable="true">
<persistedState key="memento" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?>&#xD;&#xA;&lt;view/>"/>
<tags>View</tags>
<tags>categoryTag:Android</tags>
<menus xmi:id="__1jt8GjyEeShLY_bOPaoSA" elementId="com.android.ide.eclipse.ddms.views.LogCatView">
<tags>ViewMenu</tags>
<tags>menuContribution:menu</tags>
</menus>
<toolbar xmi:id="__1jt8WjyEeShLY_bOPaoSA" elementId="com.android.ide.eclipse.ddms.views.LogCatView" visible="false"/>
</sharedElements>
<sharedElements xsi:type="basic:Part" xmi:id="__wpYyGjyEeShLY_bOPaoSA" elementId="org.eclipse.cdt.debug.ui.SignalsView" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView" label="Signals" iconURI="platform:/plugin/org.eclipse.cdt.debug.ui/icons/view16/signals_view.gif" closeable="true">
<tags>View</tags>
<tags>categoryTag:Debug</tags>
</sharedElements>
<sharedElements xsi:type="basic:Part" xmi:id="__wpYyWjyEeShLY_bOPaoSA" elementId="org.eclipse.debug.ui.ModuleView" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView" label="Modules" iconURI="platform:/plugin/org.eclipse.debug.ui/icons/full/eview16/module_view.gif" closeable="true">
<tags>View</tags>
<tags>categoryTag:Debug</tags>
</sharedElements>
<sharedElements xsi:type="basic:Part" xmi:id="__wpYymjyEeShLY_bOPaoSA" elementId="org.eclipse.cdt.debug.ui.executablesView" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView" label="Executables" iconURI="platform:/plugin/org.eclipse.cdt.debug.ui/icons/obj16/exec_view_obj.gif" closeable="true">
<tags>View</tags>
<tags>categoryTag:Debug</tags>
</sharedElements>
<sharedElements xsi:type="basic:Part" xmi:id="__wzJwGjyEeShLY_bOPaoSA" elementId="org.eclipse.cdt.dsf.gdb.ui.tracecontrol.view" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView" label="Trace Control" iconURI="platform:/plugin/org.eclipse.cdt.dsf.gdb.ui/icons/full/view16/tracecontrol_view.gif" closeable="true">
<tags>View</tags>
<tags>categoryTag:Debug</tags>
</sharedElements>
<sharedElements xsi:type="basic:Part" xmi:id="__wzJwWjyEeShLY_bOPaoSA" elementId="org.eclipse.cdt.dsf.debug.ui.disassembly.view" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView" label="Disassembly" iconURI="platform:/plugin/org.eclipse.cdt.dsf.ui/icons/disassembly.gif" closeable="true">
<tags>View</tags>
<tags>categoryTag:Debug</tags>
</sharedElements>
<sharedElements xsi:type="basic:Part" xmi:id="__wzJwmjyEeShLY_bOPaoSA" elementId="org.eclipse.jdt.debug.ui.DisplayView" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView" label="Display" iconURI="platform:/plugin/org.eclipse.jdt.debug.ui/icons/full/etool16/disp_sbook.gif" closeable="true">
<tags>View</tags>
<tags>categoryTag:Debug</tags>
</sharedElements>
<sharedElements xsi:type="basic:Part" xmi:id="__wzJw2jyEeShLY_bOPaoSA" elementId="org.eclipse.search.SearchResultView" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView" label="Classic Search" iconURI="platform:/plugin/org.eclipse.search/icons/full/eview16/searchres.gif" closeable="true">
<tags>View</tags>
<tags>categoryTag:General</tags>
</sharedElements>
<trimBars xmi:id="_0bJT8ESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.main.toolbar">
<children xsi:type="menu:ToolBar" xmi:id="_0ch0AESyEeSN3ZLFRXim_g" elementId="group.file" toBeRendered="false">
<tags>toolbarSeparator</tags>
<children xsi:type="menu:ToolBarSeparator" xmi:id="_0ch0AUSyEeSN3ZLFRXim_g" elementId="group.file" toBeRendered="false"/>
</children>
<children xsi:type="menu:ToolBar" xmi:id="_0cjCIESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.workbench.file">
<tags>Draggable</tags>
- <children xsi:type="menu:OpaqueToolItem" xmi:id="_2Ng4sKxpEeS9fKmsDAXEaw" elementId="new.group"/>
- <children xsi:type="menu:OpaqueToolItem" xmi:id="_2Ng4saxpEeS9fKmsDAXEaw" elementId="newWizardDropDown"/>
- <children xsi:type="menu:OpaqueToolItem" xmi:id="_2Ng4sqxpEeS9fKmsDAXEaw" elementId="new.ext" visible="false"/>
- <children xsi:type="menu:OpaqueToolItem" xmi:id="_2Ng4s6xpEeS9fKmsDAXEaw" elementId="save.group" visible="false"/>
- <children xsi:type="menu:OpaqueToolItem" xmi:id="_2NhfwKxpEeS9fKmsDAXEaw" elementId="save"/>
- <children xsi:type="menu:OpaqueToolItem" xmi:id="_2NhfwaxpEeS9fKmsDAXEaw" elementId="saveAll"/>
- <children xsi:type="menu:OpaqueToolItem" xmi:id="_2NhfwqxpEeS9fKmsDAXEaw" elementId="save.ext" visible="false"/>
- <children xsi:type="menu:HandledToolItem" xmi:id="_2Nhfw6xpEeS9fKmsDAXEaw" iconURI="platform:/plugin/org.eclipse.ui/icons/full/etool16/print_edit.gif" tooltip="Print" enabled="false" command="_0MZGSkSyEeSN3ZLFRXim_g"/>
- <children xsi:type="menu:OpaqueToolItem" xmi:id="_2NlKIKxpEeS9fKmsDAXEaw" elementId="print.ext" visible="false"/>
- <children xsi:type="menu:OpaqueToolItem" xmi:id="_2NlKIaxpEeS9fKmsDAXEaw" elementId="build.group"/>
- <children xsi:type="menu:OpaqueToolItem" xmi:id="_2NlKIqxpEeS9fKmsDAXEaw" elementId="build.ext" visible="false"/>
- <children xsi:type="menu:OpaqueToolItem" xmi:id="_2NlxMKxpEeS9fKmsDAXEaw" elementId="additions"/>
- <children xsi:type="menu:OpaqueToolItem" xmi:id="_2P-W0KxpEeS9fKmsDAXEaw" elementId="org.eclipse.wb.core.wizards.actions.NewDesignerTypeDropDownAction"/>
+ <children xsi:type="menu:OpaqueToolItem" xmi:id="_LI5ZwLjcEeSKNrfMXcGdvA" elementId="new.group"/>
+ <children xsi:type="menu:OpaqueToolItem" xmi:id="_LI5ZwbjcEeSKNrfMXcGdvA" elementId="newWizardDropDown"/>
+ <children xsi:type="menu:OpaqueToolItem" xmi:id="_LI5ZwrjcEeSKNrfMXcGdvA" elementId="new.ext" visible="false"/>
+ <children xsi:type="menu:OpaqueToolItem" xmi:id="_LI5Zw7jcEeSKNrfMXcGdvA" elementId="save.group" visible="false"/>
+ <children xsi:type="menu:OpaqueToolItem" xmi:id="_LI5ZxLjcEeSKNrfMXcGdvA" elementId="save"/>
+ <children xsi:type="menu:OpaqueToolItem" xmi:id="_LI5ZxbjcEeSKNrfMXcGdvA" elementId="saveAll"/>
+ <children xsi:type="menu:OpaqueToolItem" xmi:id="_LI5ZxrjcEeSKNrfMXcGdvA" elementId="save.ext" visible="false"/>
+ <children xsi:type="menu:HandledToolItem" xmi:id="_LI5Zx7jcEeSKNrfMXcGdvA" iconURI="platform:/plugin/org.eclipse.ui/icons/full/etool16/print_edit.gif" tooltip="Print" command="_0MZGSkSyEeSN3ZLFRXim_g"/>
+ <children xsi:type="menu:OpaqueToolItem" xmi:id="_LJDKwLjcEeSKNrfMXcGdvA" elementId="print.ext" visible="false"/>
+ <children xsi:type="menu:OpaqueToolItem" xmi:id="_LJDKwbjcEeSKNrfMXcGdvA" elementId="build.group"/>
+ <children xsi:type="menu:OpaqueToolItem" xmi:id="_LJDKwrjcEeSKNrfMXcGdvA" elementId="build.ext" visible="false"/>
+ <children xsi:type="menu:OpaqueToolItem" xmi:id="_LJDKw7jcEeSKNrfMXcGdvA" elementId="additions"/>
+ <children xsi:type="menu:OpaqueToolItem" xmi:id="_LLR_YLjcEeSKNrfMXcGdvA" elementId="org.eclipse.wb.core.wizards.actions.NewDesignerTypeDropDownAction"/>
</children>
<children xsi:type="menu:ToolBar" xmi:id="_0cjCIUSyEeSN3ZLFRXim_g" elementId="additions" toBeRendered="false">
<tags>toolbarSeparator</tags>
<children xsi:type="menu:ToolBarSeparator" xmi:id="_0cjCIkSyEeSN3ZLFRXim_g" elementId="additions" toBeRendered="false"/>
</children>
<children xsi:type="menu:ToolBar" xmi:id="_0sGhEESyEeSN3ZLFRXim_g" elementId="adt.actionSet.avdManager">
<tags>Draggable</tags>
- <children xsi:type="menu:OpaqueToolItem" xmi:id="_2P-94KxpEeS9fKmsDAXEaw" elementId="android_project"/>
- <children xsi:type="menu:OpaqueToolItem" xmi:id="_2P-94axpEeS9fKmsDAXEaw" elementId="com.android.ide.eclipse.adt.ui.sdkmanager"/>
- <children xsi:type="menu:OpaqueToolItem" xmi:id="_2P-94qxpEeS9fKmsDAXEaw" elementId="com.android.ide.eclipse.adt.ui.avdmanager"/>
+ <children xsi:type="menu:OpaqueToolItem" xmi:id="_LLR_YbjcEeSKNrfMXcGdvA" elementId="android_project"/>
+ <children xsi:type="menu:OpaqueToolItem" xmi:id="_LLR_YrjcEeSKNrfMXcGdvA" elementId="com.android.ide.eclipse.adt.ui.sdkmanager"/>
+ <children xsi:type="menu:OpaqueToolItem" xmi:id="_LLR_Y7jcEeSKNrfMXcGdvA" elementId="com.android.ide.eclipse.adt.ui.avdmanager"/>
</children>
<children xsi:type="menu:ToolBar" xmi:id="_0r00QESyEeSN3ZLFRXim_g" elementId="adt.actionSet.lint">
<tags>Draggable</tags>
- <children xsi:type="menu:OpaqueToolItem" xmi:id="_2P-946xpEeS9fKmsDAXEaw" elementId="android_project"/>
- <children xsi:type="menu:OpaqueToolItem" xmi:id="_2P-95KxpEeS9fKmsDAXEaw" elementId="com.android.ide.eclipse.adt.ui.lintrunner"/>
+ <children xsi:type="menu:OpaqueToolItem" xmi:id="_LLR_ZLjcEeSKNrfMXcGdvA" elementId="android_project"/>
+ <children xsi:type="menu:OpaqueToolItem" xmi:id="_LLR_ZbjcEeSKNrfMXcGdvA" elementId="com.android.ide.eclipse.adt.ui.lintrunner"/>
</children>
<children xsi:type="menu:ToolBar" xmi:id="_0rnY4ESyEeSN3ZLFRXim_g" elementId="adt.actionSet.wizards">
<tags>Draggable</tags>
- <children xsi:type="menu:OpaqueToolItem" xmi:id="_2P_k8KxpEeS9fKmsDAXEaw" elementId="android_project"/>
- <children xsi:type="menu:OpaqueToolItem" xmi:id="_2P_k8axpEeS9fKmsDAXEaw" elementId="com.android.ide.eclipse.adt.wizards.actions.NewXmlFileAction"/>
+ <children xsi:type="menu:OpaqueToolItem" xmi:id="_LLR_ZrjcEeSKNrfMXcGdvA" elementId="android_project"/>
+ <children xsi:type="menu:OpaqueToolItem" xmi:id="_LLR_Z7jcEeSKNrfMXcGdvA" elementId="com.android.ide.eclipse.adt.wizards.actions.NewXmlFileAction"/>
</children>
<children xsi:type="menu:ToolBar" xmi:id="__8V0QEV4EeS5UtIBUoflvw" elementId="org.eclipse.debug.ui.breakpointActionSet">
<tags>Draggable</tags>
- <children xsi:type="menu:OpaqueToolItem" xmi:id="_2P_k8qxpEeS9fKmsDAXEaw" elementId="breakpointGroup"/>
- <children xsi:type="menu:OpaqueToolItem" xmi:id="_2P_k86xpEeS9fKmsDAXEaw" elementId="org.eclipse.debug.ui.actions.SkipAllBreakpoints"/>
+ <children xsi:type="menu:OpaqueToolItem" xmi:id="_LLR_aLjcEeSKNrfMXcGdvA" elementId="breakpointGroup"/>
+ <children xsi:type="menu:OpaqueToolItem" xmi:id="_LLR_abjcEeSKNrfMXcGdvA" elementId="org.eclipse.debug.ui.actions.SkipAllBreakpoints"/>
</children>
<children xsi:type="menu:ToolBar" xmi:id="_uM92cGl9EeSVS5gP7FcqMQ" elementId="org.eclipse.debug.ui.debugActionSet">
<tags>Draggable</tags>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_uNRYcml9EeSVS5gP7FcqMQ" elementId="renderGroup"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_uNRYc2l9EeSVS5gP7FcqMQ" elementId="org.eclipse.debug.ui.actions.DropToFrame"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_uNRYdGl9EeSVS5gP7FcqMQ" elementId="org.eclipse.debug.ui.actions.ToggleStepFilters"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_uNRYdWl9EeSVS5gP7FcqMQ" elementId="emptyStepGroup"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_uNRYdml9EeSVS5gP7FcqMQ" elementId="org.eclipse.debug.ui.actions.RunToLine"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_uNRYd2l9EeSVS5gP7FcqMQ" elementId="stepReturnGroup"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_uNRYeGl9EeSVS5gP7FcqMQ" elementId="org.eclipse.debug.ui.actions.StepReturn"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_uNRYeWl9EeSVS5gP7FcqMQ" elementId="stepOverGroup"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_uNRYeml9EeSVS5gP7FcqMQ" elementId="org.eclipse.debug.ui.actions.StepOver"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_uNRYe2l9EeSVS5gP7FcqMQ" elementId="stepIntoGroup"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_uNRYfGl9EeSVS5gP7FcqMQ" elementId="org.eclipse.debug.ui.actions.StepInto"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_uNRYfWl9EeSVS5gP7FcqMQ" elementId="threadGroup"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_uNRYfml9EeSVS5gP7FcqMQ" elementId="org.eclipse.debug.ui.actions.Resume"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_uNRYf2l9EeSVS5gP7FcqMQ" elementId="org.eclipse.debug.ui.actions.Suspend"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_uNRYgGl9EeSVS5gP7FcqMQ" elementId="org.eclipse.debug.ui.actions.Terminate"/>
<children xsi:type="menu:OpaqueToolItem" xmi:id="_uNRYgWl9EeSVS5gP7FcqMQ" elementId="org.eclipse.debug.ui.actions.toolbar.Disconnect"/>
</children>
<children xsi:type="menu:ToolBar" xmi:id="_0rKs8ESyEeSN3ZLFRXim_g" elementId="org.eclipse.debug.ui.launchActionSet">
<tags>Draggable</tags>
- <children xsi:type="menu:OpaqueToolItem" xmi:id="_2P_k9KxpEeS9fKmsDAXEaw" elementId="debug"/>
- <children xsi:type="menu:OpaqueToolItem" xmi:id="_2P_k9axpEeS9fKmsDAXEaw" elementId="org.eclipse.debug.internal.ui.actions.DebugDropDownAction"/>
- <children xsi:type="menu:OpaqueToolItem" xmi:id="_2P_k9qxpEeS9fKmsDAXEaw" elementId="org.eclipse.debug.internal.ui.actions.RunDropDownAction"/>
- <children xsi:type="menu:OpaqueToolItem" xmi:id="_2P_k96xpEeS9fKmsDAXEaw" elementId="org.eclipse.ui.externaltools.ExternalToolMenuDelegateToolbar"/>
+ <children xsi:type="menu:OpaqueToolItem" xmi:id="_LLR_arjcEeSKNrfMXcGdvA" elementId="debug"/>
+ <children xsi:type="menu:OpaqueToolItem" xmi:id="_LLR_a7jcEeSKNrfMXcGdvA" elementId="org.eclipse.debug.internal.ui.actions.DebugDropDownAction"/>
+ <children xsi:type="menu:OpaqueToolItem" xmi:id="_LLR_bLjcEeSKNrfMXcGdvA" elementId="org.eclipse.debug.internal.ui.actions.RunDropDownAction"/>
+ <children xsi:type="menu:OpaqueToolItem" xmi:id="_LLR_bbjcEeSKNrfMXcGdvA" elementId="org.eclipse.ui.externaltools.ExternalToolMenuDelegateToolbar"/>
</children>
<children xsi:type="menu:ToolBar" xmi:id="_0rtfgESyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.JavaElementCreationActionSet">
<tags>Draggable</tags>
- <children xsi:type="menu:OpaqueToolItem" xmi:id="_2QAMAKxpEeS9fKmsDAXEaw" elementId="JavaWizards"/>
- <children xsi:type="menu:OpaqueToolItem" xmi:id="_2QAMAaxpEeS9fKmsDAXEaw" elementId="org.eclipse.jdt.ui.actions.OpenProjectWizard"/>
- <children xsi:type="menu:OpaqueToolItem" xmi:id="_2QAMAqxpEeS9fKmsDAXEaw" elementId="org.eclipse.jdt.ui.actions.OpenPackageWizard"/>
- <children xsi:type="menu:OpaqueToolItem" xmi:id="_2QAMA6xpEeS9fKmsDAXEaw" elementId="org.eclipse.jdt.ui.actions.NewTypeDropDown"/>
+ <children xsi:type="menu:OpaqueToolItem" xmi:id="_LLR_brjcEeSKNrfMXcGdvA" elementId="JavaWizards"/>
+ <children xsi:type="menu:OpaqueToolItem" xmi:id="_LLR_b7jcEeSKNrfMXcGdvA" elementId="org.eclipse.jdt.ui.actions.OpenProjectWizard"/>
+ <children xsi:type="menu:OpaqueToolItem" xmi:id="_LLR_cLjcEeSKNrfMXcGdvA" elementId="org.eclipse.jdt.ui.actions.OpenPackageWizard"/>
+ <children xsi:type="menu:OpaqueToolItem" xmi:id="_LLR_cbjcEeSKNrfMXcGdvA" elementId="org.eclipse.jdt.ui.actions.NewTypeDropDown"/>
</children>
<children xsi:type="menu:ToolBar" xmi:id="_0re2AESyEeSN3ZLFRXim_g" elementId="org.eclipse.search.searchActionSet">
<tags>Draggable</tags>
- <children xsi:type="menu:OpaqueToolItem" xmi:id="_2QAMBKxpEeS9fKmsDAXEaw" elementId="Search"/>
- <children xsi:type="menu:OpaqueToolItem" xmi:id="_2QAMBaxpEeS9fKmsDAXEaw" elementId="openType"/>
- <children xsi:type="menu:OpaqueToolItem" xmi:id="_2QAMBqxpEeS9fKmsDAXEaw" elementId="org.eclipse.search.OpenSearchDialogPage"/>
+ <children xsi:type="menu:OpaqueToolItem" xmi:id="_LLR_crjcEeSKNrfMXcGdvA" elementId="Search"/>
+ <children xsi:type="menu:OpaqueToolItem" xmi:id="_LLR_c7jcEeSKNrfMXcGdvA" elementId="openType"/>
+ <children xsi:type="menu:OpaqueToolItem" xmi:id="_LLR_dLjcEeSKNrfMXcGdvA" elementId="org.eclipse.search.OpenSearchDialogPage"/>
</children>
<children xsi:type="menu:ToolBar" xmi:id="__DnckES0EeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.actionSet.presentation">
<tags>Draggable</tags>
- <children xsi:type="menu:OpaqueToolItem" xmi:id="_2koYMKxpEeS9fKmsDAXEaw" elementId="Presentation"/>
- <children xsi:type="menu:OpaqueToolItem" xmi:id="_2koYMaxpEeS9fKmsDAXEaw" elementId="org.eclipse.jdt.ui.edit.text.java.toggleBreadcrumb"/>
- <children xsi:type="menu:OpaqueToolItem" xmi:id="_2koYMqxpEeS9fKmsDAXEaw" elementId="org.eclipse.jdt.ui.edit.text.java.toggleMarkOccurrences"/>
- <children xsi:type="menu:OpaqueToolItem" xmi:id="_2koYM6xpEeS9fKmsDAXEaw" elementId="org.eclipse.ui.edit.text.toggleBlockSelectionMode"/>
- <children xsi:type="menu:OpaqueToolItem" xmi:id="_2koYNKxpEeS9fKmsDAXEaw" elementId="org.eclipse.ui.edit.text.toggleShowWhitespaceCharacters"/>
- <children xsi:type="menu:OpaqueToolItem" xmi:id="_2ko_QKxpEeS9fKmsDAXEaw" elementId="org.eclipse.ui.edit.text.toggleShowSelectedElementOnly"/>
+ <children xsi:type="menu:OpaqueToolItem" xmi:id="_5jMyIK0ZEeSyV9QVHPk7tg" elementId="Presentation"/>
+ <children xsi:type="menu:OpaqueToolItem" xmi:id="_5jMyIa0ZEeSyV9QVHPk7tg" elementId="org.eclipse.jdt.ui.edit.text.java.toggleBreadcrumb"/>
+ <children xsi:type="menu:OpaqueToolItem" xmi:id="_5jMyIq0ZEeSyV9QVHPk7tg" elementId="org.eclipse.jdt.ui.edit.text.java.toggleMarkOccurrences"/>
+ <children xsi:type="menu:OpaqueToolItem" xmi:id="_5jMyI60ZEeSyV9QVHPk7tg" elementId="org.eclipse.ui.edit.text.toggleBlockSelectionMode"/>
+ <children xsi:type="menu:OpaqueToolItem" xmi:id="_5jMyJK0ZEeSyV9QVHPk7tg" elementId="org.eclipse.ui.edit.text.toggleShowWhitespaceCharacters"/>
+ <children xsi:type="menu:OpaqueToolItem" xmi:id="_5jMyJa0ZEeSyV9QVHPk7tg" elementId="org.eclipse.ui.edit.text.toggleShowSelectedElementOnly"/>
+ <children xsi:type="menu:OpaqueToolItem" xmi:id="_9SolYK0mEeSB16p7uagR-g" elementId="Presentation"/>
+ <children xsi:type="menu:OpaqueToolItem" xmi:id="_9SqakK0mEeSB16p7uagR-g" elementId="org.eclipse.jdt.ui.edit.text.java.toggleBreadcrumb"/>
+ <children xsi:type="menu:OpaqueToolItem" xmi:id="_9SsPwK0mEeSB16p7uagR-g" elementId="org.eclipse.jdt.ui.edit.text.java.toggleMarkOccurrences"/>
+ <children xsi:type="menu:OpaqueToolItem" xmi:id="_9SuE8K0mEeSB16p7uagR-g" elementId="org.eclipse.ui.edit.text.toggleBlockSelectionMode"/>
+ <children xsi:type="menu:OpaqueToolItem" xmi:id="_9SvTEK0mEeSB16p7uagR-g" elementId="org.eclipse.ui.edit.text.toggleShowWhitespaceCharacters"/>
+ <children xsi:type="menu:OpaqueToolItem" xmi:id="_9SwhMK0mEeSB16p7uagR-g" elementId="org.eclipse.ui.edit.text.toggleShowSelectedElementOnly"/>
+ <children xsi:type="menu:OpaqueToolItem" xmi:id="_PqahALB0EeSyhZDep9nnJg" elementId="Presentation"/>
+ <children xsi:type="menu:OpaqueToolItem" xmi:id="_PqbvILB0EeSyhZDep9nnJg" elementId="org.eclipse.jdt.ui.edit.text.java.toggleBreadcrumb"/>
+ <children xsi:type="menu:OpaqueToolItem" xmi:id="_PqcWMLB0EeSyhZDep9nnJg" elementId="org.eclipse.jdt.ui.edit.text.java.toggleMarkOccurrences"/>
+ <children xsi:type="menu:OpaqueToolItem" xmi:id="_PqdkULB0EeSyhZDep9nnJg" elementId="org.eclipse.ui.edit.text.toggleBlockSelectionMode"/>
+ <children xsi:type="menu:OpaqueToolItem" xmi:id="_PqeLYLB0EeSyhZDep9nnJg" elementId="org.eclipse.ui.edit.text.toggleShowWhitespaceCharacters"/>
+ <children xsi:type="menu:OpaqueToolItem" xmi:id="_PqfZgLB0EeSyhZDep9nnJg" elementId="org.eclipse.ui.edit.text.toggleShowSelectedElementOnly"/>
+ <children xsi:type="menu:OpaqueToolItem" xmi:id="_thhhYLB5EeSrgJnondPT0g" elementId="Presentation"/>
+ <children xsi:type="menu:OpaqueToolItem" xmi:id="_thivgLB5EeSrgJnondPT0g" elementId="org.eclipse.jdt.ui.edit.text.java.toggleBreadcrumb"/>
+ <children xsi:type="menu:OpaqueToolItem" xmi:id="_thjWkLB5EeSrgJnondPT0g" elementId="org.eclipse.jdt.ui.edit.text.java.toggleMarkOccurrences"/>
+ <children xsi:type="menu:OpaqueToolItem" xmi:id="_thj9oLB5EeSrgJnondPT0g" elementId="org.eclipse.ui.edit.text.toggleBlockSelectionMode"/>
+ <children xsi:type="menu:OpaqueToolItem" xmi:id="_thkksLB5EeSrgJnondPT0g" elementId="org.eclipse.ui.edit.text.toggleShowWhitespaceCharacters"/>
+ <children xsi:type="menu:OpaqueToolItem" xmi:id="_thlLwLB5EeSrgJnondPT0g" elementId="org.eclipse.ui.edit.text.toggleShowSelectedElementOnly"/>
</children>
<children xsi:type="menu:ToolBar" xmi:id="_0cjCI0SyEeSN3ZLFRXim_g" elementId="group.nav" toBeRendered="false">
<tags>toolbarSeparator</tags>
<children xsi:type="menu:ToolBarSeparator" xmi:id="_0cjCJESyEeSN3ZLFRXim_g" elementId="group.nav" toBeRendered="false"/>
</children>
<children xsi:type="menu:ToolBar" xmi:id="_0cjpMESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.workbench.navigate">
<tags>Draggable</tags>
- <children xsi:type="menu:OpaqueToolItem" xmi:id="_2NlxMaxpEeS9fKmsDAXEaw" elementId="history.group"/>
- <children xsi:type="menu:OpaqueToolItem" xmi:id="_2NlxMqxpEeS9fKmsDAXEaw" elementId="group.application" visible="false"/>
- <children xsi:type="menu:OpaqueToolItem" xmi:id="_2NlxM6xpEeS9fKmsDAXEaw" elementId="backardHistory"/>
- <children xsi:type="menu:OpaqueToolItem" xmi:id="_2NlxNKxpEeS9fKmsDAXEaw" elementId="forwardHistory"/>
- <children xsi:type="menu:OpaqueToolItem" xmi:id="_2NmYQKxpEeS9fKmsDAXEaw" elementId="pin.group"/>
- <children xsi:type="menu:HandledToolItem" xmi:id="_2NmYQaxpEeS9fKmsDAXEaw" iconURI="platform:/plugin/org.eclipse.ui/icons/full/etool16/pin_editor.gif" tooltip="Pin the current editor" enabled="false" command="_0MRKeESyEeSN3ZLFRXim_g"/>
- <children xsi:type="menu:OpaqueToolItem" xmi:id="_2QAzEKxpEeS9fKmsDAXEaw" elementId="org.eclipse.ui.edit.text.gotoNextAnnotation"/>
- <children xsi:type="menu:OpaqueToolItem" xmi:id="_2QAzEaxpEeS9fKmsDAXEaw" elementId="org.eclipse.ui.edit.text.gotoPreviousAnnotation"/>
- <children xsi:type="menu:OpaqueToolItem" xmi:id="_2QAzEqxpEeS9fKmsDAXEaw" elementId="org.eclipse.ui.edit.text.gotoLastEditPosition"/>
+ <children xsi:type="menu:OpaqueToolItem" xmi:id="_LJDKxLjcEeSKNrfMXcGdvA" elementId="history.group"/>
+ <children xsi:type="menu:OpaqueToolItem" xmi:id="_LJDKxbjcEeSKNrfMXcGdvA" elementId="group.application" visible="false"/>
+ <children xsi:type="menu:OpaqueToolItem" xmi:id="_LJDKxrjcEeSKNrfMXcGdvA" elementId="backardHistory"/>
+ <children xsi:type="menu:OpaqueToolItem" xmi:id="_LJDKx7jcEeSKNrfMXcGdvA" elementId="forwardHistory"/>
+ <children xsi:type="menu:OpaqueToolItem" xmi:id="_LJDKyLjcEeSKNrfMXcGdvA" elementId="pin.group"/>
+ <children xsi:type="menu:HandledToolItem" xmi:id="_LJDKybjcEeSKNrfMXcGdvA" iconURI="platform:/plugin/org.eclipse.ui/icons/full/etool16/pin_editor.gif" tooltip="Pin the current editor" enabled="false" command="_0MRKeESyEeSN3ZLFRXim_g"/>
+ <children xsi:type="menu:OpaqueToolItem" xmi:id="_LLR_dbjcEeSKNrfMXcGdvA" elementId="org.eclipse.ui.edit.text.gotoNextAnnotation"/>
+ <children xsi:type="menu:OpaqueToolItem" xmi:id="_LLR_drjcEeSKNrfMXcGdvA" elementId="org.eclipse.ui.edit.text.gotoPreviousAnnotation"/>
+ <children xsi:type="menu:OpaqueToolItem" xmi:id="_LLR_d7jcEeSKNrfMXcGdvA" elementId="org.eclipse.ui.edit.text.gotoLastEditPosition"/>
</children>
<children xsi:type="menu:ToolBar" xmi:id="_0cjpMUSyEeSN3ZLFRXim_g" elementId="group.editor" toBeRendered="false">
<tags>toolbarSeparator</tags>
<children xsi:type="menu:ToolBarSeparator" xmi:id="_0cjpMkSyEeSN3ZLFRXim_g" elementId="group.editor" toBeRendered="false"/>
</children>
<children xsi:type="menu:ToolBar" xmi:id="_0cjpM0SyEeSN3ZLFRXim_g" elementId="group.help" toBeRendered="false">
<tags>toolbarSeparator</tags>
<children xsi:type="menu:ToolBarSeparator" xmi:id="_0cjpNESyEeSN3ZLFRXim_g" elementId="group.help" toBeRendered="false"/>
</children>
<children xsi:type="menu:ToolBar" xmi:id="_0cjpNUSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.workbench.help">
<tags>Draggable</tags>
- <children xsi:type="menu:OpaqueToolItem" xmi:id="_2Nm_UKxpEeS9fKmsDAXEaw" elementId="group.help"/>
- <children xsi:type="menu:OpaqueToolItem" xmi:id="_2Nm_UaxpEeS9fKmsDAXEaw" elementId="group.application" visible="false"/>
+ <children xsi:type="menu:OpaqueToolItem" xmi:id="_LJDKyrjcEeSKNrfMXcGdvA" elementId="group.help"/>
+ <children xsi:type="menu:OpaqueToolItem" xmi:id="_LJDKy7jcEeSKNrfMXcGdvA" elementId="group.application" visible="false"/>
</children>
<children xsi:type="menu:ToolControl" xmi:id="_0dgrcESyEeSN3ZLFRXim_g" elementId="PerspectiveSpacer" contributionURI="bundleclass://org.eclipse.e4.ui.workbench.renderers.swt/org.eclipse.e4.ui.workbench.renderers.swt.LayoutModifierToolControl">
<tags>stretch</tags>
</children>
<children xsi:type="menu:ToolControl" xmi:id="_0digoESyEeSN3ZLFRXim_g" elementId="Spacer Glue" contributionURI="bundleclass://org.eclipse.e4.ui.workbench.renderers.swt/org.eclipse.e4.ui.workbench.renderers.swt.LayoutModifierToolControl">
<tags>glue</tags>
</children>
<children xsi:type="menu:ToolControl" xmi:id="_0djuwESyEeSN3ZLFRXim_g" elementId="SearchField" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.quickaccess.SearchField"/>
<children xsi:type="menu:ToolControl" xmi:id="_0eMn8ESyEeSN3ZLFRXim_g" elementId="Search-PS Glue" contributionURI="bundleclass://org.eclipse.e4.ui.workbench.renderers.swt/org.eclipse.e4.ui.workbench.renderers.swt.LayoutModifierToolControl">
<tags>glue</tags>
</children>
<children xsi:type="menu:ToolControl" xmi:id="_0eN2EESyEeSN3ZLFRXim_g" elementId="PerspectiveSwitcher" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.e4.ui.workbench.addons.perspectiveswitcher.PerspectiveSwitcher">
<tags>Draggable</tags>
</children>
</trimBars>
<trimBars xmi:id="_0eXAAESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.trim.status" side="Bottom">
<children xsi:type="menu:ToolControl" xmi:id="_0eXnEESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.StatusLine" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.StandardTrim">
<tags>stretch</tags>
</children>
<children xsi:type="menu:ToolControl" xmi:id="_0eimMESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.HeapStatus" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.StandardTrim"/>
<children xsi:type="menu:ToolControl" xmi:id="_0enesESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.ProgressBar" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.StandardTrim">
<tags>Draggable</tags>
</children>
</trimBars>
- <trimBars xmi:id="_0e2vQESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.trim.vertical1" visible="false" side="Left">
- <children xsi:type="menu:ToolControl" xmi:id="_YNK6oF6CEeSBz78r8TmDuQ" elementId="left(org.eclipse.jdt.ui.JavaPerspective)" toBeRendered="false" contributionURI="bundleclass://org.eclipse.e4.ui.workbench.addons.swt/org.eclipse.e4.ui.workbench.addons.minmax.TrimStack">
+ <trimBars xmi:id="_0e2vQESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.trim.vertical1" side="Left">
+ <children xsi:type="menu:ToolControl" xmi:id="_YNK6oF6CEeSBz78r8TmDuQ" elementId="left(org.eclipse.jdt.ui.JavaPerspective)" contributionURI="bundleclass://org.eclipse.e4.ui.workbench.addons.swt/org.eclipse.e4.ui.workbench.addons.minmax.TrimStack">
<tags>TrimStack</tags>
</children>
<children xsi:type="menu:ToolControl" xmi:id="_CtsbMHZFEeSpHJWHnRVJbQ" elementId="com.android.ide.eclipse.ddms.views.LogCatViewMStack(org.eclipse.debug.ui.DebugPerspective)" visible="false" contributionURI="bundleclass://org.eclipse.e4.ui.workbench.addons.swt/org.eclipse.e4.ui.workbench.addons.minmax.TrimStack">
<tags>TrimStack</tags>
</children>
</trimBars>
<trimBars xmi:id="_0e3WUESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.trim.vertical2" side="Right">
<children xsi:type="menu:ToolControl" xmi:id="_YOESgF6CEeSBz78r8TmDuQ" elementId="right(org.eclipse.jdt.ui.JavaPerspective)" contributionURI="bundleclass://org.eclipse.e4.ui.workbench.addons.swt/org.eclipse.e4.ui.workbench.addons.minmax.TrimStack">
<tags>TrimStack</tags>
</children>
<children xsi:type="menu:ToolControl" xmi:id="_YONccF6CEeSBz78r8TmDuQ" elementId="bottom(org.eclipse.jdt.ui.JavaPerspective)" contributionURI="bundleclass://org.eclipse.e4.ui.workbench.addons.swt/org.eclipse.e4.ui.workbench.addons.minmax.TrimStack">
<tags>TrimStack</tags>
</children>
<children xsi:type="menu:ToolControl" xmi:id="_aK3yoGjkEeS1VNMOlA4YkA" elementId="org.eclipse.ui.editorss(org.eclipse.jdt.ui.JavaPerspective)" toBeRendered="false" contributionURI="bundleclass://org.eclipse.e4.ui.workbench.addons.swt/org.eclipse.e4.ui.workbench.addons.minmax.TrimStack">
<tags>TrimStack</tags>
</children>
</trimBars>
</children>
<handlers xmi:id="_0LpfY0SyEeSN3ZLFRXim_g" elementId="_UW9TY_r3Ed6gmo7caOxU9g" contributorURI="platform:/plugin/org.eclipse.platform" contributionURI="bundleclass://org.eclipse.e4.ui.workbench/org.eclipse.e4.ui.internal.workbench.ExitHandler" command="_0Lpfb0SyEeSN3ZLFRXim_g"/>
<handlers xmi:id="_0LpfZESyEeSN3ZLFRXim_g" elementId="_BESTZfr3Ed6gmo7caOxU04" contributorURI="platform:/plugin/org.eclipse.platform" contributionURI="bundleclass://org.eclipse.e4.ui.workbench.swt/org.eclipse.e4.ui.internal.workbench.swt.handlers.ShowViewHandler" command="_0LpfcESyEeSN3ZLFRXim_g"/>
<handlers xmi:id="_0LpfZUSyEeSN3ZLFRXim_g" elementId="org.eclipse.e4.ui.saveHandler" contributorURI="platform:/plugin/org.eclipse.platform" contributionURI="bundleclass://org.eclipse.e4.ui.workbench/org.eclipse.e4.ui.internal.workbench.handlers.SaveHandler" command="_0LpfckSyEeSN3ZLFRXim_g"/>
<handlers xmi:id="_0LpfZkSyEeSN3ZLFRXim_g" elementId="org.eclipse.e4.ui.saveAllHandler" contributorURI="platform:/plugin/org.eclipse.platform" contributionURI="bundleclass://org.eclipse.e4.ui.workbench/org.eclipse.e4.ui.internal.workbench.handlers.SaveAllHandler" command="_0Lpfc0SyEeSN3ZLFRXim_g"/>
<bindingTables xmi:id="_0LpfZ0SyEeSN3ZLFRXim_g" contributorURI="platform:/plugin/org.eclipse.platform" bindingContext="_0Lpfa0SyEeSN3ZLFRXim_g">
<bindings xmi:id="_0LpfaESyEeSN3ZLFRXim_g" elementId="_UW9TZfr3Ed6gmo7caOxU9g" contributorURI="platform:/plugin/org.eclipse.platform" keySequence="CTRL+Q" command="_0Lpfb0SyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0LpfaUSyEeSN3ZLFRXim_g" elementId="_oRr6EAFSEd-Z8rQksLwRYw" contributorURI="platform:/plugin/org.eclipse.platform" keySequence="CTRL+S" command="_0LpfckSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0LpfakSyEeSN3ZLFRXim_g" contributorURI="platform:/plugin/org.eclipse.platform" keySequence="CTRL+SHIFT+S" command="_0Lpfc0SyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NFCwUSyEeSN3ZLFRXim_g" keySequence="CTRL+INSERT" command="_0MUN4USyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NFp1ESyEeSN3ZLFRXim_g" keySequence="CTRL+A" command="_0MUN10SyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NHfAESyEeSN3ZLFRXim_g" keySequence="CTRL+SHIFT+I" command="_0MRKe0SyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NHfBESyEeSN3ZLFRXim_g" keySequence="CTRL+SPACE" command="_0MVb-USyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NIGFkSyEeSN3ZLFRXim_g" keySequence="CTRL+SHIFT+SPACE" command="_0MaUeESyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NJUNUSyEeSN3ZLFRXim_g" keySequence="CTRL+V" command="_0MSYn0SyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NJUNkSyEeSN3ZLFRXim_g" keySequence="CTRL+X" command="_0MXRI0SyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NJUN0SyEeSN3ZLFRXim_g" keySequence="CTRL+Y" command="_0MZGQUSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NJ7QkSyEeSN3ZLFRXim_g" keySequence="CTRL+Z" command="_0MSYsUSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NU6ZESyEeSN3ZLFRXim_g" keySequence="CTRL+SHIFT+L" command="_0MRxkkSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NU6ZUSyEeSN3ZLFRXim_g" keySequence="CTRL+1" command="_0MWqDkSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NVhc0SyEeSN3ZLFRXim_g" keySequence="ALT+SHIFT+F3" command="_0McJp0SyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NWIgkSyEeSN3ZLFRXim_g" keySequence="CTRL+F10" command="_0MU07kSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NYkwUSyEeSN3ZLFRXim_g" keySequence="SHIFT+INSERT" command="_0MSYn0SyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NiVwkSyEeSN3ZLFRXim_g" keySequence="CTRL+SHIFT+D" command="_0MYfTESyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0Ni80ESyEeSN3ZLFRXim_g" keySequence="SHIFT+DEL" command="_0MXRI0SyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0Njj4ESyEeSN3ZLFRXim_g" keySequence="CTRL+C" command="_0MUN4USyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0Njj40SyEeSN3ZLFRXim_g" keySequence="ALT+PAGE_UP" command="_0MVb8ESyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NkyAESyEeSN3ZLFRXim_g" keySequence="ALT+PAGE_DOWN" command="_0MX4IESyEeSN3ZLFRXim_g"/>
</bindingTables>
<bindingTables xmi:id="_0NAKQESyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.ui.cEditorScope" bindingContext="_0MhpNUSyEeSN3ZLFRXim_g">
<bindings xmi:id="_0ND0oESyEeSN3ZLFRXim_g" keySequence="CTRL+I" command="_0MS_tkSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NFCwESyEeSN3ZLFRXim_g" keySequence="CTRL+TAB" command="_0MbimkSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NFp00SyEeSN3ZLFRXim_g" keySequence="ALT+C" command="_0MRxi0SyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NGQ5ESyEeSN3ZLFRXim_g" keySequence="CTRL+SHIFT+F" command="_0Ma7eUSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NG38USyEeSN3ZLFRXim_g" keySequence="ALT+CTRL+I" command="_0McwvUSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NIGE0SyEeSN3ZLFRXim_g" keySequence="ALT+SHIFT+ARROW_UP" command="_0Mbil0SyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NLwcUSyEeSN3ZLFRXim_g" keySequence="ALT+SHIFT+R" command="_0McJo0SyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NLwdESyEeSN3ZLFRXim_g" keySequence="ALT+CTRL+S" command="_0MVcAkSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NLwdUSyEeSN3ZLFRXim_g" keySequence="F4" command="_0MYfMkSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NMXgkSyEeSN3ZLFRXim_g" keySequence="CTRL+SHIFT+T" command="_0MYfO0SyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NM-kUSyEeSN3ZLFRXim_g" keySequence="F3" command="_0MXRIUSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NOMsESyEeSN3ZLFRXim_g" keySequence="CTRL+/" command="_0MZtbUSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NOzxkSyEeSN3ZLFRXim_g" keySequence="CTRL+T" command="_0MP8a0SyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NQB4USyEeSN3ZLFRXim_g" keySequence="CTRL+SHIFT+N" command="_0MQjdkSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NQo8kSyEeSN3ZLFRXim_g" keySequence="CTRL+O" command="_0MZtX0SyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NRQAESyEeSN3ZLFRXim_g" keySequence="CTRL+SHIFT+P" command="_0MVb_0SyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NRQA0SyEeSN3ZLFRXim_g" keySequence="ALT+SHIFT+L" command="_0MQjc0SyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NRQBUSyEeSN3ZLFRXim_g" keySequence="ALT+SHIFT+M" command="_0MSYnUSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NR3EkSyEeSN3ZLFRXim_g" keySequence="ALT+SHIFT+T" command="_0MU01ESyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NSeIESyEeSN3ZLFRXim_g" keySequence="ALT+SHIFT+Z" command="_0MaUbESyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NSeI0SyEeSN3ZLFRXim_g" keySequence="ALT+SHIFT+O" command="_0MX4I0SyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NSeJUSyEeSN3ZLFRXim_g" keySequence="CTRL+SHIFT+/" command="_0MVb_ESyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NTFNkSyEeSN3ZLFRXim_g" keySequence="ALT+SHIFT+S" command="_0MZtUESyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NWvlkSyEeSN3ZLFRXim_g" keySequence="CTRL+G" command="_0MZGRkSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NX9sESyEeSN3ZLFRXim_g" keySequence="CTRL+SHIFT+ARROW_UP" command="_0MaUbkSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NX9s0SyEeSN3ZLFRXim_g" keySequence="ALT+SHIFT+ARROW_DOWN" command="_0Ma7dESyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NX9tkSyEeSN3ZLFRXim_g" keySequence="SHIFT+TAB" command="_0MbiikSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NZL0kSyEeSN3ZLFRXim_g" keySequence="ALT+SHIFT+ARROW_RIGHT" command="_0MWqAUSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NZy4USyEeSN3ZLFRXim_g" keySequence="CTRL+SHIFT+H" command="_0MTmxUSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NaZ8ESyEeSN3ZLFRXim_g" keySequence="CTRL+SHIFT+\" command="_0MYfRkSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NaZ9ESyEeSN3ZLFRXim_g" keySequence="CTRL+=" command="_0MSYq0SyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NggkESyEeSN3ZLFRXim_g" keySequence="CTRL+SHIFT+ARROW_DOWN" command="_0MWqIkSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NhHokSyEeSN3ZLFRXim_g" keySequence="ALT+SHIFT+ARROW_LEFT" command="_0MU000SyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0Njj4USyEeSN3ZLFRXim_g" keySequence="CTRL+#" command="_0MSYq0SyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NkK8ESyEeSN3ZLFRXim_g" keySequence="CTRL+SHIFT+G" command="_0MX4J0SyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NkyAUSyEeSN3ZLFRXim_g" keySequence="ALT+CTRL+H" command="_0MZtY0SyEeSN3ZLFRXim_g"/>
</bindingTables>
<bindingTables xmi:id="_0NEbsESyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.javaEditorScope" bindingContext="_0MhpNkSyEeSN3ZLFRXim_g">
<bindings xmi:id="_0NEbsUSyEeSN3ZLFRXim_g" keySequence="CTRL+I" command="_0MU02kSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NGQ5USyEeSN3ZLFRXim_g" keySequence="CTRL+SHIFT+F" command="_0MYfS0SyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NIGFESyEeSN3ZLFRXim_g" keySequence="ALT+SHIFT+ARROW_UP" command="_0MWqH0SyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NOMsUSyEeSN3ZLFRXim_g" keySequence="CTRL+/" command="_0MRKfESyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NPa0USyEeSN3ZLFRXim_g" keySequence="CTRL+T" command="_0MU04USyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NQo8USyEeSN3ZLFRXim_g" keySequence="CTRL+F3" command="_0MWDDkSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NQo80SyEeSN3ZLFRXim_g" keySequence="CTRL+O" command="_0MTm0USyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NRQAUSyEeSN3ZLFRXim_g" keySequence="CTRL+SHIFT+P" command="_0MVb7USyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NSeIkSyEeSN3ZLFRXim_g" keySequence="ALT+SHIFT+U" command="_0MZtZ0SyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NSeJESyEeSN3ZLFRXim_g" keySequence="ALT+SHIFT+O" command="_0MP8YkSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NTFMESyEeSN3ZLFRXim_g" keySequence="CTRL+SHIFT+/" command="_0MRKfkSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NTFM0SyEeSN3ZLFRXim_g" keySequence="CTRL+SHIFT+M" command="_0MZGTkSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NTFNESyEeSN3ZLFRXim_g" keySequence="CTRL+7" command="_0MRKfESyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NXWpkSyEeSN3ZLFRXim_g" keySequence="ALT+SHIFT+B" command="_0MYfUESyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NX9sUSyEeSN3ZLFRXim_g" keySequence="CTRL+SHIFT+ARROW_UP" command="_0MWqGkSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NX9tESyEeSN3ZLFRXim_g" keySequence="ALT+SHIFT+ARROW_DOWN" command="_0MUNzESyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NYkxkSyEeSN3ZLFRXim_g" keySequence="CTRL+SHIFT+C" command="_0MRKfESyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NZL00SyEeSN3ZLFRXim_g" keySequence="ALT+SHIFT+ARROW_RIGHT" command="_0McJrkSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NaZ8USyEeSN3ZLFRXim_g" keySequence="CTRL+SHIFT+\" command="_0McwokSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NaZ9USyEeSN3ZLFRXim_g" keySequence="CTRL+2 F" command="_0MZtYESyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NaZ9kSyEeSN3ZLFRXim_g" keySequence="CTRL+2 L" command="_0MU06USyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NbBAESyEeSN3ZLFRXim_g" keySequence="CTRL+2 R" command="_0MS_p0SyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NggkUSyEeSN3ZLFRXim_g" keySequence="CTRL+SHIFT+ARROW_DOWN" command="_0McJrUSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NhHo0SyEeSN3ZLFRXim_g" keySequence="ALT+SHIFT+ARROW_LEFT" command="_0Ma7gkSyEeSN3ZLFRXim_g"/>
</bindingTables>
<bindingTables xmi:id="_0NEbskSyEeSN3ZLFRXim_g" elementId="org.eclipse.wst.sse.ui.structuredTextEditorScope" bindingContext="_0MhpLESyEeSN3ZLFRXim_g">
<bindings xmi:id="_0NEbs0SyEeSN3ZLFRXim_g" keySequence="CTRL+I" command="_0MRKfUSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NG38ESyEeSN3ZLFRXim_g" keySequence="CTRL+SHIFT+F" command="_0MU060SyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NG39ESyEeSN3ZLFRXim_g" keySequence="CTRL+SHIFT+>" command="_0MU01USyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NIGFUSyEeSN3ZLFRXim_g" keySequence="ALT+SHIFT+ARROW_UP" command="_0MP8aESyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NM-lUSyEeSN3ZLFRXim_g" keySequence="F3" command="_0MWDA0SyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NQo9ESyEeSN3ZLFRXim_g" keySequence="CTRL+O" command="_0MYfR0SyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NRQAkSyEeSN3ZLFRXim_g" keySequence="CTRL+SHIFT+P" command="_0Ma7dUSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NTFMUSyEeSN3ZLFRXim_g" keySequence="CTRL+SHIFT+/" command="_0MWqHUSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NXWpUSyEeSN3ZLFRXim_g" keySequence="CTRL+SHIFT+A" command="_0MbijESyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NX9skSyEeSN3ZLFRXim_g" keySequence="CTRL+SHIFT+ARROW_UP" command="_0Ma7gUSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NX9tUSyEeSN3ZLFRXim_g" keySequence="ALT+SHIFT+ARROW_DOWN" command="_0MUNwkSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NZL0USyEeSN3ZLFRXim_g" keySequence="CTRL+SHIFT+C" command="_0MTmu0SyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NZL1ESyEeSN3ZLFRXim_g" keySequence="ALT+SHIFT+ARROW_RIGHT" command="_0MZtUkSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NaZ8kSyEeSN3ZLFRXim_g" keySequence="CTRL+SHIFT+\" command="_0MX4KUSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NhHoESyEeSN3ZLFRXim_g" keySequence="CTRL+SHIFT+ARROW_DOWN" command="_0MS_tUSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NhusESyEeSN3ZLFRXim_g" keySequence="ALT+SHIFT+ARROW_LEFT" command="_0MbilUSyEeSN3ZLFRXim_g"/>
</bindingTables>
<bindingTables xmi:id="_0NFCwkSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.contexts.window" bindingContext="_0LpfbESyEeSN3ZLFRXim_g">
<bindings xmi:id="_0NFCw0SyEeSN3ZLFRXim_g" keySequence="CTRL+SHIFT+NUMPAD_MULTIPLY" command="_0MQja0SyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NFp0ESyEeSN3ZLFRXim_g" keySequence="ALT+SHIFT+D T" command="_0MWDBkSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NFp0USyEeSN3ZLFRXim_g" keySequence="ALT+SHIFT+D A" command="_0MZGWUSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NFp0kSyEeSN3ZLFRXim_g" keySequence="ALT+SHIFT+D J" command="_0Ma7d0SyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NGQ4kSyEeSN3ZLFRXim_g" keySequence="ALT+ARROW_LEFT" command="_0MWqF0SyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NHfAUSyEeSN3ZLFRXim_g" keySequence="ALT+SHIFT+J" command="_0MdXskSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NHfBUSyEeSN3ZLFRXim_g" keySequence="ALT+SHIFT+A R" command="_0McwpUSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NIGEESyEeSN3ZLFRXim_g" keySequence="ALT+SHIFT+A D" command="_0MdXtkSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NIGEUSyEeSN3ZLFRXim_g" keySequence="ALT+SHIFT+A S" command="_0MWC90SyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NItIUSyEeSN3ZLFRXim_g" keySequence="ALT+ARROW_RIGHT" command="_0MZGS0SyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NItIkSyEeSN3ZLFRXim_g" keySequence="CTRL+B" command="_0MQjaUSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NItJESyEeSN3ZLFRXim_g" keySequence="CTRL+M" command="_0MVb40SyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NItJUSyEeSN3ZLFRXim_g" keySequence="F12" command="_0MX4M0SyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NItJkSyEeSN3ZLFRXim_g" keySequence="ALT+-" command="_0MWqHkSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NJUMESyEeSN3ZLFRXim_g" keySequence="CTRL+," command="_0MSYoUSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NJUMUSyEeSN3ZLFRXim_g" keySequence="CTRL+." command="_0MTm0ESyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NJUMkSyEeSN3ZLFRXim_g" keySequence="DEL" command="_0MRxk0SyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NJ7RUSyEeSN3ZLFRXim_g" keySequence="F5" command="_0MS_t0SyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NJ7SESyEeSN3ZLFRXim_g" keySequence="ALT+CR" command="_0MZtWESyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NKiUESyEeSN3ZLFRXim_g" keySequence="CTRL+P" command="_0MZGSkSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NKiUUSyEeSN3ZLFRXim_g" keySequence="CTRL+SHIFT+S" command="_0MU050SyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NKiUkSyEeSN3ZLFRXim_g" keySequence="CTRL+S" command="_0MWqBkSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NKiU0SyEeSN3ZLFRXim_g" keySequence="CTRL+SHIFT+F4" command="_0McJoESyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NLJYESyEeSN3ZLFRXim_g" keySequence="CTRL+SHIFT+W" command="_0McJoESyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NLJYUSyEeSN3ZLFRXim_g" keySequence="CTRL+F4" command="_0MUN2ESyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NLJZESyEeSN3ZLFRXim_g" keySequence="CTRL+W" command="_0MUN2ESyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NLJZkSyEeSN3ZLFRXim_g" keySequence="CTRL+N" command="_0MUN2kSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NLwcESyEeSN3ZLFRXim_g" keySequence="CTRL+SHIFT+U" command="_0MRKh0SyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NLwc0SyEeSN3ZLFRXim_g" keySequence="ALT+SHIFT+R" command="_0MXRHUSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NMXgUSyEeSN3ZLFRXim_g" keySequence="F4" command="_0MWqDESyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NMXhESyEeSN3ZLFRXim_g" keySequence="CTRL+SHIFT+T" command="_0MWDAkSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NM-lESyEeSN3ZLFRXim_g" keySequence="F3" command="_0MXRLkSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NNlokSyEeSN3ZLFRXim_g" keySequence="SHIFT+F9" command="_0MaUZkSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NNlo0SyEeSN3ZLFRXim_g" keySequence="F9" command="_0MU080SyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NOMtUSyEeSN3ZLFRXim_g" keySequence="SHIFT+F5" command="_0MS_pESyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NOzwkSyEeSN3ZLFRXim_g" keySequence="F11" command="_0MS_oUSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NOzw0SyEeSN3ZLFRXim_g" keySequence="CTRL+F11" command="_0MZGU0SyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NQB4ESyEeSN3ZLFRXim_g" keySequence="CTRL+U" command="_0MdXuESyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NQB4kSyEeSN3ZLFRXim_g" keySequence="CTRL+SHIFT+N" command="_0MP8Y0SyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NQB5ESyEeSN3ZLFRXim_g" keySequence="F2" command="_0MTmzUSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NQo8ESyEeSN3ZLFRXim_g" keySequence="SHIFT+F2" command="_0MaUckSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NRQBESyEeSN3ZLFRXim_g" keySequence="ALT+SHIFT+L" command="_0Ma7fkSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NR3EESyEeSN3ZLFRXim_g" keySequence="ALT+SHIFT+M" command="_0Ma7ikSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NR3EUSyEeSN3ZLFRXim_g" keySequence="ALT+SHIFT+V" command="_0MS_v0SyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NR3E0SyEeSN3ZLFRXim_g" keySequence="ALT+SHIFT+T" command="_0MZGV0SyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NSeIUSyEeSN3ZLFRXim_g" keySequence="ALT+SHIFT+Z" command="_0MRKc0SyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NTFMkSyEeSN3ZLFRXim_g" keySequence="CTRL+SHIFT+O" command="_0MX4NESyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NTsQESyEeSN3ZLFRXim_g" keySequence="ALT+SHIFT+S" command="_0MSYokSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NTsQUSyEeSN3ZLFRXim_g" keySequence="CTRL+F6" command="_0MS_wESyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NTsQkSyEeSN3ZLFRXim_g" keySequence="CTRL+SHIFT+F6" command="_0MU09ESyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NTsQ0SyEeSN3ZLFRXim_g" keySequence="CTRL+F7" command="_0MZtVESyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NTsRESyEeSN3ZLFRXim_g" keySequence="CTRL+SHIFT+F7" command="_0MWC-ESyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NTsRUSyEeSN3ZLFRXim_g" keySequence="CTRL+F8" command="_0McwuESyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NUTUESyEeSN3ZLFRXim_g" keySequence="CTRL+SHIFT+F8" command="_0MWDBESyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NUTUUSyEeSN3ZLFRXim_g" keySequence="ALT+F7" command="_0MWqFESyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NUTUkSyEeSN3ZLFRXim_g" keySequence="ALT+SHIFT+F7" command="_0MU03ESyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NU6YESyEeSN3ZLFRXim_g" keySequence="CTRL+SHIFT+NUMPAD_DIVIDE" command="_0MYfQESyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NU6ZkSyEeSN3ZLFRXim_g" keySequence="CTRL+SHIFT+R" command="_0MU03USyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NVhcESyEeSN3ZLFRXim_g" keySequence="ALT+SHIFT+W" command="_0MTmyESyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NVhcUSyEeSN3ZLFRXim_g" keySequence="ALT+SHIFT+N" command="_0MSYrUSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NVhckSyEeSN3ZLFRXim_g" keySequence="CTRL+3" command="_0McJqUSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NWIhESyEeSN3ZLFRXim_g" keySequence="CTRL+Q" command="_0MX4QESyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NXWoESyEeSN3ZLFRXim_g" keySequence="CTRL+G" command="_0MUNxESyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NYkwESyEeSN3ZLFRXim_g" keySequence="CTRL+H" command="_0MZtWUSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NZy4ESyEeSN3ZLFRXim_g" keySequence="ALT+SHIFT+I" command="_0MUN3kSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NZy40SyEeSN3ZLFRXim_g" keySequence="CTRL+SHIFT+H" command="_0MQjZ0SyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NaZ80SyEeSN3ZLFRXim_g" keySequence="CTRL+E" command="_0MSYlESyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NbBAUSyEeSN3ZLFRXim_g" keySequence="ALT+SHIFT+X T" command="_0MZtV0SyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NbBAkSyEeSN3ZLFRXim_g" keySequence="ALT+SHIFT+X A" command="_0McwqkSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NbBA0SyEeSN3ZLFRXim_g" keySequence="ALT+SHIFT+X J" command="_0MZGWkSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NboEESyEeSN3ZLFRXim_g" keySequence="ALT+SHIFT+Q V" command="_0McJlUSyEeSN3ZLFRXim_g">
<parameters xmi:id="_0NboEUSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.views.showView.viewId" name="org.eclipse.ui.views.showView.viewId" value="org.eclipse.debug.ui.VariableView"/>
</bindings>
<bindings xmi:id="_0NcPIESyEeSN3ZLFRXim_g" keySequence="ALT+SHIFT+Q B" command="_0McJlUSyEeSN3ZLFRXim_g">
<parameters xmi:id="_0NcPIUSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.views.showView.viewId" name="org.eclipse.ui.views.showView.viewId" value="org.eclipse.debug.ui.BreakpointView"/>
</bindings>
<bindings xmi:id="_0NcPIkSyEeSN3ZLFRXim_g" keySequence="ALT+SHIFT+Q T" command="_0McJlUSyEeSN3ZLFRXim_g">
<parameters xmi:id="_0NcPI0SyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.views.showView.viewId" name="org.eclipse.ui.views.showView.viewId" value="org.eclipse.jdt.ui.TypeHierarchy"/>
</bindings>
<bindings xmi:id="_0NcPJESyEeSN3ZLFRXim_g" keySequence="ALT+SHIFT+Q P" command="_0McJlUSyEeSN3ZLFRXim_g">
<parameters xmi:id="_0NcPJUSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.views.showView.viewId" name="org.eclipse.ui.views.showView.viewId" value="org.eclipse.jdt.ui.PackageExplorer"/>
</bindings>
<bindings xmi:id="_0Nc2MESyEeSN3ZLFRXim_g" keySequence="ALT+SHIFT+Q D" command="_0McJlUSyEeSN3ZLFRXim_g">
<parameters xmi:id="_0Nc2MUSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.views.showView.viewId" name="org.eclipse.ui.views.showView.viewId" value="org.eclipse.jdt.ui.SourceView"/>
</bindings>
<bindings xmi:id="_0Nc2MkSyEeSN3ZLFRXim_g" keySequence="ALT+SHIFT+Q J" command="_0McJlUSyEeSN3ZLFRXim_g">
<parameters xmi:id="_0Nc2M0SyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.views.showView.viewId" name="org.eclipse.ui.views.showView.viewId" value="org.eclipse.jdt.ui.JavadocView"/>
</bindings>
<bindings xmi:id="_0NddQESyEeSN3ZLFRXim_g" keySequence="ALT+SHIFT+Q S" command="_0McJlUSyEeSN3ZLFRXim_g">
<parameters xmi:id="_0NddQUSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.views.showView.viewId" name="org.eclipse.ui.views.showView.viewId" value="org.eclipse.search.ui.views.SearchView"/>
</bindings>
<bindings xmi:id="_0NddQkSyEeSN3ZLFRXim_g" keySequence="ALT+SHIFT+Q Y" command="_0McJlUSyEeSN3ZLFRXim_g">
<parameters xmi:id="_0NddQ0SyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.views.showView.viewId" name="org.eclipse.ui.views.showView.viewId" value="org.eclipse.team.sync.views.SynchronizeView"/>
</bindings>
<bindings xmi:id="_0NddRESyEeSN3ZLFRXim_g" keySequence="ALT+SHIFT+Q Z" command="_0McJlUSyEeSN3ZLFRXim_g">
<parameters xmi:id="_0NddRUSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.views.showView.viewId" name="org.eclipse.ui.views.showView.viewId" value="org.eclipse.team.ui.GenericHistoryView"/>
</bindings>
<bindings xmi:id="_0NeEUESyEeSN3ZLFRXim_g" keySequence="ALT+SHIFT+Q H" command="_0McJlUSyEeSN3ZLFRXim_g">
<parameters xmi:id="_0NeEUUSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.views.showView.viewId" name="org.eclipse.ui.views.showView.viewId" value="org.eclipse.ui.cheatsheets.views.CheatSheetView"/>
</bindings>
<bindings xmi:id="_0NeEUkSyEeSN3ZLFRXim_g" keySequence="ALT+SHIFT+Q C" command="_0McJlUSyEeSN3ZLFRXim_g">
<parameters xmi:id="_0NeEU0SyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.views.showView.viewId" name="org.eclipse.ui.views.showView.viewId" value="org.eclipse.ui.console.ConsoleView"/>
</bindings>
<bindings xmi:id="_0NerYESyEeSN3ZLFRXim_g" keySequence="ALT+SHIFT+Q Q" command="_0McJlUSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NfScESyEeSN3ZLFRXim_g" keySequence="ALT+SHIFT+Q X" command="_0McJlUSyEeSN3ZLFRXim_g">
<parameters xmi:id="_0NfScUSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.views.showView.viewId" name="org.eclipse.ui.views.showView.viewId" value="org.eclipse.ui.views.ProblemView"/>
</bindings>
<bindings xmi:id="_0Nf5gESyEeSN3ZLFRXim_g" keySequence="ALT+SHIFT+Q O" command="_0McJlUSyEeSN3ZLFRXim_g">
<parameters xmi:id="_0Nf5gUSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.views.showView.viewId" name="org.eclipse.ui.views.showView.viewId" value="org.eclipse.ui.views.ContentOutline"/>
</bindings>
<bindings xmi:id="_0NhHoUSyEeSN3ZLFRXim_g" keySequence="ALT+SHIFT+C" command="_0MZtYUSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NhusUSyEeSN3ZLFRXim_g" keySequence="CTRL+SHIFT+B" command="_0MX4PUSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NhuskSyEeSN3ZLFRXim_g" keySequence="ALT+CTRL+G" command="_0MRxl0SyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NiVwESyEeSN3ZLFRXim_g" keySequence="ALT+SHIFT+F" command="_0McwoUSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NiVwUSyEeSN3ZLFRXim_g" keySequence="CTRL+SHIFT+E" command="_0MWC80SyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0Ni80USyEeSN3ZLFRXim_g" keySequence="CTRL+F" command="_0MXRJUSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0Njj4kSyEeSN3ZLFRXim_g" keySequence="CTRL+#" command="_0MX4JkSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NkK8kSyEeSN3ZLFRXim_g" keySequence="CTRL+SHIFT+G" command="_0MSYnESyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NkyA0SyEeSN3ZLFRXim_g" keySequence="ALT+CTRL+H" command="_0MSYpkSyEeSN3ZLFRXim_g"/>
</bindingTables>
<bindingTables xmi:id="_0NFCxESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.textEditorScope" bindingContext="_0MhpK0SyEeSN3ZLFRXim_g">
<bindings xmi:id="_0NFCxUSyEeSN3ZLFRXim_g" keySequence="CTRL+SHIFT+NUMPAD_MULTIPLY" command="_0MRKg0SyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NFCxkSyEeSN3ZLFRXim_g" keySequence="CTRL+SHIFT+J" command="_0MX4MUSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NGQ40SyEeSN3ZLFRXim_g" keySequence="CTRL+ARROW_UP" command="_0MZGR0SyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NG39USyEeSN3ZLFRXim_g" keySequence="ALT+CTRL+ARROW_UP" command="_0MZGVESyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NHfAkSyEeSN3ZLFRXim_g" keySequence="CTRL+SHIFT+INSERT" command="_0MXRLUSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NHfA0SyEeSN3ZLFRXim_g" keySequence="ALT+ARROW_DOWN" command="_0MXRJESyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NIGEkSyEeSN3ZLFRXim_g" keySequence="ALT+SHIFT+A" command="_0MWqBUSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NItI0SyEeSN3ZLFRXim_g" keySequence="CTRL+ARROW_DOWN" command="_0MYfUUSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NQB40SyEeSN3ZLFRXim_g" keySequence="ALT+/" command="_0McwukSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NQB5USyEeSN3ZLFRXim_g" keySequence="F2" command="_0MRxh0SyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NUTU0SyEeSN3ZLFRXim_g" keySequence="CTRL+SHIFT+Q" command="_0MXRJ0SyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NUTVESyEeSN3ZLFRXim_g" keySequence="CTRL+NUMPAD_DIVIDE" command="_0MYfQkSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NUTVUSyEeSN3ZLFRXim_g" keySequence="CTRL+NUMPAD_MULTIPLY" command="_0MVb-kSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NU6YUSyEeSN3ZLFRXim_g" keySequence="CTRL+SHIFT+NUMPAD_DIVIDE" command="_0MVb50SyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NU6YkSyEeSN3ZLFRXim_g" keySequence="CTRL+NUMPAD_ADD" command="_0MWDC0SyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NU6Y0SyEeSN3ZLFRXim_g" keySequence="CTRL+NUMPAD_SUBTRACT" command="_0MZGYESyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NVhdESyEeSN3ZLFRXim_g" keySequence="CTRL+K" command="_0MbikESyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NVhdUSyEeSN3ZLFRXim_g" keySequence="CTRL+SHIFT+K" command="_0McJk0SyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NVhdkSyEeSN3ZLFRXim_g" keySequence="CTRL+J" command="_0MU08ESyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NWIgESyEeSN3ZLFRXim_g" keySequence="CTRL+L" command="_0MXRMESyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NWIgUSyEeSN3ZLFRXim_g" keySequence="INSERT" command="_0MRxjESyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NWIg0SyEeSN3ZLFRXim_g" keySequence="CTRL+F10" command="_0MWqEUSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NWIhUSyEeSN3ZLFRXim_g" keySequence="SHIFT+CR" command="_0MVb8kSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NWIhkSyEeSN3ZLFRXim_g" keySequence="CTRL+SHIFT+CR" command="_0MQjckSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NWIh0SyEeSN3ZLFRXim_g" keySequence="CTRL+SHIFT+X" command="_0Ma7dkSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NWvkESyEeSN3ZLFRXim_g" keySequence="CTRL+SHIFT+Y" command="_0MWqIESyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NWvkUSyEeSN3ZLFRXim_g" keySequence="END" command="_0McwoESyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NWvlESyEeSN3ZLFRXim_g" keySequence="HOME" command="_0MWqAESyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NXWoUSyEeSN3ZLFRXim_g" keySequence="SHIFT+END" command="_0MQjb0SyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NXWokSyEeSN3ZLFRXim_g" keySequence="CTRL+HOME" command="_0MZtVkSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NXWo0SyEeSN3ZLFRXim_g" keySequence="ALT+ARROW_UP" command="_0MZtXUSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NXWpESyEeSN3ZLFRXim_g" keySequence="CTRL+DEL" command="_0MSYr0SyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NYkwkSyEeSN3ZLFRXim_g" keySequence="ALT+CTRL+J" command="_0MZGRUSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NYkw0SyEeSN3ZLFRXim_g" keySequence="CTRL+END" command="_0MRxjUSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NYkxESyEeSN3ZLFRXim_g" keySequence="CTRL+BS" command="_0MTmukSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NZL1USyEeSN3ZLFRXim_g" keySequence="CTRL+SHIFT+ARROW_LEFT" command="_0MXRGUSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0Nhus0SyEeSN3ZLFRXim_g" keySequence="CTRL+SHIFT+DEL" command="_0MS_vUSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NhutESyEeSN3ZLFRXim_g" keySequence="ALT+CTRL+ARROW_DOWN" command="_0MZtYkSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NiVw0SyEeSN3ZLFRXim_g" keySequence="CTRL+SHIFT+ARROW_RIGHT" command="_0McJpUSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0Ni80kSyEeSN3ZLFRXim_g" keySequence="SHIFT+HOME" command="_0MX4K0SyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0Njj5ESyEeSN3ZLFRXim_g" keySequence="CTRL+ARROW_LEFT" command="_0MS_rESyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NkK80SyEeSN3ZLFRXim_g" keySequence="CTRL+ARROW_RIGHT" command="_0MZtaUSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NkK9ESyEeSN3ZLFRXim_g" keySequence="CTRL+D" command="_0MU07USyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_GNIJAIRHEeSC84y2lhHXeA" keySequence="SHIFT+F12" command="_GMjhRIRHEeSC84y2lhHXeA"/>
<bindings xmi:id="_GNIJAYRHEeSC84y2lhHXeA" keySequence="F12" command="_GMjhRYRHEeSC84y2lhHXeA"/>
</bindingTables>
<bindingTables xmi:id="_0NGQ4ESyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.ui.macroExpansionHoverScope" bindingContext="_0MiQNkSyEeSN3ZLFRXim_g">
<bindings xmi:id="_0NGQ4USyEeSN3ZLFRXim_g" keySequence="ALT+ARROW_LEFT" command="_0MRKcESyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NItIESyEeSN3ZLFRXim_g" keySequence="ALT+ARROW_RIGHT" command="_0MX4L0SyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NM-k0SyEeSN3ZLFRXim_g" keySequence="F3" command="_0MXRIUSyEeSN3ZLFRXim_g"/>
</bindingTables>
<bindingTables xmi:id="_0NG38kSyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.ui.cViewScope" bindingContext="_0MhpJESyEeSN3ZLFRXim_g">
<bindings xmi:id="_0NG380SyEeSN3ZLFRXim_g" keySequence="ALT+CTRL+I" command="_0McwvUSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NLwckSyEeSN3ZLFRXim_g" keySequence="ALT+SHIFT+R" command="_0McJo0SyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NMXgESyEeSN3ZLFRXim_g" keySequence="F4" command="_0MYfMkSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NMXg0SyEeSN3ZLFRXim_g" keySequence="CTRL+SHIFT+T" command="_0MYfO0SyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NM-kkSyEeSN3ZLFRXim_g" keySequence="F3" command="_0MXRIUSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NWvl0SyEeSN3ZLFRXim_g" keySequence="CTRL+G" command="_0MZGRkSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NZy4kSyEeSN3ZLFRXim_g" keySequence="CTRL+SHIFT+H" command="_0MTmxUSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NkK8USyEeSN3ZLFRXim_g" keySequence="CTRL+SHIFT+G" command="_0MX4J0SyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NkyAkSyEeSN3ZLFRXim_g" keySequence="ALT+CTRL+H" command="_0MZtY0SyEeSN3ZLFRXim_g"/>
</bindingTables>
<bindingTables xmi:id="_0NJUM0SyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.RepositoriesView" bindingContext="_0MhpIkSyEeSN3ZLFRXim_g">
<bindings xmi:id="_0NJUNESyEeSN3ZLFRXim_g" keySequence="CTRL+V" command="_0MSYnkSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0Ni800SyEeSN3ZLFRXim_g" keySequence="CTRL+C" command="_0MSYo0SyEeSN3ZLFRXim_g"/>
</bindingTables>
<bindingTables xmi:id="_0NJ7QESyEeSN3ZLFRXim_g" elementId="org.eclipse.debug.ui.console" bindingContext="_0MhpKkSyEeSN3ZLFRXim_g">
<bindings xmi:id="_0NJ7QUSyEeSN3ZLFRXim_g" keySequence="CTRL+Z" command="_0MVb7ESyEeSN3ZLFRXim_g">
<tags>platform:win32</tags>
</bindings>
</bindingTables>
<bindingTables xmi:id="_0NJ7Q0SyEeSN3ZLFRXim_g" elementId="org.eclipse.debug.ui.debugging" bindingContext="_0MhpJUSyEeSN3ZLFRXim_g">
<bindings xmi:id="_0NJ7RESyEeSN3ZLFRXim_g" keySequence="F5" command="_0MZGQ0SyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NOMtkSyEeSN3ZLFRXim_g" keySequence="F6" command="_0MQjeUSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NOMt0SyEeSN3ZLFRXim_g" keySequence="F7" command="_0McJq0SyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NOzwESyEeSN3ZLFRXim_g" keySequence="F8" command="_0MdXt0SyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NOzwUSyEeSN3ZLFRXim_g" keySequence="CTRL+F2" command="_0MVcAESyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NOzxESyEeSN3ZLFRXim_g" keySequence="CTRL+R" command="_0MU00kSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NPa1kSyEeSN3ZLFRXim_g" keySequence="CTRL+F5" command="_0MXRJkSyEeSN3ZLFRXim_g"/>
</bindingTables>
<bindingTables xmi:id="_0NJ7RkSyEeSN3ZLFRXim_g" elementId="org.eclipse.debug.ui.BreakpointView" bindingContext="_0MhpKESyEeSN3ZLFRXim_g">
<bindings xmi:id="_0NJ7R0SyEeSN3ZLFRXim_g" keySequence="ALT+CR" command="_0MZGTESyEeSN3ZLFRXim_g"/>
</bindingTables>
<bindingTables xmi:id="_0NLJYkSyEeSN3ZLFRXim_g" elementId="org.eclipse.debug.ui.memoryview" bindingContext="_0MiQMESyEeSN3ZLFRXim_g">
<bindings xmi:id="_0NLJY0SyEeSN3ZLFRXim_g" keySequence="CTRL+W" command="_0MWC_ESyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NLJZUSyEeSN3ZLFRXim_g" keySequence="CTRL+N" command="_0MXREUSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NOzxUSyEeSN3ZLFRXim_g" keySequence="ALT+CTRL+M" command="_0MRKdESyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NPa0ESyEeSN3ZLFRXim_g" keySequence="CTRL+T" command="_0MYfMESyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NPa0kSyEeSN3ZLFRXim_g" keySequence="ALT+CTRL+N" command="_0MRxikSyEeSN3ZLFRXim_g"/>
</bindingTables>
<bindingTables xmi:id="_0NMXhUSyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.make.ui.makefileEditorScope" bindingContext="_0MhpNESyEeSN3ZLFRXim_g">
<bindings xmi:id="_0NM-kESyEeSN3ZLFRXim_g" keySequence="F3" command="_0MdXsUSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NNlpESyEeSN3ZLFRXim_g" keySequence="CTRL+/" command="_0MbilkSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NYkxUSyEeSN3ZLFRXim_g" keySequence="CTRL+\" command="_0MWC8kSyEeSN3ZLFRXim_g"/>
</bindingTables>
<bindingTables xmi:id="_0NM-lkSyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.debug.ui.debugging" bindingContext="_0MhpKUSyEeSN3ZLFRXim_g">
<bindings xmi:id="_0NM-l0SyEeSN3ZLFRXim_g" keySequence="SHIFT+F7" command="_0MTmt0SyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NNloESyEeSN3ZLFRXim_g" keySequence="SHIFT+F6" command="_0MU05ESyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NNloUSyEeSN3ZLFRXim_g" keySequence="SHIFT+F8" command="_0MX4OUSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NOMtESyEeSN3ZLFRXim_g" keySequence="SHIFT+F5" command="_0MSYqESyEeSN3ZLFRXim_g"/>
</bindingTables>
<bindingTables xmi:id="_0NOMskSyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.propertiesEditorScope" bindingContext="_0MiQMkSyEeSN3ZLFRXim_g">
<bindings xmi:id="_0NOMs0SyEeSN3ZLFRXim_g" keySequence="CTRL+/" command="_0MRKfESyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NTFNUSyEeSN3ZLFRXim_g" keySequence="CTRL+7" command="_0MRKfESyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NZL0ESyEeSN3ZLFRXim_g" keySequence="CTRL+SHIFT+C" command="_0MRKfESyEeSN3ZLFRXim_g"/>
</bindingTables>
<bindingTables xmi:id="_0NPa00SyEeSN3ZLFRXim_g" elementId="org.eclipse.debug.ui.memory.abstractasynctablerendering" bindingContext="_0MhpJ0SyEeSN3ZLFRXim_g">
<bindings xmi:id="_0NPa1ESyEeSN3ZLFRXim_g" keySequence="CTRL+SHIFT+." command="_0MP8XkSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NPa1USyEeSN3ZLFRXim_g" keySequence="CTRL+SHIFT+," command="_0McJkkSyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NWvmESyEeSN3ZLFRXim_g" keySequence="CTRL+G" command="_0MWC8USyEeSN3ZLFRXim_g"/>
</bindingTables>
<bindingTables xmi:id="_0NWvkkSyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.dsf.debug.ui.disassembly.context" bindingContext="_0MhpJkSyEeSN3ZLFRXim_g">
<bindings xmi:id="_0NWvk0SyEeSN3ZLFRXim_g" keySequence="HOME" command="_0MS_uESyEeSN3ZLFRXim_g"/>
<bindings xmi:id="_0NWvlUSyEeSN3ZLFRXim_g" keySequence="CTRL+G" command="_0MP8ZESyEeSN3ZLFRXim_g"/>
</bindingTables>
<bindingTables xmi:id="_0NXWp0SyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.breadcrumbEditorScope" bindingContext="_0MiQNESyEeSN3ZLFRXim_g">
<bindings xmi:id="_0NXWqESyEeSN3ZLFRXim_g" keySequence="ALT+SHIFT+B" command="_0MYfUESyEeSN3ZLFRXim_g"/>
</bindingTables>
<bindingTables xmi:id="_0Ni81ESyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.ReflogView" bindingContext="_0MhpI0SyEeSN3ZLFRXim_g">
<bindings xmi:id="_0Ni81USyEeSN3ZLFRXim_g" keySequence="CTRL+C" command="_0MUN2USyEeSN3ZLFRXim_g"/>
</bindingTables>
<bindingTables xmi:id="_0SREwESyEeSN3ZLFRXim_g" bindingContext="_0SQdsESyEeSN3ZLFRXim_g"/>
<bindingTables xmi:id="_0SRr0USyEeSN3ZLFRXim_g" bindingContext="_0SRr0ESyEeSN3ZLFRXim_g"/>
<bindingTables xmi:id="_0SSS4ESyEeSN3ZLFRXim_g" bindingContext="_0SRr0kSyEeSN3ZLFRXim_g"/>
<bindingTables xmi:id="_0SSS4kSyEeSN3ZLFRXim_g" bindingContext="_0SSS4USyEeSN3ZLFRXim_g"/>
<bindingTables xmi:id="_0SSS5ESyEeSN3ZLFRXim_g" bindingContext="_0SSS40SyEeSN3ZLFRXim_g"/>
<bindingTables xmi:id="_0SThAUSyEeSN3ZLFRXim_g" bindingContext="_0SThAESyEeSN3ZLFRXim_g"/>
<bindingTables xmi:id="_0SUIEUSyEeSN3ZLFRXim_g" bindingContext="_0SUIEESyEeSN3ZLFRXim_g"/>
<bindingTables xmi:id="_0SUvIUSyEeSN3ZLFRXim_g" bindingContext="_0SUvIESyEeSN3ZLFRXim_g"/>
<bindingTables xmi:id="_0SUvI0SyEeSN3ZLFRXim_g" bindingContext="_0SUvIkSyEeSN3ZLFRXim_g"/>
<bindingTables xmi:id="_0SUvJUSyEeSN3ZLFRXim_g" bindingContext="_0SUvJESyEeSN3ZLFRXim_g"/>
<bindingTables xmi:id="_0SVWMUSyEeSN3ZLFRXim_g" bindingContext="_0SVWMESyEeSN3ZLFRXim_g"/>
<bindingTables xmi:id="_0SVWM0SyEeSN3ZLFRXim_g" bindingContext="_0SVWMkSyEeSN3ZLFRXim_g"/>
<bindingTables xmi:id="_0jDSwESyEeSN3ZLFRXim_g" bindingContext="_0jCrsESyEeSN3ZLFRXim_g"/>
<bindingTables xmi:id="_0jD50USyEeSN3ZLFRXim_g" bindingContext="_0jD50ESyEeSN3ZLFRXim_g"/>
<bindingTables xmi:id="_0jD500SyEeSN3ZLFRXim_g" bindingContext="_0jD50kSyEeSN3ZLFRXim_g"/>
<bindingTables xmi:id="_0jEg4USyEeSN3ZLFRXim_g" bindingContext="_0jEg4ESyEeSN3ZLFRXim_g"/>
<bindingTables xmi:id="_0jEg40SyEeSN3ZLFRXim_g" bindingContext="_0jEg4kSyEeSN3ZLFRXim_g"/>
<bindingTables xmi:id="_0jEg5USyEeSN3ZLFRXim_g" bindingContext="_0jEg5ESyEeSN3ZLFRXim_g"/>
<bindingTables xmi:id="_0jFH8USyEeSN3ZLFRXim_g" bindingContext="_0jFH8ESyEeSN3ZLFRXim_g"/>
<bindingTables xmi:id="_0jFH80SyEeSN3ZLFRXim_g" bindingContext="_0jFH8kSyEeSN3ZLFRXim_g"/>
<bindingTables xmi:id="_0jFvAESyEeSN3ZLFRXim_g" bindingContext="_0jFH9ESyEeSN3ZLFRXim_g"/>
<bindingTables xmi:id="_0jFvAkSyEeSN3ZLFRXim_g" bindingContext="_0jFvAUSyEeSN3ZLFRXim_g"/>
<bindingTables xmi:id="_0jFvBESyEeSN3ZLFRXim_g" bindingContext="_0jFvA0SyEeSN3ZLFRXim_g"/>
<bindingTables xmi:id="_0jGWEUSyEeSN3ZLFRXim_g" bindingContext="_0jGWEESyEeSN3ZLFRXim_g"/>
<bindingTables xmi:id="_0jGWE0SyEeSN3ZLFRXim_g" bindingContext="_0jGWEkSyEeSN3ZLFRXim_g"/>
<bindingTables xmi:id="_0jG9IESyEeSN3ZLFRXim_g" bindingContext="_0jGWFESyEeSN3ZLFRXim_g"/>
<bindingTables xmi:id="_0jG9IkSyEeSN3ZLFRXim_g" bindingContext="_0jG9IUSyEeSN3ZLFRXim_g"/>
<bindingTables xmi:id="_0jG9JESyEeSN3ZLFRXim_g" bindingContext="_0jG9I0SyEeSN3ZLFRXim_g"/>
<bindingTables xmi:id="_0jHkMUSyEeSN3ZLFRXim_g" bindingContext="_0jHkMESyEeSN3ZLFRXim_g"/>
<bindingTables xmi:id="_0jHkM0SyEeSN3ZLFRXim_g" bindingContext="_0jHkMkSyEeSN3ZLFRXim_g"/>
<bindingTables xmi:id="_0jHkNUSyEeSN3ZLFRXim_g" bindingContext="_0jHkNESyEeSN3ZLFRXim_g"/>
<bindingTables xmi:id="_0jILQUSyEeSN3ZLFRXim_g" bindingContext="_0jILQESyEeSN3ZLFRXim_g"/>
<bindingTables xmi:id="_0jILQ0SyEeSN3ZLFRXim_g" bindingContext="_0jILQkSyEeSN3ZLFRXim_g"/>
<bindingTables xmi:id="_0jIyUUSyEeSN3ZLFRXim_g" bindingContext="_0jIyUESyEeSN3ZLFRXim_g"/>
<bindingTables xmi:id="_0jIyU0SyEeSN3ZLFRXim_g" bindingContext="_0jIyUkSyEeSN3ZLFRXim_g"/>
<bindingTables xmi:id="_0jJZYUSyEeSN3ZLFRXim_g" bindingContext="_0jJZYESyEeSN3ZLFRXim_g"/>
<bindingTables xmi:id="_0jJZY0SyEeSN3ZLFRXim_g" bindingContext="_0jJZYkSyEeSN3ZLFRXim_g"/>
<bindingTables xmi:id="_0jKAcESyEeSN3ZLFRXim_g" bindingContext="_0jJZZESyEeSN3ZLFRXim_g"/>
<bindingTables xmi:id="_0jKAckSyEeSN3ZLFRXim_g" bindingContext="_0jKAcUSyEeSN3ZLFRXim_g"/>
<bindingTables xmi:id="_0jKAdESyEeSN3ZLFRXim_g" bindingContext="_0jKAc0SyEeSN3ZLFRXim_g"/>
<bindingTables xmi:id="_0jKngUSyEeSN3ZLFRXim_g" bindingContext="_0jKngESyEeSN3ZLFRXim_g"/>
<bindingTables xmi:id="_0jKng0SyEeSN3ZLFRXim_g" bindingContext="_0jKngkSyEeSN3ZLFRXim_g"/>
<bindingTables xmi:id="_0jLOkUSyEeSN3ZLFRXim_g" bindingContext="_0jLOkESyEeSN3ZLFRXim_g"/>
<bindingTables xmi:id="_0jLOk0SyEeSN3ZLFRXim_g" bindingContext="_0jLOkkSyEeSN3ZLFRXim_g"/>
<bindingTables xmi:id="_0jL1oUSyEeSN3ZLFRXim_g" bindingContext="_0jL1oESyEeSN3ZLFRXim_g"/>
<bindingTables xmi:id="_0jL1o0SyEeSN3ZLFRXim_g" bindingContext="_0jL1okSyEeSN3ZLFRXim_g"/>
<bindingTables xmi:id="_0jMcsUSyEeSN3ZLFRXim_g" bindingContext="_0jMcsESyEeSN3ZLFRXim_g"/>
<bindingTables xmi:id="_0jMcs0SyEeSN3ZLFRXim_g" bindingContext="_0jMcskSyEeSN3ZLFRXim_g"/>
<bindingTables xmi:id="_0jNDwUSyEeSN3ZLFRXim_g" bindingContext="_0jNDwESyEeSN3ZLFRXim_g"/>
<bindingTables xmi:id="_0jNq0USyEeSN3ZLFRXim_g" bindingContext="_0jNq0ESyEeSN3ZLFRXim_g"/>
<bindingTables xmi:id="_0jNq00SyEeSN3ZLFRXim_g" bindingContext="_0jNq0kSyEeSN3ZLFRXim_g"/>
<bindingTables xmi:id="_0jOR4USyEeSN3ZLFRXim_g" bindingContext="_0jOR4ESyEeSN3ZLFRXim_g"/>
<bindingTables xmi:id="_0jO48USyEeSN3ZLFRXim_g" bindingContext="_0jO48ESyEeSN3ZLFRXim_g"/>
<bindingTables xmi:id="_0jPgAUSyEeSN3ZLFRXim_g" bindingContext="_0jPgAESyEeSN3ZLFRXim_g"/>
<bindingTables xmi:id="_0jPgA0SyEeSN3ZLFRXim_g" bindingContext="_0jPgAkSyEeSN3ZLFRXim_g"/>
<bindingTables xmi:id="_0jQHEUSyEeSN3ZLFRXim_g" bindingContext="_0jQHEESyEeSN3ZLFRXim_g"/>
<bindingTables xmi:id="_0jQuIESyEeSN3ZLFRXim_g" bindingContext="_0jQHEkSyEeSN3ZLFRXim_g"/>
<bindingTables xmi:id="_0jQuIkSyEeSN3ZLFRXim_g" bindingContext="_0jQuIUSyEeSN3ZLFRXim_g"/>
<bindingTables xmi:id="_CEwwcWjzEeShLY_bOPaoSA" bindingContext="_CEwwcGjzEeShLY_bOPaoSA"/>
<bindingTables xmi:id="_GNCCYIRHEeSC84y2lhHXeA" elementId="org.eclipse.wb.core.java.editorScope" bindingContext="_GMpn4IRHEeSC84y2lhHXeA">
<bindings xmi:id="_GNCCYYRHEeSC84y2lhHXeA" keySequence="ALT+CTRL+A" command="_GMjhQ4RHEeSC84y2lhHXeA"/>
<bindings xmi:id="_GNUWQIRHEeSC84y2lhHXeA" keySequence="CTRL+SHIFT+A" command="_GMjhQ4RHEeSC84y2lhHXeA"/>
</bindingTables>
<bindingTables xmi:id="_GNCCYoRHEeSC84y2lhHXeA" elementId="org.eclipse.wb.core.xml.editorScope" bindingContext="_GMpn4YRHEeSC84y2lhHXeA">
<bindings xmi:id="_GNCCY4RHEeSC84y2lhHXeA" keySequence="ALT+CTRL+A" command="_GMjhQ4RHEeSC84y2lhHXeA"/>
<bindings xmi:id="_GNOPoIRHEeSC84y2lhHXeA" keySequence="F12" command="_GMjhRoRHEeSC84y2lhHXeA"/>
<bindings xmi:id="_GNUWQYRHEeSC84y2lhHXeA" keySequence="CTRL+SHIFT+A" command="_GMjhQ4RHEeSC84y2lhHXeA"/>
</bindingTables>
<bindingTables xmi:id="_GROl4YRHEeSC84y2lhHXeA" bindingContext="_GROl4IRHEeSC84y2lhHXeA"/>
<bindingTables xmi:id="_GROl44RHEeSC84y2lhHXeA" bindingContext="_GROl4oRHEeSC84y2lhHXeA"/>
<bindingTables xmi:id="_GaeogYRHEeSC84y2lhHXeA" bindingContext="_GaeogIRHEeSC84y2lhHXeA"/>
<rootContext xmi:id="_0Lpfa0SyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.contexts.dialogAndWindow" contributorURI="platform:/plugin/org.eclipse.platform" name="In Dialogs and Windows" description="Either a dialog or a window is open">
<children xmi:id="_0LpfbESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.contexts.window" contributorURI="platform:/plugin/org.eclipse.platform" name="In Windows" description="A window is open">
<children xmi:id="_0LpfbUSyEeSN3ZLFRXim_g" elementId="org.eclipse.e4.ui.contexts.views" contributorURI="platform:/plugin/org.eclipse.platform" name="%bindingcontext.name.bindingView"/>
<children xmi:id="_0MhpIESyEeSN3ZLFRXim_g" elementId="org.eclipse.compare.compareEditorScope" name="Comparing in an Editor" description="Comparing in an Editor"/>
<children xmi:id="_0MhpIkSyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.RepositoriesView" name="In Git Repositories View"/>
<children xmi:id="_0MhpI0SyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.ReflogView" name="In Git Reflog View"/>
<children xmi:id="_0MhpJESyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.ui.cViewScope" name="In C/C++ Views" description="In C/C++ Views"/>
<children xmi:id="_0MhpJUSyEeSN3ZLFRXim_g" elementId="org.eclipse.debug.ui.debugging" name="Debugging" description="Debugging Programs">
<children xmi:id="_0MhpJkSyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.dsf.debug.ui.disassembly.context" name="In Disassembly" description="When debugging in assembly mode"/>
<children xmi:id="_0MhpJ0SyEeSN3ZLFRXim_g" elementId="org.eclipse.debug.ui.memory.abstractasynctablerendering" name="In Table Memory Rendering" description="In Table Memory Rendering"/>
<children xmi:id="_0MhpKUSyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.debug.ui.debugging" name="Debugging C/C++" description="Debugging C/C++ Programs"/>
<children xmi:id="_0MhpN0SyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.debug.ui.debugging" name="Debugging Java" description="Debugging Java programs"/>
</children>
<children xmi:id="_0MhpKESyEeSN3ZLFRXim_g" elementId="org.eclipse.debug.ui.BreakpointView" name="In Breakpoints View" description="The breakpoints view context"/>
<children xmi:id="_0MhpKkSyEeSN3ZLFRXim_g" elementId="org.eclipse.debug.ui.console" name="In I/O Console" description="In I/O Console"/>
<children xmi:id="_0MhpK0SyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.textEditorScope" name="Editing Text" description="Editing Text Context">
<children xmi:id="_0MhpLESyEeSN3ZLFRXim_g" elementId="org.eclipse.wst.sse.ui.structuredTextEditorScope" name="Editing in Structured Text Editors" description="Editing in Structured Text Editors">
<children xmi:id="_0MhpLUSyEeSN3ZLFRXim_g" elementId="org.eclipse.wst.xml.occurrences" name="XML Source Occurrences" description="XML Source Occurrences"/>
<children xmi:id="_0MhpLkSyEeSN3ZLFRXim_g" elementId="org.eclipse.wst.xml.navigation" name="XML Source Navigation" description="XML Source Navigation"/>
<children xmi:id="_0MhpL0SyEeSN3ZLFRXim_g" elementId="org.eclipse.wst.xml.cleanup" name="XML Source Cleanup" description="XML Source Cleanup"/>
<children xmi:id="_0MhpMESyEeSN3ZLFRXim_g" elementId="org.eclipse.wst.xml.grammar" name="XML Source Grammar" description="XML Source Grammar"/>
<children xmi:id="_0MhpMUSyEeSN3ZLFRXim_g" elementId="org.eclipse.wst.sse.comments" name="Source Comments in Structured Text Editors" description="Source Comments in Structured Text Editors"/>
<children xmi:id="_0MhpMkSyEeSN3ZLFRXim_g" elementId="org.eclipse.wst.xml.selection" name="XML Source Selection" description="XML Source Selection"/>
<children xmi:id="_0MhpM0SyEeSN3ZLFRXim_g" elementId="org.eclipse.core.runtime.xml" name="Editing XML Source" description="Editing XML Source"/>
<children xmi:id="_0MiQMUSyEeSN3ZLFRXim_g" elementId="org.eclipse.wst.xml.comments" name="XML Source Comments" description="XML Source Comments"/>
<children xmi:id="_0MiQNUSyEeSN3ZLFRXim_g" elementId="org.eclipse.wst.xml.dependencies" name="XML Source Dependencies" description="XML Source Dependencies"/>
<children xmi:id="_0MiQN0SyEeSN3ZLFRXim_g" elementId="org.eclipse.wst.xml.expand" name="XML Source Expand/Collapse" description="XML Source Expand/Collapse"/>
<children xmi:id="_GMpn4YRHEeSC84y2lhHXeA" elementId="org.eclipse.wb.core.xml.editorScope" name="WindowBuilder XML scope"/>
</children>
<children xmi:id="_0MhpNESyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.make.ui.makefileEditorScope" name="Makefile Editor" description="Editor for makefiles"/>
<children xmi:id="_0MhpNUSyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.ui.cEditorScope" name="C/C++ Editor" description="Editor for C/C++ Source Files"/>
<children xmi:id="_0MhpNkSyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.javaEditorScope" name="Editing Java Source" description="Editing Java Source Context"/>
<children xmi:id="_0MiQMkSyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.propertiesEditorScope" name="Editing Properties Files" description="Editing Properties Files Context"/>
<children xmi:id="_GMpn4IRHEeSC84y2lhHXeA" elementId="org.eclipse.wb.core.java.editorScope" name="WindowBuilder Java scope"/>
</children>
<children xmi:id="_0MiQMESyEeSN3ZLFRXim_g" elementId="org.eclipse.debug.ui.memoryview" name="In Memory View" description="In Memory View"/>
<children xmi:id="_0MiQM0SyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.console.ConsoleView" name="In Console View" description="In Console View"/>
</children>
<children xmi:id="_0LpfbkSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.contexts.dialog" contributorURI="platform:/plugin/org.eclipse.platform" name="In Dialogs" description="A dialog is open"/>
<children xmi:id="_0MiQNkSyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.ui.macroExpansionHoverScope" name="In Macro Expansion Hover" description="In Macro Expansion Hover"/>
</rootContext>
<rootContext xmi:id="_0MhpIUSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.contexts.workbenchMenu" name="Workbench Menu" description="When no Workbench windows are active"/>
<rootContext xmi:id="_0MhpOESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.contexts.actionSet" name="Action Set" description="Parent context for action sets"/>
<rootContext xmi:id="_0MiQNESyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.breadcrumbEditorScope" name="Editor Breadcrumb Navigation" description="Editor Breadcrumb Navigation Context"/>
<rootContext xmi:id="_0SQdsESyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.debug.ui.CEditor.RulerTobbleBreakpointAction" name="Auto::org.eclipse.cdt.debug.ui.CEditor.RulerTobbleBreakpointAction"/>
<rootContext xmi:id="_0SRr0ESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.texteditor.BookmarkRulerAction" name="Auto::org.eclipse.ui.texteditor.BookmarkRulerAction"/>
<rootContext xmi:id="_0SRr0kSyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.internal.ui.text.correction.CSelectRulerAction" name="Auto::org.eclipse.cdt.internal.ui.text.correction.CSelectRulerAction"/>
<rootContext xmi:id="_0SSS4USyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.debug.ui.actions.ManageBreakpointRulerAction" name="Auto::org.eclipse.jdt.debug.ui.actions.ManageBreakpointRulerAction"/>
<rootContext xmi:id="_0SSS40SyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.debug.ui.SnippetExecute" name="Auto::org.eclipse.jdt.debug.ui.SnippetExecute"/>
<rootContext xmi:id="_0SThAESyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.debug.ui.SnippetDisplay" name="Auto::org.eclipse.jdt.debug.ui.SnippetDisplay"/>
<rootContext xmi:id="_0SUIEESyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.debug.ui.SnippetInspect" name="Auto::org.eclipse.jdt.debug.ui.SnippetInspect"/>
<rootContext xmi:id="_0SUvIESyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.internal.ui.javaeditor.BookmarkRulerAction" name="Auto::org.eclipse.jdt.internal.ui.javaeditor.BookmarkRulerAction"/>
<rootContext xmi:id="_0SUvIkSyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.internal.ui.javaeditor.JavaSelectRulerAction" name="Auto::org.eclipse.jdt.internal.ui.javaeditor.JavaSelectRulerAction"/>
<rootContext xmi:id="_0SUvJESyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.internal.ui.propertiesfileeditor.BookmarkRulerAction" name="Auto::org.eclipse.jdt.internal.ui.propertiesfileeditor.BookmarkRulerAction"/>
<rootContext xmi:id="_0SVWMESyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.internal.ui.propertiesfileeditor.SelectRulerAction" name="Auto::org.eclipse.jdt.internal.ui.propertiesfileeditor.SelectRulerAction"/>
<rootContext xmi:id="_0SVWMkSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.texteditor.SelectRulerAction" name="Auto::org.eclipse.ui.texteditor.SelectRulerAction"/>
<rootContext xmi:id="_0jCrsESyEeSN3ZLFRXim_g" elementId="adt.actionSet.wizards" name="Auto::adt.actionSet.wizards"/>
<rootContext xmi:id="_0jD50ESyEeSN3ZLFRXim_g" elementId="adt.actionSet.refactorings" name="Auto::adt.actionSet.refactorings"/>
<rootContext xmi:id="_0jD50kSyEeSN3ZLFRXim_g" elementId="adt.actionSet.avdManager" name="Auto::adt.actionSet.avdManager"/>
<rootContext xmi:id="_0jEg4ESyEeSN3ZLFRXim_g" elementId="adt.actionSet.lint" name="Auto::adt.actionSet.lint"/>
<rootContext xmi:id="_0jEg4kSyEeSN3ZLFRXim_g" elementId="com.android.ide.eclipse.gltrace.actionset" name="Auto::com.android.ide.eclipse.gltrace.actionset"/>
<rootContext xmi:id="_0jEg5ESyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.debug.ui.debugActionSet" name="Auto::org.eclipse.cdt.debug.ui.debugActionSet"/>
<rootContext xmi:id="_0jFH8ESyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.debug.ui.reverseDebuggingActionSet" name="Auto::org.eclipse.cdt.debug.ui.reverseDebuggingActionSet"/>
<rootContext xmi:id="_0jFH8kSyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.debug.ui.tracepointActionSet" name="Auto::org.eclipse.cdt.debug.ui.tracepointActionSet"/>
<rootContext xmi:id="_0jFH9ESyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.debug.ui.debugViewLayoutActionSet" name="Auto::org.eclipse.cdt.debug.ui.debugViewLayoutActionSet"/>
<rootContext xmi:id="_0jFvAUSyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.dsf.debug.ui.updateModes" name="Auto::org.eclipse.cdt.dsf.debug.ui.updateModes"/>
<rootContext xmi:id="_0jFvA0SyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.make.ui.updateActionSet" name="Auto::org.eclipse.cdt.make.ui.updateActionSet"/>
<rootContext xmi:id="_0jGWEESyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.make.ui.makeTargetActionSet" name="Auto::org.eclipse.cdt.make.ui.makeTargetActionSet"/>
<rootContext xmi:id="_0jGWEkSyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.ui.CodingActionSet" name="Auto::org.eclipse.cdt.ui.CodingActionSet"/>
<rootContext xmi:id="_0jGWFESyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.ui.SearchActionSet" name="Auto::org.eclipse.cdt.ui.SearchActionSet"/>
<rootContext xmi:id="_0jG9IUSyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.ui.NavigationActionSet" name="Auto::org.eclipse.cdt.ui.NavigationActionSet"/>
<rootContext xmi:id="_0jG9I0SyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.ui.OpenActionSet" name="Auto::org.eclipse.cdt.ui.OpenActionSet"/>
<rootContext xmi:id="_0jHkMESyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.ui.buildConfigActionSet" name="Auto::org.eclipse.cdt.ui.buildConfigActionSet"/>
<rootContext xmi:id="_0jHkMkSyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.ui.CElementCreationActionSet" name="Auto::org.eclipse.cdt.ui.CElementCreationActionSet"/>
<rootContext xmi:id="_0jHkNESyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.ui.text.c.actionSet.presentation" name="Auto::org.eclipse.cdt.ui.text.c.actionSet.presentation"/>
<rootContext xmi:id="_0jILQESyEeSN3ZLFRXim_g" elementId="org.eclipse.debug.ui.breakpointActionSet" name="Auto::org.eclipse.debug.ui.breakpointActionSet"/>
<rootContext xmi:id="_0jILQkSyEeSN3ZLFRXim_g" elementId="org.eclipse.debug.ui.debugActionSet" name="Auto::org.eclipse.debug.ui.debugActionSet"/>
<rootContext xmi:id="_0jIyUESyEeSN3ZLFRXim_g" elementId="org.eclipse.debug.ui.launchActionSet" name="Auto::org.eclipse.debug.ui.launchActionSet"/>
<rootContext xmi:id="_0jIyUkSyEeSN3ZLFRXim_g" elementId="org.eclipse.debug.ui.profileActionSet" name="Auto::org.eclipse.debug.ui.profileActionSet"/>
<rootContext xmi:id="_0jJZYESyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.gitaction" name="Auto::org.eclipse.egit.ui.gitaction"/>
<rootContext xmi:id="_0jJZYkSyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.navigation" name="Auto::org.eclipse.egit.ui.navigation"/>
<rootContext xmi:id="_0jJZZESyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.debug.ui.JDTDebugActionSet" name="Auto::org.eclipse.jdt.debug.ui.JDTDebugActionSet"/>
<rootContext xmi:id="_0jKAcUSyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.junit.JUnitActionSet" name="Auto::org.eclipse.jdt.junit.JUnitActionSet"/>
<rootContext xmi:id="_0jKAc0SyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.text.java.actionSet.presentation" name="Auto::org.eclipse.jdt.ui.text.java.actionSet.presentation"/>
<rootContext xmi:id="_0jKngESyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.JavaElementCreationActionSet" name="Auto::org.eclipse.jdt.ui.JavaElementCreationActionSet"/>
<rootContext xmi:id="_0jKngkSyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.JavaActionSet" name="Auto::org.eclipse.jdt.ui.JavaActionSet"/>
<rootContext xmi:id="_0jLOkESyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.A_OpenActionSet" name="Auto::org.eclipse.jdt.ui.A_OpenActionSet"/>
<rootContext xmi:id="_0jLOkkSyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.CodingActionSet" name="Auto::org.eclipse.jdt.ui.CodingActionSet"/>
<rootContext xmi:id="_0jL1oESyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.SearchActionSet" name="Auto::org.eclipse.jdt.ui.SearchActionSet"/>
<rootContext xmi:id="_0jL1okSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.cheatsheets.actionSet" name="Auto::org.eclipse.ui.cheatsheets.actionSet"/>
<rootContext xmi:id="_0jMcsESyEeSN3ZLFRXim_g" elementId="org.eclipse.search.searchActionSet" name="Auto::org.eclipse.search.searchActionSet"/>
<rootContext xmi:id="_0jMcskSyEeSN3ZLFRXim_g" elementId="org.eclipse.team.ui.actionSet" name="Auto::org.eclipse.team.ui.actionSet"/>
<rootContext xmi:id="_0jNDwESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.actionSet.annotationNavigation" name="Auto::org.eclipse.ui.edit.text.actionSet.annotationNavigation"/>
<rootContext xmi:id="_0jNq0ESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.actionSet.navigation" name="Auto::org.eclipse.ui.edit.text.actionSet.navigation"/>
<rootContext xmi:id="_0jNq0kSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.actionSet.convertLineDelimitersTo" name="Auto::org.eclipse.ui.edit.text.actionSet.convertLineDelimitersTo"/>
<rootContext xmi:id="_0jOR4ESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.externaltools.ExternalToolsSet" name="Auto::org.eclipse.ui.externaltools.ExternalToolsSet"/>
<rootContext xmi:id="_0jO48ESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.NavigateActionSet" name="Auto::org.eclipse.ui.NavigateActionSet"/>
<rootContext xmi:id="_0jPgAESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.actionSet.keyBindings" name="Auto::org.eclipse.ui.actionSet.keyBindings"/>
<rootContext xmi:id="_0jPgAkSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.WorkingSetModificationActionSet" name="Auto::org.eclipse.ui.WorkingSetModificationActionSet"/>
<rootContext xmi:id="_0jQHEESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.WorkingSetActionSet" name="Auto::org.eclipse.ui.WorkingSetActionSet"/>
<rootContext xmi:id="_0jQHEkSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.actionSet.openFiles" name="Auto::org.eclipse.ui.actionSet.openFiles"/>
<rootContext xmi:id="_0jQuIUSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.actionSet.presentation" name="Auto::org.eclipse.ui.edit.text.actionSet.presentation"/>
<rootContext xmi:id="_CEwwcGjzEeShLY_bOPaoSA" elementId="org.eclipse.jdt.launching.localJavaApplication.internal.org.eclipse.debug.ui.DebugPerspective" name="Auto::org.eclipse.jdt.launching.localJavaApplication.internal.org.eclipse.debug.ui.DebugPerspective"/>
<rootContext xmi:id="_GROl4IRHEeSC84y2lhHXeA" elementId="org.eclipse.wb.core.editor.actions.SwitchAction" name="Auto::org.eclipse.wb.core.editor.actions.SwitchAction"/>
<rootContext xmi:id="_GROl4oRHEeSC84y2lhHXeA" elementId="org.eclipse.wb.core.xml.editor.actions.SwitchPairEditorAction" name="Auto::org.eclipse.wb.core.xml.editor.actions.SwitchPairEditorAction"/>
<rootContext xmi:id="_GaeogIRHEeSC84y2lhHXeA" elementId="org.eclipse.wb.core.ui.actionset" name="Auto::org.eclipse.wb.core.ui.actionset"/>
<descriptors xmi:id="_0QBCAESyEeSN3ZLFRXim_g" elementId="org.eclipse.e4.ui.compatibility.editor" allowMultiple="true" category="org.eclipse.e4.primaryDataStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor">
<tags>Editor</tags>
</descriptors>
<descriptors xmi:id="_0QF6gESyEeSN3ZLFRXim_g" elementId="com.android.ide.eclipse.editors.resources.explorer.ResourceExplorerView" label="Resource Explorer" iconURI="platform:/plugin/com.android.ide.eclipse.adt/icons/draw9patch-16.png" category="org.eclipse.e4.secondaryDataStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:Android</tags>
</descriptors>
<descriptors xmi:id="_0QOdYESyEeSN3ZLFRXim_g" elementId="com.android.ide.eclipse.adt.internal.lint.LintViewPart" label="Lint Warnings" iconURI="platform:/plugin/com.android.ide.eclipse.adt/icons/lintview.png" category="org.eclipse.e4.secondaryDataStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:Android</tags>
</descriptors>
<descriptors xmi:id="_0QPEcESyEeSN3ZLFRXim_g" elementId="com.android.ide.eclipse.ddms.views.DeviceView" label="Devices" iconURI="platform:/plugin/com.android.ide.eclipse.ddms/icons/device.png" category="org.eclipse.e4.secondaryDataStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:Android</tags>
</descriptors>
<descriptors xmi:id="_0QPrgESyEeSN3ZLFRXim_g" elementId="com.android.ide.eclipse.ddms.views.OldLogCatView" label="LogCat (deprecated)" iconURI="platform:/plugin/com.android.ide.eclipse.ddms/icons/android.png" category="org.eclipse.e4.secondaryDataStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:Android</tags>
</descriptors>
<descriptors xmi:id="_0QQSkESyEeSN3ZLFRXim_g" elementId="com.android.ide.eclipse.ddms.views.LogCatView" label="LogCat" iconURI="platform:/plugin/com.android.ide.eclipse.ddms/icons/logcat.png" category="org.eclipse.e4.secondaryDataStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:Android</tags>
</descriptors>
<descriptors xmi:id="_0QQ5oESyEeSN3ZLFRXim_g" elementId="com.android.ide.eclipse.ddms.views.ThreadView" label="Threads" iconURI="platform:/plugin/com.android.ide.eclipse.ddms/icons/thread.png" category="org.eclipse.e4.secondaryDataStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:Android</tags>
</descriptors>
<descriptors xmi:id="_0QRgsESyEeSN3ZLFRXim_g" elementId="com.android.ide.eclipse.ddms.views.HeapView" label="Heap" iconURI="platform:/plugin/com.android.ide.eclipse.ddms/icons/heap.png" category="org.eclipse.e4.secondaryDataStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:Android</tags>
</descriptors>
<descriptors xmi:id="_0QSHwESyEeSN3ZLFRXim_g" elementId="com.android.ide.eclipse.ddms.views.FileExplorerView" label="File Explorer" iconURI="platform:/plugin/com.android.ide.eclipse.ddms/icons/android.png" category="org.eclipse.e4.secondaryDataStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:Android</tags>
</descriptors>
<descriptors xmi:id="_0QSHwUSyEeSN3ZLFRXim_g" elementId="com.android.ide.eclipse.ddms.views.EmulatorControlView" label="Emulator Control" iconURI="platform:/plugin/com.android.ide.eclipse.ddms/icons/emulator-16.png" category="org.eclipse.e4.secondaryDataStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:Android</tags>
</descriptors>
<descriptors xmi:id="_0QSu0ESyEeSN3ZLFRXim_g" elementId="com.android.ide.eclipse.ddms.views.AllocTrackerView" label="Allocation Tracker" iconURI="platform:/plugin/com.android.ide.eclipse.ddms/icons/heap.png" category="org.eclipse.e4.secondaryDataStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:Android</tags>
</descriptors>
<descriptors xmi:id="_0QSu0USyEeSN3ZLFRXim_g" elementId="com.android.ide.eclipse.ddms.views.NetworkStatsView" label="Network Statistics" iconURI="platform:/plugin/com.android.ide.eclipse.ddms/icons/networkstats.png" category="org.eclipse.e4.secondaryDataStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:Android</tags>
</descriptors>
<descriptors xmi:id="_0QTV4ESyEeSN3ZLFRXim_g" elementId="com.android.ide.eclipse.ddms.views.SysInfoView" label="System Information" iconURI="platform:/plugin/org.eclipse.ui/icons/full/eview16/defaultview_misc.gif" category="org.eclipse.e4.secondaryDataStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:Android</tags>
</descriptors>
<descriptors xmi:id="_0QT88ESyEeSN3ZLFRXim_g" elementId="com.android.ide.eclipse.gltrace.views.FrameBuffer" label="Frame Summary" iconURI="platform:/plugin/com.android.ide.eclipse.gldebugger/icons/opengl.png" category="org.eclipse.e4.secondaryDataStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:Tracer for OpenGL ES</tags>
</descriptors>
<descriptors xmi:id="_0QUkAESyEeSN3ZLFRXim_g" elementId="com.android.ide.eclipse.gltrace.views.State" label="GL State" iconURI="platform:/plugin/com.android.ide.eclipse.gldebugger/icons/opengl.png" category="org.eclipse.e4.secondaryDataStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:Tracer for OpenGL ES</tags>
</descriptors>
<descriptors xmi:id="_0QVLEESyEeSN3ZLFRXim_g" elementId="com.android.ide.eclipse.gltrace.views.Details" label="Details" iconURI="platform:/plugin/com.android.ide.eclipse.gldebugger/icons/opengl.png" category="org.eclipse.e4.secondaryDataStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:Tracer for OpenGL ES</tags>
</descriptors>
<descriptors xmi:id="_0QVyIESyEeSN3ZLFRXim_g" elementId="com.android.ide.eclipse.hierarchyviewer.views.DeviceSelectorView" label="Windows" iconURI="platform:/plugin/com.android.ide.eclipse.hierarchyviewer/icons/device.png" category="org.eclipse.e4.secondaryDataStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:Android</tags>
</descriptors>
<descriptors xmi:id="_0QWZMESyEeSN3ZLFRXim_g" elementId="com.android.ide.eclipse.hierarchyviewer.views.PixelPerfectView" label="Pixel Perfect" iconURI="platform:/plugin/com.android.ide.eclipse.hierarchyviewer/icons/pixel-perfect.png" category="org.eclipse.e4.secondaryDataStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:Android</tags>
</descriptors>
<descriptors xmi:id="_0QWZMUSyEeSN3ZLFRXim_g" elementId="com.android.ide.eclipse.hierarchyviewer.views.PixelPerfectLoupeView" label="Pixel Perfect Loupe" iconURI="platform:/plugin/com.android.ide.eclipse.hierarchyviewer/icons/pixel-perfect.png" category="org.eclipse.e4.secondaryDataStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:Android</tags>
</descriptors>
<descriptors xmi:id="_0QXAQESyEeSN3ZLFRXim_g" elementId="com.android.ide.eclipse.hierarchyviewer.views.PixelPerfectTreeView" label="Pixel Perfect Tree" iconURI="platform:/plugin/com.android.ide.eclipse.hierarchyviewer/icons/pixel-perfect.png" category="org.eclipse.e4.secondaryDataStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:Android</tags>
</descriptors>
<descriptors xmi:id="_0QXAQUSyEeSN3ZLFRXim_g" elementId="com.android.ide.eclipse.hierarchyviewer.views.TreeViewView" label="Tree View" iconURI="platform:/plugin/com.android.ide.eclipse.hierarchyviewer/icons/tree-view.png" category="org.eclipse.e4.secondaryDataStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:Android</tags>
</descriptors>
<descriptors xmi:id="_0QXnUESyEeSN3ZLFRXim_g" elementId="com.android.ide.eclipse.hierarchyviewer.views.PropertyView" label="View Properties" iconURI="platform:/plugin/com.android.ide.eclipse.hierarchyviewer/icons/tree-view.png" category="org.eclipse.e4.secondaryDataStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:Android</tags>
</descriptors>
<descriptors xmi:id="_0QYOYESyEeSN3ZLFRXim_g" elementId="com.android.ide.eclipse.hierarchyviewer.views.TreeOverviewView" label="Tree Overview" iconURI="platform:/plugin/com.android.ide.eclipse.hierarchyviewer/icons/tree-view.png" category="org.eclipse.e4.secondaryDataStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:Android</tags>
</descriptors>
<descriptors xmi:id="_0QY1cESyEeSN3ZLFRXim_g" elementId="com.android.ide.eclipse.hierarchyviewer.views.LayoutView" label="Layout View" iconURI="platform:/plugin/com.android.ide.eclipse.hierarchyviewer/icons/tree-view.png" category="org.eclipse.e4.secondaryDataStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:Android</tags>
</descriptors>
<descriptors xmi:id="_0QZcgESyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.codan.internal.ui.views.ProblemDetails" label="Problem Details" iconURI="platform:/plugin/org.eclipse.cdt.codan.ui/icons/edit_bug.gif" category="org.eclipse.e4.secondaryDataStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:&amp;C/C++</tags>
</descriptors>
<descriptors xmi:id="_0QaDkESyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.debug.ui.executablesView" label="Executables" iconURI="platform:/plugin/org.eclipse.cdt.debug.ui/icons/obj16/exec_view_obj.gif" category="org.eclipse.e4.secondaryDataStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:Debug</tags>
</descriptors>
<descriptors xmi:id="_0QbRsESyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.debug.ui.SignalsView" label="Signals" iconURI="platform:/plugin/org.eclipse.cdt.debug.ui/icons/view16/signals_view.gif" category="org.eclipse.e4.secondaryDataStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:Debug</tags>
</descriptors>
<descriptors xmi:id="_0Qb4wESyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.dsf.gdb.ui.tracecontrol.view" label="Trace Control" iconURI="platform:/plugin/org.eclipse.cdt.dsf.gdb.ui/icons/full/view16/tracecontrol_view.gif" category="org.eclipse.e4.secondaryDataStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:Debug</tags>
</descriptors>
<descriptors xmi:id="_0Qcf0ESyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.dsf.debug.ui.disassembly.view" label="Disassembly" iconURI="platform:/plugin/org.eclipse.cdt.dsf.ui/icons/disassembly.gif" allowMultiple="true" category="org.eclipse.e4.secondaryDataStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:Debug</tags>
</descriptors>
<descriptors xmi:id="_0QdG4ESyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.make.ui.views.MakeView" label="Make Target" iconURI="platform:/plugin/org.eclipse.cdt.make.ui/icons/view16/make_target.gif" category="org.eclipse.e4.secondaryDataStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:Make</tags>
</descriptors>
<descriptors xmi:id="_0Qdt8ESyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.ui.CView" label="C/C++ Projects" iconURI="platform:/plugin/org.eclipse.cdt.ui/icons/view16/cview.gif" category="org.eclipse.e4.secondaryDataStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:&amp;C/C++</tags>
</descriptors>
<descriptors xmi:id="_0QgKMESyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.ui.IndexView" label="C/C++ Index" iconURI="platform:/plugin/org.eclipse.cdt.ui/icons/view16/types.gif" category="org.eclipse.e4.secondaryDataStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:&amp;C/C++</tags>
</descriptors>
<descriptors xmi:id="_0QgxQESyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.ui.includeBrowser" label="Include Browser" iconURI="platform:/plugin/org.eclipse.cdt.ui/icons/view16/includeBrowser.gif" category="org.eclipse.e4.secondaryDataStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:&amp;C/C++</tags>
</descriptors>
<descriptors xmi:id="_0QhYUESyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.ui.callHierarchy" label="Call Hierarchy" iconURI="platform:/plugin/org.eclipse.cdt.ui/icons/view16/call_hierarchy.gif" category="org.eclipse.e4.secondaryDataStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:&amp;C/C++</tags>
</descriptors>
<descriptors xmi:id="_0Qh_YESyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.ui.typeHierarchy" label="Type Hierarchy" iconURI="platform:/plugin/org.eclipse.cdt.ui/icons/view16/class_hi.gif" category="org.eclipse.e4.secondaryDataStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:&amp;C/C++</tags>
</descriptors>
<descriptors xmi:id="_0QimcESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.texteditor.TemplatesView" label="Templates" iconURI="platform:/plugin/org.eclipse.jdt.ui/icons/full/eview16/templates.gif" category="org.eclipse.e4.secondaryDataStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:General</tags>
</descriptors>
<descriptors xmi:id="_0QimcUSyEeSN3ZLFRXim_g" elementId="org.eclipse.debug.ui.DebugView" label="Debug" iconURI="platform:/plugin/org.eclipse.debug.ui/icons/full/eview16/debug_view.gif" category="org.eclipse.e4.secondaryDataStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:Debug</tags>
</descriptors>
<descriptors xmi:id="_0QkboESyEeSN3ZLFRXim_g" elementId="org.eclipse.debug.ui.BreakpointView" label="Breakpoints" iconURI="platform:/plugin/org.eclipse.debug.ui/icons/full/eview16/breakpoint_view.gif" allowMultiple="true" category="org.eclipse.e4.secondaryDataStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:Debug</tags>
</descriptors>
<descriptors xmi:id="_0QlCsESyEeSN3ZLFRXim_g" elementId="org.eclipse.debug.ui.VariableView" label="Variables" iconURI="platform:/plugin/org.eclipse.debug.ui/icons/full/eview16/variable_view.gif" allowMultiple="true" category="org.eclipse.e4.secondaryDataStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:Debug</tags>
</descriptors>
<descriptors xmi:id="_0QlpwESyEeSN3ZLFRXim_g" elementId="org.eclipse.debug.ui.ExpressionView" label="Expressions" iconURI="platform:/plugin/org.eclipse.debug.ui/icons/full/eview16/watchlist_view.gif" allowMultiple="true" category="org.eclipse.e4.secondaryDataStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:Debug</tags>
</descriptors>
<descriptors xmi:id="_0QmQ0ESyEeSN3ZLFRXim_g" elementId="org.eclipse.debug.ui.RegisterView" label="Registers" iconURI="platform:/plugin/org.eclipse.debug.ui/icons/full/eview16/register_view.gif" allowMultiple="true" category="org.eclipse.e4.secondaryDataStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:Debug</tags>
</descriptors>
<descriptors xmi:id="_0QmQ0USyEeSN3ZLFRXim_g" elementId="org.eclipse.debug.ui.ModuleView" label="Modules" iconURI="platform:/plugin/org.eclipse.debug.ui/icons/full/eview16/module_view.gif" allowMultiple="true" category="org.eclipse.e4.secondaryDataStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:Debug</tags>
</descriptors>
<descriptors xmi:id="_0Qm34ESyEeSN3ZLFRXim_g" elementId="org.eclipse.debug.ui.MemoryView" label="Memory" iconURI="platform:/plugin/org.eclipse.debug.ui/icons/full/eview16/memory_view.gif" allowMultiple="true" category="org.eclipse.e4.secondaryDataStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:Debug</tags>
</descriptors>
<descriptors xmi:id="_0Qne8ESyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.RepositoriesView" label="Git Repositories" iconURI="platform:/plugin/org.eclipse.egit.ui/icons/eview16/repo_rep.gif" category="org.eclipse.e4.secondaryDataStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:Git</tags>
</descriptors>
<descriptors xmi:id="_0QpUIESyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.StagingView" label="Git Staging" iconURI="platform:/plugin/org.eclipse.egit.ui/icons/eview16/staging.png" category="org.eclipse.e4.secondaryDataStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:Git</tags>
</descriptors>
<descriptors xmi:id="_0Qp7MESyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.CompareTreeView" label="Git Tree Compare" iconURI="platform:/plugin/org.eclipse.egit.ui/icons/obj16/gitrepository.gif" category="org.eclipse.e4.secondaryDataStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:Git</tags>
</descriptors>
<descriptors xmi:id="_0QqiQESyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.ReflogView" label="Git Reflog" iconURI="platform:/plugin/org.eclipse.egit.ui/icons/eview16/reflog.gif" category="org.eclipse.e4.secondaryDataStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:Git</tags>
</descriptors>
<descriptors xmi:id="_0QqiQUSyEeSN3ZLFRXim_g" elementId="org.eclipse.help.ui.HelpView" label="Help" iconURI="platform:/plugin/org.eclipse.help.ui/icons/view16/help_view.gif" category="org.eclipse.e4.secondaryDataStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:Help</tags>
</descriptors>
<descriptors xmi:id="_0QrwYESyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.debug.ui.DisplayView" label="Display" iconURI="platform:/plugin/org.eclipse.jdt.debug.ui/icons/full/etool16/disp_sbook.gif" category="org.eclipse.e4.secondaryDataStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:Debug</tags>
</descriptors>
<descriptors xmi:id="_0QsXcESyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.junit.ResultView" label="JUnit" iconURI="platform:/plugin/org.eclipse.jdt.junit/icons/full/eview16/junit.gif" category="org.eclipse.e4.secondaryDataStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:Java</tags>
</descriptors>
<descriptors xmi:id="_0Qs-gESyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.PackageExplorer" label="Package Explorer" iconURI="platform:/plugin/org.eclipse.jdt.ui/icons/full/eview16/package.gif" category="org.eclipse.e4.secondaryDataStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:Java</tags>
</descriptors>
<descriptors xmi:id="_0QvawESyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.TypeHierarchy" label="Type Hierarchy" iconURI="platform:/plugin/org.eclipse.jdt.ui/icons/full/eview16/class_hi.gif" category="org.eclipse.e4.secondaryDataStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:Java</tags>
</descriptors>
<descriptors xmi:id="_0QvawUSyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.ProjectsView" label="Projects" iconURI="platform:/plugin/org.eclipse.jdt.ui/icons/full/eview16/projects.gif" category="org.eclipse.e4.secondaryDataStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:Java Browsing</tags>
</descriptors>
<descriptors xmi:id="_0QwB0ESyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.PackagesView" label="Packages" iconURI="platform:/plugin/org.eclipse.jdt.ui/icons/full/eview16/packages.gif" category="org.eclipse.e4.secondaryDataStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:Java Browsing</tags>
</descriptors>
<descriptors xmi:id="_0Qwo4ESyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.TypesView" label="Types" iconURI="platform:/plugin/org.eclipse.jdt.ui/icons/full/eview16/types.gif" category="org.eclipse.e4.secondaryDataStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:Java Browsing</tags>
</descriptors>
<descriptors xmi:id="_0QxP8ESyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.MembersView" label="Members" iconURI="platform:/plugin/org.eclipse.jdt.ui/icons/full/eview16/members.gif" category="org.eclipse.e4.secondaryDataStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:Java Browsing</tags>
</descriptors>
<descriptors xmi:id="_0QxP8USyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.callhierarchy.view" label="Call Hierarchy" iconURI="platform:/plugin/org.eclipse.jdt.ui/icons/full/eview16/call_hierarchy.gif" allowMultiple="true" category="org.eclipse.e4.secondaryDataStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:Java</tags>
</descriptors>
<descriptors xmi:id="_0QyeEESyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.SourceView" label="Declaration" iconURI="platform:/plugin/org.eclipse.jdt.ui/icons/full/eview16/source.gif" category="org.eclipse.e4.secondaryDataStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:Java</tags>
</descriptors>
<descriptors xmi:id="_0QzFIESyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.JavadocView" label="Javadoc" iconURI="platform:/plugin/org.eclipse.jdt.ui/icons/full/eview16/javadoc.gif" category="org.eclipse.e4.secondaryDataStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:Java</tags>
</descriptors>
<descriptors xmi:id="_0QzFIUSyEeSN3ZLFRXim_g" elementId="org.eclipse.search.SearchResultView" label="Classic Search" iconURI="platform:/plugin/org.eclipse.search/icons/full/eview16/searchres.gif" category="org.eclipse.e4.secondaryDataStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:General</tags>
</descriptors>
<descriptors xmi:id="_0Q1hYESyEeSN3ZLFRXim_g" elementId="org.eclipse.search.ui.views.SearchView" label="Search" iconURI="platform:/plugin/org.eclipse.search/icons/full/eview16/searchres.gif" allowMultiple="true" category="org.eclipse.e4.secondaryDataStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:General</tags>
</descriptors>
<descriptors xmi:id="_0Q2IcESyEeSN3ZLFRXim_g" elementId="org.eclipse.team.sync.views.SynchronizeView" label="Synchronize" iconURI="platform:/plugin/org.eclipse.team.ui/icons/full/eview16/synch_synch.gif" allowMultiple="true" category="org.eclipse.e4.secondaryDataStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:Team</tags>
</descriptors>
<descriptors xmi:id="_0Q2vgESyEeSN3ZLFRXim_g" elementId="org.eclipse.team.ui.GenericHistoryView" label="History" iconURI="platform:/plugin/org.eclipse.team.ui/icons/full/eview16/history_view.gif" allowMultiple="true" category="org.eclipse.e4.secondaryDataStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:Team</tags>
</descriptors>
<descriptors xmi:id="_0Q3WkESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.internal.introview" label="Welcome" iconURI="platform:/plugin/org.eclipse.ui/icons/full/eview16/defaultview_misc.gif" category="org.eclipse.e4.secondaryDataStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:General</tags>
</descriptors>
<descriptors xmi:id="_0Q39oESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.browser.view" label="Internal Web Browser" iconURI="platform:/plugin/org.eclipse.ui.browser/icons/obj16/internal_browser.gif" allowMultiple="true" category="org.eclipse.e4.secondaryDataStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:General</tags>
</descriptors>
<descriptors xmi:id="_0Q5LwESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.cheatsheets.views.CheatSheetView" label="Cheat Sheets" iconURI="platform:/plugin/org.eclipse.ui.cheatsheets/icons/view16/cheatsheet_view.gif" category="org.eclipse.e4.secondaryDataStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:Help</tags>
</descriptors>
<descriptors xmi:id="_0Q7A8ESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.console.ConsoleView" label="Console" iconURI="platform:/plugin/org.eclipse.ui.console/icons/full/cview16/console_view.gif" allowMultiple="true" category="org.eclipse.e4.secondaryDataStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:General</tags>
</descriptors>
<descriptors xmi:id="_0Q7oAESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.views.ProgressView" label="Progress" iconURI="platform:/plugin/org.eclipse.ui.ide/icons/full/eview16/pview.gif" category="org.eclipse.e4.secondaryDataStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:General</tags>
</descriptors>
<descriptors xmi:id="_0Q8PEESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.views.ResourceNavigator" label="Navigator" iconURI="platform:/plugin/org.eclipse.ui.ide/icons/full/eview16/filenav_nav.gif" category="org.eclipse.e4.primaryNavigationStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:General</tags>
</descriptors>
<descriptors xmi:id="_0Q82IESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.views.BookmarkView" label="Bookmarks" iconURI="platform:/plugin/org.eclipse.ui.ide/icons/full/eview16/bkmrk_nav.gif" allowMultiple="true" category="org.eclipse.e4.secondaryDataStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:General</tags>
</descriptors>
<descriptors xmi:id="_0Q9dMESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.views.TaskList" label="Tasks" iconURI="platform:/plugin/org.eclipse.ui.ide/icons/full/eview16/tasks_tsk.gif" allowMultiple="true" category="org.eclipse.e4.secondaryDataStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:General</tags>
</descriptors>
<descriptors xmi:id="_0Q9dMUSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.views.ProblemView" label="Problems" iconURI="platform:/plugin/org.eclipse.ui.ide/icons/full/eview16/problems_view.gif" allowMultiple="true" category="org.eclipse.e4.secondaryDataStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:General</tags>
</descriptors>
<descriptors xmi:id="_0Q-EQESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.views.AllMarkersView" label="Markers" iconURI="platform:/plugin/org.eclipse.ui.ide/icons/full/eview16/problems_view.gif" allowMultiple="true" category="org.eclipse.e4.secondaryDataStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:General</tags>
</descriptors>
<descriptors xmi:id="_0Q-rUESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.navigator.ProjectExplorer" label="Project Explorer" iconURI="platform:/plugin/org.eclipse.ui.navigator.resources/icons/full/eview16/resource_persp.gif" category="org.eclipse.e4.primaryNavigationStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:General</tags>
</descriptors>
<descriptors xmi:id="_0Q_5cESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.views.PropertySheet" label="Properties" iconURI="platform:/plugin/org.eclipse.ui.views/icons/full/eview16/prop_ps.gif" allowMultiple="true" category="org.eclipse.e4.secondaryDataStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:General</tags>
</descriptors>
<descriptors xmi:id="_0RBHkESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.views.ContentOutline" label="Outline" iconURI="platform:/plugin/org.eclipse.ui.views/icons/full/eview16/outline_co.gif" category="org.eclipse.e4.secondaryNavigationStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:General</tags>
</descriptors>
<descriptors xmi:id="_0RBHkUSyEeSN3ZLFRXim_g" elementId="org.eclipse.wst.xml.ui.views.annotations.XMLAnnotationsView" label="Documentation" iconURI="platform:/plugin/org.eclipse.wst.xml.ui/icons/full/obj16/comment_obj.gif" category="org.eclipse.e4.secondaryDataStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:XML</tags>
</descriptors>
<descriptors xmi:id="_0RCVsESyEeSN3ZLFRXim_g" elementId="org.eclipse.wst.xml.ui.contentmodel.view" label="Content Model" iconURI="platform:/plugin/org.eclipse.wst.xml.ui/icons/full/view16/hierarchy.gif" category="org.eclipse.e4.secondaryDataStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:XML</tags>
</descriptors>
<descriptors xmi:id="_GQLdAIRHEeSC84y2lhHXeA" elementId="org.eclipse.wb.core.StructureView" label="Structure" iconURI="platform:/plugin/org.eclipse.wb.core.java/icons/structure/properties_view.gif" category="org.eclipse.e4.secondaryDataStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:WindowBuilder</tags>
</descriptors>
<descriptors xmi:id="_GQLdAYRHEeSC84y2lhHXeA" elementId="org.eclipse.wb.core.PaletteView" label="Palette" iconURI="platform:/plugin/org.eclipse.wb.core.java/icons/structure/palette.png" category="org.eclipse.e4.secondaryDataStack" closeable="true" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView">
<tags>View</tags>
<tags>categoryTag:WindowBuilder</tags>
</descriptors>
<commands xmi:id="_0Lpfb0SyEeSN3ZLFRXim_g" elementId="e4.exit" contributorURI="platform:/plugin/org.eclipse.platform" commandName="%command.name.exit" description=""/>
<commands xmi:id="_0LpfcESyEeSN3ZLFRXim_g" elementId="e4.show.view" contributorURI="platform:/plugin/org.eclipse.platform" commandName="%command.name.showView">
<parameters xmi:id="_0LpfcUSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.views.showView.viewId" contributorURI="platform:/plugin/org.eclipse.platform" name="View"/>
</commands>
<commands xmi:id="_0LpfckSyEeSN3ZLFRXim_g" elementId="org.eclipse.e4.ui.saveCommands" contributorURI="platform:/plugin/org.eclipse.platform" commandName="%command.name.save"/>
<commands xmi:id="_0Lpfc0SyEeSN3ZLFRXim_g" elementId="org.eclipse.e4.ui.saveAllCommands" contributorURI="platform:/plugin/org.eclipse.platform" commandName="%command.name.saveAll"/>
<commands xmi:id="_0MP8XkSyEeSN3ZLFRXim_g" elementId="org.eclipse.debug.ui.command.nextpage" commandName="Next Page of Memory" description="Load next page of memory" category="_0MPVSUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MP8X0SyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.search.implementors.in.project" commandName="Implementors in Project" description="Search for implementors of the selected interface in the enclosing project" category="_0MP8UESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MP8YESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.removeTrailingWhitespace" commandName="Remove Trailing Whitespace" description="Removes the trailing whitespace of each line" category="_0MPVSESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MP8YUSyEeSN3ZLFRXim_g" elementId="sed.tabletree.expandAll" commandName="Expand All" category="_0MP8UkSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MP8YkSyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.toggleMarkOccurrences" commandName="Toggle Mark Occurrences" description="Toggles mark occurrences in Java editors" category="_0MP8XESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MP8Y0SyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.debug.ui.commands.AllInstances" commandName="All Instances" description="View all instances of the selected type loaded in the target VM" category="_0MPVSUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MP8ZESyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.dsf.debug.ui.disassembly.commands.gotoAddress" commandName="Go to Address..." description="Navigate to address" category="_0MPVSUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MP8ZUSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.showChangeRulerInformation" commandName="Show Quick Diff Ruler Tooltip" description="Displays quick diff or revision information for the caret line in a focused hover" category="_0MPVT0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MP8ZkSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.delimiter.macOS9" commandName="Convert Line Delimiters to MacOS 9 (CR, \r, 0D, &#xa4;)" description="Converts the line delimiters to MacOS 9 (CR, \r, 0D, &#xa4;)" category="_0MPVSESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MP8Z0SyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.use.supertype" commandName="Use Supertype Where Possible" description="Change occurrences of a type to use a supertype instead" category="_0MP8XUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MP8aESyEeSN3ZLFRXim_g" elementId="org.eclipse.wst.sse.ui.structure.select.enclosing" commandName="Select Enclosing Element" description="Expand selection to include enclosing element" category="_0MP8UUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MP8aUSyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.RepositoriesViewClone" commandName="Clone a Git Repository" category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MP8akSyEeSN3ZLFRXim_g" elementId="org.eclipse.wst.xml.ui.disable.grammar.constraints" commandName="Turn off Grammar Constraints" description="Turn off grammar Constraints" category="_0MP8UkSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MP8a0SyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.ui.edit.open.quick.type.hierarchy" commandName="Quick Type Hierarchy" description="Shows quick type hierarchy" category="_0MP8VESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MQjYESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.select.textStart" commandName="Select Text Start" description="Select to the beginning of the text" category="_0MPVT0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MQjYUSyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.debug.ui.command.groupDebugContexts" commandName="Group" description="Groups the selected debug contexts" category="_0MPVTkSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MQjYkSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.cheatsheets.openCheatSheetURL" commandName="Open Cheat Sheet from URL" description="Open a Cheat Sheet from file at a specified URL." category="_0MP8V0SyEeSN3ZLFRXim_g">
<parameters xmi:id="_0MQjY0SyEeSN3ZLFRXim_g" elementId="cheatSheetId" name="Identifier" optional="false"/>
<parameters xmi:id="_0MQjZESyEeSN3ZLFRXim_g" elementId="name" name="Name" optional="false"/>
<parameters xmi:id="_0MQjZUSyEeSN3ZLFRXim_g" elementId="url" name="URL" optional="false"/>
</commands>
<commands xmi:id="_0MQjZkSyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.RepositoriesViewRefresh" commandName="Refresh" category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MQjZ0SyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.navigate.open.type.in.hierarchy" commandName="Open Type in Hierarchy" description="Open a type in the type hierarchy view" category="_0MP8W0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MQjaESyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.JavaBrowsingPerspective" commandName="Java Browsing" description="Show the Java Browsing perspective" category="_0MPVQESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MQjaUSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.project.buildAll" commandName="Build All" description="Build all projects" category="_0MPVRESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MQjakSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.window.lockToolBar" commandName="Lock the Toolbars" description="Lock the Toolbars" category="_0MPVQUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MQja0SyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.navigate.expandAll" commandName="Expand All" description="Expand the current tree" category="_0MP8W0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MQjbESyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.dsf.gdb.ui.command.selectNextTraceRecord" commandName="Next Trace Record" description="Select Next Trace Record" category="_0MP8UkSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MQjbUSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.file.import" commandName="Import" description="Import" category="_0MPVSESyEeSN3ZLFRXim_g">
<parameters xmi:id="_0MQjbkSyEeSN3ZLFRXim_g" elementId="importWizardId" name="Import Wizard"/>
</commands>
<commands xmi:id="_0MQjb0SyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.select.lineEnd" commandName="Select Line End" description="Select to the end of the line of text" category="_0MPVT0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MQjcESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.help.helpSearch" commandName="Help Search" description="Open the help search" category="_0MP8V0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MQjcUSyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.team.CompareWithHead" commandName="Compare with HEAD Revision" category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MQjckSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.smartEnterInverse" commandName="Insert Line Above Current Line" description="Adds a new line above the current line" category="_0MPVT0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MQjc0SyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.ui.refactor.extract.local.variable" commandName="Extract Local Variable - Refactoring " description="Extract a local variable for the selected expression" category="_0MPVQ0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MQjdESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.externalTools.commands.OpenExternalToolsConfigurations" commandName="External Tools..." description="Open external tools launch configuration dialog" category="_0MPVSUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MQjdUSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.goto.windowEnd" commandName="Window End" description="Go to the end of the window" category="_0MPVT0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MQjdkSyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.ui.edit.text.c.add.include" commandName="Add Include" description="Create include statement on selection" category="_0MP8VESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MQjd0SyEeSN3ZLFRXim_g" elementId="org.eclipse.team.ui.TeamSynchronizingPerspective" commandName="Team Synchronizing" description="Open the Team Synchronizing Perspective" category="_0MPVQESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MQjeESyEeSN3ZLFRXim_g" elementId="org.eclipse.help.ui.indexcommand" commandName="Index" description="Show Keyword Index" category="_0MP8V0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MQjeUSyEeSN3ZLFRXim_g" elementId="org.eclipse.debug.ui.commands.StepOver" commandName="Step Over" description="Step over" category="_0MPVSUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MRKcESyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.ui.hover.backwardMacroExpansion" commandName="Back" description="Step backward in macro expansions" category="_0MP8VESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MRKcUSyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.RepositoriesViewOpenInEditor" commandName="Open in Editor" category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MRKckSyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.history.RenameBranch" commandName="Rename Branch..." category="_0MP8UkSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MRKc0SyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.surround.with.quickMenu" commandName="Surround With Quick Menu" description="Shows the Surround With quick menu" category="_0MP8XESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MRKdESyEeSN3ZLFRXim_g" elementId="org.eclipse.debug.ui.commands.addMemoryMonitor" commandName="Add Memory Block" description="Add Memory block" category="_0MPVSUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MRKdUSyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.RepositoriesViewRebase" commandName="Rebase" category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MRKdkSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.revertToSaved" commandName="Revert to Saved" description="Revert to the last saved state" category="_0MP8UUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MRKd0SyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.team.Rebase" commandName="Rebase" category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MRKeESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.window.pinEditor" commandName="Pin Editor" description="Pin the current editor" category="_0MPVQUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MRKeUSyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.search.implement.occurrences" commandName="Search Implement Occurrences in File" description="Search for implement occurrences of a selected type" category="_0MP8UESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MRKekSyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.correction.encapsulateField.assist" commandName="Quick Assist - Create getter/setter for field" description="Invokes quick assist and selects 'Create getter/setter for field'" category="_0MP8XESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MRKe0SyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.debug.ui.commands.Inspect" commandName="Inspect" description="Inspect result of evaluating selected text" category="_0MPVSUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MRKfESyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.toggle.comment" commandName="Toggle Comment" description="Toggle comment the selected lines" category="_0MP8XESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MRKfUSyEeSN3ZLFRXim_g" elementId="org.eclipse.wst.sse.ui.format.active.elements" commandName="Format Active Elements" description="Format active elements" category="_0MP8UUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MRKfkSyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.add.block.comment" commandName="Add Block Comment" description="Enclose the selection with a block comment" category="_0MP8XESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MRKf0SyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.surround.with.try.catch" commandName="Surround with try/catch Block" description="Surround the selected text with a try/catch block" category="_0MP8XESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MRKgESyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.convert.anonymous.to.nested" commandName="Convert Anonymous Class to Nested" description="Convert an anonymous class to a nested class" category="_0MP8XUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MRKgUSyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.team.Tag" commandName="Tag" category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MRKgkSyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.team.ShowRepositoriesView" commandName="Show Git Repositories View" category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MRKg0SyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.folding.restore" commandName="Reset Structure" description="Resets the folding structure" category="_0MPVT0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MRKhESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.file.restartWorkbench" commandName="Restart" description="Restart the workbench" category="_0MPVSESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MRKhUSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.file.export" commandName="Export" description="Export" category="_0MPVSESyEeSN3ZLFRXim_g">
<parameters xmi:id="_0MRKhkSyEeSN3ZLFRXim_g" elementId="exportWizardId" name="Export Wizard"/>
</commands>
<commands xmi:id="_0MRKh0SyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.search.occurrences.in.file.quickMenu" commandName="Show Occurrences in File Quick Menu" description="Shows the Occurrences in File quick menu" category="_0MP8UESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MRKiESyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.RepositoriesViewConfigurePush" commandName="Configure Push..." category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MRKiUSyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.debug.command.breakpointProperties" commandName="C/C++ Breakpoint Properties" description="View and edit properties for a given C/C++ breakpoint" category="_0MPVSUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MRKikSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.select.lineDown" commandName="Select Line Down" description="Extend the selection to the next line of text" category="_0MPVT0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MRxgESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.window.resetPerspective" commandName="Reset Perspective" description="Reset the current perspective to its default state" category="_0MPVQUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MRxgUSyEeSN3ZLFRXim_g" elementId="org.eclipse.ltk.ui.refactoring.commands.renameResource" commandName="Rename Resource" description="Rename the selected resource and notify LTK participants." category="_0MP8WkSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MRxgkSyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.PushHeadToGerrit" commandName="Push Current Head to Gerrit" category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MRxg0SyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.window.showContextMenu" commandName="Show Context Menu" description="Show the context menu" category="_0MPVQUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MRxhESyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.team.stash.drop" commandName="Delete Stashed Commit..." category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MRxhUSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.window.savePerspective" commandName="Save Perspective As" description="Save the current perspective" category="_0MPVQUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MRxhkSyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.ConfigureUpstreamPush" commandName="Configure Upstream Push" category="_0MP8UkSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MRxh0SyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.showInformation" commandName="Show Tooltip Description" description="Displays information for the current caret location in a focused hover" category="_0MPVT0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MRxiESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.ide.markCompleted" commandName="Mark Completed" description="Mark the selected tasks as completed" category="_0MP8UkSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MRxiUSyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.team.ConfigureFetch" commandName="Configure Upstream Fetch" category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MRxikSyEeSN3ZLFRXim_g" elementId="org.eclipse.debug.ui.commands.nextMemoryBlock" commandName="Next Memory Monitor" description="Show renderings from next memory monitor." category="_0MPVSUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MRxi0SyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.ui.refactor.extract.constant" commandName="Extract Constant - Refactoring " description="Extract a constant for the selected expression" category="_0MPVQ0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MRxjESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.toggleOverwrite" commandName="Toggle Overwrite" description="Toggle overwrite mode" category="_0MPVT0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MRxjUSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.goto.textEnd" commandName="Text End" description="Go to the end of the text" category="_0MPVT0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MRxjkSyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.search.write.access.in.project" commandName="Write Access in Project" description="Search for write references to the selected element in the enclosing project" category="_0MP8UESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MRxj0SyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.specific_content_assist.command" commandName="Content Assist" description="A parameterizable command that invokes content assist with a single completion proposal category" category="_0MP8UUSyEeSN3ZLFRXim_g">
<parameters xmi:id="_0MRxkESyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.specific_content_assist.category_id" name="type" optional="false"/>
</commands>
<commands xmi:id="_0MRxkUSyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.copy.qualified.name" commandName="Copy Qualified Name" description="Copy a fully qualified name to the system clipboard" category="_0MP8XESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MRxkkSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.window.showKeyAssist" commandName="Show Key Assist" description="Show the key assist dialog" category="_0MPVQUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MRxk0SyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.delete" commandName="Delete" description="Delete the selection" category="_0MP8UUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MRxlESyEeSN3ZLFRXim_g" elementId="com.android.ide.eclipse.adt.refactoring.extract.include" commandName="Extract as Include" description="Extract Views as Included Layout" category="_0MPVSkSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MRxlUSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.file.saveAs" commandName="Save As" description="Save the current contents to another location" category="_0MPVSESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MRxlkSyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.RepositoriesViewChangeCredentials" commandName="Change Credentials" category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MRxl0SyEeSN3ZLFRXim_g" elementId="org.eclipse.search.ui.performTextSearchWorkspace" commandName="Find Text in Workspace" description="Searches the files in the workspace for specific text." category="_0MP8UESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MRxmESyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.surround.with.try.multicatch" commandName="Surround with try/multi-catch Block" description="Surround the selected text with a try/multi-catch block" category="_0MP8XESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MSYkESyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.search.implementors.in.working.set" commandName="Implementors in Working Set" description="Search for implementors of the selected interface in a working set" category="_0MP8UESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MSYkUSyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.ui.refactor.getters.and.setters" commandName="Generate Getters and Setters..." description="Generates getters and setters for a selected field" category="_0MP8VESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MSYkkSyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.ui.refactor.hide.method" commandName="Hide Memeber Function..." category="_0MPVQ0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MSYk0SyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.JavaPerspective" commandName="Java" description="Show the Java perspective" category="_0MPVQESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MSYlESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.window.openEditorDropDown" commandName="Quick Switch Editor" description="Open the editor drop down list" category="_0MPVQUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MSYlUSyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.history.CreateTag" commandName="Create Tag" category="_0MP8UkSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MSYlkSyEeSN3ZLFRXim_g" elementId="org.eclipse.debug.ui.commands.ProfileLast" commandName="Profile" description="Launch in profile mode" category="_0MPVSUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MSYl0SyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.correction.changeToStatic" commandName="Quick Fix - Change to static access" description="Invokes quick assist and selects 'Change to static access'" category="_0MP8XESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MSYmESyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.override.methods" commandName="Override/Implement Methods" description="Override or implement methods from super types" category="_0MP8XESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MSYmUSyEeSN3ZLFRXim_g" elementId="org.eclipse.search.ui.performTextSearchFile" commandName="Find Text in File" description="Searches the files in the file for specific text." category="_0MP8UESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MSYmkSyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.ui.specific_content_assist.command" commandName="C/C++ Content Assist" description="A parameterizable command that invokes content assist with a single completion proposal category" category="_0MP8UUSyEeSN3ZLFRXim_g">
<parameters xmi:id="_0MSYm0SyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.ui.specific_content_assist.category_id" name="type" optional="false"/>
</commands>
<commands xmi:id="_0MSYnESyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.search.references.in.workspace" commandName="References in Workspace" description="Search for references to the selected element in the workspace" category="_0MP8UESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MSYnUSyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.ui.refactor.extract.function" commandName="Extract Function - Refactoring " description="Extract a function for the selected list of expressions or statements" category="_0MPVQ0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MSYnkSyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.RepositoriesViewPaste" commandName="Paste Repository Path or URI" category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MSYn0SyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.paste" commandName="Paste" description="Paste from the clipboard" category="_0MP8UUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MSYoESyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.correction.convertAnonymousToLocal.assist" commandName="Quick Assist - Convert anonymous to local class" description="Invokes quick assist and selects 'Convert anonymous to local class'" category="_0MP8XESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MSYoUSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.navigate.previous" commandName="Previous" description="Navigate to the previous item" category="_0MP8W0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MSYokSyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.source.quickMenu" commandName="Show Source Quick Menu" description="Shows the source quick menu" category="_0MP8XESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MSYo0SyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.RepositoriesViewCopyPath" commandName="Copy Path to Clipboard" category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MSYpESyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.team.Ignore" commandName="Ignore" category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MSYpUSyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.toggleBreadcrumb" commandName="Toggle Java Editor Breadcrumb" description="Toggle the Java editor breadcrumb" category="_0MP8XESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MSYpkSyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.open.call.hierarchy" commandName="Open Call Hierarchy" description="Open a call hierarchy on the selected element" category="_0MP8W0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MSYp0SyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.RepositoriesViewCreateTag" commandName="Create Tag..." category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MSYqESyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.debug.ui.command.reverseStepInto" commandName="Reverse Step Into" description="Perform Reverse Step Into" category="_0MP8U0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MSYqUSyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.team.RemoveFromIndex" commandName="Remove from Git Index" category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MSYqkSyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.correction.extractConstant.assist" commandName="Quick Assist - Extract constant" description="Invokes quick assist and selects 'Extract constant'" category="_0MP8XESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MSYq0SyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.ui.edit.open.quick.macro.explorer" commandName="Explore Macro Expansion" description="Opens a quick view for macro expansion exploration" category="_0MP8VESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MSYrESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.goto.lineUp" commandName="Line Up" description="Go up one line of text" category="_0MPVT0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MSYrUSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.file.newQuickMenu" commandName="New menu" description="Open the New menu" category="_0MPVSESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MSYrkSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.deleteNext" commandName="Delete Next" description="Delete the next character" category="_0MPVT0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MSYr0SyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.deleteNextWord" commandName="Delete Next Word" description="Delete the next word" category="_0MPVT0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MSYsESyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.search.write.access.in.working.set" commandName="Write Access in Working Set" description="Search for write references to the selected element in a working set" category="_0MP8UESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MSYsUSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.undo" commandName="Undo" description="Undo the last operation" category="_0MP8UUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MSYskSyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.debug.ui.command.castToType" commandName="Cast To Type..." category="_0MPVS0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MS_oESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.navigate.back" commandName="Back" description="Navigate back" category="_0MP8W0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MS_oUSyEeSN3ZLFRXim_g" elementId="org.eclipse.debug.ui.commands.DebugLast" commandName="Debug" description="Launch in debug mode" category="_0MPVSUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MS_okSyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.ui.excludeCommand" commandName="Exclude from Build" category="_0MP8UkSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MS_o0SyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.editors.lineNumberToggle" commandName="Show Line Numbers" description="Toggle display of line numbers" category="_0MPVT0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MS_pESyEeSN3ZLFRXim_g" elementId="org.eclipse.debug.ui.commands.ToggleStepFilters" commandName="Use Step Filters" description="Toggles enablement of debug step filters" category="_0MPVSUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MS_pUSyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.RepositoriesLinkWithSelection" commandName="Link with Selection" category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MS_pkSyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.search.read.access.in.workspace" commandName="Read Access in Workspace" description="Search for read references to the selected element in the workspace" category="_0MP8UESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MS_p0SyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.correction.renameInFile.assist" commandName="Quick Assist - Rename in file" description="Invokes quick assist and selects 'Rename in file'" category="_0MP8XESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MS_qESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.window.newEditor" commandName="New Editor" description="Open another editor on the active editor's input" category="_0MPVQUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MS_qUSyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.org.eclipse.egit.ui.AbortRebase" commandName="Abort Rebase" category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MS_qkSyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.team.Fetch" commandName="Fetch" category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MS_q0SyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.history.SetQuickdiffBaseline" commandName="Set quickdiff baseline" category="_0MP8UkSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MS_rESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.goto.wordPrevious" commandName="Previous Word" description="Go to the previous word" category="_0MPVT0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MS_rUSyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.RepositoriesViewDelete" commandName="Delete Repository" category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MS_rkSyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.history.ShowBlame" commandName="Show Annotations" category="_0MP8UkSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MS_r0SyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.recenter" commandName="Recenter" description="Recenter the window based on the cursor" category="_0MPVT0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MS_sESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.help.installationDialog" commandName="Installation Information" description="Open the installation dialog" category="_0MP8V0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MS_sUSyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.team.Pull" commandName="Pull" category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MS_skSyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.debug.ui.command.restoreDefaultType" commandName="Restore Original Type" description="View and edit properties for a given C/C++ breakpoint" category="_0MPVS0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MS_s0SyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.team.CompareWithIndex" commandName="Compare with Git Index" category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MS_tESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.shiftRight" commandName="Shift Right" description="Shift a block of text to the right" category="_0MP8UUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MS_tUSyEeSN3ZLFRXim_g" elementId="org.eclipse.wst.xml.ui.nextSibling" commandName="Next Sibling" description="Go to Next Sibling" category="_0MP8UUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MS_tkSyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.ui.edit.text.c.indent" commandName="Indent Line" description="Indents the current line" category="_0MP8VESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MS_t0SyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.file.refresh" commandName="Refresh" description="Refresh the selected items" category="_0MPVSESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MS_uESyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.dsf.debug.ui.disassembly.commands.gotoPC" commandName="Go to Program Counter" description="Navigate to current program counter" category="_0MPVSUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MS_uUSyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.history.Merge" commandName="Merge" category="_0MP8UkSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MS_ukSyEeSN3ZLFRXim_g" elementId="org.eclipse.search.ui.performTextSearchWorkingSet" commandName="Find Text in Working Set" description="Searches the files in the working set for specific text." category="_0MP8UESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MS_u0SyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.add.unimplemented.constructors" commandName="Generate Constructors from Superclass" description="Evaluate and add constructors from superclass" category="_0MP8XESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MS_vESyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.search.references.in.working.set" commandName="References in Working Set" description="Search for references to the selected element in a working set" category="_0MP8UESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MS_vUSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.delete.line.to.end" commandName="Delete to End of Line" description="Delete to the end of a line of text" category="_0MPVT0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MS_vkSyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.history.CreateBranch" commandName="Create Branch" category="_0MP8UkSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MS_v0SyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.move.element" commandName="Move - Refactoring " description="Move the selected element to a new location" category="_0MP8XUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MS_wESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.window.nextEditor" commandName="Next Editor" description="Switch to the next editor" category="_0MPVQUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MS_wUSyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.introduce.factory" commandName="Introduce Factory" description="Introduce a factory method to encapsulate invocation of the selected constructor" category="_0MP8XUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MS_wkSyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.team.ShowInReflog" commandName="Reflog" category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MS_w0SyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.team.ShowBlame" commandName="Show Annotations" category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MTmsESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.navigate.forward" commandName="Forward" description="Navigate forward" category="_0MP8W0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MTmsUSyEeSN3ZLFRXim_g" elementId="org.eclipse.wst.xml.ui.cmnd.contentmodel.sych" commandName="Synch" category="_0MP8UkSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MTmskSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.goto.pageUp" commandName="Page Up" description="Go up one page" category="_0MPVT0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MTms0SyEeSN3ZLFRXim_g" elementId="sed.tabletree.collapseAll" commandName="Collapse All" category="_0MP8UkSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MTmtESyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.replace.invocations" commandName="Replace Invocations" description="Replace invocations of the selected method" category="_0MP8XUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MTmtUSyEeSN3ZLFRXim_g" elementId="org.eclipse.debug.ui.commands.OpenRunConfigurations" commandName="Run..." description="Open run launch configuration dialog" category="_0MPVSUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MTmtkSyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.team.AssumeUnchanged" commandName="Assume Unchanged" category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MTmt0SyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.debug.ui.command.uncall" commandName="Uncall" description="Perform Uncall" category="_0MP8U0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MTmuESyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.commands.showElementInTypeHierarchyView" commandName="Show Java Element Type Hierarchy" description="Show a Java element in the Type Hierarchy view" category="_0MP8W0SyEeSN3ZLFRXim_g">
<parameters xmi:id="_0MTmuUSyEeSN3ZLFRXim_g" elementId="elementRef" name="Java element reference" typeId="org.eclipse.jdt.ui.commands.javaElementReference" optional="false"/>
</commands>
<commands xmi:id="_0MTmukSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.deletePreviousWord" commandName="Delete Previous Word" description="Delete the previous word" category="_0MPVT0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MTmu0SyEeSN3ZLFRXim_g" elementId="org.eclipse.wst.sse.ui.toggle.comment" commandName="Toggle Comment" description="Toggle Comment" category="_0MP8UUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MTmvESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.deletePrevious" commandName="Delete Previous" description="Delete the previous character" category="_0MPVT0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MTmvUSyEeSN3ZLFRXim_g" elementId="org.eclipse.debug.ui.commands.SkipAllBreakpoints" commandName="Skip All Breakpoints" description="Sets whether or not any breakpoint should suspend execution" category="_0MPVSUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MTmvkSyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.correction.extractLocalNotReplaceOccurrences.assist" commandName="Quick Assist - Extract local variable" description="Invokes quick assist and selects 'Extract local variable'" category="_0MP8XESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MTmv0SyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.set.mark" commandName="Set Mark" description="Set the mark" category="_0MPVT0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MTmwESyEeSN3ZLFRXim_g" elementId="org.eclipse.ltk.ui.refactor.show.refactoring.history" commandName="Open Refactoring History " description="Opens the refactoring history" category="_0MP8XUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MTmwUSyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.team.OpenCommit" commandName="Open Git Commit" category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MTmwkSyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.team.RenameBranch" commandName="Rename Branch" category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MTmw0SyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.team.AddToIndex" commandName="Add to Git Index" category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MTmxESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.file.exit" commandName="Exit" description="Exit the application" category="_0MPVSESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MTmxUSyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.ui.navigate.open.type.in.hierarchy" commandName="Open Type in Hierarchy" description="Open a type in the type hierarchy view" category="_0MP8W0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MTmxkSyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.team.ConfigurePush" commandName="Configure Upstream Push" category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MTmx0SyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.window.customizePerspective" commandName="Customize Perspective" description="Customize the current perspective" category="_0MPVQUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MTmyESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.navigate.showInQuickMenu" commandName="Show In..." description="Open the Show In menu" category="_0MP8W0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MTmyUSyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.search.read.access.in.hierarchy" commandName="Read Access in Hierarchy" description="Search for read references of the selected element in its hierarchy" category="_0MP8UESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MTmykSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.ide.deleteCompleted" commandName="Delete Completed Tasks" description="Delete the tasks marked as completed" category="_0MP8UkSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MTmy0SyEeSN3ZLFRXim_g" elementId="org.eclipse.debug.ui.DebugPerspective" commandName="Debug" description="Open the debug perspective" category="_0MPVQESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MTmzESyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.change.type" commandName="Generalize Declared Type" description="Change the declaration of a selected variable to a more general type consistent with usage" category="_0MP8XUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MTmzUSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.rename" commandName="Rename" description="Rename the selected item" category="_0MPVSESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MTmzkSyEeSN3ZLFRXim_g" elementId="org.eclipse.ltk.ui.refactoring.commands.deleteResources" commandName="Delete Resources" description="Delete the selected resources and notify LTK participants." category="_0MP8WkSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MTmz0SyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.CheckoutCommand" commandName="Checkout" category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MTm0ESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.navigate.next" commandName="Next" description="Navigate to the next item" category="_0MP8W0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MTm0USyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.show.outline" commandName="Quick Outline" description="Show the quick outline for the editor input" category="_0MP8W0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MTm0kSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.project.buildAutomatically" commandName="Build Automatically" description="Toggle the workspace build automatically function" category="_0MPVRESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MTm00SyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.search.references.in.project" commandName="References in Project" description="Search for references to the selected element in the enclosing project" category="_0MP8UESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MUNwESyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.search.occurrences.in.file" commandName="Search All Occurrences in File" description="Search for all occurrences of the selected element in its declaring file" category="_0MP8UESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MUNwUSyEeSN3ZLFRXim_g" elementId="com.android.ide.eclipse.adt.refactoring.unwrap" commandName="Remove Container" description="Unwraps Views From Their Container" category="_0MPVSkSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MUNwkSyEeSN3ZLFRXim_g" elementId="org.eclipse.wst.sse.ui.structure.select.last" commandName="Restore Last Selection" description="Restore last selection" category="_0MP8UUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MUNw0SyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.open.implementation" commandName="Open Implementation" description="Opens the Implementations of a method in its hierarchy" category="_0MP8W0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MUNxESyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.search.declarations.in.workspace" commandName="Declaration in Workspace" description="Search for declarations of the selected element in the workspace" category="_0MP8UESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MUNxUSyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.internal.reflog.OpenInCommitViewerCommand" commandName="Open in Commit Viewer" category="_0MP8UkSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MUNxkSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.select.lineUp" commandName="Select Line Up" description="Extend the selection to the previous line of text" category="_0MPVT0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MUNx0SyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.search.read.access.in.project" commandName="Read Access in Project" description="Search for read references to the selected element in the enclosing project" category="_0MP8UESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MUNyESyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.team.ShowHistory" commandName="Show in History" category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MUNyUSyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.ui.edit.text.c.goto.next.bookmark" commandName="Next Bookmark" description="Goto next bookmark of the selected file" category="_0MP8VESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MUNykSyEeSN3ZLFRXim_g" elementId="org.eclipse.compare.compareWithOther" commandName="Compare With Other Resource" description="Compare resources, clipboard contents or editors" category="_0MP8WESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MUNy0SyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.junit.junitShortcut.rerunFailedFirst" commandName="Rerun JUnit Test - Failures First" description="Rerun JUnit Test - Failures First" category="_0MPVSUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MUNzESyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.select.last" commandName="Restore Last Selection" description="Restore last selection" category="_0MP8UUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MUNzUSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.browser.openBundleResource" commandName="Open Resource in Browser" description="Opens a bundle resource in the default web browser." category="_0MPVQUSyEeSN3ZLFRXim_g">
<parameters xmi:id="_0MUNzkSyEeSN3ZLFRXim_g" elementId="plugin" name="Plugin"/>
<parameters xmi:id="_0MUNz0SyEeSN3ZLFRXim_g" elementId="path" name="Path"/>
</commands>
<commands xmi:id="_0MUN0ESyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.team.stash.apply" commandName="Apply Stashed Changes" category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MUN0USyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.ContinueRebase" commandName="Continue Rebase" category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MUN0kSyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.team.Push" commandName="Push" category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MUN00SyEeSN3ZLFRXim_g" elementId="org.eclipse.compare.copyAllLeftToRight" commandName="Copy All from Left to Right" description="Copy All Changes from Left to Right" category="_0MP8WESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MUN1ESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.toggleShowWhitespaceCharacters" commandName="Show Whitespace Characters" description="Shows whitespace characters in current text editor" category="_0MPVT0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MUN1USyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.window.preferences" commandName="Preferences" description="Open the preferences dialog" category="_0MPVQUSyEeSN3ZLFRXim_g">
<parameters xmi:id="_0MUN1kSyEeSN3ZLFRXim_g" elementId="preferencePageId" name="Preference Page"/>
</commands>
<commands xmi:id="_0MUN10SyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.selectAll" commandName="Select All" description="Select all" category="_0MP8UUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MUN2ESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.file.close" commandName="Close" description="Close the active editor" category="_0MPVSESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MUN2USyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.internal.reflog.CopyCommand" commandName="Copy" category="_0MP8UkSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MUN2kSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.newWizard" commandName="New" description="Open the New item wizard" category="_0MPVSESyEeSN3ZLFRXim_g">
<parameters xmi:id="_0MUN20SyEeSN3ZLFRXim_g" elementId="newWizardId" name="New Wizard"/>
</commands>
<commands xmi:id="_0MUN3ESyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.ui.edit.text.c.comment" commandName="Comment" description="Turn the selected lines into // style comments" category="_0MP8VESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MUN3USyEeSN3ZLFRXim_g" elementId="org.eclipse.help.ui.ignoreMissingPlaceholders" commandName="Do not warn of missing documentation" description="Sets the help preferences to no longer report a warning about the current set of missing documents." category="_0MP8V0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MUN3kSyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.inline" commandName="Inline" description="Inline a constant, local variable or method" category="_0MP8XUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MUN30SyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.help.tipsAndTricksAction" commandName="Tips and Tricks" description="Open the tips and tricks help page" category="_0MP8V0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MUN4ESyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.ui.edit.text.c.find.word" commandName="Find Word" description="Select a word and find the next occurrence" category="_0MP8VESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MUN4USyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.copy" commandName="Copy" description="Copy the selection to the clipboard" category="_0MP8UUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MUN4kSyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.ui.deleteConfigsCommand" commandName="Reset to Default" category="_0MP8UkSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MUN40SyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.history.Revert" commandName="Revert Commit" category="_0MP8UkSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MU00ESyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.search.declarations.in.project" commandName="Declaration in Project" description="Search for declarations of the selected element in the enclosing project" category="_0MP8UESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MU00USyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.RepositoriesViewCreateBranch" commandName="Create Branch..." category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MU00kSyEeSN3ZLFRXim_g" elementId="org.eclipse.debug.ui.commands.RunToLine" commandName="Run to Line" description="Resume and break when execution reaches the current line" category="_0MPVSUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MU000SyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.ui.edit.text.c.select.previous" commandName="Select Previous C/C++ Element" description="Expand the selection to enclosing C/C++ element" category="_0MP8UUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MU01ESyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.ui.refactor.toggle.function" commandName="Toggle Function - Refactoring " description="Toggles the implementation between header and implementation file" category="_0MPVQ0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MU01USyEeSN3ZLFRXim_g" elementId="org.eclipse.wst.xml.ui.gotoMatchingTag" commandName="Matching Tag" description="Go to Matching Tag" category="_0MP8UUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MU01kSyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.JavaHierarchyPerspective" commandName="Java Type Hierarchy" description="Show the Java Type Hierarchy perspective" category="_0MPVQESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MU010SyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.infer.type.arguments" commandName="Infer Generic Type Arguments" description="Infer type arguments for references to generic classes and remove unnecessary casts" category="_0MP8XUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MU02ESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.ide.copyConfigCommand" commandName="Copy Configuration Data To Clipboard" description="Copies the configuration data (system properties, installed bundles, etc) to the clipboard." category="_0MP8UUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MU02USyEeSN3ZLFRXim_g" elementId="org.eclipse.debug.ui.commands.Restart" commandName="Restart" description="Restart a process or debug target without terminating and re-launching" category="_0MPVSUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MU02kSyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.indent" commandName="Correct Indentation" description="Corrects the indentation of the selected lines" category="_0MP8XESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MU020SyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.search.exception.occurrences" commandName="Search Exception Occurrences in File" description="Search for exception occurrences of a selected exception type" category="_0MP8UESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MU03ESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.part.previousPage" commandName="Previous Page" description="Switch to the previous page" category="_0MP8W0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MU03USyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.navigate.openResource" commandName="Open Resource" description="Open an editor on a particular resource" category="_0MP8W0SyEeSN3ZLFRXim_g">
<parameters xmi:id="_0MU03kSyEeSN3ZLFRXim_g" elementId="filePath" name="File Path" typeId="org.eclipse.ui.ide.resourcePath"/>
</commands>
<commands xmi:id="_0MU030SyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.team.Synchronize" commandName="Synchronize" category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MU04ESyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.debug.ui.commands.InstanceCount" commandName="Instance Count" description="View the instance count of the selected type loaded in the target VM" category="_0MPVSUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MU04USyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.open.hierarchy" commandName="Quick Hierarchy" description="Show the quick hierarchy of the selected element" category="_0MP8W0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MU04kSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.help.helpContents" commandName="Help Contents" description="Open the help contents" category="_0MP8V0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MU040SyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.ui.edit.opencview" commandName="Show in C/C++ Project view" description="Show the selected resource in the C/C++ Project view" category="_0MP8VESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MU05ESyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.debug.ui.command.reverseStepOver" commandName="Reverse Step Over" description="Perform Reverse Step Over" category="_0MP8U0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MU05USyEeSN3ZLFRXim_g" elementId="org.eclipse.wst.sse.ui.format" commandName="Format" category="_0MP8UkSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MU05kSyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.correction.qualifyField" commandName="Quick Fix - Qualify field access" description="Invokes quick assist and selects 'Qualify field access'" category="_0MP8XESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MU050SyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.file.saveAll" commandName="Save All" description="Save all current contents" category="_0MPVSESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MU06ESyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.team.GarbageCollect" commandName="Collect Garbage" category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MU06USyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.correction.assignToLocal.assist" commandName="Quick Assist - Assign to local variable" description="Invokes quick assist and selects 'Assign to local variable'" category="_0MP8XESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MU06kSyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.search.references.in.hierarchy" commandName="References in Hierarchy" description="Search for references of the selected element in its hierarchy" category="_0MP8UESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MU060SyEeSN3ZLFRXim_g" elementId="org.eclipse.wst.sse.ui.format.document" commandName="Format" description="Format selection" category="_0MP8UUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MU07ESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.select.textEnd" commandName="Select Text End" description="Select to the end of the text" category="_0MPVT0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MU07USyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.delete.line" commandName="Delete Line" description="Delete a line of text" category="_0MPVT0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MU07kSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.window.showViewMenu" commandName="Show View Menu" description="Show the view menu" category="_0MPVQUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MU070SyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.folding.collapseComments" commandName="Collapse Comments" description="Collapse all comments" category="_0MPVT0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MU08ESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.findIncremental" commandName="Incremental Find" description="Incremental find" category="_0MP8UUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MU08USyEeSN3ZLFRXim_g" elementId="org.eclipse.search.ui.performTextSearchProject" commandName="Find Text in Project" description="Searches the files in the project for specific text." category="_0MP8UESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MU08kSyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.RepositoriesViewOpenProperties" commandName="Open Properties View" category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MU080SyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.make.ui.targetBuildLastCommand" commandName="Rebuild Last Target" description="Rebuild the last make target for the selected container or project." category="_0MPVRESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MU09ESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.window.previousEditor" commandName="Previous Editor" description="Switch to the previous editor" category="_0MPVQUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MVb4ESyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.history.DeleteBranch" commandName="Delete Branch..." category="_0MP8UkSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MVb4USyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.commands.openElementInEditor" commandName="Open Java Element" description="Open a Java element in its editor" category="_0MP8W0SyEeSN3ZLFRXim_g">
<parameters xmi:id="_0MVb4kSyEeSN3ZLFRXim_g" elementId="elementRef" name="Java element reference" typeId="org.eclipse.jdt.ui.commands.javaElementReference" optional="false"/>
</commands>
<commands xmi:id="_0MVb40SyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.window.maximizePart" commandName="Maximize Active View or Editor" description="Toggles maximize/restore state of active view or editor" category="_0MPVQUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MVb5ESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.ide.configureColumns" commandName="Configure Columns..." description="Configure the columns in the markers view" category="_0MP8UkSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MVb5USyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.debug.ui.commands.AddClassPrepareBreakpoint" commandName="Add Class Load Breakpoint" description="Add a class load breakpoint" category="_0MPVSUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MVb5kSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.editors.revisions.id.toggle" commandName="Toggle Revision Id Display" description="Toggles the display of the revision id" category="_0MPVT0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MVb50SyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.folding.collapse_all" commandName="Collapse All" description="Collapses all folded regions" category="_0MPVT0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MVb6ESyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.commit.CherryPick" commandName="Cherry Pick" category="_0MP8UkSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MVb6USyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.perspectives.showPerspective" commandName="Show Perspective" description="Show a particular perspective" category="_0MPVQESyEeSN3ZLFRXim_g">
<parameters xmi:id="_0MVb6kSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.perspectives.showPerspective.perspectiveId" name="Parameter"/>
<parameters xmi:id="_0MVb60SyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.perspectives.showPerspective.newWindow" name="In New Window"/>
</commands>
<commands xmi:id="_0MVb7ESyEeSN3ZLFRXim_g" elementId="org.eclipse.debug.ui.commands.eof" commandName="EOF" description="Send end of file" category="_0MPVSUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MVb7USyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.goto.matching.bracket" commandName="Go to Matching Bracket" description="Moves the cursor to the matching bracket" category="_0MP8W0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MVb7kSyEeSN3ZLFRXim_g" elementId="org.eclipse.wst.xml.ui.reload.dependencies" commandName="Reload Dependencies" description="Reload Dependencies" category="_0MP8UkSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MVb70SyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.editors.quickdiff.revert" commandName="Revert Lines" description="Revert the current selection, block or deleted lines" category="_0MPVT0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MVb8ESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.navigate.previousSubTab" commandName="Previous Sub-Tab" description="Switch to the previous sub-tab" category="_0MP8W0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MVb8USyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.search.method.exits" commandName="Search Method Exit Occurrences in File" description="Search for method exit occurrences of a selected return type" category="_0MP8UESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MVb8kSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.smartEnter" commandName="Insert Line Below Current Line" description="Adds a new line below the current line" category="_0MPVT0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MVb80SyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.goto.pageDown" commandName="Page Down" description="Go down one page" category="_0MPVT0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MVb9ESyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.team.Reset" commandName="Reset" category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MVb9USyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.goto.windowStart" commandName="Window Start" description="Go to the start of the window" category="_0MPVT0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MVb9kSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.navigate.goInto" commandName="Go Into" description="Navigate into the selected item" category="_0MP8W0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MVb90SyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.debug.ui.command.stopTracing" commandName="Stop Tracing " description="Stop Tracing Experiment" category="_0MP8WUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MVb-ESyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.debug.ui.command.ungroupDebugContexts" commandName="Ungroup" description="Ungroups the selected debug contexts" category="_0MPVTkSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MVb-USyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.contentAssist.proposals" commandName="Content Assist" description="Content Assist" category="_0MP8UUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MVb-kSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.folding.expand_all" commandName="Expand All" description="Expands all folded regions" category="_0MPVT0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MVb-0SyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.navigate.nextTab" commandName="Next Tab" description="Switch to the next tab" category="_0MP8W0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MVb_ESyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.ui.edit.text.c.add.block.comment" commandName="Add Block Comment" description="Enclose the selection with a block comment" category="_0MP8VESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MVb_USyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.team.Discard" commandName="Replace with File in Git Index" category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MVb_kSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.ide.OpenMarkersView" commandName="Open Another" description="Open another view" category="_0MP8UkSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MVb_0SyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.ui.edit.text.c.goto.matching.bracket" commandName="Go to Matching Bracket" description="Moves the cursor to the matching bracket" category="_0MP8VESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MVcAESyEeSN3ZLFRXim_g" elementId="org.eclipse.debug.ui.commands.Terminate" commandName="Terminate" description="Terminate" category="_0MPVSUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MVcAUSyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.team.NoAssumeUnchanged" commandName="No Assume Unchanged" category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MVcAkSyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.ui.edit.text.c.sort.lines" commandName="Sort Lines" description="Sort selected lines alphabetically" category="_0MP8VESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MWC8ESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.select.windowEnd" commandName="Select Window End" description="Select to the end of the window" category="_0MPVT0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MWC8USyEeSN3ZLFRXim_g" elementId="org.eclipse.debug.ui.command.gotoaddress" commandName="Go to Address" description="Go to Address" category="_0MPVSUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MWC8kSyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.make.ui.edit.text.makefile.uncomment" commandName="Uncomment" description="Uncomment the selected # style comment lines" category="_0MPVR0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MWC80SyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.window.switchToEditor" commandName="Switch to Editor" description="Switch to an editor" category="_0MPVQUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MWC9ESyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.command.shareProject" commandName="Share with Git" description="Share the project using Git" category="_0MP8UkSyEeSN3ZLFRXim_g">
<parameters xmi:id="_0MWC9USyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.command.projectNameParameter" name="Project" optional="false"/>
</commands>
<commands xmi:id="_0MWC9kSyEeSN3ZLFRXim_g" elementId="org.eclipse.debug.ui.commands.Suspend" commandName="Suspend" description="Suspend" category="_0MPVSUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MWC90SyEeSN3ZLFRXim_g" elementId="com.android.ide.eclipse.adt.refactoring.extract.string" commandName="Extract Android String" description="Extract Strings into Android String Resources" category="_0MPVSkSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MWC-ESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.window.previousView" commandName="Previous View" description="Switch to the previous view" category="_0MPVQUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MWC-USyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.ui.navigate.open.element.in.call.hierarchy" commandName="Open Element in Call Hierarchy" description="Open an element in the call hierarchy view" category="_0MP8W0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MWC-kSyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.search.write.access.in.hierarchy" commandName="Write Access in Hierarchy" description="Search for write references of the selected element in its hierarchy" category="_0MP8UESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MWC-0SyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.navigate.linkWithEditor" commandName="Toggle Link with Editor " description="Toggles linking of a view's selection with the active editor's selection" category="_0MP8W0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MWC_ESyEeSN3ZLFRXim_g" elementId="org.eclipse.debug.ui.commands.closeRendering" commandName="Close Rendering" description="Close the selected rendering." category="_0MPVSUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MWC_USyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.commands.showElementInPackageView" commandName="Show Java Element in Package Explorer" description="Select Java element in the Package Explorer view" category="_0MP8W0SyEeSN3ZLFRXim_g">
<parameters xmi:id="_0MWC_kSyEeSN3ZLFRXim_g" elementId="elementRef" name="Java element reference" typeId="org.eclipse.jdt.ui.commands.javaElementReference" optional="false"/>
</commands>
<commands xmi:id="_0MWC_0SyEeSN3ZLFRXim_g" elementId="org.eclipse.team.ui.synchronizeAll" commandName="Synchronize..." description="Synchronize resources in the workspace with another location" category="_0MP8VkSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MWDAESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.help.displayHelp" commandName="Display Help" description="Display a Help topic" category="_0MP8V0SyEeSN3ZLFRXim_g">
<parameters xmi:id="_0MWDAUSyEeSN3ZLFRXim_g" elementId="href" name="Help topic href"/>
</commands>
<commands xmi:id="_0MWDAkSyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.navigate.open.type" commandName="Open Type" description="Open a type in a Java editor" category="_0MP8W0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MWDA0SyEeSN3ZLFRXim_g" elementId="org.eclipse.wst.sse.ui.open.file.from.source" commandName="Open Selection" description="Open an editor on the selected link" category="_0MP8UUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MWDBESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.window.previousPerspective" commandName="Previous Perspective" description="Switch to the previous perspective" category="_0MPVQUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MWDBUSyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.team.Branch" commandName="Branch" category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MWDBkSyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.junit.junitShortcut.debug" commandName="Debug JUnit Test" description="Debug JUnit Test" category="_0MPVSUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MWDB0SyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.project.closeProject" commandName="Close Project" description="Close the selected project" category="_0MPVRESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MWDCESyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.correction.assignParamToField.assist" commandName="Quick Assist - Assign parameter to field" description="Invokes quick assist and selects 'Assign parameter to field'" category="_0MP8XESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MWDCUSyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.ui.refactoring.command.ExtractConstant" commandName="Extract Constant..." category="_0MPVQ0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MWDCkSyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.FetchGerritChange" commandName="Fetch From Gerrit" category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MWDC0SyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.folding.expand" commandName="Expand" description="Expands the folded region at the current selection" category="_0MPVT0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MWDDESyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.junit.junitShortcut.rerunLast" commandName="Rerun JUnit Test" description="Rerun JUnit Test" category="_0MPVSUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MWDDUSyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.RepositoriesViewRemove" commandName="Remove Repository" category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MWDDkSyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.navigate.java.open.structure" commandName="Open Structure" description="Show the structure of the selected element" category="_0MP8W0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MWqAESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.goto.lineStart" commandName="Line Start" description="Go to the start of the line of text" category="_0MPVT0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MWqAUSyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.ui.edit.text.c.select.next" commandName="Select Next C/C++ Element" description="Expand the selection to next C/C++ element" category="_0MP8UUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MWqAkSyEeSN3ZLFRXim_g" elementId="org.eclipse.help.ui.closeTray" commandName="Close User Assistance Tray" description="Close the user assistance tray containing context help information and cheat sheets." category="_0MP8V0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MWqA0SyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.junit.gotoTest" commandName="Referring Tests" description="Referring Tests" category="_0MP8UESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MWqBESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.project.properties" commandName="Properties" description="Display the properties of the selected item's project " category="_0MPVRESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MWqBUSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.toggleBlockSelectionMode" commandName="Toggle Block Selection" description="Toggle block / column selection in the current text editor" category="_0MP8UUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MWqBkSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.file.save" commandName="Save" description="Save the current contents" category="_0MPVSESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MWqB0SyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.history.CompareWithWorkingTree" commandName="Compare with Working Tree" category="_0MP8UkSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MWqCESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.file.closePart" commandName="Close Part" description="Close the active workbench part" category="_0MPVQUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MWqCUSyEeSN3ZLFRXim_g" elementId="org.eclipse.debug.ui.commands.ToggleWatchpoint" commandName="Toggle Watchpoint" description="Creates or removes a watchpoint" category="_0MPVSUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MWqCkSyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.RepositoriesViewConfigureBranch" commandName="Configure Branch" category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MWqC0SyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.history.OpenInCommitViewerCommand" commandName="Open in Commit Viewer" category="_0MP8UkSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MWqDESyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.open.type.hierarchy" commandName="Open Type Hierarchy" description="Open a type hierarchy on the selected element" category="_0MP8W0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MWqDUSyEeSN3ZLFRXim_g" elementId="org.eclipse.ltk.ui.refactor.apply.refactoring.script" commandName="Apply Script" description="Perform refactorings from a refactoring script on the local workspace" category="_0MP8XUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MWqDkSyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.correction.assist.proposals" commandName="Quick Fix" description="Suggest possible fixes for a problem" category="_0MP8UUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MWqD0SyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.editors.revisions.rendering.cycle" commandName="Cycle Revision Coloring Mode" description="Cycles through the available coloring modes for revisions" category="_0MPVT0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MWqEESyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.debug.ui.commands.Watch" commandName="Watch" description="Create new watch expression" category="_0MPVSUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MWqEUSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.showRulerContextMenu" commandName="Show Ruler Context Menu" description="Show the context menu for the ruler" category="_0MPVQUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MWqEkSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.window.minimizePart" commandName="Minimize Active View or Editor" description="Minimizes the active view or editor" category="_0MPVQUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MWqE0SyEeSN3ZLFRXim_g" elementId="org.eclipse.debug.ui.commands.ToggleMethodBreakpoint" commandName="Toggle Method Breakpoint" description="Creates or removes a method breakpoint" category="_0MPVSUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MWqFESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.part.nextPage" commandName="Next Page" description="Switch to the next page" category="_0MP8W0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MWqFUSyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.team.ReplaceWithRef" commandName="Replace with branch, tag, or reference" category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MWqFkSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.delete.line.to.beginning" commandName="Delete to Beginning of Line" description="Delete to the beginning of a line of text" category="_0MPVT0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MWqF0SyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.navigate.backwardHistory" commandName="Backward History" description="Move backward in the editor navigation history" category="_0MP8W0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MWqGESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.swap.mark" commandName="Swap Mark" description="Swap the mark with the cursor position" category="_0MPVT0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MWqGUSyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.ui.refactoring.command.ExtractLocalVariable" commandName="Extract Local Variable..." category="_0MPVQ0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MWqGkSyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.goto.previous.member" commandName="Go to Previous Member" description="Move the caret to the previous member of the compilation unit" category="_0MP8W0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MWqG0SyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.project.buildProject" commandName="Build Project" description="Build the selected project" category="_0MPVRESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MWqHESyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.debug.ui.command.saveTraceData" commandName="Save Trace Data " description="Save Trace Data to File" category="_0MP8WUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MWqHUSyEeSN3ZLFRXim_g" elementId="org.eclipse.wst.sse.ui.add.block.comment" commandName="Add Block Comment" description="Add Block Comment" category="_0MP8UUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MWqHkSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.window.showSystemMenu" commandName="Show System Menu" description="Show the system menu" category="_0MPVQUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MWqH0SyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.select.enclosing" commandName="Select Enclosing Element" description="Expand selection to include enclosing element" category="_0MP8UUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MWqIESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.lowerCase" commandName="To Lower Case" description="Changes the selection to lower case" category="_0MPVT0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MWqIUSyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.self.encapsulate.field" commandName="Encapsulate Field" description="Create getting and setting methods for the field and use only those to access the field" category="_0MP8XUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MWqIkSyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.ui.edit.text.c.goto.next.member" commandName="Go to Next Member" description="Move the caret to the next member of the translation unit" category="_0MP8VESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MXREESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.select.pageDown" commandName="Select Page Down" description="Select to the bottom of the page" category="_0MPVT0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MXREUSyEeSN3ZLFRXim_g" elementId="org.eclipse.debug.ui.commands.newRendering" commandName="New Rendering" description="Add a new rendering." category="_0MPVSUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MXREkSyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.team.SimplePush" commandName="Push to Upstream" category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MXRE0SyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.team.MergeTool" commandName="Merge Tool" category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MXRFESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.open.hyperlink" commandName="Open Hyperlink" description="Opens the hyperlink at the caret location or opens a chooser if more than one hyperlink is available" category="_0MPVT0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MXRFUSyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.history.OpenInTextEditorCommand" commandName="Open in Text Editor" category="_0MP8UkSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MXRFkSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.openLocalFile" commandName="Open File..." description="Open a file" category="_0MPVSESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MXRF0SyEeSN3ZLFRXim_g" elementId="org.eclipse.compare.selectPreviousChange" commandName="Select Previous Change" description="Select Previous Change" category="_0MP8WESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MXRGESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.toggleShowSelectedElementOnly" commandName="Show Selected Element Only" description="Show Selected Element Only" category="_0MPVQUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MXRGUSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.select.wordPrevious" commandName="Select Previous Word" description="Select the previous word" category="_0MPVT0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MXRGkSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.ToggleCoolbarAction" commandName="Toggle Toolbar Visibility" description="Toggles the visibility of the window toolbar" category="_0MPVQUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MXRG0SyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.history.Reset" commandName="Reset" category="_0MP8UkSyEeSN3ZLFRXim_g">
<parameters xmi:id="_0MXRHESyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.history.ResetMode" name="Reset mode" optional="false"/>
</commands>
<commands xmi:id="_0MXRHUSyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.rename.element" commandName="Rename - Refactoring " description="Rename the selected element" category="_0MP8XUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MXRHkSyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.debug.ui.commands.AddExceptionBreakpoint" commandName="Add Java Exception Breakpoint" description="Add a Java exception breakpoint" category="_0MPVSUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MXRH0SyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.debug.ui.command.reverseToggle" commandName="Reverse Toggle" description="Toggle Reverse Debugging" category="_0MP8U0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MXRIESyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.history.CompareVersionsInTree" commandName="Compare in Tree" category="_0MP8UkSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MXRIUSyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.ui.edit.opendecl" commandName="Open Declaration" description="Open an editor on the selected element's declaration(s)" category="_0MP8VESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MXRIkSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.project.openProject" commandName="Open Project" description="Open a project" category="_0MPVRESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MXRI0SyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.cut" commandName="Cut" description="Cut the selection to the clipboard" category="_0MP8UUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MXRJESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.moveLineDown" commandName="Move Lines Down" description="Moves the selected lines down" category="_0MPVT0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MXRJUSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.findReplace" commandName="Find and Replace" description="Find and replace text" category="_0MP8UUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MXRJkSyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.debug.ui.commands.StepIntoSelection" commandName="Step Into Selection" description="Step into the current selected statement" category="_0MPVSUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MXRJ0SyEeSN3ZLFRXim_g" elementId="org.eclipse.quickdiff.toggle" commandName="Quick Diff Toggle" description="Toggles quick diff information display on the line number ruler" category="_0MP8UUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MXRKESyEeSN3ZLFRXim_g" elementId="org.eclipse.team.ui.applyPatch" commandName="Apply Patch..." description="Apply a patch to one or more workspace projects." category="_0MP8VkSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MXRKUSyEeSN3ZLFRXim_g" elementId="org.eclipse.compare.copyLeftToRight" commandName="Copy from Left to Right" description="Copy Current Change from Left to Right" category="_0MP8WESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MXRKkSyEeSN3ZLFRXim_g" elementId="org.eclipse.ltk.ui.refactoring.commands.moveResources" commandName="Move Resources" description="Move the selected resources and notify LTK participants." category="_0MP8WkSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MXRK0SyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.debug.ui.command.startTracing" commandName="Start Tracing " description="Start Tracing Experiment" category="_0MP8WUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MXRLESyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.RepositoriesViewRenameBranch" commandName="Rename Branch..." category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MXRLUSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.toggleInsertMode" commandName="Toggle Insert Mode" description="Toggle insert mode" category="_0MP8UUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MXRLkSyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.open.editor" commandName="Open Declaration" description="Open an editor on the selected element" category="_0MP8W0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MXRL0SyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.generate.constructor.using.fields" commandName="Generate Constructor using Fields" description="Choose fields to initialize and constructor from superclass to call " category="_0MP8XESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MXRMESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.goto.line" commandName="Go to Line" description="Go to a specified line of text" category="_0MP8W0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MXRMUSyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.RepositoriesViewAddToIndex" commandName="Add to Index" category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MX4IESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.navigate.nextSubTab" commandName="Next Sub-Tab" description="Switch to the next sub-tab" category="_0MP8W0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MX4IUSyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.team.stash.create" commandName="Stash Changes" category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MX4IkSyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.RepositoriesViewRemoveRemote" commandName="Delete Remote" category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MX4I0SyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.ui.edit.text.c.toggleMarkOccurrences" commandName="Toggle Mark Occurrences" description="Toggles mark occurrences in C/C++ editors" category="_0MP8VESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MX4JESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.goto.columnPrevious" commandName="Previous Column" description="Go to the previous column" category="_0MPVT0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MX4JUSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.externaltools.ExternalToolMenuDelegateToolbar" commandName="Run Last Launched External Tool" description="Runs the last launched external Tool" category="_0MPVSUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MX4JkSyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.team.Commit" commandName="Commit..." category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MX4J0SyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.ui.search.findrefs" commandName="Find References" description="Find References" category="_0MP8VESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MX4KESyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.quick.format" commandName="Format Element" description="Format enclosing text element" category="_0MP8XESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MX4KUSyEeSN3ZLFRXim_g" elementId="org.eclipse.wst.sse.ui.remove.block.comment" commandName="Remove Block Comment" description="Remove Block Comment" category="_0MP8UUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MX4KkSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.addBookmark" commandName="Add Bookmark" description="Add a bookmark" category="_0MP8UUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MX4K0SyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.select.lineStart" commandName="Select Line Start" description="Select to the beginning of the line of text" category="_0MPVT0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MX4LESyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.history.CheckoutCommand" commandName="Checkout" category="_0MP8UkSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MX4LUSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.cut.line.to.end" commandName="Cut to End of Line" description="Cut to the end of a line of text" category="_0MPVT0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MX4LkSyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.RepositoriesViewAddRepository" commandName="Add a Git Repository" category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MX4L0SyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.ui.hover.forwardMacroExpansion" commandName="Forward" description="Step forward in macro expansions" category="_0MP8VESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MX4MESyEeSN3ZLFRXim_g" elementId="org.eclipse.equinox.p2.ui.sdk.update" commandName="Check for Updates" category="_0MP8UkSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MX4MUSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.findIncrementalReverse" commandName="Incremental Find Reverse" description="Incremental find reverse" category="_0MP8UUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MX4MkSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.project.rebuildAll" commandName="Rebuild All" description="Rebuild all projects" category="_0MPVRESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MX4M0SyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.window.activateEditor" commandName="Activate Editor" description="Activate the editor" category="_0MPVQUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MX4NESyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.organize.imports" commandName="Organize Imports" description="Evaluate all required imports and replace the current imports" category="_0MP8XESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MX4NUSyEeSN3ZLFRXim_g" elementId="org.eclipse.compare.copyAllRightToLeft" commandName="Copy All from Right to Left" description="Copy All Changes from Right to Left" category="_0MP8WESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MX4NkSyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.history.PushCommit" commandName="Push Commit..." category="_0MP8UkSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MX4N0SyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.generate.javadoc" commandName="Generate Javadoc" description="Generates Javadoc for a selectable set of Java resources" category="_0MPVRESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MX4OESyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.search.declarations.in.working.set" commandName="Declaration in Working Set" description="Search for declarations of the selected element in a working set" category="_0MP8UESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MX4OUSyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.debug.ui.command.reverseResume" commandName="Reverse Resume" description="Perform Reverse Resume" category="_0MP8U0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MX4OkSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.project.closeUnrelatedProjects" commandName="Close Unrelated Projects" description="Close unrelated projects" category="_0MPVRESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MX4O0SyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.goto.lineDown" commandName="Line Down" description="Go down one line of text" category="_0MPVT0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MX4PESyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.RepositoriesViewConfigureGerritRemote" commandName="Gerrit Configuration..." category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MX4PUSyEeSN3ZLFRXim_g" elementId="org.eclipse.debug.ui.commands.ToggleBreakpoint" commandName="Toggle Breakpoint" description="Creates or removes a breakpoint" category="_0MPVSUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MX4PkSyEeSN3ZLFRXim_g" elementId="org.eclipse.compare.ignoreWhiteSpace" commandName="Ignore White Space" description="Ignore white space where applicable" category="_0MP8WESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MX4P0SyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.navigate.previousTab" commandName="Previous Tab" description="Switch to the previous tab" category="_0MP8W0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MX4QESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.gotoLastEditPosition" commandName="Last Edit Location" description="Last edit location" category="_0MP8W0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MX4QUSyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.SkipRebase" commandName="Skip Rebase" category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MYfMESyEeSN3ZLFRXim_g" elementId="org.eclipse.debug.ui.commands.toggleMemoryMonitorsPane" commandName="Toggle Memory Monitors Pane" description="Toggle visibility of the Memory Monitors Pane" category="_0MPVSUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MYfMUSyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.RebaseCurrent" commandName="Rebase" category="_0MP8UkSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MYfMkSyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.ui.edit.open.type.hierarchy" commandName="Open Type Hierarchy" description="Open a type hierarchy on the selected element" category="_0MP8W0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MYfM0SyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.ide.copyBuildIdCommand" commandName="Copy Build Id To Clipboard" description="Copies the build id to the clipboard." category="_0MP8UUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MYfNESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.dialogs.openInputDialog" commandName="Open Input Dialog" description="Open an Input Dialog" category="_0MPVTUSyEeSN3ZLFRXim_g">
<parameters xmi:id="_0MYfNUSyEeSN3ZLFRXim_g" elementId="title" name="Title"/>
<parameters xmi:id="_0MYfNkSyEeSN3ZLFRXim_g" elementId="message" name="Message"/>
<parameters xmi:id="_0MYfN0SyEeSN3ZLFRXim_g" elementId="initialValue" name="Initial Value"/>
<parameters xmi:id="_0MYfOESyEeSN3ZLFRXim_g" elementId="cancelReturns" name="Return Value on Cancel"/>
</commands>
<commands xmi:id="_0MYfOUSyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.history.ShowVersions" commandName="Open" category="_0MP8UkSyEeSN3ZLFRXim_g">
<parameters xmi:id="_0MYfOkSyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.history.CompareMode" name="Compare mode"/>
</commands>
<commands xmi:id="_0MYfO0SyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.ui.navigate.opentype" commandName="Open Element" description="Open an element in an Editor" category="_0MP8VESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MYfPESyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.search.declarations.in.hierarchy" commandName="Declaration in Hierarchy" description="Search for declarations of the selected element in its hierarchy" category="_0MP8UESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MYfPUSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.views.properties.NewPropertySheetCommand" commandName="Properties" category="_0MP8UkSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MYfPkSyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.search.return.continue.targets" commandName="Search break/continue Target Occurrences in File" description="Search for break/continue target occurrences of a selected target name" category="_0MP8UESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MYfP0SyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.search.implementors.in.workspace" commandName="Implementors in Workspace" description="Search for implementors of the selected interface" category="_0MP8UESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MYfQESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.navigate.collapseAll" commandName="Collapse All" description="Collapse the current tree" category="_0MP8W0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MYfQUSyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.correction.inlineLocal.assist" commandName="Quick Assist - Inline local variable" description="Invokes quick assist and selects 'Inline local variable'" category="_0MP8XESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MYfQkSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.folding.toggle" commandName="Toggle Folding" description="Toggles folding in the current editor" category="_0MPVT0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MYfQ0SyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.team.submodule.update" commandName="Update Submodule" category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MYfRESyEeSN3ZLFRXim_g" elementId="org.eclipse.wst.xml.ui.referencedFileErrors" commandName="Show Details..." description="Show Details..." category="_0MP8UkSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MYfRUSyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.move.inner.to.top.level" commandName="Move Type to New File" description="Move Type to New File" category="_0MP8XUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MYfRkSyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.ui.edit.text.c.remove.block.comment" commandName="Remove Block Comment" description="Remove the block comment enclosing the selection" category="_0MP8VESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MYfR0SyEeSN3ZLFRXim_g" elementId="org.eclipse.wst.sse.ui.quick_outline" commandName="Quick Outline" description="Show the quick outline for the editor input" category="_0MP8W0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MYfSESyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.commit.Revert" commandName="Revert Commit" category="_0MP8UkSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MYfSUSyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.comment" commandName="Comment" description="Turn the selected lines into Java comments" category="_0MP8XESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MYfSkSyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.correction.addNonNLS" commandName="Quick Fix - Add non-NLS tag" description="Invokes quick assist and selects 'Add non-NLS tag'" category="_0MP8XESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MYfS0SyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.format" commandName="Format" description="Format the selected text" category="_0MP8XESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MYfTESyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.debug.ui.commands.Display" commandName="Display" description="Display result of evaluating selected text" category="_0MPVSUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MYfTUSyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.RepositoriesViewCreateRepository" commandName="Create a Repository" category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MYfTkSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.file.revert" commandName="Revert" description="Revert to the last saved state" category="_0MPVSESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MYfT0SyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.folding.collapseMembers" commandName="Collapse Members" description="Collapse all members" category="_0MPVT0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MYfUESyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.gotoBreadcrumb" commandName="Show In Breadcrumb" description="Shows the Java editor breadcrumb and sets the keyboard focus into it" category="_0MP8W0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MYfUUSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.scroll.lineDown" commandName="Scroll Line Down" description="Scroll down one line of text" category="_0MPVT0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MZGQESyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.clean.up" commandName="Clean Up" description="Solve problems and improve code style on selected resources" category="_0MP8XESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MZGQUSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.redo" commandName="Redo" description="Redo the last operation" category="_0MP8UUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MZGQkSyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.team.SimpleFetch" commandName="Fetch from Upstream" category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MZGQ0SyEeSN3ZLFRXim_g" elementId="org.eclipse.debug.ui.commands.StepInto" commandName="Step Into" description="Step into" category="_0MPVSUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MZGRESyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.commit.Checkout" commandName="Checkout" category="_0MP8UkSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MZGRUSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.join.lines" commandName="Join Lines" description="Join lines of text" category="_0MPVT0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MZGRkSyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.ui.search.finddecl" commandName="Find Declaration" description="Find Declaration" category="_0MP8VESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MZGR0SyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.scroll.lineUp" commandName="Scroll Line Up" description="Scroll up one line of text" category="_0MPVT0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MZGSESyEeSN3ZLFRXim_g" elementId="org.eclipse.debug.ui.commands.TerminateAndRelaunch" commandName="Terminate and Relaunch" description="Terminate and Relaunch" category="_0MPVSUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MZGSUSyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.externalize.strings" commandName="Externalize Strings" description="Finds all strings that are not externalized and moves them into a separate property file" category="_0MP8XESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MZGSkSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.file.print" commandName="Print" description="Print" category="_0MPVSESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MZGS0SyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.navigate.forwardHistory" commandName="Forward History" description="Move forward in the editor navigation history" category="_0MP8W0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MZGTESyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.debug.ui.breakpoint.properties" commandName="Java Breakpoint Properties" description="View and edit the properties for a given Java breakpoint" category="_0MPVSUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MZGTUSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.select.pageUp" commandName="Select Page Up" description="Select to the top of the page" category="_0MPVT0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MZGTkSyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.add.import" commandName="Add Import" description="Create import statement on selection" category="_0MP8XESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MZGT0SyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.team.CompareWithPrevious" commandName="Compare with Previous Revision" category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MZGUESyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.extract.interface" commandName="Extract Interface" description="Extract a set of members into a new interface and try to use the new interface" category="_0MP8XUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MZGUUSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.help.dynamicHelp" commandName="Dynamic Help" description="Open the dynamic help" category="_0MP8V0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MZGUkSyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.search.read.access.in.working.set" commandName="Read Access in Working Set" description="Search for read references to the selected element in a working set" category="_0MP8UESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MZGU0SyEeSN3ZLFRXim_g" elementId="org.eclipse.debug.ui.commands.RunLast" commandName="Run" description="Launch in run mode" category="_0MPVSUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MZGVESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.copyLineUp" commandName="Duplicate Lines" description="Duplicates the selected lines and leaves the selection unchanged" category="_0MPVT0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MZGVUSyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.correction.addCast" commandName="Quick Fix - Add cast" description="Invokes quick assist and selects 'Add cast'" category="_0MP8XESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MZGVkSyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.commit.CreateBranch" commandName="Create Branch..." category="_0MP8UkSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MZGV0SyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.refactor.quickMenu" commandName="Show Refactor Quick Menu" description="Shows the refactor quick menu" category="_0MP8XUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MZGWESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.navigate.removeFromWorkingSet" commandName="Remove From Working Set" description="Removes the selected object from a working set." category="_0MP8UUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MZGWUSyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.debug.ui.javaAppletShortcut.debug" commandName="Debug Java Applet" description="Debug Java Applet" category="_0MPVSUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MZGWkSyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.debug.ui.localJavaShortcut.run" commandName="Run Java Application" description="Run Java Application" category="_0MPVSUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MZGW0SyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.team.ReplaceWithCommit" commandName="Replace with commit" category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MZGXESyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.team.DeleteBranch" commandName="Delete Branch" category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MZGXUSyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.RepositoriesToggleBranchHierarchy" commandName="Toggle Branch Representation" category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MZGXkSyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.team.ApplyPatch" commandName="Apply Patch" category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MZGX0SyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.showRulerAnnotationInformation" commandName="Show Ruler Annotation Tooltip" description="Displays annotation information for the caret line in a focused hover" category="_0MPVT0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MZGYESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.folding.collapse" commandName="Collapse" description="Collapses the folded region at the current selection" category="_0MPVT0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MZtUESyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.ui.edit.text.c.source.quickMenu" commandName="Show Source Quick Menu" description="Shows the source quick menu" category="_0MP8VESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MZtUUSyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.navigate.gotopackage" commandName="Go to Package" description="Go to Package" category="_0MP8W0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MZtUkSyEeSN3ZLFRXim_g" elementId="org.eclipse.wst.sse.ui.structure.select.next" commandName="Select Next Element" description="Expand selection to include next sibling" category="_0MP8UUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MZtU0SyEeSN3ZLFRXim_g" elementId="org.eclipse.equinox.p2.ui.sdk.install" commandName="Install New Software..." category="_0MP8UkSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MZtVESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.window.nextView" commandName="Next View" description="Switch to the next view" category="_0MPVQUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MZtVUSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.project.buildLast" commandName="Repeat Working Set Build" description="Repeat the last working set build" category="_0MPVRESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MZtVkSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.goto.textStart" commandName="Text Start" description="Go to the beginning of the text" category="_0MPVT0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MZtV0SyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.junit.junitShortcut.run" commandName="Run JUnit Test" description="Run JUnit Test" category="_0MPVSUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MZtWESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.file.properties" commandName="Properties" description="Display the properties of the selected item" category="_0MPVSESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MZtWUSyEeSN3ZLFRXim_g" elementId="org.eclipse.search.ui.openSearchDialog" commandName="Open Search Dialog" description="Open the Search dialog" category="_0MP8UESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MZtWkSyEeSN3ZLFRXim_g" elementId="org.eclipse.debug.ui.actions.WatchCommand" commandName="Wa&amp;tch" category="_0MP8UkSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MZtW0SyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.file.openWorkspace" commandName="Switch Workspace" description="Open the workspace selection dialog" category="_0MPVSESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MZtXESyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.pull.up" commandName="Pull Up" description="Move members to a superclass" category="_0MP8XUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MZtXUSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.moveLineUp" commandName="Move Lines Up" description="Moves the selected lines up" category="_0MPVT0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MZtXkSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.ide.configureFilters" commandName="Configure Contents..." description="Configure the filters to apply to the markers view" category="_0MP8UkSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MZtX0SyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.ui.edit.open.outline" commandName="Show outline" description="Shows outline" category="_0MP8VESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MZtYESyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.correction.assignToField.assist" commandName="Quick Assist - Assign to field" description="Invokes quick assist and selects 'Assign to field'" category="_0MP8XESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MZtYUSyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.modify.method.parameters" commandName="Change Method Signature" description="Change method signature includes parameter names and parameter order" category="_0MP8XUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MZtYkSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.copyLineDown" commandName="Copy Lines" description="Duplicates the selected lines and moves the selection to the copy" category="_0MPVT0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MZtY0SyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.ui.edit.open.call.hierarchy" commandName="Open Call Hierarchy" description="Open the call hierarchy for the selected element" category="_0MP8W0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MZtZESyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.find.broken.nls.keys" commandName="Find Broken Externalized Strings" description="Finds undefined, duplicate and unused externalized string keys in property files" category="_0MP8XESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MZtZUSyEeSN3ZLFRXim_g" elementId="org.eclipse.wst.sse.ui.cleanup.document" commandName="Cleanup Document..." description="Cleanup document" category="_0MP8UUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MZtZkSyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.uncomment" commandName="Uncomment" description="Uncomment the selected Java comment lines" category="_0MP8XESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MZtZ0SyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.remove.occurrence.annotations" commandName="Remove Occurrence Annotations" description="Removes the occurrence annotations from the current editor" category="_0MP8XESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MZtaESyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.correction.addBlock.assist" commandName="Quick Assist - Replace statement with block" description="Invokes quick assist and selects 'Replace statement with block'" category="_0MP8XESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MZtaUSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.goto.wordNext" commandName="Next Word" description="Go to the next word" category="_0MPVT0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MZtakSyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.history.CherryPick" commandName="Cherry Pick" category="_0MP8UkSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MZta0SyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.ConfigureUpstreamFetch" commandName="Configure Upstream Fetch" category="_0MP8UkSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MZtbESyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.team.Merge" commandName="Merge" category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MZtbUSyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.ui.edit.text.c.toggle.comment" commandName="Comment/Uncomment" description="Comment/Uncomment the selected lines" category="_0MP8VESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MZtbkSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.navigate.up" commandName="Up" description="Navigate up one level" category="_0MP8W0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MaUYESyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.introduce.parameter" commandName="Introduce Parameter" description="Introduce a new method parameter based on the selected expression" category="_0MP8XUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MaUYUSyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.correction.splitJoinVariableDeclaration.assist" commandName="Quick Assist - Split/Join variable declaration" description="Invokes quick assist and selects 'Split/Join variable declaration'" category="_0MP8XESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MaUYkSyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.history.ResetQuickdiffBaseline" commandName="Reset quickdiff baseline" category="_0MP8UkSyEeSN3ZLFRXim_g">
<parameters xmi:id="_0MaUY0SyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.history.ResetQuickdiffBaselineTarget" name="Reset target (HEAD, HEAD^1)" optional="false"/>
</commands>
<commands xmi:id="_0MaUZESyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.team.submodule.add" commandName="Add Submodule" category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MaUZUSyEeSN3ZLFRXim_g" elementId="com.android.ide.eclipse.adt.refactoring.changeview" commandName="Change Widget Type" description="Changes the widget type for the selection" category="_0MPVSkSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MaUZkSyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.make.ui.targetBuildCommand" commandName="Make Target Build" description="Invoke a make target build for the selected container." category="_0MPVRESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MaUZ0SyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.window.hideShowEditors" commandName="Toggle Editor Area Visibility" description="Toggles the visibility of the editor area" category="_0MPVQUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MaUaESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.window.closePerspective" commandName="Close Perspective" description="Close the current perspective" category="_0MPVQUSyEeSN3ZLFRXim_g">
<parameters xmi:id="_0MaUaUSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.window.closePerspective.perspectiveId" name="Perspective Id"/>
</commands>
<commands xmi:id="_0MaUakSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.project.rebuildProject" commandName="Rebuild Project" description="Rebuild the selected projects" category="_0MPVRESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MaUa0SyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.move" commandName="Move..." description="Move the selected item" category="_0MPVSESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MaUbESyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.ui.edit.text.c.surround.with.quickMenu" commandName="Surround With Quick Menu" description="Shows the Surround With quick menu" category="_0MP8VESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MaUbUSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.clear.mark" commandName="Clear Mark" description="Clear the mark" category="_0MPVT0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MaUbkSyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.ui.edit.text.c.goto.prev.member" commandName="Go to Previous Member" description="Move the caret to the previous member of the translation unit" category="_0MP8VESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MaUb0SyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.generate.tostring" commandName="Generate toString()" description="Generates the toString() method for the type" category="_0MP8XESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MaUcESyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.team.ReplaceWithHead" commandName="Replace with HEAD revision" category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MaUcUSyEeSN3ZLFRXim_g" elementId="org.eclipse.debug.ui.commands.OpenProfileConfigurations" commandName="Profile..." description="Open profile launch configuration dialog" category="_0MPVSUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MaUckSyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.open.external.javadoc" commandName="Open Attached Javadoc" description="Open the attached Javadoc of the selected element in a browser" category="_0MP8W0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MaUc0SyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.cheatsheets.openCheatSheet" commandName="Open Cheat Sheet" description="Open a Cheat Sheet." category="_0MP8V0SyEeSN3ZLFRXim_g">
<parameters xmi:id="_0MaUdESyEeSN3ZLFRXim_g" elementId="cheatSheetId" name="Identifier"/>
</commands>
<commands xmi:id="_0MaUdUSyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.RepositoriesViewOpen" commandName="Open" category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MaUdkSyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.RepositoriesToggleBranchCommit" commandName="Toggle Latest Branch Commit" category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MaUd0SyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.debug.ui.command.castToArray" commandName="Cast To Type..." category="_0MPVS0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MaUeESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.contentAssist.contextInformation" commandName="Context Information" description="Show Context Information" category="_0MP8UUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MaUeUSyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.history.CompareVersions" commandName="Compare with each other" category="_0MP8UkSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MaUekSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.browser.openBrowser" commandName="Open Browser" description="Opens the default web browser." category="_0MPVQUSyEeSN3ZLFRXim_g">
<parameters xmi:id="_0MaUe0SyEeSN3ZLFRXim_g" elementId="url" name="URL"/>
<parameters xmi:id="_0MaUfESyEeSN3ZLFRXim_g" elementId="browserId" name="Browser Id"/>
<parameters xmi:id="_0MaUfUSyEeSN3ZLFRXim_g" elementId="name" name="Browser Name"/>
<parameters xmi:id="_0MaUfkSyEeSN3ZLFRXim_g" elementId="tooltip" name="Browser Tooltip"/>
</commands>
<commands xmi:id="_0Ma7cESyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.generate.hashcode.equals" commandName="Generate hashCode() and equals()" description="Generates hashCode() and equals() methods for the type" category="_0MP8XESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0Ma7cUSyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.introduce.indirection" commandName="Introduce Indirection" description="Introduce an indirection to encapsulate invocations of a selected method" category="_0MP8XUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0Ma7ckSyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.navigate.gototype" commandName="Go to Type" description="Go to Type" category="_0MP8W0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0Ma7c0SyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.select.columnNext" commandName="Select Next Column" description="Select the next column" category="_0MPVT0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0Ma7dESyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.ui.edit.text.c.select.last" commandName="Restore Last C/C++ Selection" description="Restore last selection in C/C++ editor" category="_0MP8UUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0Ma7dUSyEeSN3ZLFRXim_g" elementId="org.eclipse.wst.sse.ui.goto.matching.bracket" commandName="Matching Bracket" description="Go to Matching Bracket" category="_0MP8W0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0Ma7dkSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.upperCase" commandName="To Upper Case" description="Changes the selection to upper case" category="_0MPVT0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0Ma7d0SyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.debug.ui.localJavaShortcut.debug" commandName="Debug Java Application" description="Debug Java Application" category="_0MPVSUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0Ma7eESyEeSN3ZLFRXim_g" elementId="org.eclipse.debug.ui.commands.DropToFrame" commandName="Drop to Frame" description="Drop to Frame" category="_0MPVSUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0Ma7eUSyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.ui.edit.text.c.format" commandName="Format" description="Format Source Code" category="_0MP8VESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0Ma7ekSyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.RepositoriesViewNewRemote" commandName="Create Remote..." category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0Ma7e0SyEeSN3ZLFRXim_g" elementId="org.eclipse.search.ui.openFileSearchPage" commandName="File Search" description="Open the Search dialog's file search page" category="_0MP8UESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0Ma7fESyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.debug.ui.command.resumeWithoutSignal" commandName="Resume Without Signal" description="Resume Without Signal" category="_0MP8VUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0Ma7fUSyEeSN3ZLFRXim_g" elementId="org.eclipse.team.ui.synchronizeLast" commandName="Repeat last synchronization" description="Repeat the last synchronization" category="_0MP8VkSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0Ma7fkSyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.extract.local.variable" commandName="Extract Local Variable" description="Extracts an expression into a new local variable and uses the new local variable" category="_0MP8XUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0Ma7f0SyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.history.CreatePatch" commandName="Create Patch" category="_0MP8UkSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0Ma7gESyEeSN3ZLFRXim_g" elementId="org.eclipse.wst.sse.ui.generate.xml" commandName="&amp;XML File..." category="_0MP8UkSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0Ma7gUSyEeSN3ZLFRXim_g" elementId="org.eclipse.wst.xml.ui.previousSibling" commandName="Previous Sibling" description="Go to Previous Sibling" category="_0MP8UUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0Ma7gkSyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.select.previous" commandName="Select Previous Element" description="Expand selection to include previous sibling" category="_0MP8UUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0Ma7g0SyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.goto.columnNext" commandName="Next Column" description="Go to the next column" category="_0MPVT0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0Ma7hESyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.extract.class" commandName="Extract Class..." description="Extracts fields into a new class" category="_0MP8XUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0Ma7hUSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.navigate.selectWorkingSets" commandName="Select Working Sets" description="Select the working sets that are applicable for this window." category="_0MPVQUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0Ma7hkSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.help.aboutAction" commandName="About" description="Open the about dialog" category="_0MP8V0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0Ma7h0SyEeSN3ZLFRXim_g" elementId="org.eclipse.compare.copyRightToLeft" commandName="Copy from Right to Left" description="Copy Current Change from Right to Left" category="_0MP8WESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0Ma7iESyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.ui.edit.text.c.uncomment" commandName="Uncomment" description="Uncomment the selected // style comment lines" category="_0MP8VESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0Ma7iUSyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.command.configureTrace" commandName="Configure Git Debug Trace" category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0Ma7ikSyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.extract.method" commandName="Extract Method" description="Extract a set of statements or an expression into a new method and use the new method" category="_0MP8XUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0Ma7i0SyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.team.CompareWithRevision" commandName="Compare with History" category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0Ma7jESyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.dsf.debug.ui.disassembly.commands.rulerToggleBreakpoint" commandName="Toggle Breakpoint" description="Toggle breakpoint in disassembly ruler" category="_0MPVSUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0Ma7jUSyEeSN3ZLFRXim_g" elementId="org.eclipse.compare.selectNextChange" commandName="Select Next Change" description="Select Next Change" category="_0MP8WESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0Ma7jkSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.window.newWindow" commandName="New Window" description="Open another window" category="_0MPVQUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MbigESyEeSN3ZLFRXim_g" elementId="org.eclipse.debug.ui.commands.RemoveAllBreakpoints" commandName="Remove All Breakpoints" description="Removes all breakpoints" category="_0MPVSUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MbigUSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.navigate.showResourceByPath" commandName="Show Resource in Navigator" description="Show a resource in the Navigator given its path" category="_0MP8W0SyEeSN3ZLFRXim_g">
<parameters xmi:id="_0MbigkSyEeSN3ZLFRXim_g" elementId="resourcePath" name="Resource Path" typeId="org.eclipse.ui.ide.resourcePath" optional="false"/>
</commands>
<commands xmi:id="_0Mbig0SyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.ui.refactor.implement.method" commandName="Implement Method - Source Generation " description="Implements a method for a selected method declaration" category="_0MP8VESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MbihESyEeSN3ZLFRXim_g" elementId="com.android.ide.eclipse.adt.refactoring.convert" commandName="Change Layout" description="Converts Layouts from One Type to Another" category="_0MPVSkSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MbihUSyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.make.ui.targetCreateCommand" commandName="Create Make Target" description="Create a new make build target for the selected container." category="_0MPVRESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MbihkSyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.correction.addImport" commandName="Quick Fix - Add import" description="Invokes quick assist and selects 'Add import'" category="_0MP8XESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0Mbih0SyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.correction.extractLocal.assist" commandName="Quick Assist - Extract local variable (replace all occurrences)" description="Invokes quick assist and selects 'Extract local variable (replace all occurrences)'" category="_0MP8XESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MbiiESyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.dsf.gdb.ui.command.selectPreviousTraceRecord" commandName="Previous Trace Record" description="Select Previous Trace Record" category="_0MP8UkSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MbiiUSyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.introduce.parameter.object" commandName="Introduce Parameter Object" description="Introduce a parameter object to a selected method" category="_0MP8XUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MbiikSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.shiftLeft" commandName="Shift Left" description="Shift a block of text to the left" category="_0MP8UUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0Mbii0SyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.create.delegate.methods" commandName="Generate Delegate Methods" description="Add delegate methods for a type's fields" category="_0MP8XESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MbijESyEeSN3ZLFRXim_g" elementId="org.eclipse.wst.sse.ui.search.find.occurrences" commandName="Occurrences in File" description="Find occurrences of the selection in the file" category="_0MP8UUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MbijUSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.project.cleanAction" commandName="Build Clean" description="Discard old built state" category="_0MPVRESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MbijkSyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.correction.addThrowsDecl" commandName="Quick Fix - Add throws declaration" description="Invokes quick assist and selects 'Add throws declaration'" category="_0MP8XESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0Mbij0SyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.activeContextInfo" commandName="Show activeContext Info" category="_0MPVQUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MbikESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.findNext" commandName="Find Next" description="Find next item" category="_0MP8UUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MbikUSyEeSN3ZLFRXim_g" elementId="org.eclipse.debug.ui.commands.Disconnect" commandName="Disconnect" description="Disconnect" category="_0MPVSUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MbikkSyEeSN3ZLFRXim_g" elementId="com.android.ide.eclipse.adt.refactoring.extract.style" commandName="Extract Styles" description="Extract Styles" category="_0MPVSkSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0Mbik0SyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.correction.addSuppressWarnings" commandName="Quick Fix - Add @SuppressWarnings" description="Invokes quick fix and selects 'Add @SuppressWarnings' " category="_0MP8XESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MbilESyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.commit.CreateTag" commandName="Create Tag..." category="_0MP8UkSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MbilUSyEeSN3ZLFRXim_g" elementId="org.eclipse.wst.sse.ui.structure.select.previous" commandName="Select Previous Element" description="Expand selection to include previous sibling" category="_0MP8UUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MbilkSyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.make.ui.edit.text.makefile.comment" commandName="Comment" description="Turn the selected lines into # style comments" category="_0MPVR0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0Mbil0SyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.ui.edit.text.c.select.enclosing" commandName="Select Enclosing C/C++ Element" description="Expand the selection to enclosing C/C++ element" category="_0MP8UUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MbimESyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.create.getter.setter" commandName="Generate Getters and Setters" description="Generate Getter and Setter methods for type's fields" category="_0MP8XESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MbimUSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.select.windowStart" commandName="Select Window Start" description="Select to the start of the window" category="_0MPVT0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MbimkSyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.ui.edit.text.c.toggle.source.header" commandName="Toggle Source/Header" description="Toggles between corresponding source and header files" category="_0MP8VESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0Mbim0SyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.internal.reflog.CheckoutCommand" commandName="Checkout" category="_0MP8UkSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MbinESyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.refactor.migrate.jar" commandName="Migrate JAR File" description="Migrate a JAR File to a new version" category="_0MP8XUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MbinUSyEeSN3ZLFRXim_g" elementId="org.eclipse.wst.sse.ui.outline.customFilter" commandName="&amp;Filters" category="_0MP8UkSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MbinkSyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.open.super.implementation" commandName="Open Super Implementation" description="Open the Implementation in the Super Type" category="_0MP8W0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0Mbin0SyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.help.quickStartAction" commandName="Welcome" description="Show help for beginning users" category="_0MP8V0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MbioESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.addTask" commandName="Add Task..." description="Add a task" category="_0MP8UUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0McJkESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.window.closeAllPerspectives" commandName="Close All Perspectives" description="Close all open perspectives" category="_0MPVQUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0McJkUSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.editors.quickdiff.revertLine" commandName="Revert Line" description="Revert the current line" category="_0MPVT0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0McJkkSyEeSN3ZLFRXim_g" elementId="org.eclipse.debug.ui.command.prevpage" commandName="Previous Page of Memory" description="Load previous page of memory" category="_0MPVSUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0McJk0SyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.findPrevious" commandName="Find Previous" description="Find previous item" category="_0MP8UUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0McJlESyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.push.down" commandName="Push Down" description="Move members to subclasses" category="_0MP8XUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0McJlUSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.views.showView" commandName="Show View" description="Shows a particular view" category="_0MPVRUSyEeSN3ZLFRXim_g">
<parameters xmi:id="_0McJlkSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.views.showView.viewId" name="View"/>
<parameters xmi:id="_0McJl0SyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.views.showView.secondaryId" name="Secondary Id"/>
<parameters xmi:id="_0McJmESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.views.showView.makeFast" name="As FastView"/>
</commands>
<commands xmi:id="_0McJmUSyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.debug.ui.commands.viewMemory" commandName="View Memory" description="View variable in memory view" category="_0MP8UkSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0McJmkSyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.extract.superclass" commandName="Extract Superclass" description="Extract a set of members into a new superclass and try to use the new superclass" category="_0MP8XUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0McJm0SyEeSN3ZLFRXim_g" elementId="org.eclipse.ltk.ui.refactor.create.refactoring.script" commandName="Create Script" description="Create a refactoring script from refactorings on the local workspace" category="_0MP8XUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0McJnESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.delimiter.windows" commandName="Convert Line Delimiters to Windows (CRLF, \r\n, 0D0A, &#xa4;&#xb6;)" description="Converts the line delimiters to Windows (CRLF, \r\n, 0D0A, &#xa4;&#xb6;)" category="_0MPVSESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0McJnUSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.cut.line" commandName="Cut Line" description="Cut a line of text" category="_0MPVT0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0McJnkSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.select.columnPrevious" commandName="Select Previous Column" description="Select the previous column" category="_0MPVT0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0McJn0SyEeSN3ZLFRXim_g" elementId="com.android.ide.eclipse.adt.refactoring.wrapin" commandName="Wrap in Container" description="Wraps Views in a New Container" category="_0MPVSkSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0McJoESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.file.closeAll" commandName="Close All" description="Close all editors" category="_0MPVSESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0McJoUSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.cut.line.to.beginning" commandName="Cut to Beginning of Line" description="Cut to the beginning of a line of text" category="_0MPVT0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0McJokSyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.codan.commands.runCodanCommand" commandName="Run Code Analysis" category="_0MPVQkSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0McJo0SyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.ui.edit.text.rename.element" commandName="Rename - Refactoring " description="Rename the selected element" category="_0MPVQ0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0McJpESyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.promote.local.variable" commandName="Convert Local Variable to Field" description="Convert a local variable to a field" category="_0MP8XUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0McJpUSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.select.wordNext" commandName="Select Next Word" description="Select the next word" category="_0MPVT0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0McJpkSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.navigate.goToResource" commandName="Go to" description="Go to a particular resource in the active view" category="_0MP8W0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0McJp0SyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.window.spy" commandName="Show Contributing Plug-in" description="Shows contribution information for the currently selected element" category="_0MPVQUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0McJqESyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.team.submodule.sync" commandName="Sync Submodule" category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0McJqUSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.window.quickAccess" commandName="Quick Access" description="Quickly access UI elements" category="_0MPVQUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0McJqkSyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.team.CompareIndexWithHead" commandName="Compare File in Git Index with HEAD Revision" category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0McJq0SyEeSN3ZLFRXim_g" elementId="org.eclipse.debug.ui.commands.StepReturn" commandName="Step Return" description="Step return" category="_0MPVSUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0McJrESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.navigate.addToWorkingSet" commandName="Add to Working Set" description="Adds the selected object to a working set." category="_0MP8UUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0McJrUSyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.goto.next.member" commandName="Go to Next Member" description="Move the caret to the next member of the compilation unit" category="_0MP8W0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0McJrkSyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.select.next" commandName="Select Next Element" description="Expand selection to include next sibling" category="_0MP8UUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0McwoESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.goto.lineEnd" commandName="Line End" description="Go to the end of the line of text" category="_0MPVT0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0McwoUSyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.debug.ui.commands.ForceReturn" commandName="Force Return" description="Forces return from method with value of selected expression " category="_0MPVSUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0McwokSyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.remove.block.comment" commandName="Remove Block Comment" description="Remove the block comment enclosing the selection" category="_0MP8XESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0Mcwo0SyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.search.write.access.in.workspace" commandName="Write Access in Workspace" description="Search for write references to the selected element in the workspace" category="_0MP8UESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0McwpESyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.team.CreatePatch" commandName="Create Patch" category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0McwpUSyEeSN3ZLFRXim_g" elementId="com.android.ide.eclipse.adt.launch.LaunchShortcut.run" commandName="Run Android Application" description="Run Android Application" category="_0MPVSUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0McwpkSyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.RepositoriesViewImportProjects" commandName="Import Projects..." category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0Mcwp0SyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.delimiter.unix" commandName="Convert Line Delimiters to Unix (LF, \n, 0A, &#xb6;)" description="Converts the line delimiters to Unix (LF, \n, 0A, &#xb6;)" category="_0MPVSESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0McwqESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.navigate.showIn" commandName="Show In" category="_0MP8W0SyEeSN3ZLFRXim_g">
<parameters xmi:id="_0McwqUSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.navigate.showIn.targetId" name="Show In Target Id" optional="false"/>
</commands>
<commands xmi:id="_0McwqkSyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.debug.ui.javaAppletShortcut.run" commandName="Run Java Applet" description="Run Java Applet" category="_0MPVSUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0Mcwq0SyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.correction.convertLocalToField.assist" commandName="Quick Assist - Convert local variable to field" description="Invokes quick assist and selects 'Convert local variable to field'" category="_0MP8XESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0McwrESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.dialogs.openMessageDialog" commandName="Open Message Dialog" description="Open a Message Dialog" category="_0MPVTUSyEeSN3ZLFRXim_g">
<parameters xmi:id="_0McwrUSyEeSN3ZLFRXim_g" elementId="title" name="Title"/>
<parameters xmi:id="_0McwrkSyEeSN3ZLFRXim_g" elementId="message" name="Message"/>
<parameters xmi:id="_0Mcwr0SyEeSN3ZLFRXim_g" elementId="imageType" name="Image Type Constant" typeId="org.eclipse.ui.dialogs.Integer"/>
<parameters xmi:id="_0McwsESyEeSN3ZLFRXim_g" elementId="defaultIndex" name="Default Button Index" typeId="org.eclipse.ui.dialogs.Integer"/>
<parameters xmi:id="_0McwsUSyEeSN3ZLFRXim_g" elementId="buttonLabel0" name="First Button Label"/>
<parameters xmi:id="_0McwskSyEeSN3ZLFRXim_g" elementId="buttonLabel1" name="Second Button Label"/>
<parameters xmi:id="_0Mcws0SyEeSN3ZLFRXim_g" elementId="buttonLabel2" name="Third Button Label"/>
<parameters xmi:id="_0McwtESyEeSN3ZLFRXim_g" elementId="buttonLabel3" name="Fourth Button Label"/>
<parameters xmi:id="_0McwtUSyEeSN3ZLFRXim_g" elementId="cancelReturns" name="Return Value on Cancel"/>
</commands>
<commands xmi:id="_0McwtkSyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.debug.ui.commands.AllReferences" commandName="All References" description="Inspect all references to the selected object" category="_0MPVSUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0Mcwt0SyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.debug.ui.command.OpenFromClipboard" commandName="Open from Clipboard" description="Opens a Java element or a Java stack trace from clipboard" category="_0MP8W0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0McwuESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.window.nextPerspective" commandName="Next Perspective" description="Switch to the next perspective" category="_0MPVQUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0McwuUSyEeSN3ZLFRXim_g" elementId="org.eclipse.debug.ui.commands.OpenDebugConfigurations" commandName="Debug..." description="Open debug launch configuration dialog" category="_0MPVSUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0McwukSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.edit.text.hippieCompletion" commandName="Word Completion" description="Context insensitive completion" category="_0MP8UUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0Mcwu0SyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.RepositoriesViewClearCredentials" commandName="Clear Credentials" category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0McwvESyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.extract.constant" commandName="Extract Constant" description="Extracts a constant into a new static field and uses the new static field" category="_0MP8XUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0McwvUSyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.ui.edit.open.include.browser" commandName="Open Include Browser" description="Open an include browser on the selected element" category="_0MP8W0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MdXsESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.file.closeOthers" commandName="Close Others" description="Close all editors except the one that is active" category="_0MPVSESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MdXsUSyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.make.ui.edit.text.makefile.opendecl" commandName="Open declaration" description="Follow to the directive definition" category="_0MPVR0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MdXskSyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.add.javadoc.comment" commandName="Add Javadoc Comment" description="Add a Javadoc comment stub to the member element" category="_0MP8XESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MdXs0SyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.editors.revisions.author.toggle" commandName="Toggle Revision Author Display" description="Toggles the display of the revision author" category="_0MPVT0SyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MdXtESyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.edit.text.java.sort.members" commandName="Sort Members" description="Sort all members using the member order preference" category="_0MP8XESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MdXtUSyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.RepositoriesViewConfigureFetch" commandName="Configure Fetch..." category="_0MPVTESyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MdXtkSyEeSN3ZLFRXim_g" elementId="com.android.ide.eclipse.adt.launch.LaunchShortcut.debug" commandName="Debug Android Application" description="Debug Android Application" category="_0MPVSUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MdXt0SyEeSN3ZLFRXim_g" elementId="org.eclipse.debug.ui.commands.Resume" commandName="Resume" description="Resume" category="_0MPVSUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0MdXuESyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.debug.ui.commands.Execute" commandName="Execute" description="Evaluate selected text" category="_0MPVSUSyEeSN3ZLFRXim_g"/>
<commands xmi:id="_0SS58ESyEeSN3ZLFRXim_g" elementId="AUTOGEN:::org.eclipse.jdt.debug.ui.JavaSnippetToolbarActions/org.eclipse.jdt.debug.ui.SnippetExecute" commandName="E&amp;xecute"/>
<commands xmi:id="_0SThAkSyEeSN3ZLFRXim_g" elementId="AUTOGEN:::org.eclipse.jdt.debug.ui.JavaSnippetToolbarActions/org.eclipse.jdt.debug.ui.SnippetDisplay" commandName="Displa&amp;y"/>
<commands xmi:id="_0SUIEkSyEeSN3ZLFRXim_g" elementId="AUTOGEN:::org.eclipse.jdt.debug.ui.JavaSnippetToolbarActions/org.eclipse.jdt.debug.ui.SnippetInspect" commandName="Insp&amp;ect"/>
<commands xmi:id="_GMjhQoRHEeSC84y2lhHXeA" elementId="org.eclipse.wb.core.xml.commands.empty" commandName="Empty command" description="Command which does nothing" category="_GMjhQYRHEeSC84y2lhHXeA"/>
<commands xmi:id="_GMjhQ4RHEeSC84y2lhHXeA" elementId="org.eclipse.wb.core.commands.empty" commandName="Empty command" description="Command which does nothing" category="_GMjhQYRHEeSC84y2lhHXeA"/>
<commands xmi:id="_GMjhRIRHEeSC84y2lhHXeA" elementId="org.eclipse.wb.core.xml.editor.actions.SwitchPairEditorAction" commandName="Switch Source/Design Editors" description="Switch between the Source and Design editors." category="_GMjhQYRHEeSC84y2lhHXeA"/>
<commands xmi:id="_GMjhRYRHEeSC84y2lhHXeA" elementId="org.eclipse.wb.core.commands.switch" commandName="Switch Source/Design Views" description="Switch between the Source and Design views." category="_GMjhQYRHEeSC84y2lhHXeA"/>
<commands xmi:id="_GMjhRoRHEeSC84y2lhHXeA" elementId="org.eclipse.wb.core.xml.editor.actions.SwitchAction" commandName="Switch Source/Design Views" description="Switch between the Source and Design views." category="_GMjhQYRHEeSC84y2lhHXeA"/>
<addons xmi:id="_0LpfdESyEeSN3ZLFRXim_g" elementId="org.eclipse.e4.core.commands.service" contributorURI="platform:/plugin/org.eclipse.platform" contributionURI="bundleclass://org.eclipse.e4.core.commands/org.eclipse.e4.core.commands.CommandServiceAddon"/>
<addons xmi:id="_0LpfdUSyEeSN3ZLFRXim_g" elementId="org.eclipse.e4.ui.contexts.service" contributorURI="platform:/plugin/org.eclipse.platform" contributionURI="bundleclass://org.eclipse.e4.ui.services/org.eclipse.e4.ui.services.ContextServiceAddon"/>
<addons xmi:id="_0LpfdkSyEeSN3ZLFRXim_g" elementId="org.eclipse.e4.ui.bindings.service" contributorURI="platform:/plugin/org.eclipse.platform" contributionURI="bundleclass://org.eclipse.e4.ui.bindings/org.eclipse.e4.ui.bindings.BindingServiceAddon"/>
<addons xmi:id="_0Lpfd0SyEeSN3ZLFRXim_g" elementId="org.eclipse.e4.ui.workbench.commands.model" contributorURI="platform:/plugin/org.eclipse.platform" contributionURI="bundleclass://org.eclipse.e4.ui.workbench/org.eclipse.e4.ui.internal.workbench.addons.CommandProcessingAddon"/>
<addons xmi:id="_0LpfeESyEeSN3ZLFRXim_g" elementId="org.eclipse.e4.ui.workbench.contexts.model" contributorURI="platform:/plugin/org.eclipse.platform" contributionURI="bundleclass://org.eclipse.e4.ui.workbench/org.eclipse.e4.ui.internal.workbench.addons.ContextProcessingAddon"/>
<addons xmi:id="_0LpfeUSyEeSN3ZLFRXim_g" elementId="org.eclipse.e4.ui.workbench.bindings.model" contributorURI="platform:/plugin/org.eclipse.platform" contributionURI="bundleclass://org.eclipse.e4.ui.workbench.swt/org.eclipse.e4.ui.workbench.swt.util.BindingProcessingAddon"/>
<addons xmi:id="_0LpfekSyEeSN3ZLFRXim_g" elementId="Cleanup Addon" contributorURI="platform:/plugin/org.eclipse.platform" contributionURI="bundleclass://org.eclipse.e4.ui.workbench.addons.swt/org.eclipse.e4.ui.workbench.addons.cleanupaddon.CleanupAddon"/>
<addons xmi:id="_0Lpfe0SyEeSN3ZLFRXim_g" elementId="DnD Addon" contributorURI="platform:/plugin/org.eclipse.platform" contributionURI="bundleclass://org.eclipse.e4.ui.workbench.addons.swt/org.eclipse.e4.ui.workbench.addons.dndaddon.DnDAddon"/>
<addons xmi:id="_0LpffESyEeSN3ZLFRXim_g" elementId="MinMax Addon" contributorURI="platform:/plugin/org.eclipse.platform" contributionURI="bundleclass://org.eclipse.e4.ui.workbench.addons.swt/org.eclipse.e4.ui.workbench.addons.minmax.MinMaxAddon"/>
<categories xmi:id="_0MPVQESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.category.perspectives" name="Perspectives" description="Commands for opening perspectives"/>
<categories xmi:id="_0MPVQUSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.category.window" name="Window"/>
<categories xmi:id="_0MPVQkSyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.codan.ui.commands.category" name="Code Analysis"/>
<categories xmi:id="_0MPVQ0SyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.ui.category.refactoring" name="Refactor - C++" description="C/C++ Refactorings"/>
<categories xmi:id="_0MPVRESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.category.project" name="Project"/>
<categories xmi:id="_0MPVRUSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.category.views" name="Views" description="Commands for opening views"/>
<categories xmi:id="_0MPVRkSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.ide.markerContents" name="Contents" description="The category for menu contents"/>
<categories xmi:id="_0MPVR0SyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.make.ui.category.source" name="Makefile Source" description="Makefile Source Actions"/>
<categories xmi:id="_0MPVSESyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.category.file" name="File"/>
<categories xmi:id="_0MPVSUSyEeSN3ZLFRXim_g" elementId="org.eclipse.debug.ui.category.run" name="Run/Debug" description="Run/Debug command category"/>
<categories xmi:id="_0MPVSkSyEeSN3ZLFRXim_g" elementId="com.android.ide.eclipse.adt.refactoring.category" name="Android Refactorings" description="Refactorings for Android Projects"/>
<categories xmi:id="_0MPVS0SyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.debug.ui.category.casting" name="Cast to Type or Array" description="Set of commands for displaying variables and expressions as other types or arrays."/>
<categories xmi:id="_0MPVTESyEeSN3ZLFRXim_g" elementId="org.eclipse.egit.ui.commandCategory" name="Git"/>
<categories xmi:id="_0MPVTUSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.category.dialogs" name="Dialogs" description="Commands for opening dialogs"/>
<categories xmi:id="_0MPVTkSyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.debug.ui.category.debugViewLayout" name="Debug View Layout Commands" description="Set of commands for controlling the Debug View Layout"/>
<categories xmi:id="_0MPVT0SyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.category.textEditor" name="Text Editing" description="Text Editing Commands"/>
<categories xmi:id="_0MP8UESyEeSN3ZLFRXim_g" elementId="org.eclipse.search.ui.category.search" name="Search" description="Search command category"/>
<categories xmi:id="_0MP8UUSyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.category.edit" name="Edit"/>
<categories xmi:id="_0MP8UkSyEeSN3ZLFRXim_g" elementId="org.eclipse.core.commands.categories.autogenerated" name="Uncategorized" description="Commands that were either auto-generated or have no category"/>
<categories xmi:id="_0MP8U0SyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.debug.ui.category.reverseDebugging" name="Reverse Debugging Commands" description="Set of commands for Reverse Debugging"/>
<categories xmi:id="_0MP8VESyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.ui.category.source" name="C/C++ Source" description="C/C++ Source Actions"/>
<categories xmi:id="_0MP8VUSyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.debug.ui.category.runControl" name="Run Control Commands" description="Set of commands for Run Control"/>
<categories xmi:id="_0MP8VkSyEeSN3ZLFRXim_g" elementId="org.eclipse.team.ui.category.team" name="Team" description="Actions that apply when working with a Team"/>
<categories xmi:id="_0MP8V0SyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.category.help" name="Help"/>
<categories xmi:id="_0MP8WESyEeSN3ZLFRXim_g" elementId="org.eclipse.compare.ui.category.compare" name="Compare" description="Compare command category"/>
<categories xmi:id="_0MP8WUSyEeSN3ZLFRXim_g" elementId="org.eclipse.cdt.debug.ui.category.tracing" name="Tracing Commands" description="Category for Tracing Commands"/>
<categories xmi:id="_0MP8WkSyEeSN3ZLFRXim_g" elementId="org.eclipse.ltk.ui.category.refactoring" name="Refactoring"/>
<categories xmi:id="_0MP8W0SyEeSN3ZLFRXim_g" elementId="org.eclipse.ui.category.navigate" name="Navigate"/>
<categories xmi:id="_0MP8XESyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.category.source" name="Source" description="Java Source Actions"/>
<categories xmi:id="_0MP8XUSyEeSN3ZLFRXim_g" elementId="org.eclipse.jdt.ui.category.refactoring" name="Refactor - Java" description="Java Refactoring Actions"/>
<categories xmi:id="_GMjhQYRHEeSC84y2lhHXeA" elementId="org.eclipse.wb.core.actions.category" name="WindowBuilder Pro" description="WindowBuilder Pro actions"/>
</application:Application>
diff --git a/.metadata/.plugins/org.eclipse.jdt.core/3524619788.index b/.metadata/.plugins/org.eclipse.jdt.core/3524619788.index
index 90891ae..4c608f5 100644
Binary files a/.metadata/.plugins/org.eclipse.jdt.core/3524619788.index and b/.metadata/.plugins/org.eclipse.jdt.core/3524619788.index differ
diff --git a/.metadata/.plugins/org.eclipse.jdt.core/891942263.index b/.metadata/.plugins/org.eclipse.jdt.core/891942263.index
index 0751b15..0bb50c4 100644
Binary files a/.metadata/.plugins/org.eclipse.jdt.core/891942263.index and b/.metadata/.plugins/org.eclipse.jdt.core/891942263.index differ
diff --git a/.metadata/.plugins/org.eclipse.jdt.core/savedIndexNames.txt b/.metadata/.plugins/org.eclipse.jdt.core/savedIndexNames.txt
index f46c049..1c3bb55 100644
--- a/.metadata/.plugins/org.eclipse.jdt.core/savedIndexNames.txt
+++ b/.metadata/.plugins/org.eclipse.jdt.core/savedIndexNames.txt
@@ -1,46 +1,46 @@
INDEX VERSION 1.126+C:\Users\raisaro\workspace\yussef\.metadata\.plugins\org.eclipse.jdt.core
3827145613.index
709476782.index
2394392208.index
2448026493.index
1325381284.index
3207003951.index
3097394219.index
18982137.index
2958705335.index
1727039584.index
-2247179118.index
+3294057030.index
591230301.index
2291124359.index
1654984216.index
1708671155.index
2524045123.index
2818581716.index
3477103789.index
3776425001.index
2645323980.index
1612886049.index
3717882853.index
949515501.index
2503572373.index
2143716467.index
358050146.index
3520661010.index
881303192.index
3975608747.index
248351807.index
3273601523.index
891942263.index
844601494.index
3524619788.index
881895235.index
348532150.index
3176364129.index
989249569.index
3059626886.index
1076928719.index
2727535005.index
847618560.index
3963179895.index
290714306.index
-3294057030.index
+2247179118.index
diff --git a/.metadata/.plugins/org.eclipse.jdt.ui/QualifiedTypeNameHistory.xml b/.metadata/.plugins/org.eclipse.jdt.ui/QualifiedTypeNameHistory.xml
index 7581af6..48497ab 100644
--- a/.metadata/.plugins/org.eclipse.jdt.ui/QualifiedTypeNameHistory.xml
+++ b/.metadata/.plugins/org.eclipse.jdt.ui/QualifiedTypeNameHistory.xml
@@ -1,63 +1,63 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<qualifiedTypeNameHistroy>
-<fullyQualifiedTypeName name="javax.swing.JFrame"/>
-<fullyQualifiedTypeName name="java.lang.System"/>
-<fullyQualifiedTypeName name="io.ClientConnection"/>
<fullyQualifiedTypeName name="framework.reply.ReplySurvey"/>
<fullyQualifiedTypeName name="java.awt.ComponentOrientation"/>
<fullyQualifiedTypeName name="javax.swing.BoxLayout"/>
<fullyQualifiedTypeName name="java.lang.Integer"/>
<fullyQualifiedTypeName name="java.awt.Color"/>
<fullyQualifiedTypeName name="javax.swing.GroupLayout"/>
<fullyQualifiedTypeName name="java.io.StringReader"/>
<fullyQualifiedTypeName name="com.itextpdf.text.pdf.PdfReader"/>
<fullyQualifiedTypeName name="java.util.Set"/>
<fullyQualifiedTypeName name="com.itextpdf.text.pdf.AcroFields"/>
<fullyQualifiedTypeName name="org.jpedal.examples.viewer.Viewer"/>
<fullyQualifiedTypeName name="javax.swing.ScrollPaneConstants"/>
<fullyQualifiedTypeName name="javax.swing.JScrollPane"/>
<fullyQualifiedTypeName name="javax.swing.ImageIcon"/>
<fullyQualifiedTypeName name="framework.Question"/>
<fullyQualifiedTypeName name="com.itextpdf.text.pdf.PdfPCell"/>
<fullyQualifiedTypeName name="com.itextpdf.text.pdf.PdfWriter"/>
<fullyQualifiedTypeName name="com.itextpdf.text.pdf.PdfFormField"/>
<fullyQualifiedTypeName name="com.itextpdf.text.pdf.RadioCheckField"/>
<fullyQualifiedTypeName name="io.RadioGroup"/>
<fullyQualifiedTypeName name="com.itextpdf.text.pdf.PdfBorderDictionary"/>
<fullyQualifiedTypeName name="com.itextpdf.text.ExceptionConverter"/>
<fullyQualifiedTypeName name="com.itextpdf.text.pdf.PdfPCellEvent"/>
<fullyQualifiedTypeName name="io.Questionnaire"/>
<fullyQualifiedTypeName name="com.itextpdf.text.pdf.GrayColor"/>
<fullyQualifiedTypeName name="com.itextpdf.text.pdf.ColumnText"/>
<fullyQualifiedTypeName name="com.itextpdf.text.pdf.PdfContentByte"/>
<fullyQualifiedTypeName name="com.itextpdf.text.pdf.TextField"/>
<fullyQualifiedTypeName name="com.itextpdf.text.BaseColor"/>
<fullyQualifiedTypeName name="java.awt.BorderLayout"/>
<fullyQualifiedTypeName name="com.itextpdf.text.Rectangle"/>
<fullyQualifiedTypeName name="com.itextpdf.text.Element"/>
<fullyQualifiedTypeName name="javax.swing.JRadioButton"/>
-<fullyQualifiedTypeName name="java.awt.Component"/>
<fullyQualifiedTypeName name="javax.swing.Box"/>
<fullyQualifiedTypeName name="javax.swing.JSeparator"/>
<fullyQualifiedTypeName name="com.itextpdf.text.Font"/>
<fullyQualifiedTypeName name="com.itextpdf.text.pdf.BaseFont"/>
<fullyQualifiedTypeName name="java.awt.Font"/>
<fullyQualifiedTypeName name="javax.swing.ButtonGroup"/>
<fullyQualifiedTypeName name="java.lang.NullPointerException"/>
-<fullyQualifiedTypeName name="javax.swing.JComboBox"/>
<fullyQualifiedTypeName name="java.awt.Dimension"/>
<fullyQualifiedTypeName name="java.lang.Exception"/>
<fullyQualifiedTypeName name="java.io.File"/>
<fullyQualifiedTypeName name="javax.swing.JFileChooser"/>
<fullyQualifiedTypeName name="javax.swing.filechooser.FileFilter"/>
<fullyQualifiedTypeName name="java.util.HashMap"/>
<fullyQualifiedTypeName name="java.util.Map"/>
<fullyQualifiedTypeName name="framework.Type"/>
<fullyQualifiedTypeName name="java.lang.StringBuilder"/>
<fullyQualifiedTypeName name="java.io.IOException"/>
<fullyQualifiedTypeName name="javax.swing.JTextPane"/>
<fullyQualifiedTypeName name="javax.swing.JPanel"/>
<fullyQualifiedTypeName name="java.awt.FlowLayout"/>
<fullyQualifiedTypeName name="javax.swing.JTextArea"/>
+<fullyQualifiedTypeName name="javax.swing.JScrollBar"/>
+<fullyQualifiedTypeName name="java.lang.NumberFormatException"/>
+<fullyQualifiedTypeName name="javax.swing.JComboBox"/>
<fullyQualifiedTypeName name="javax.swing.JLabel"/>
+<fullyQualifiedTypeName name="javax.swing.SwingConstants"/>
+<fullyQualifiedTypeName name="java.awt.Component"/>
</qualifiedTypeNameHistroy>
diff --git a/.metadata/.plugins/org.eclipse.jdt.ui/dialog_settings.xml b/.metadata/.plugins/org.eclipse.jdt.ui/dialog_settings.xml
index 7516217..7fa5fb2 100644
--- a/.metadata/.plugins/org.eclipse.jdt.ui/dialog_settings.xml
+++ b/.metadata/.plugins/org.eclipse.jdt.ui/dialog_settings.xml
@@ -1,127 +1,130 @@
<?xml version="1.0" encoding="UTF-8"?>
<section name="Workbench">
<item value="C:\Users\raisaro\workspace\yussef\project\PPPClient\lib" key="org.eclipse.jdt.ui.lastextjar"/>
<item value="filter_imports;" key="filters_last_used"/>
<section name="org.eclipse.ltk.ui.refactoring.settings">
<item value="false" key="updateQualifiedNames"/>
<item value="*" key="patterns"/>
<item value="false" key="updateSimilarElements"/>
<item value="1" key="updateSimilarElementsMatchStrategy"/>
<item value="false" key="updateTextualMatches"/>
</section>
<section name="ProblemSeveritiesConfigurationBlock">
<item value="false" key="expanded2"/>
<item value="false" key="expanded1"/>
<item value="false" key="expanded4"/>
<item value="false" key="expanded3"/>
<item value="false" key="expanded6"/>
<item value="false" key="expanded5"/>
<item value="false" key="expanded7"/>
<item value="true" key="expanded0"/>
</section>
<section name="org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart">
<item value="2" key="layout"/>
<item value="true" key="group_libraries"/>
<item value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#x0D;&#x0A;&lt;packageExplorer group_libraries=&quot;1&quot; layout=&quot;2&quot; linkWithEditor=&quot;0&quot; rootMode=&quot;1&quot; workingSetName=&quot;&quot;&gt;&#x0D;&#x0A;&lt;customFilters userDefinedPatternsEnabled=&quot;false&quot;&gt;&#x0D;&#x0A;&lt;xmlDefinedFilters&gt;&#x0D;&#x0A;&lt;child filterId=&quot;org.eclipse.jdt.ui.PackageExplorer.StaticsFilter&quot; isEnabled=&quot;false&quot;/&gt;&#x0D;&#x0A;&lt;child filterId=&quot;org.eclipse.jdt.ui.PackageExplorer.NonJavaProjectsFilter&quot; isEnabled=&quot;false&quot;/&gt;&#x0D;&#x0A;&lt;child filterId=&quot;org.eclipse.jdt.ui.PackageExplorer_patternFilterId_.*&quot; isEnabled=&quot;true&quot;/&gt;&#x0D;&#x0A;&lt;child filterId=&quot;org.eclipse.jdt.ui.PackageExplorer.NonSharedProjectsFilter&quot; isEnabled=&quot;false&quot;/&gt;&#x0D;&#x0A;&lt;child filterId=&quot;org.eclipse.jdt.ui.PackageExplorer.SyntheticMembersFilter&quot; isEnabled=&quot;true&quot;/&gt;&#x0D;&#x0A;&lt;child filterId=&quot;org.eclipse.jdt.ui.PackageExplorer.ContainedLibraryFilter&quot; isEnabled=&quot;false&quot;/&gt;&#x0D;&#x0A;&lt;child filterId=&quot;org.eclipse.jdt.internal.ui.PackageExplorer.HideInnerClassFilesFilter&quot; isEnabled=&quot;true&quot;/&gt;&#x0D;&#x0A;&lt;child filterId=&quot;org.eclipse.jdt.internal.ui.PackageExplorer.EmptyInnerPackageFilter&quot; isEnabled=&quot;true&quot;/&gt;&#x0D;&#x0A;&lt;child filterId=&quot;org.eclipse.jdt.ui.PackageExplorer.ClosedProjectsFilter&quot; isEnabled=&quot;false&quot;/&gt;&#x0D;&#x0A;&lt;child filterId=&quot;org.eclipse.jdt.ui.PackageExplorer.EmptyLibraryContainerFilter&quot; isEnabled=&quot;true&quot;/&gt;&#x0D;&#x0A;&lt;child filterId=&quot;org.eclipse.jdt.ui.PackageExplorer.PackageDeclarationFilter&quot; isEnabled=&quot;true&quot;/&gt;&#x0D;&#x0A;&lt;child filterId=&quot;org.eclipse.jdt.ui.PackageExplorer.ImportDeclarationFilter&quot; isEnabled=&quot;true&quot;/&gt;&#x0D;&#x0A;&lt;child filterId=&quot;org.eclipse.jdt.ui.PackageExplorer.NonJavaElementFilter&quot; isEnabled=&quot;false&quot;/&gt;&#x0D;&#x0A;&lt;child filterId=&quot;org.eclipse.jdt.ui.PackageExplorer.LibraryFilter&quot; isEnabled=&quot;false&quot;/&gt;&#x0D;&#x0A;&lt;child filterId=&quot;org.eclipse.jdt.ui.PackageExplorer.CuAndClassFileFilter&quot; isEnabled=&quot;false&quot;/&gt;&#x0D;&#x0A;&lt;child filterId=&quot;org.eclipse.jdt.internal.ui.PackageExplorer.EmptyPackageFilter&quot; isEnabled=&quot;false&quot;/&gt;&#x0D;&#x0A;&lt;child filterId=&quot;org.eclipse.jdt.ui.PackageExplorer.NonPublicFilter&quot; isEnabled=&quot;false&quot;/&gt;&#x0D;&#x0A;&lt;child filterId=&quot;org.eclipse.jdt.ui.PackageExplorer.LocalTypesFilter&quot; isEnabled=&quot;false&quot;/&gt;&#x0D;&#x0A;&lt;child filterId=&quot;org.eclipse.jdt.ui.PackageExplorer.FieldsFilter&quot; isEnabled=&quot;false&quot;/&gt;&#x0D;&#x0A;&lt;/xmlDefinedFilters&gt;&#x0D;&#x0A;&lt;/customFilters&gt;&#x0D;&#x0A;&lt;/packageExplorer&gt;" key="memento"/>
<item value="false" key="linkWithEditor"/>
<item value="1" key="rootMode"/>
</section>
<section name="NewClassWizardPage">
<item value="false" key="create_constructor"/>
<item value="false" key="create_main"/>
<item value="true" key="create_unimplemented"/>
</section>
<section name="OptionalMessageDialog.hide.">
<item value="true" key="org.eclipse.jdt.ui.typecomment.deprecated"/>
</section>
<section name="DialogBounds_OverrideMethodDialog">
<item value="527" key="DIALOG_WIDTH"/>
<item value="1|Segoe UI|9.0|0|WINDOWS|1|-12|0|0|0|400|0|0|0|1|0|0|0|0|Segoe UI" key="DIALOG_FONT_NAME"/>
<item value="466" key="DIALOG_HEIGHT"/>
<item value="218" key="DIALOG_Y_ORIGIN"/>
<item value="705" key="DIALOG_X_ORIGIN"/>
</section>
<section name="org.eclipse.jdt.internal.ui.typehierarchy.QuickHierarchy">
<item value="true" key="org.eclipse.jdt.internal.ui.typehierarchy.HierarchyInformationControlDIALOG_USE_PERSISTED_SIZE"/>
<item value="306" key="org.eclipse.jdt.internal.ui.typehierarchy.HierarchyInformationControlDIALOG_HEIGHT"/>
<item value="350" key="org.eclipse.jdt.internal.ui.typehierarchy.HierarchyInformationControlDIALOG_WIDTH"/>
<item value="false" key="org.eclipse.jdt.internal.ui.typehierarchy.HierarchyInformationControlDIALOG_USE_PERSISTED_LOCATION"/>
</section>
<section name="DialogBounds_GetterSetterTreeSelectionDialog">
<item value="529" key="DIALOG_WIDTH"/>
<item value="1|Segoe UI|9.0|0|WINDOWS|1|-12|0|0|0|400|0|0|0|1|0|0|0|0|Segoe UI" key="DIALOG_FONT_NAME"/>
<item value="695" key="DIALOG_HEIGHT"/>
<item value="65" key="DIALOG_Y_ORIGIN"/>
<item value="704" key="DIALOG_X_ORIGIN"/>
</section>
<section name="RefactoringWizard.preview">
<item value="600" key="width"/>
<item value="400" key="height"/>
</section>
<section name="FatJarPackageWizard">
<item value="C:\Users\raisaro\workspace\yussef" key="FatJarPackageWizardPage.ANTSCRIPT_LOCATION"/>
- <item value="PPPClient\dist\PPPClient.jar" key="FatJarPackageWizardPage.DESTINATION_PATH_SELECTION"/>
+ <item value="PPPClient\dist\HIVprivacy.jar" key="FatJarPackageWizardPage.DESTINATION_PATH_SELECTION"/>
<item value="ClientApp - PPPClient" key="FatJarPackageWizardPage.LAUNCH_CONFIGURATION_SELECTION_NAME"/>
<item value="false" key="FatJarPackageWizardPage.ANTSCRIPT_SAVE"/>
- <item value="1" key="FatJarPackageWizardPage.LIBRARY_HANDLING"/>
+ <item value="2" key="FatJarPackageWizardPage.LIBRARY_HANDLING"/>
<list key="FatJarPackageWizardPage.DESTINATION_NAMES_ID">
+ <item value="PPPClient\dist\HIVprivacy.jar"/>
<item value="PPPClient\dist\PPPClient.jar"/>
<item value="PPPClient/dist/PPPClient.jar"/>
</list>
<list key="FatJarPackageWizardPage.ANTSCRIPT_LOCATION_HISTORY">
<item value="C:\Users\raisaro\workspace\yussef.xml"/>
<item value=".xml"/>
</list>
</section>
<section name="JavaBuildConfigurationBlock">
<item value="false" key="expanded2"/>
<item value="false" key="expanded1"/>
<item value="true" key="expanded0"/>
</section>
<section name="SourceActionDialog.methods">
<item value="false" key="SynchronizedModifier"/>
<item value="false" key="Comments"/>
<item value="1" key="VisibilityModifier"/>
<item value="false" key="FinalModifier"/>
</section>
<section name="OverrideMethodDialog">
<item value="true" key="showtypes"/>
</section>
<section name="BuildPathsPropertyPage">
<item value="2" key="pageIndex"/>
</section>
<section name="quick_assist_proposal_size">
</section>
<section name="completion_proposal_size">
+ <item value="540" key="size.y"/>
+ <item value="944" key="size.x"/>
</section>
<section name="JarPackageWizard">
<item value="false" key="JarPackageWizardPage.INCLUDE_DIRECTORY_ENTRIES"/>
<item value="false" key="JarManifestWizardPage.SEAL_JAR"/>
<item value="" key="JarManifestWizardPage.MANIFEST_LOCATION"/>
<item value="false" key="JarManifestWizardPage.REUSE_MANIFEST"/>
<item value="true" key="JarPackageWizardPage.COMPRESS"/>
<item value="false" key="jarOptionsWizardPage.STORE_USE_SRC_FOLDERS"/>
<item value="true" key="jarOptionsWizardPage.EXPORT_WARNINGS"/>
<item value="" key="jarOptionsWizardPage.DESCRIPTION_LOCATION"/>
<item value="true" key="jarOptionsWizardPage.BUILD_IF_NEEDED"/>
<item value="true" key="JarPackageWizardPage.EXPORT_JAVA_FILES"/>
<item value="true" key="JarManifestWizardPage.GENERATE_MANIFEST"/>
<item value="true" key="jarOptionsWizardPage.EXPORT_ERRORS"/>
<item value="true" key="JarPackageWizardPage.EXPORT_CLASS_FILES"/>
<item value="false" key="JarPackageWizardPage.OVERWRITE"/>
<item value="false" key="jarOptionsWizardPage.SAVE_DESCRIPTION"/>
<item value="false" key="JarPackageWizardPage.REFACTORINGS"/>
<item value="false" key="JarManifestWizardPage.SAVE_MANIFEST"/>
<item value="false" key="JarPackageWizardPage.EXPORT_OUTPUT_FOLDER"/>
<list key="JarPackageWizardPage.DESTINATION_NAMES_ID">
<item value="C:\Users\raisaro\Desktop\Debug SHCS\PPPCommons.jar"/>
<item value="C:\Users\raisaro\Desktop\PPPCommons.jar"/>
</list>
</section>
<section name="AddGetterSetterDialog">
<item value="false" key="RemoveFinal"/>
<item value="false" key="SortOrdering"/>
</section>
<section name="JavaElementSearchActions">
</section>
</section>
diff --git a/.metadata/.plugins/org.eclipse.ltk.core.refactoring/.refactorings/PPPClient/2015/2/6/refactorings.history b/.metadata/.plugins/org.eclipse.ltk.core.refactoring/.refactorings/PPPClient/2015/2/6/refactorings.history
new file mode 100644
index 0000000..7ce1004
--- /dev/null
+++ b/.metadata/.plugins/org.eclipse.ltk.core.refactoring/.refactorings/PPPClient/2015/2/6/refactorings.history
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<session version="1.0">&#x0A;<refactoring accessors="true" comment="Delete element from project &apos;PPPClient&apos;&#x0D;&#x0A;- Original project: &apos;PPPClient&apos;&#x0D;&#x0A;- Original element: &apos;replay_pid6388.log&apos;" description="Delete element" element1="replay_pid6388.log" elements="0" flags="589830" id="org.eclipse.jdt.ui.delete" resources="1" stamp="1423057639417" subPackages="false" version="1.0"/>&#x0A;<refactoring accessors="true" comment="Delete element from project &apos;PPPClient&apos;&#x0D;&#x0A;- Original project: &apos;PPPClient&apos;&#x0D;&#x0A;- Original element: &apos;hs_err_pid6388.log&apos;" description="Delete element" element1="hs_err_pid6388.log" elements="0" flags="589830" id="org.eclipse.jdt.ui.delete" resources="1" stamp="1423057642895" subPackages="false" version="1.0"/>&#x0A;<refactoring accessors="true" comment="Delete element from project &apos;PPPClient&apos;&#x0D;&#x0A;- Original project: &apos;PPPClient&apos;&#x0D;&#x0A;- Original element: &apos;ui.GUIbis.java&apos;" description="Delete element" element1="/src&lt;ui{GUIbis.java" elements="1" flags="589830" id="org.eclipse.jdt.ui.delete" resources="0" stamp="1423241543953" subPackages="false" version="1.0"/>
+</session>
\ No newline at end of file
diff --git a/.metadata/.plugins/org.eclipse.ltk.core.refactoring/.refactorings/PPPClient/2015/2/6/refactorings.index b/.metadata/.plugins/org.eclipse.ltk.core.refactoring/.refactorings/PPPClient/2015/2/6/refactorings.index
new file mode 100644
index 0000000..670271b
--- /dev/null
+++ b/.metadata/.plugins/org.eclipse.ltk.core.refactoring/.refactorings/PPPClient/2015/2/6/refactorings.index
@@ -0,0 +1,3 @@
+1423057639417 Delete element
+1423057642895 Delete element
+1423241543953 Delete element
diff --git a/.metadata/.plugins/org.eclipse.ltk.core.refactoring/.refactorings/PPPClient/2015/2/7/refactorings.history b/.metadata/.plugins/org.eclipse.ltk.core.refactoring/.refactorings/PPPClient/2015/2/7/refactorings.history
new file mode 100644
index 0000000..8d054e0
--- /dev/null
+++ b/.metadata/.plugins/org.eclipse.ltk.core.refactoring/.refactorings/PPPClient/2015/2/7/refactorings.history
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<session version="1.0">&#x0A;<refactoring comment="Copy element &apos;GUI.java&apos; to &apos;PPPClient/src/ui&apos;&#x0D;&#x0A;- Original project: &apos;PPPClient&apos;&#x0D;&#x0A;- Destination element: &apos;PPPClient/src/ui&apos;&#x0D;&#x0A;- Original element: &apos;ui.GUI.java&apos;" description="Copy compilation unit" destination="/src&lt;ui" element1="/src&lt;ui{GUI.java" files="0" flags="589830" folders="0" id="org.eclipse.jdt.ui.copy" policy="org.eclipse.jdt.ui.copyResources" stamp="1423499743809" units="1" version="1.0"/>&#x0A;<refactoring comment="Rename type &apos;ui.GUI&apos; to &apos;OldGUI&apos;&#x0D;&#x0A;- Original project: &apos;PPPClient&apos;&#x0D;&#x0A;- Original element: &apos;ui.GUI&apos;&#x0D;&#x0A;- Renamed element: &apos;ui.OldGUI&apos;&#x0D;&#x0A;- Update references to refactored element&#x0D;&#x0A;- Update textual occurrences in comments and strings" description="Rename type &apos;GUI&apos;" flags="589830" id="org.eclipse.jdt.ui.rename.type" input="/src&lt;ui{GUI.java[GUI" matchStrategy="1" name="OldGUI" qualified="false" references="true" similarDeclarations="false" stamp="1423565094532" textual="false" version="1.0"/>&#x0A;<refactoring comment="Rename type &apos;ui.CopyOfGUI&apos; to &apos;GUI&apos;&#x0D;&#x0A;- Original project: &apos;PPPClient&apos;&#x0D;&#x0A;- Original element: &apos;ui.CopyOfGUI&apos;&#x0D;&#x0A;- Renamed element: &apos;ui.GUI&apos;&#x0D;&#x0A;- Update references to refactored element&#x0D;&#x0A;- Update textual occurrences in comments and strings" description="Rename type &apos;CopyOfGUI&apos;" flags="589830" id="org.eclipse.jdt.ui.rename.type" input="/src&lt;ui{CopyOfGUI.java[CopyOfGUI" matchStrategy="1" name="GUI" qualified="false" references="true" similarDeclarations="false" stamp="1423565106592" textual="false" version="1.0"/>
+</session>
\ No newline at end of file
diff --git a/.metadata/.plugins/org.eclipse.ltk.core.refactoring/.refactorings/PPPClient/2015/2/7/refactorings.index b/.metadata/.plugins/org.eclipse.ltk.core.refactoring/.refactorings/PPPClient/2015/2/7/refactorings.index
new file mode 100644
index 0000000..f5e0db3
--- /dev/null
+++ b/.metadata/.plugins/org.eclipse.ltk.core.refactoring/.refactorings/PPPClient/2015/2/7/refactorings.index
@@ -0,0 +1,3 @@
+1423499743809 Copy compilation unit
+1423565094532 Rename type 'GUI'
+1423565106592 Rename type 'CopyOfGUI'
diff --git a/.metadata/.plugins/org.eclipse.ltk.ui.refactoring/dialog_settings.xml b/.metadata/.plugins/org.eclipse.ltk.ui.refactoring/dialog_settings.xml
index 27eb404..aa26784 100644
--- a/.metadata/.plugins/org.eclipse.ltk.ui.refactoring/dialog_settings.xml
+++ b/.metadata/.plugins/org.eclipse.ltk.ui.refactoring/dialog_settings.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<section name="Workbench">
<section name="RefactoringWizard.preview">
- <item value="400" key="height"/>
<item value="600" key="width"/>
+ <item value="400" key="height"/>
</section>
</section>
diff --git a/.metadata/.plugins/org.eclipse.search/dialog_settings.xml b/.metadata/.plugins/org.eclipse.search/dialog_settings.xml
index 3bc27ea..02fab0f 100644
--- a/.metadata/.plugins/org.eclipse.search/dialog_settings.xml
+++ b/.metadata/.plugins/org.eclipse.search/dialog_settings.xml
@@ -1,15 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<section name="Workbench">
<section name="">
- <item value="TRUE" key="org.eclipse.jdt.search.resultpage.limit_enabled"/>
<item value="1000" key="org.eclipse.jdt.search.resultpage.limit"/>
- </section>
- <section name="org.eclipse.jdt.ui.JavaSearchResultPage">
<item value="TRUE" key="org.eclipse.jdt.search.resultpage.limit_enabled"/>
- <item value="1000" key="org.eclipse.jdt.search.resultpage.limit"/>
</section>
<section name="">
+ <item value="1000" key="org.eclipse.jdt.search.resultpage.limit"/>
<item value="TRUE" key="org.eclipse.jdt.search.resultpage.limit_enabled"/>
+ </section>
+ <section name="org.eclipse.jdt.ui.JavaSearchResultPage">
<item value="1000" key="org.eclipse.jdt.search.resultpage.limit"/>
+ <item value="TRUE" key="org.eclipse.jdt.search.resultpage.limit_enabled"/>
</section>
</section>
diff --git a/.metadata/.plugins/org.eclipse.ui.workbench.texteditor/dialog_settings.xml b/.metadata/.plugins/org.eclipse.ui.workbench.texteditor/dialog_settings.xml
index fefb87b..174a6b2 100644
--- a/.metadata/.plugins/org.eclipse.ui.workbench.texteditor/dialog_settings.xml
+++ b/.metadata/.plugins/org.eclipse.ui.workbench.texteditor/dialog_settings.xml
@@ -1,34 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<section name="Workbench">
<section name="org.eclipse.ui.texteditor.GotoLineAction$GotoLineDialog_dialogBounds">
<item value="404" key="DIALOG_Y_ORIGIN"/>
<item value="729" key="DIALOG_X_ORIGIN"/>
</section>
<section name="org.eclipse.ui.texteditor.FindReplaceDialog">
<item value="false" key="isRegEx"/>
- <item value="jScrollPane4" key="selection"/>
+ <item value="res/" key="selection"/>
<item value="false" key="casesensitive"/>
<item value="false" key="incremental"/>
<item value="true" key="wrap"/>
- <item value="false" key="wholeword"/>
+ <item value="true" key="wholeword"/>
<list key="findhistory">
- <item value="jScrollPane4"/>
- <item value="Select"/>
- <item value="Location"/>
- <item value="horizontalBox"/>
- <item value="jScrollPane5"/>
- <item value="jComboBox1"/>
<item value="res/"/>
- <item value="info"/>
+ <item value="select location"/>
+ <item value="select"/>
+ <item value="computation"/>
+ <item value="btnSubmitQuestionnaire"/>
+ <item value="submitButtonActionPerformed"/>
+ <item value="scrollPane"/>
+ <item value="splitPane"/>
</list>
<list key="replacehistory">
</list>
</section>
<section name="org.eclipse.ui.texteditor.FindReplaceDialog_dialogBounds">
<item value="257" key="DIALOG_WIDTH"/>
<item value="1|Segoe UI|9.0|0|WINDOWS|1|-12|0|0|0|400|0|0|0|1|0|0|0|0|Segoe UI" key="DIALOG_FONT_NAME"/>
<item value="380" key="DIALOG_HEIGHT"/>
<item value="279" key="DIALOG_Y_ORIGIN"/>
<item value="1283" key="DIALOG_X_ORIGIN"/>
</section>
</section>
diff --git a/.metadata/.plugins/org.eclipse.ui.workbench/workingsets.xml b/.metadata/.plugins/org.eclipse.ui.workbench/workingsets.xml
index 99f7137..0d2b82c 100644
--- a/.metadata/.plugins/org.eclipse.ui.workbench/workingsets.xml
+++ b/.metadata/.plugins/org.eclipse.ui.workbench/workingsets.xml
@@ -1,46 +1,71 @@
<?xml version="1.0" encoding="UTF-8"?>
<workingSetManager>
<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1411649555741_0" label="Window Working Set" name="Aggregate for window 1411649555740"/>
<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1411734674518_1" label="Window Working Set" name="Aggregate for window 1411734674517"/>
<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1411976785333_2" label="Window Working Set" name="Aggregate for window 1411976785333"/>
<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1414484837147_3" label="Window Working Set" name="Aggregate for window 1414484837147"/>
<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1414486832275_4" label="Window Working Set" name="Aggregate for window 1414486832275"/>
<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1414594744441_5" label="Window Working Set" name="Aggregate for window 1414594744441"/>
<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1415090286799_6" label="Window Working Set" name="Aggregate for window 1415090286799"/>
<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1415105272064_7" label="Window Working Set" name="Aggregate for window 1415105272064"/>
<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1415279509598_8" label="Window Working Set" name="Aggregate for window 1415279509598"/>
<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1415626753080_9" label="Window Working Set" name="Aggregate for window 1415626753080"/>
<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1415634103296_10" label="Window Working Set" name="Aggregate for window 1415634103296"/>
<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1415694945830_11" label="Window Working Set" name="Aggregate for window 1415694945830"/>
<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1417698585127_12" label="Window Working Set" name="Aggregate for window 1417698585127"/>
<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1418376198075_13" label="Window Working Set" name="Aggregate for window 1418376198075"/>
<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1418402876569_14" label="Window Working Set" name="Aggregate for window 1418402876569"/>
<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1418633436717_15" label="Window Working Set" name="Aggregate for window 1418633436717"/>
<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1418640167892_16" label="Window Working Set" name="Aggregate for window 1418640167891"/>
<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1418719155718_17" label="Window Working Set" name="Aggregate for window 1418719155718"/>
<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1418814787662_18" label="Window Working Set" name="Aggregate for window 1418814787662"/>
<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1418891001584_19" label="Window Working Set" name="Aggregate for window 1418891001584"/>
<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1418976683704_20" label="Window Working Set" name="Aggregate for window 1418976683704"/>
<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1418988140644_21" label="Window Working Set" name="Aggregate for window 1418988140643"/>
<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1420705026829_22" label="Window Working Set" name="Aggregate for window 1420705026829"/>
<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1420710575446_23" label="Window Working Set" name="Aggregate for window 1420710575446"/>
<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1420722782682_24" label="Window Working Set" name="Aggregate for window 1420722782682"/>
<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1420728352233_25" label="Window Working Set" name="Aggregate for window 1420728352233"/>
<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1420806601992_26" label="Window Working Set" name="Aggregate for window 1420806601992"/>
<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1420808616326_27" label="Window Working Set" name="Aggregate for window 1420808616326"/>
<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1421942663013_28" label="Window Working Set" name="Aggregate for window 1421942663013"/>
<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1422262548099_29" label="Window Working Set" name="Aggregate for window 1422262548099"/>
<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1422351001450_30" label="Window Working Set" name="Aggregate for window 1422351001450"/>
<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1422432839849_31" label="Window Working Set" name="Aggregate for window 1422432839849"/>
<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1422519456976_32" label="Window Working Set" name="Aggregate for window 1422519456976"/>
<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1422538218914_33" label="Window Working Set" name="Aggregate for window 1422538218914"/>
<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1422543204717_34" label="Window Working Set" name="Aggregate for window 1422543204717"/>
<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1422606566796_35" label="Window Working Set" name="Aggregate for window 1422606566796"/>
<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1422632880189_36" label="Window Working Set" name="Aggregate for window 1422632880188"/>
<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1422885485342_37" label="Window Working Set" name="Aggregate for window 1422885485326"/>
<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1422891162287_38" label="Window Working Set" name="Aggregate for window 1422891162287"/>
<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1423039152043_39" label="Window Working Set" name="Aggregate for window 1423039152043"/>
<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1423048904232_40" label="Window Working Set" name="Aggregate for window 1423048904232"/>
<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1423053137668_41" label="Window Working Set" name="Aggregate for window 1423053137668"/>
<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1423053335541_42" label="Window Working Set" name="Aggregate for window 1423053335541"/>
+<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1423054844668_43" label="Window Working Set" name="Aggregate for window 1423054844668"/>
+<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1423056727397_44" label="Window Working Set" name="Aggregate for window 1423056727397"/>
+<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1423057055036_45" label="Window Working Set" name="Aggregate for window 1423057055036"/>
+<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1423057288969_46" label="Window Working Set" name="Aggregate for window 1423057288968"/>
+<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1423059020211_47" label="Window Working Set" name="Aggregate for window 1423059020211"/>
+<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1423061561667_48" label="Window Working Set" name="Aggregate for window 1423061561666"/>
+<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1423064087839_49" label="Window Working Set" name="Aggregate for window 1423064087838"/>
+<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1423064551328_50" label="Window Working Set" name="Aggregate for window 1423064551328"/>
+<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1423124580549_51" label="Window Working Set" name="Aggregate for window 1423124580549"/>
+<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1423128748492_52" label="Window Working Set" name="Aggregate for window 1423128748492"/>
+<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1423133873937_53" label="Window Working Set" name="Aggregate for window 1423133873936"/>
+<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1423146528595_54" label="Window Working Set" name="Aggregate for window 1423146528594"/>
+<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1423212739721_55" label="Window Working Set" name="Aggregate for window 1423212739721"/>
+<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1423241528192_56" label="Window Working Set" name="Aggregate for window 1423241528192"/>
+<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1423497389138_57" label="Window Working Set" name="Aggregate for window 1423497389138"/>
+<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1423499400196_58" label="Window Working Set" name="Aggregate for window 1423499400195"/>
+<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1423557010010_59" label="Window Working Set" name="Aggregate for window 1423557010010"/>
+<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1423561089789_60" label="Window Working Set" name="Aggregate for window 1423561089789"/>
+<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1423563063484_61" label="Window Working Set" name="Aggregate for window 1423563063484"/>
+<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1423565696973_62" label="Window Working Set" name="Aggregate for window 1423565696973"/>
+<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1423566197190_63" label="Window Working Set" name="Aggregate for window 1423566197190"/>
+<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1424348987212_64" label="Window Working Set" name="Aggregate for window 1424348987212"/>
+<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1424362278834_65" label="Window Working Set" name="Aggregate for window 1424362278834"/>
+<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1424364177026_66" label="Window Working Set" name="Aggregate for window 1424364177025"/>
+<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1424421657583_67" label="Window Working Set" name="Aggregate for window 1424421657583"/>
</workingSetManager>
\ No newline at end of file
diff --git a/.metadata/.plugins/org.eclipse.wb.core/dialog_settings.xml b/.metadata/.plugins/org.eclipse.wb.core/dialog_settings.xml
index 53a8525..a8c0504 100644
--- a/.metadata/.plugins/org.eclipse.wb.core/dialog_settings.xml
+++ b/.metadata/.plugins/org.eclipse.wb.core/dialog_settings.xml
@@ -1,33 +1,43 @@
<?xml version="1.0" encoding="UTF-8"?>
<section name="Workbench">
<section name="org.eclipse.wb.internal.core.model.util.RenameConvertSupport$RenameDialog">
- <item value="281" key="height"/>
<item value="525" key="width"/>
- <item value="379" key="y"/>
<item value="697" key="x"/>
+ <item value="379" key="y"/>
+ <item value="281" key="height"/>
</section>
- <section name="org.eclipse.wb.internal.core.model.property.editor.string.StringPropertyDialog">
- <item value="345" key="height"/>
- <item value="530" key="width"/>
- <item value="347" key="y"/>
- <item value="695" key="x"/>
+ <section name="org.eclipse.wb.internal.core.model.util.ExposeComponentSupport$ExposeDialog">
+ <item value="525" key="width"/>
+ <item value="697" key="x"/>
+ <item value="379" key="y"/>
+ <item value="281" key="height"/>
</section>
<section name="org.eclipse.wb.internal.core.editor.palette.dialogs.PalettePreferencesDialog">
- <item value="338" key="height"/>
<item value="525" key="width"/>
- <item value="351" key="y"/>
<item value="697" key="x"/>
+ <item value="351" key="y"/>
+ <item value="338" key="height"/>
</section>
<section name="org.eclipse.wb.internal.core.model.property.order.ReorderDialog">
- <item value="365" key="height"/>
<item value="520" key="width"/>
- <item value="337" key="y"/>
<item value="700" key="x"/>
+ <item value="337" key="y"/>
+ <item value="365" key="height"/>
</section>
- <section name="org.eclipse.wb.internal.core.model.util.ExposeComponentSupport$ExposeDialog">
- <item value="281" key="height"/>
- <item value="525" key="width"/>
- <item value="379" key="y"/>
- <item value="697" key="x"/>
+ <section name="org.eclipse.wb.internal.core.nls.ui.NlsDialog">
+ <item value="210" key="x"/>
+ <item value="1500" key="width"/>
+ <item value="40" key="y"/>
+ <item value="960" key="height"/>
+ </section>
+ <section name="org.eclipse.wb.internal.core.editor.actions.assistant.LayoutAssistantWindow">
+ <item value="921" key="x"/>
+ <item value="472" key="y"/>
+ </section>
+ <section name="org.eclipse.wb.internal.core.model.property.editor.string.StringPropertyDialog">
+ <item value="530" key="width"/>
+ <item value="695" key="x"/>
+ <item value="347" key="y"/>
+ <item value="345" key="height"/>
</section>
</section>
diff --git a/.metadata/.plugins/org.eclipse.wb.swing/dialog_settings.xml b/.metadata/.plugins/org.eclipse.wb.swing/dialog_settings.xml
index a673707..ef28933 100644
--- a/.metadata/.plugins/org.eclipse.wb.swing/dialog_settings.xml
+++ b/.metadata/.plugins/org.eclipse.wb.swing/dialog_settings.xml
@@ -1,27 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<section name="Workbench">
<section name="org.eclipse.wb.internal.swing.model.property.editor.font.FontDialog">
<item value="504" key="width"/>
<item value="708" key="x"/>
<item value="267" key="y"/>
<item value="505" key="height"/>
</section>
<section name="org.eclipse.wb.internal.swing.model.property.editor.border.BorderDialog">
<item value="482" key="width"/>
<item value="719" key="x"/>
<item value="280" key="y"/>
<item value="480" key="height"/>
</section>
<section name="org.eclipse.wb.internal.swing.model.property.editor.models.combo.ComboBoxModelDialog">
<item value="476" key="width"/>
<item value="722" key="x"/>
<item value="338" key="y"/>
<item value="364" key="height"/>
</section>
+ <section name="org.eclipse.wb.internal.swing.model.property.editor.icon.ImagePropertyEditor$ImageDialog">
+ <item value="519" key="x"/>
+ <item value="881" key="width"/>
+ <item value="241" key="y"/>
+ <item value="558" key="height"/>
+ </section>
<section name="org.eclipse.wb.internal.swing.model.property.editor.icon.IconPropertyEditor$ImageDialog">
<item value="881" key="width"/>
<item value="519" key="x"/>
<item value="230" key="y"/>
<item value="579" key="height"/>
</section>
</section>
diff --git a/project/PPPClient/PPPClient.jar b/project/PPPClient/HIVprivacy.jar
similarity index 91%
copy from project/PPPClient/PPPClient.jar
copy to project/PPPClient/HIVprivacy.jar
index 3f6d6d1..b569c45 100644
Binary files a/project/PPPClient/PPPClient.jar and b/project/PPPClient/HIVprivacy.jar differ
diff --git a/project/PPPClient/data/pharma_client.accdb b/project/PPPClient/data/pharma_client.accdb
index 0f63609..bca08e9 100644
Binary files a/project/PPPClient/data/pharma_client.accdb and b/project/PPPClient/data/pharma_client.accdb differ
diff --git a/project/PPPClient/data/pharma_client.accdb b/project/PPPClient/data/pharma_client_old.accdb
similarity index 100%
copy from project/PPPClient/data/pharma_client.accdb
copy to project/PPPClient/data/pharma_client_old.accdb
diff --git a/project/PPPClient/PPPClient.jar b/project/PPPClient/dist/HIVprivacy.jar
similarity index 65%
rename from project/PPPClient/PPPClient.jar
rename to project/PPPClient/dist/HIVprivacy.jar
index 3f6d6d1..0e92efe 100644
Binary files a/project/PPPClient/PPPClient.jar and b/project/PPPClient/dist/HIVprivacy.jar differ
diff --git a/project/PPPClient/hs_err_pid6388.log b/project/PPPClient/hs_err_pid6388.log
deleted file mode 100644
index e5bb2e8..0000000
--- a/project/PPPClient/hs_err_pid6388.log
+++ /dev/null
@@ -1,266 +0,0 @@
-#
-# There is insufficient memory for the Java Runtime Environment to continue.
-# Native memory allocation (malloc) failed to allocate 698416 bytes for Chunk::new
-# Possible reasons:
-# The system is out of physical RAM or swap space
-# In 32 bit mode, the process size limit was hit
-# Possible solutions:
-# Reduce memory load on the system
-# Increase physical memory or swap space
-# Check if swap backing store is full
-# Use 64 bit Java on a 64 bit OS
-# Decrease Java heap size (-Xmx/-Xms)
-# Decrease number of Java threads
-# Decrease Java thread stack sizes (-Xss)
-# Set larger code cache with -XX:ReservedCodeCacheSize=
-# This output file may be truncated or incomplete.
-#
-# Out of Memory Error (allocation.cpp:390), pid=6388, tid=6124
-#
-# JRE version: Java(TM) SE Runtime Environment (8.0_31-b13) (build 1.8.0_31-b13)
-# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.31-b07 mixed mode windows-amd64 compressed oops)
-# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
-#
-
---------------- T H R E A D ---------------
-
-Current thread (0x0000000007bc1800): JavaThread "C2 CompilerThread1" daemon [_thread_in_native, id=6124, stack(0x0000000007970000,0x0000000007a70000)]
-
-Stack: [0x0000000007970000,0x0000000007a70000]
-Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
-V [jvm.dll+0x3169ba]
-V [jvm.dll+0x2674c3]
-V [jvm.dll+0x268103]
-V [jvm.dll+0x25f8f5]
-V [jvm.dll+0xbf025]
-V [jvm.dll+0xbf4cc]
-V [jvm.dll+0x45df82]
-V [jvm.dll+0x49f21f]
-V [jvm.dll+0x452b35]
-V [jvm.dll+0x454124]
-V [jvm.dll+0x437c62]
-V [jvm.dll+0x988e2]
-V [jvm.dll+0x990d3]
-V [jvm.dll+0x22c194]
-V [jvm.dll+0x28576a]
-C [msvcr100.dll+0x21d9f]
-C [msvcr100.dll+0x21e3b]
-C [kernel32.dll+0x159ed]
-C [ntdll.dll+0x2c541]
-
-
-Current CompileTask:
-C2: 1098 970 ! 4 java.util.jar.Attributes::read (410 bytes)
-
-
---------------- P R O C E S S ---------------
-
-Java Threads: ( => current thread )
- 0x000000000dcd0000 JavaThread "Thread-2" [_thread_blocked, id=7900, stack(0x000000000ee00000,0x000000000ef00000)]
- 0x00000000089ff000 JavaThread "TimerQueue" daemon [_thread_blocked, id=4180, stack(0x000000000da70000,0x000000000db70000)]
- 0x0000000008d9c800 JavaThread "Image Fetcher 0" daemon [_thread_blocked, id=7604, stack(0x000000000d770000,0x000000000d870000)]
- 0x00000000025d8000 JavaThread "DestroyJavaVM" [_thread_blocked, id=7964, stack(0x0000000002970000,0x0000000002a70000)]
- 0x0000000008b59800 JavaThread "AWT-EventQueue-0" [_thread_in_vm, id=8000, stack(0x0000000009390000,0x0000000009490000)]
- 0x0000000008a2b000 JavaThread "AWT-Windows" daemon [_thread_in_native, id=7544, stack(0x0000000009230000,0x0000000009330000)]
- 0x0000000008757000 JavaThread "AWT-Shutdown" [_thread_blocked, id=1992, stack(0x0000000009050000,0x0000000009150000)]
- 0x000000000888d800 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=6744, stack(0x0000000008f10000,0x0000000009010000)]
- 0x0000000007c2f800 JavaThread "Service Thread" daemon [_thread_blocked, id=3384, stack(0x0000000008270000,0x0000000008370000)]
- 0x0000000007bc3000 JavaThread "C1 CompilerThread2" daemon [_thread_blocked, id=6396, stack(0x0000000008140000,0x0000000008240000)]
-=>0x0000000007bc1800 JavaThread "C2 CompilerThread1" daemon [_thread_in_native, id=6124, stack(0x0000000007970000,0x0000000007a70000)]
- 0x00000000062fb800 JavaThread "C2 CompilerThread0" daemon [_thread_in_native, id=2420, stack(0x0000000007ac0000,0x0000000007bc0000)]
- 0x00000000062f6800 JavaThread "Attach Listener" daemon [_thread_blocked, id=5444, stack(0x00000000076e0000,0x00000000077e0000)]
- 0x00000000062f3000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=2868, stack(0x0000000007810000,0x0000000007910000)]
- 0x0000000006294000 JavaThread "Finalizer" daemon [_thread_blocked, id=5244, stack(0x00000000075e0000,0x00000000076e0000)]
- 0x000000000628b000 JavaThread "Reference Handler" daemon [_thread_blocked, id=296, stack(0x0000000007470000,0x0000000007570000)]
-
-Other Threads:
- 0x0000000006287800 VMThread [stack: 0x0000000007360000,0x0000000007460000] [id=7224]
- 0x0000000007c4a800 WatcherThread [stack: 0x0000000008460000,0x0000000008560000] [id=5660]
-
-VM state:not at safepoint (normal execution)
-
-VM Mutex/Monitor currently owned by a thread: None
-
-Heap:
- PSYoungGen total 18944K, used 10757K [0x00000000eb400000, 0x00000000ec900000, 0x0000000100000000)
- eden space 16384K, 50% used [0x00000000eb400000,0x00000000ebc04370,0x00000000ec400000)
- from space 2560K, 99% used [0x00000000ec400000,0x00000000ec67d290,0x00000000ec680000)
- to space 2560K, 0% used [0x00000000ec680000,0x00000000ec680000,0x00000000ec900000)
- ParOldGen total 44032K, used 1579K [0x00000000c1c00000, 0x00000000c4700000, 0x00000000eb400000)
- object space 44032K, 3% used [0x00000000c1c00000,0x00000000c1d8aef8,0x00000000c4700000)
- Metaspace used 16415K, capacity 16584K, committed 16768K, reserved 1064960K
- class space used 2096K, capacity 2123K, committed 2176K, reserved 1048576K
-
-Card table byte_map: [0x0000000003100000,0x0000000003300000] byte_map_base: 0x0000000002af2000
-
-Marking Bits: (ParMarkBitMap*) 0x0000000066e0d4f0
- Begin Bits: [0x00000000037e0000, 0x0000000004770000)
- End Bits: [0x0000000004770000, 0x0000000005700000)
-
-Polling page: 0x0000000000130000
-
-CodeCache: size=245760Kb used=3601Kb max_used=3601Kb free=242158Kb
- bounds [0x000000000f010000, 0x000000000f3a0000, 0x000000001e010000]
- total_blobs=1566 nmethods=1043 adapters=436
- compilation: enabled
-
-Compilation events (10 events):
-Event: 1.032 Thread 0x0000000007bc3000 983 3 java.util.jar.Attributes::clone (9 bytes)
-Event: 1.032 Thread 0x0000000007bc3000 nmethod 983 0x000000000f36ef50 code [0x000000000f36f0e0, 0x000000000f36f5a8]
-Event: 1.032 Thread 0x0000000007bc3000 984 3 java.util.jar.Attributes::<init> (17 bytes)
-Event: 1.032 Thread 0x00000000062fb800 nmethod 985 0x000000000f36aad0 code [0x000000000f36ac20, 0x000000000f36add8]
-Event: 1.032 Thread 0x00000000062fb800 987 4 java.lang.String::<init> (38 bytes)
-Event: 1.032 Thread 0x0000000007bc3000 nmethod 984 0x000000000f36bcd0 code [0x000000000f36be60, 0x000000000f36c288]
-Event: 1.032 Thread 0x0000000007bc3000 988 3 java.io.ByteArrayInputStream::mark (9 bytes)
-Event: 1.032 Thread 0x0000000007bc3000 nmethod 988 0x000000000f36a7d0 code [0x000000000f36a920, 0x000000000f36aa70]
-Event: 1.038 Thread 0x0000000007bc3000 990 1 java.security.Provider$Service::getProvider (5 bytes)
-Event: 1.038 Thread 0x0000000007bc3000 nmethod 990 0x000000000f36ba10 code [0x000000000f36bb60, 0x000000000f36bc70]
-
-GC Heap History (2 events):
-Event: 0.884 GC heap before
-{Heap before GC invocations=1 (full 0):
- PSYoungGen total 18944K, used 16384K [0x00000000eb400000, 0x00000000ec900000, 0x0000000100000000)
- eden space 16384K, 100% used [0x00000000eb400000,0x00000000ec400000,0x00000000ec400000)
- from space 2560K, 0% used [0x00000000ec680000,0x00000000ec680000,0x00000000ec900000)
- to space 2560K, 0% used [0x00000000ec400000,0x00000000ec400000,0x00000000ec680000)
- ParOldGen total 44032K, used 0K [0x00000000c1c00000, 0x00000000c4700000, 0x00000000eb400000)
- object space 44032K, 0% used [0x00000000c1c00000,0x00000000c1c00000,0x00000000c4700000)
- Metaspace used 14570K, capacity 14722K, committed 15104K, reserved 1062912K
- class space used 1889K, capacity 1930K, committed 2048K, reserved 1048576K
-Event: 0.889 GC heap after
-Heap after GC invocations=1 (full 0):
- PSYoungGen total 18944K, used 2548K [0x00000000eb400000, 0x00000000ec900000, 0x0000000100000000)
- eden space 16384K, 0% used [0x00000000eb400000,0x00000000eb400000,0x00000000ec400000)
- from space 2560K, 99% used [0x00000000ec400000,0x00000000ec67d290,0x00000000ec680000)
- to space 2560K, 0% used [0x00000000ec680000,0x00000000ec680000,0x00000000ec900000)
- ParOldGen total 44032K, used 1579K [0x00000000c1c00000, 0x00000000c4700000, 0x00000000eb400000)
- object space 44032K, 3% used [0x00000000c1c00000,0x00000000c1d8aef8,0x00000000c4700000)
- Metaspace used 14570K, capacity 14722K, committed 15104K, reserved 1062912K
- class space used 1889K, capacity 1930K, committed 2048K, reserved 1048576K
-}
-
-Deoptimization events (10 events):
-Event: 0.402 Thread 0x00000000025d8000 Uncommon trap: reason=bimorphic action=maybe_recompile pc=0x000000000f19732c method=java.util.HashMap.putVal(ILjava/lang/Object;Ljava/lang/Object;ZZ)Ljava/lang/Object; @ 56
-Event: 0.459 Thread 0x0000000008b59800 Uncommon trap: reason=null_check action=make_not_entrant pc=0x000000000f1b0044 method=java.lang.StringCoding.deref(Ljava/lang/ThreadLocal;)Ljava/lang/Object; @ 4
-Event: 0.546 Thread 0x0000000008b59800 Uncommon trap: reason=unreached action=reinterpret pc=0x000000000f1f7cd4 method=java.util.HashMap.hash(Ljava/lang/Object;)I @ 1
-Event: 0.550 Thread 0x0000000008b59800 Uncommon trap: reason=unreached action=reinterpret pc=0x000000000f1f8ce4 method=java.util.HashMap.hash(Ljava/lang/Object;)I @ 1
-Event: 0.661 Thread 0x0000000008b59800 Uncommon trap: reason=class_check action=maybe_recompile pc=0x000000000f18e518 method=java.lang.String.equals(Ljava/lang/Object;)Z @ 8
-Event: 0.661 Thread 0x0000000008b59800 Uncommon trap: reason=class_check action=maybe_recompile pc=0x000000000f18e518 method=java.lang.String.equals(Ljava/lang/Object;)Z @ 8
-Event: 0.661 Thread 0x0000000008b59800 Uncommon trap: reason=class_check action=maybe_recompile pc=0x000000000f18e518 method=java.lang.String.equals(Ljava/lang/Object;)Z @ 8
-Event: 0.661 Thread 0x0000000008b59800 Uncommon trap: reason=class_check action=maybe_recompile pc=0x000000000f18e518 method=java.lang.String.equals(Ljava/lang/Object;)Z @ 8
-Event: 0.670 Thread 0x0000000008b59800 Uncommon trap: reason=class_check action=maybe_recompile pc=0x000000000f218984 method=java.util.HashMap.putVal(ILjava/lang/Object;Ljava/lang/Object;ZZ)Ljava/lang/Object; @ 253
-Event: 0.670 Thread 0x0000000008b59800 Uncommon trap: reason=class_check action=maybe_recompile pc=0x000000000f218984 method=java.util.HashMap.putVal(ILjava/lang/Object;Ljava/lang/Object;ZZ)Ljava/lang/Object; @ 253
-
-Internal exceptions (10 events):
-Event: 0.982 Thread 0x0000000008b59800 Exception <a 'java/security/PrivilegedActionException'> (0x00000000eb76aa18) thrown at [C:\workspace\8-2-build-windows-amd64-cygwin\jdk8u31\2394\hotspot\src\share\vm\prims\jvm.cpp, line 1312]
-Event: 0.982 Thread 0x0000000008b59800 Exception <a 'java/security/PrivilegedActionException'> (0x00000000eb770260) thrown at [C:\workspace\8-2-build-windows-amd64-cygwin\jdk8u31\2394\hotspot\src\share\vm\prims\jvm.cpp, line 1312]
-Event: 0.983 Thread 0x0000000008b59800 Exception <a 'java/security/PrivilegedActionException'> (0x00000000eb77d590) thrown at [C:\workspace\8-2-build-windows-amd64-cygwin\jdk8u31\2394\hotspot\src\share\vm\prims\jvm.cpp, line 1312]
-Event: 0.985 Thread 0x0000000008b59800 Exception <a 'java/security/PrivilegedActionException'> (0x00000000eb781b88) thrown at [C:\workspace\8-2-build-windows-amd64-cygwin\jdk8u31\2394\hotspot\src\share\vm\prims\jvm.cpp, line 1312]
-Event: 0.986 Thread 0x0000000008b59800 Exception <a 'java/security/PrivilegedActionException'> (0x00000000eb786600) thrown at [C:\workspace\8-2-build-windows-amd64-cygwin\jdk8u31\2394\hotspot\src\share\vm\prims\jvm.cpp, line 1312]
-Event: 0.987 Thread 0x0000000008b59800 Exception <a 'java/security/PrivilegedActionException'> (0x00000000eb792218) thrown at [C:\workspace\8-2-build-windows-amd64-cygwin\jdk8u31\2394\hotspot\src\share\vm\prims\jvm.cpp, line 1312]
-Event: 0.987 Thread 0x0000000008b59800 Exception <a 'java/security/PrivilegedActionException'> (0x00000000eb7977e0) thrown at [C:\workspace\8-2-build-windows-amd64-cygwin\jdk8u31\2394\hotspot\src\share\vm\prims\jvm.cpp, line 1312]
-Event: 0.988 Thread 0x0000000008b59800 Exception <a 'java/security/PrivilegedActionException'> (0x00000000eb79ca08) thrown at [C:\workspace\8-2-build-windows-amd64-cygwin\jdk8u31\2394\hotspot\src\share\vm\prims\jvm.cpp, line 1312]
-Event: 1.014 Thread 0x0000000008b59800 Exception <a 'java/security/PrivilegedActionException'> (0x00000000eb7d0500) thrown at [C:\workspace\8-2-build-windows-amd64-cygwin\jdk8u31\2394\hotspot\src\share\vm\prims\jvm.cpp, line 1312]
-Event: 1.016 Thread 0x0000000008b59800 Exception <a 'java/security/PrivilegedActionException'> (0x00000000eb7dd610) thrown at [C:\workspace\8-2-build-windows-amd64-cygwin\jdk8u31\2394\hotspot\src\share\vm\prims\jvm.cpp, line 1312]
-
-Events (10 events):
-Event: 1.040 Thread 0x0000000008b59800 DEOPT PACKING pc=0x000000000f178f3e sp=0x000000000948c7a0
-Event: 1.040 Thread 0x0000000008b59800 DEOPT UNPACKING pc=0x000000000f0575bf sp=0x000000000948c4a0 mode 0
-Event: 1.040 Thread 0x0000000008b59800 DEOPT PACKING pc=0x000000000f178f3e sp=0x000000000948c7a0
-Event: 1.040 Thread 0x0000000008b59800 DEOPT UNPACKING pc=0x000000000f0575bf sp=0x000000000948c4a0 mode 0
-Event: 1.040 Thread 0x0000000008b59800 DEOPT PACKING pc=0x000000000f178f3e sp=0x000000000948c7a0
-Event: 1.040 Thread 0x0000000008b59800 DEOPT UNPACKING pc=0x000000000f0575bf sp=0x000000000948c4a0 mode 0
-Event: 1.040 Thread 0x0000000008b59800 DEOPT PACKING pc=0x000000000f178f3e sp=0x000000000948c7a0
-Event: 1.040 Thread 0x0000000008b59800 DEOPT UNPACKING pc=0x000000000f0575bf sp=0x000000000948c4a0 mode 0
-Event: 1.040 Thread 0x0000000008b59800 DEOPT PACKING pc=0x000000000f178f3e sp=0x000000000948c7a0
-Event: 1.040 Thread 0x0000000008b59800 DEOPT UNPACKING pc=0x000000000f0575bf sp=0x000000000948c4a0 mode 0
-
-
-Dynamic libraries:
-0x000000013f3e0000 - 0x000000013f414000 C:\Program Files\Java\jre1.8.0_31\bin\javaw.exe
-0x0000000077780000 - 0x0000000077929000 C:\Windows\SYSTEM32\ntdll.dll
-0x0000000077660000 - 0x000000007777f000 C:\Windows\system32\kernel32.dll
-0x000007fefd880000 - 0x000007fefd8ec000 C:\Windows\system32\KERNELBASE.dll
-0x000007feff5b0000 - 0x000007feff68b000 C:\Windows\system32\ADVAPI32.dll
-0x000007fefe060000 - 0x000007fefe0ff000 C:\Windows\system32\msvcrt.dll
-0x000007fefdaf0000 - 0x000007fefdb0f000 C:\Windows\SYSTEM32\sechost.dll
-0x000007fefe100000 - 0x000007fefe22d000 C:\Windows\system32\RPCRT4.dll
-0x0000000077560000 - 0x000000007765a000 C:\Windows\system32\USER32.dll
-0x000007feff540000 - 0x000007feff5a7000 C:\Windows\system32\GDI32.dll
-0x000007fefde00000 - 0x000007fefde0e000 C:\Windows\system32\LPK.dll
-0x000007feff710000 - 0x000007feff7d9000 C:\Windows\system32\USP10.dll
-0x000007fefbe80000 - 0x000007fefc074000 C:\Windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.17514_none_fa396087175ac9ac\COMCTL32.dll
-0x000007feff690000 - 0x000007feff701000 C:\Windows\system32\SHLWAPI.dll
-0x000007feff0b0000 - 0x000007feff0de000 C:\Windows\system32\IMM32.DLL
-0x000007fefdc10000 - 0x000007fefdd19000 C:\Windows\system32\MSCTF.dll
-0x000007fefd470000 - 0x000007fefd4ac000 C:\Windows\system32\nvinitx.dll
-0x000000000f000000 - 0x000000000f006000 C:\Program Files\NVIDIA Corporation\CoProcManager\_etoured.dll
-0x000007fef7480000 - 0x000007fef74c4000 C:\Program Files\NVIDIA Corporation\CoProcManager\nvd3d9wrapx.dll
-0x000007fefd910000 - 0x000007fefdae7000 C:\Windows\system32\SETUPAPI.dll
-0x000007fefd590000 - 0x000007fefd5c6000 C:\Windows\system32\CFGMGR32.dll
-0x000007fefdb10000 - 0x000007fefdbe7000 C:\Windows\system32\OLEAUT32.dll
-0x000007feff7e0000 - 0x000007feff9e3000 C:\Windows\system32\ole32.dll
-0x000007fefd810000 - 0x000007fefd82a000 C:\Windows\system32\DEVOBJ.dll
-0x000007fef73b0000 - 0x000007fef73f2000 C:\Program Files\NVIDIA Corporation\CoProcManager\nvdxgiwrapx.dll
-0x000000006e200000 - 0x000000006e2d2000 C:\Program Files\Java\jre1.8.0_31\bin\msvcr100.dll
-0x0000000066630000 - 0x0000000066e8a000 C:\Program Files\Java\jre1.8.0_31\bin\server\jvm.dll
-0x000007fef9120000 - 0x000007fef9129000 C:\Windows\system32\WSOCK32.dll
-0x000007fefe230000 - 0x000007fefe27d000 C:\Windows\system32\WS2_32.dll
-0x000007fefd900000 - 0x000007fefd908000 C:\Windows\system32\NSI.dll
-0x000007fefb280000 - 0x000007fefb2bb000 C:\Windows\system32\WINMM.dll
-0x0000000077940000 - 0x0000000077947000 C:\Windows\system32\PSAPI.DLL
-0x000000006e360000 - 0x000000006e36f000 C:\Program Files\Java\jre1.8.0_31\bin\verify.dll
-0x000000006e330000 - 0x000000006e358000 C:\Program Files\Java\jre1.8.0_31\bin\java.dll
-0x000000006e310000 - 0x000000006e326000 C:\Program Files\Java\jre1.8.0_31\bin\zip.dll
-0x000007fefe280000 - 0x000007feff008000 C:\Windows\system32\SHELL32.dll
-0x000007fefd540000 - 0x000007fefd54f000 C:\Windows\system32\profapi.dll
-0x0000000008560000 - 0x00000000086f8000 C:\Program Files\Java\jre1.8.0_31\bin\awt.dll
-0x000007fefbe20000 - 0x000007fefbe76000 C:\Windows\system32\uxtheme.dll
-0x000007fefb930000 - 0x000007fefb948000 C:\Windows\system32\dwmapi.dll
-0x000007fefd3a0000 - 0x000007fefd3af000 C:\Windows\system32\CRYPTBASE.dll
-0x000007fee0900000 - 0x000007fee0aff000 C:\Windows\system32\d3d9.dll
-0x000007fefc570000 - 0x000007fefc57c000 C:\Windows\system32\VERSION.dll
-0x000007fefae60000 - 0x000007fefae67000 C:\Windows\system32\d3d8thk.dll
-0x000007fef70b0000 - 0x000007fef716e000 C:\Windows\system32\nvumdshimx.dll
-0x000007fef7170000 - 0x000007fef73ae000 C:\Windows\system32\nvapi64.dll
-0x000007feda340000 - 0x000007fedaf8e000 C:\Windows\system32\nvd3dumx.dll
-0x0000000180000000 - 0x0000000180805000 C:\Windows\system32\igdumd64.dll
-0x00000000002e0000 - 0x000000000031b000 C:\Windows\system32\WINTRUST.dll
-0x000007fefd5f0000 - 0x000007fefd75d000 C:\Windows\system32\CRYPT32.dll
-0x000007fefd550000 - 0x000007fefd55f000 C:\Windows\system32\MSASN1.dll
-0x000007fefc080000 - 0x000007fefc0ac000 C:\Windows\system32\powrprof.dll
-0x00000000020d0000 - 0x0000000002117000 C:\Program Files\Java\jre1.8.0_31\bin\fontmanager.dll
-0x000000006e190000 - 0x000000006e1aa000 C:\Program Files\Java\jre1.8.0_31\bin\net.dll
-0x000007fefccc0000 - 0x000007fefcd15000 C:\Windows\system32\mswsock.dll
-0x000007fefcf40000 - 0x000007fefcf47000 C:\Windows\System32\wship6.dll
-0x000000006e170000 - 0x000000006e181000 C:\Program Files\Java\jre1.8.0_31\bin\nio.dll
-0x0000000002160000 - 0x00000000021a1000 C:\Program Files\Java\jre1.8.0_31\bin\t2k.dll
-0x000007fef87e0000 - 0x000007fef8905000 C:\Windows\system32\dbghelp.dll
-
-VM Arguments:
-jvm_args: -Dfile.encoding=Cp1252
-java_command: ClientApp
-java_class_path (initial): C:\Users\raisaro\workspace\yussef\project\PPPClient\bin;C:\Users\raisaro\workspace\yussef\project\PPPClient\lib\itext-pdfa-5.4.5.jar;C:\Users\raisaro\workspace\yussef\project\PPPClient\lib\itextpdf-5.4.4-javadoc.jar;C:\Users\raisaro\workspace\yussef\project\PPPClient\lib\itextpdf-5.4.5.jar;C:\Users\raisaro\workspace\yussef\project\PPPClient\lib\jmathplot.jar;C:\Users\raisaro\workspace\yussef\project\PPPClient\lib\jpedal_lgpl.jar;C:\Users\raisaro\workspace\yussef\project\PPPCommons\bin;C:\Users\raisaro\workspace\yussef\project\PPPCommons\lib\bcpkix-jdk15on-150.jar;C:\Users\raisaro\workspace\yussef\project\PPPCommons\lib\jce-ext-jdk13-150.jar;C:\Users\raisaro\workspace\yussef\project\PPPCommons\lib\jce-jdk13-150.jar;C:\Users\raisaro\Android\adt-bundle-windows-x86_64-20140702\eclipse\plugins\org.junit_4.10.0.v4_10_0_v20120426-0900\junit.jar;C:\Users\raisaro\Android\adt-bundle-windows-x86_64-20140702\eclipse\plugins\org.hamcrest.core_1.1.0.v20090501071000.jar;C:\Users\raisaro\workspace\yussef\project\PPPCommons\lib\commons-validator-1.4.0.jar;C:\Users\raisaro\workspace\yussef\project\PPPCommons\lib\java-json.jar;C:\Users\raisaro\workspace\yussef\project\PPPCommons\lib\mysql-connector-java-5.1.28-bin.jar;C:\Users\raisaro\workspace\yussef\project\PPPCommons\lib\junit-4.11-javadoc.jar;C:\Users\raisaro\workspace\yussef\project\PPPCommons\lib\json-io-2.6.0.jar;C:\Users\raisaro\workspace\yussef\project\PPPCommons\lib\commons-codec-1.9.jar;C:\Users\raisaro\workspace\yussef\project\PPPCommons\lib\jdom-2.0.5.jar;C:\Users\raisaro\workspace\yussef\project\PPPClient\lib\commons-lang-2.6.jar;C:\Users\raisaro\workspace\yussef\project\PPPClient\lib\commons-logging-1.1.3.jar;C:\Users\raisaro\workspace\yussef\project\PPPClient\lib\hsqldb.jar;C:\Users\raisaro\workspace\yussef\project\PPPClient\lib\jackcess-2.0.4.jar;C:\Users\raisaro\workspace\yussef\project\PPPClient\lib\ucanaccess-2.0.6.jar;C:\Users\raisaro\workspace\yussef\project\PPPClient\forms-1.3.0.jar
-Launcher Type: SUN_STANDARD
-
-Environment Variables:
-JAVA_HOME=C:\Program Files\Java\jdk1.7.0_45
-USERNAME=raisaro
-OS=Windows_NT
-PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 42 Stepping 7, GenuineIntel
-
-
-
---------------- S Y S T E M ---------------
-
-OS: Windows 7 , 64 bit Build 7601 Service Pack 1
-
-CPU:total 4 (2 cores per cpu, 2 threads per core) family 6 model 42 stepping 7, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, aes, clmul, ht, tsc, tscinvbit
-
-Memory: 4k page, physical 4077808k(143564k free), swap 5847092k(36104k free)
-
-vm_info: Java HotSpot(TM) 64-Bit Server VM (25.31-b07) for windows-amd64 JRE (1.8.0_31-b13), built on Dec 17 2014 21:00:28 by "java_re" with MS VC++ 10.0 (VS2010)
-
-time: Wed Feb 04 10:19:47 2015
-elapsed time: 1 seconds (0d 0h 0m 1s)
-
diff --git a/project/PPPClient/replay_pid6388.log b/project/PPPClient/replay_pid6388.log
deleted file mode 100644
index d62efad..0000000
--- a/project/PPPClient/replay_pid6388.log
+++ /dev/null
@@ -1,2128 +0,0 @@
-JvmtiExport can_access_local_variables 0
-JvmtiExport can_hotswap_or_post_breakpoint 0
-JvmtiExport can_post_on_exceptions 0
-# 298 ciObject found
-ciMethod java/lang/Object <init> ()V 4097 1 48845 0 0
-ciMethod java/lang/Object hashCode ()I 2049 1 256 0 -1
-ciMethod java/lang/Object equals (Ljava/lang/Object;)Z 4097 1 3344 0 -1
-ciMethod java/lang/String <init> ([BIII)V 2345 32769 1920 0 1168
-ciMethod java/lang/String checkBounds ([BII)V 4097 1 6991 0 128
-ciMethod java/lang/String <init> ([BIILjava/lang/String;)V 4097 1 5225 0 0
-ciMethod java/lang/String length ()I 4097 1 15288 0 0
-ciMethod java/lang/String charAt (I)C 4097 1 94437 0 112
-ciMethod java/lang/String equals (Ljava/lang/Object;)Z 1809 16769 12803 0 -1
-ciMethod java/lang/String intern ()Ljava/lang/String; 6145 1 768 0 -1
-ciMethod java/lang/System getSecurityManager ()Ljava/lang/SecurityManager; 2049 1 1903 0 0
-ciMethod java/lang/System arraycopy (Ljava/lang/Object;ILjava/lang/Object;II)V 8193 1 1024 0 -1
-ciMethod java/lang/ref/Reference get ()Ljava/lang/Object; 3641 1 455 0 -1
-ciMethod java/lang/ref/SoftReference <init> (Ljava/lang/Object;)V 1025 1 325 0 -1
-ciMethod java/lang/ref/SoftReference get ()Ljava/lang/Object; 4097 1 10274 0 80
-ciMethod java/lang/Thread currentThread ()Ljava/lang/Thread; 6145 1 768 0 -1
-ciMethod java/util/Map put (Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; 0 0 1 0 -1
-ciMethod java/nio/Buffer position ()I 1081 1 135 0 0
-ciMethod java/nio/Buffer position (I)Ljava/nio/Buffer; 1073 1 815 0 -1
-ciMethod java/nio/Buffer remaining ()I 2145 1 493 0 -1
-ciMethod java/nio/Buffer hasRemaining ()Z 2513 1 306 0 -1
-ciMethod java/lang/Character isSupplementaryCodePoint (I)Z 0 0 1 0 -1
-ciMethod java/lang/Character isSurrogate (C)Z 1 1 320 0 -1
-ciMethod java/lang/Character highSurrogate (I)C 0 0 1 0 -1
-ciMethod java/lang/Character lowSurrogate (I)C 0 0 1 0 -1
-ciMethod java/util/Comparator compare (Ljava/lang/Object;Ljava/lang/Object;)I 0 0 1 0 -1
-ciMethod java/lang/Math min (II)I 4097 1 18830 0 -1
-ciMethod java/io/InputStream read ([BII)I 0 0 1 0 -1
-ciMethod java/util/HashMap hash (Ljava/lang/Object;)I 2081 1 19950 0 0
-ciMethod java/util/HashMap put (Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; 4097 1 11475 0 0
-ciMethod java/util/HashMap putVal (ILjava/lang/Object;Ljava/lang/Object;ZZ)Ljava/lang/Object; 3193 385 6906 0 1648
-ciMethod java/util/HashMap resize ()[Ljava/util/HashMap$Node; 345 6153 4693 0 0
-ciMethod java/util/HashMap treeifyBin ([Ljava/util/HashMap$Node;I)V 0 0 1 0 0
-ciMethod java/util/HashMap newNode (ILjava/lang/Object;Ljava/lang/Object;Ljava/util/HashMap$Node;)Ljava/util/HashMap$Node; 4097 1 5861 0 208
-ciMethod java/util/HashMap replacementTreeNode (Ljava/util/HashMap$Node;Ljava/util/HashMap$Node;)Ljava/util/HashMap$TreeNode; 0 0 1 0 -1
-ciMethod java/util/HashMap afterNodeAccess (Ljava/util/HashMap$Node;)V 2577 1 322 0 0
-ciMethod java/util/HashMap afterNodeInsertion (Z)V 4097 1 1582 0 0
-ciMethod java/util/HashMap$Node <init> (ILjava/lang/Object;Ljava/lang/Object;Ljava/util/HashMap$Node;)V 4097 1 6339 0 0
-ciMethod java/nio/charset/Charset isSupported (Ljava/lang/String;)Z 57 1 16 0 -1
-ciMethod java/nio/charset/Charset forName (Ljava/lang/String;)Ljava/nio/charset/Charset; 105 1 23 0 -1
-ciMethod java/nio/charset/Charset name ()Ljava/lang/String; 745 1 93 0 -1
-ciMethod java/lang/ThreadLocal initialValue ()Ljava/lang/Object; 89 1 9 0 -1
-ciMethod java/lang/ThreadLocal get ()Ljava/lang/Object; 4097 1 5903 0 0
-ciMethod java/lang/ThreadLocal setInitialValue ()Ljava/lang/Object; 17 1 12 0 0
-ciMethod java/lang/ThreadLocal set (Ljava/lang/Object;)V 25 1 15 0 -1
-ciMethod java/lang/ThreadLocal getMap (Ljava/lang/Thread;)Ljava/lang/ThreadLocal$ThreadLocalMap; 4097 1 3631 0 0
-ciMethod java/lang/ThreadLocal createMap (Ljava/lang/Thread;Ljava/lang/Object;)V 9 1 3 0 -1
-ciMethod java/lang/ThreadLocal access$400 (Ljava/lang/ThreadLocal;)I 8425 1 1053 0 0
-ciMethod java/util/Arrays copyOf ([CI)[C 2057 1 3167 0 0
-ciMethod sun/nio/cs/HistoricallyNamedCharset historicalName ()Ljava/lang/String; 0 0 1 0 -1
-ciMethod java/nio/ByteBuffer wrap ([BII)Ljava/nio/ByteBuffer; 0 0 22 0 0
-ciMethod java/nio/HeapByteBuffer <init> ([BII)V 0 0 22 0 -1
-ciMethodData java/lang/Object <init> ()V 2 48897 orig 264 104 158 190 102 0 0 0 0 112 4 144 5 0 0 0 0 32 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 77 68 79 32 101 120 116 114 97 32 100 97 116 97 32 108 111 99 107 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 9 232 5 0 1 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 3 0 3 0 0 0 0 0 0 0 255 255 255 255 0 0 0 0 0 0 0 0 data 0 oops 0
-ciMethod sun/nio/cs/ArrayDecoder decode ([BII[C)I 0 0 1 0 -1
-ciMethod sun/nio/cs/SingleByte$Decoder decode (I)C 4097 1 3620 0 -1
-ciMethod sun/nio/cs/SingleByte$Decoder decode ([BII[C)I 25 265 3 0 0
-ciMethod java/nio/charset/CharsetDecoder replacement ()Ljava/lang/String; 0 0 1 0 -1
-ciMethod java/nio/charset/CharsetDecoder malformedInputAction ()Ljava/nio/charset/CodingErrorAction; 0 0 1 0 -1
-ciMethod java/nio/charset/CharsetDecoder maxCharsPerByte ()F 4097 1 6314 0 0
-ciMethod java/nio/charset/CharsetDecoder decode (Ljava/nio/ByteBuffer;Ljava/nio/CharBuffer;Z)Ljava/nio/charset/CoderResult; 241 1 63 0 0
-ciMethod java/nio/charset/CharsetDecoder flush (Ljava/nio/CharBuffer;)Ljava/nio/charset/CoderResult; 193 1 51 0 0
-ciMethod java/nio/charset/CharsetDecoder implFlush (Ljava/nio/CharBuffer;)Ljava/nio/charset/CoderResult; 409 1 51 0 -1
-ciMethod java/nio/charset/CharsetDecoder reset ()Ljava/nio/charset/CharsetDecoder; 401 1 141 0 0
-ciMethod java/nio/charset/CharsetDecoder implReset ()V 401 1 119 0 -1
-ciMethod java/nio/charset/CharsetDecoder decodeLoop (Ljava/nio/ByteBuffer;Ljava/nio/CharBuffer;)Ljava/nio/charset/CoderResult; 0 0 1 0 -1
-ciMethod java/nio/charset/CharsetDecoder throwIllegalStateException (II)V 0 0 1 0 -1
-ciMethod java/nio/CharBuffer wrap ([CII)Ljava/nio/CharBuffer; 33 1 30 0 -1
-ciMethod java/nio/CharBuffer wrap ([C)Ljava/nio/CharBuffer; 0 0 22 0 0
-ciMethod java/nio/CharBuffer put (Ljava/lang/String;)Ljava/nio/CharBuffer; 0 0 1 0 -1
-ciMethod java/nio/charset/CoderResult isUnderflow ()Z 481 1 170 0 0
-ciMethod java/nio/charset/CoderResult isOverflow ()Z 617 1 63 0 -1
-ciMethod java/nio/charset/CoderResult isMalformed ()Z 0 0 1 0 -1
-ciMethod java/nio/charset/CoderResult isUnmappable ()Z 0 0 1 0 -1
-ciMethod java/nio/charset/CoderResult length ()I 0 0 1 0 -1
-ciMethod java/nio/charset/CoderResult malformedForLength (I)Ljava/nio/charset/CoderResult; 0 0 1 0 -1
-ciMethod java/nio/charset/CoderResult throwException ()V 0 0 1 0 0
-ciMethodData java/lang/String charAt (I)C 2 94437 orig 264 104 158 190 102 0 0 0 0 200 59 144 5 0 0 0 0 120 1 0 0 32 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 77 68 79 32 101 120 116 114 97 32 100 97 116 97 32 108 111 99 107 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 41 119 11 0 1 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 8 0 4 0 1 0 80 0 0 0 255 255 255 255 7 0 1 0 0 0 0 0 data 10 0x10007 0x0 0x40 0x16ee5 0xa0007 0x16ee5 0x30 0x0 0x120002 0x0 oops 0
-ciMethod java/util/HashMap$TreeNode treeify ([Ljava/util/HashMap$Node;)V 0 0 1 0 -1
-ciMethod java/util/HashMap$TreeNode putTreeVal (Ljava/util/HashMap;[Ljava/util/HashMap$Node;ILjava/lang/Object;Ljava/lang/Object;)Ljava/util/HashMap$TreeNode; 0 0 1 0 -1
-ciMethod java/util/HashMap$TreeNode split (Ljava/util/HashMap;[Ljava/util/HashMap$Node;II)V 0 0 1 0 -1
-ciMethodData java/lang/String length ()I 2 15288 orig 264 104 158 190 102 0 0 0 0 136 58 144 5 0 0 0 0 32 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 77 68 79 32 101 120 116 114 97 32 100 97 116 97 32 108 111 99 107 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 193 205 1 0 1 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 3 0 3 0 0 0 0 0 0 0 255 255 255 255 0 0 0 0 0 0 0 0 data 0 oops 0
-ciMethod java/lang/StringCoding deref (Ljava/lang/ThreadLocal;)Ljava/lang/Object; 4097 1 5706 0 0
-ciMethod java/lang/StringCoding set (Ljava/lang/ThreadLocal;Ljava/lang/Object;)V 17 1 8 0 0
-ciMethod java/lang/StringCoding safeTrim ([CILjava/nio/charset/Charset;Z)[C 4097 1 6567 0 0
-ciMethod java/lang/StringCoding scale (IF)I 4097 1 6459 0 0
-ciMethod java/lang/StringCoding lookupCharset (Ljava/lang/String;)Ljava/nio/charset/Charset; 17 1 8 0 0
-ciMethod java/lang/StringCoding decode (Ljava/lang/String;[BII)[C 4097 1 5649 0 0
-ciMethod java/lang/StringCoding access$000 (IF)I 4097 1 6258 0 0
-ciMethod java/lang/StringCoding access$100 ([CILjava/nio/charset/Charset;Z)[C 4097 1 6291 0 0
-ciMethod java/lang/ThreadLocal$ThreadLocalMap nextIndex (II)I 193 1 20 0 -1
-ciMethod java/lang/ThreadLocal$ThreadLocalMap getEntry (Ljava/lang/ThreadLocal;)Ljava/lang/ThreadLocal$ThreadLocalMap$Entry; 4097 1 5968 0 0
-ciMethod java/lang/ThreadLocal$ThreadLocalMap getEntryAfterMiss (Ljava/lang/ThreadLocal;ILjava/lang/ThreadLocal$ThreadLocalMap$Entry;)Ljava/lang/ThreadLocal$ThreadLocalMap$Entry; 9 1 8 0 0
-ciMethod java/lang/ThreadLocal$ThreadLocalMap expungeStaleEntry (I)I 33 1 2 0 -1
-ciMethod java/lang/ThreadLocal$ThreadLocalMap access$000 (Ljava/lang/ThreadLocal$ThreadLocalMap;Ljava/lang/ThreadLocal;)Ljava/lang/ThreadLocal$ThreadLocalMap$Entry; 4097 1 5922 0 0
-ciMethod java/lang/ThreadLocal$ThreadLocalMap access$100 (Ljava/lang/ThreadLocal$ThreadLocalMap;Ljava/lang/ThreadLocal;Ljava/lang/Object;)V 33 1 23 0 -1
-ciMethod java/lang/StringCoding$StringDecoder <init> (Ljava/nio/charset/Charset;Ljava/lang/String;)V 17 1 8 0 -1
-ciMethod java/lang/StringCoding$StringDecoder charsetName ()Ljava/lang/String; 9 1 5 0 0
-ciMethod java/lang/StringCoding$StringDecoder requestedCharsetName ()Ljava/lang/String; 8193 1 1024 0 0
-ciMethod java/lang/StringCoding$StringDecoder decode ([BII)[C 4097 1 5717 0 0
-ciMethod java/lang/StringCoding$StringDecoder <init> (Ljava/nio/charset/Charset;Ljava/lang/String;Ljava/lang/StringCoding$1;)V 17 1 8 0 -1
-ciMethod sun/nio/cs/UTF_8$Decoder isNotContinuation (I)Z 0 0 1 0 -1
-ciMethod sun/nio/cs/UTF_8$Decoder isMalformed3 (III)Z 0 0 1 0 -1
-ciMethod sun/nio/cs/UTF_8$Decoder isMalformed3_2 (II)Z 0 0 1 0 -1
-ciMethod sun/nio/cs/UTF_8$Decoder isMalformed4 (III)Z 0 0 1 0 -1
-ciMethod sun/nio/cs/UTF_8$Decoder isMalformed4_2 (II)Z 0 0 1 0 -1
-ciMethod sun/nio/cs/UTF_8$Decoder isMalformed4_3 (I)Z 0 0 1 0 -1
-ciMethod sun/nio/cs/UTF_8$Decoder malformedN (Ljava/nio/ByteBuffer;I)Ljava/nio/charset/CoderResult; 0 0 1 0 -1
-ciMethod sun/nio/cs/UTF_8$Decoder getByteBuffer (Ljava/nio/ByteBuffer;[BI)Ljava/nio/ByteBuffer; 0 0 1 0 -1
-ciMethod sun/nio/cs/UTF_8$Decoder decode ([BII[C)I 1625 73729 3054 0 -1
-ciMethodData java/util/Arrays copyOf ([CI)[C 2 3167 orig 264 104 158 190 102 0 0 0 0 120 125 161 5 0 0 0 0 112 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 77 68 79 32 101 120 116 114 97 32 100 97 116 97 32 108 111 99 107 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 21 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 241 90 0 0 1 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 7 0 3 0 1 0 32 0 0 0 255 255 255 255 2 0 11 0 0 0 0 0 data 4 0xb0002 0xb5e 0xe0002 0xb5e oops 0
-ciMethodData java/lang/System getSecurityManager ()Ljava/lang/SecurityManager; 2 1903 orig 264 104 158 190 102 0 0 0 0 0 134 145 5 0 0 0 0 24 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 77 68 79 32 101 120 116 114 97 32 100 97 116 97 32 108 111 99 107 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 121 51 0 0 1 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 3 0 3 0 0 0 0 0 0 0 255 255 255 255 0 0 0 0 0 0 0 0 data 0 oops 0
-ciMethodData java/util/HashMap hash (Ljava/lang/Object;)I 2 19950 orig 264 104 158 190 102 0 0 0 0 88 22 158 5 0 0 0 0 176 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 77 68 79 32 101 120 116 114 97 32 100 97 116 97 32 108 111 99 107 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3 1 0 0 81 103 2 0 1 0 0 0 93 43 0 0 0 0 0 0 2 0 0 0 0 0 6 0 4 0 1 0 104 0 0 0 255 255 255 255 7 0 1 0 0 0 0 0 data 13 0x10007 0x4ba1 0x38 0x14b 0x50003 0x14b 0x48 0x90005 0x1c2d 0x61c9ab0 0x2f1c 0x25dbfb0 0x58 oops 2 9 java/lang/String 11 java/lang/Integer
-ciMethod sun/util/logging/PlatformLogger getLogger (Ljava/lang/String;)Lsun/util/logging/PlatformLogger; 9 1 28 0 -1
-ciMethod java/util/jar/Attributes put (Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; 4097 1 2953 0 0
-ciMethod java/util/jar/Attributes putValue (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; 4097 1 2016 0 0
-ciMethod java/util/jar/Attributes read (Ljava/util/jar/Manifest$FastInputStream;[B)V 2049 31289 1923 0 -1
-ciMethod java/util/jar/Manifest$FastInputStream readLine ([BII)I 1753 65537 1512 0 976
-ciMethod java/util/jar/Manifest$FastInputStream peek ()B 4097 1 4222 0 0
-ciMethod java/util/jar/Manifest$FastInputStream readLine ([B)I 4097 1 6160 0 0
-ciMethod java/util/jar/Manifest$FastInputStream fill ()V 17 1 38 0 0
-ciMethod java/util/jar/Attributes$Name <init> (Ljava/lang/String;)V 4097 1 2963 0 0
-ciMethod java/util/jar/Attributes$Name isValid (Ljava/lang/String;)Z 2321 32769 1811 0 544
-ciMethod java/util/jar/Attributes$Name isValid (C)Z 2417 1 25416 0 0
-ciMethod java/util/jar/Attributes$Name isAlpha (C)Z 2417 1 25416 0 0
-ciMethod java/util/jar/Attributes$Name isDigit (C)Z 145 1 8943 0 0
-ciMethod java/util/jar/Attributes$Name equals (Ljava/lang/Object;)Z 465 1 57 0 0
-ciMethod java/util/jar/Attributes$Name hashCode ()I 4097 1 4362 0 0
-ciMethodData java/util/jar/Attributes$Name isValid (C)Z 2 25416 orig 264 104 158 190 102 0 0 0 0 56 43 190 5 0 0 0 0 0 2 0 0 128 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 77 68 79 32 101 120 116 114 97 32 100 97 116 97 32 108 111 99 107 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 46 1 0 0 209 16 3 0 1 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 33 0 3 0 1 0 184 0 0 0 255 255 255 255 2 0 1 0 0 0 0 0 data 23 0x10002 0x621a 0x40007 0x3f3d 0x90 0x22dd 0x80002 0x22dd 0xb0007 0x14e2 0x60 0xdfb 0x110007 0x0 0x40 0xdfb 0x170007 0x0 0x38 0xdfb 0x1b0003 0x621a 0x18 oops 0
-ciMethodData java/util/jar/Attributes$Name isAlpha (C)Z 2 25416 orig 264 104 158 190 102 0 0 0 0 224 43 190 5 0 0 0 0 184 1 0 0 96 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 77 68 79 32 101 120 116 114 97 32 100 97 116 97 32 108 111 99 107 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 46 1 0 0 209 16 3 0 1 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 15 0 3 0 1 0 152 0 0 0 255 255 255 255 7 0 3 0 0 0 0 0 data 19 0x30007 0x3ecf 0x40 0x234b 0x90007 0x234b 0x60 0x0 0xf0007 0x22dd 0x58 0x1bf2 0x150007 0x0 0x38 0x1bf2 0x190003 0x3f3d 0x18 oops 0
-ciMethod sun/misc/ASCIICaseInsensitiveComparator lowerCaseHashCode (Ljava/lang/String;)I 2345 32769 1921 0 576
-ciMethod sun/misc/ASCIICaseInsensitiveComparator isUpper (I)Z 4097 1 21648 0 0
-ciMethod sun/misc/ASCIICaseInsensitiveComparator toLower (I)I 4097 1 21648 0 64
-ciMethodData java/util/jar/Attributes$Name isDigit (C)Z 2 8943 orig 264 104 158 190 102 0 0 0 0 128 44 190 5 0 0 0 0 120 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 77 68 79 32 101 120 116 114 97 32 100 97 116 97 32 108 111 99 107 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 18 0 0 0 233 22 1 0 1 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 1 0 88 0 0 0 255 255 255 255 7 0 3 0 0 0 0 0 data 11 0x30007 0xdfb 0x58 0x14e2 0x90007 0x0 0x38 0x14e2 0xd0003 0x14e2 0x18 oops 0
-ciMethodData java/util/HashMap putVal (ILjava/lang/Object;Ljava/lang/Object;ZZ)Ljava/lang/Object; 2 6906 orig 264 104 158 190 102 0 0 0 0 128 34 158 5 0 0 0 0 176 6 0 0 144 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 77 68 79 32 101 120 116 114 97 32 100 97 116 97 32 108 111 99 107 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 141 1 0 0 89 203 0 0 9 16 0 0 0 0 0 0 0 0 0 0 2 0 0 0 1 0 50 0 4 0 1 0 64 5 0 0 255 255 255 255 7 0 7 0 0 0 0 0 data 168 0x70007 0x7b7 0x40 0x11b4 0x100007 0x11b4 0x50 0x0 0x140005 0x31 0x87257b0 0x781 0x87269a0 0x5 0x2c0007 0x7d5 0x98 0x1196 0x38f005 0x93 0x87257b0 0x1044 0x87269a0 0xc3 0x3b0004 0x0 0x8e463c0 0x10d7 0x7df3c30 0xc3 0x3c0003 0x119a 0x3d0 0x450007 0x6a8 0xc8 0x12d 0x510007 0x12b 0x90 0x2 0x550007 0x0 0x88 0x2 0x5b0005 0x0 0x61c9ab0 0x2 0x0 0x0 0x5e0007 0x0 0x38 0x2 0x650003 0x12d 0x278 0x6a0004 0xfffffffffffff958 0x8e463c0 0x12 0x0 0x0 0x6d0007 0x6a8 0x98 0x0 0x720004 0x0 0x0 0x0 0x0 0x0 0x7b0005 0x0 0x0 0x0 0x0 0x0 0x800003 0x0 0x1b0 0x8e0007 0x206 0xb8 0x6a3 0x980005 0x50 0x87257b0 0x5d9 0x87269a0 0x7a 0xa20007 0x6a3 0x148 0x0 0xa90005 0x0 0x0 0x0 0x0 0x0 0xac0003 0x0 0xf8 0xb50007 0x201 0xc8 0x5 0xc10007 0x5 0xc0 0x0 0xc50007 0x0 0x88 0x0 0xcb0005 0x0 0x0 0x0 0x0 0x0 0xce0007 0x0 0x38 0x0 0xd10003 0x0 0x30 0xdb0003 0x201 0xfffffffffffffe80 0xe00007 0x6a3 0x90 0x132 0xec0007 0x132 0x40 0x0 0xf10007 0x0 0x20 0x0 0xfd4005 0x0 0x87257b0 0x132 0x87269a0 0x2 0x11c0007 0x17fa 0x50 0x43 0x1200005 0xa 0x87257b0 0x2d 0x87269a0 0xc 0x1270005 0xe3 0x87257b0 0x161d 0x87269a0 0x13d oops 16 10 java/util/HashMap 12 java/util/LinkedHashMap 20 java/util/HashMap 22 java/util/LinkedHashMap 26 java/util/HashMap$Node 28 java/util/LinkedHashMap$Entry 47 java/lang/String 60 java/util/HashMap$Node 89 java/util/HashMap 91 java/util/LinkedHashMap 148 java/util/HashMap 150 java/util/LinkedHashMap 158 java/util/HashMap 160 java/util/LinkedHashMap 164 java/util/HashMap 166 java/util/LinkedHashMap
-ciMethodData sun/misc/ASCIICaseInsensitiveComparator toLower (I)I 2 21648 orig 264 104 158 190 102 0 0 0 0 40 64 190 5 0 0 0 0 144 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 77 68 79 32 101 120 116 114 97 32 100 97 116 97 32 108 111 99 107 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 129 148 2 0 1 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 10 0 4 0 1 0 72 0 0 0 255 255 255 255 2 0 1 0 0 0 0 0 data 9 0x10002 0x5290 0x40007 0x3b06 0x38 0x178a 0xb0003 0x178a 0x18 oops 0
-ciMethodData sun/misc/ASCIICaseInsensitiveComparator isUpper (I)Z 2 21648 orig 264 104 158 190 102 0 0 0 0 144 63 190 5 0 0 0 0 88 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 77 68 79 32 101 120 116 114 97 32 100 97 116 97 32 108 111 99 107 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 129 148 2 0 1 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 6 0 3 0 1 0 56 0 0 0 255 255 255 255 7 0 9 0 0 0 0 0 data 7 0x90007 0x3b06 0x38 0x178a 0xd0003 0x178a 0x18 oops 0
-ciMethodData java/util/HashMap put (Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; 2 11475 orig 264 104 158 190 102 0 0 0 0 200 32 158 5 0 0 0 0 152 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 77 68 79 32 101 120 116 114 97 32 100 97 116 97 32 108 111 99 107 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 153 86 1 0 1 0 0 0 129 24 0 0 0 0 0 0 2 0 0 0 0 0 7 0 4 0 1 0 64 0 0 0 255 255 255 255 2 0 2 0 0 0 0 0 data 8 0x20002 0x2ad3 0x90005 0x560 0x87257b0 0x23d4 0x87269a0 0x1a0 oops 2 4 java/util/HashMap 6 java/util/LinkedHashMap
-ciMethodData java/util/jar/Manifest$FastInputStream readLine ([BII)I 2 57219 orig 264 104 158 190 102 0 0 0 0 16 26 190 5 0 0 0 0 168 2 0 0 48 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 77 68 79 32 101 120 116 114 97 32 100 97 116 97 32 108 111 99 107 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 32 0 0 105 40 0 0 25 252 5 0 0 0 0 0 0 0 0 0 2 0 0 0 2 0 23 0 4 0 1 0 72 1 0 0 255 255 255 255 7 0 12 0 0 0 0 0 data 41 0xc0007 0x0 0x148 0x513 0x1c0007 0x50d 0x50 0x6 0x200002 0x6 0x300007 0x6 0x20 0x0 0x3f0007 0x4c8 0x20 0x4b 0x570007 0x6 0x58 0xc485 0x640007 0x50d 0x38 0xbf78 0x670003 0xbf78 0xffffffffffffffc0 0x7d0002 0x513 0x9b0007 0x6 0x38 0x50d 0x9e0003 0x50d 0x30 0xa10003 0x6 0xfffffffffffffed0 oops 0
-ciMethodData java/util/HashMap$Node <init> (ILjava/lang/Object;Ljava/lang/Object;Ljava/util/HashMap$Node;)V 2 6339 orig 264 104 158 190 102 0 0 0 0 56 81 158 5 0 0 0 0 80 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 77 68 79 32 101 120 116 114 97 32 100 97 116 97 32 108 111 99 107 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 25 182 0 0 1 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 3 0 3 0 1 0 16 0 0 0 255 255 255 255 2 0 1 0 0 0 0 0 data 2 0x10002 0x16c3 oops 0
-ciMethodData java/util/HashMap newNode (ILjava/lang/Object;Ljava/lang/Object;Ljava/util/HashMap$Node;)Ljava/util/HashMap$Node; 2 5861 orig 264 104 158 190 102 0 0 0 0 64 60 158 5 0 0 0 0 80 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 77 68 79 32 101 120 116 114 97 32 100 97 116 97 32 108 111 99 107 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 41 167 0 0 1 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 3 0 4 0 1 0 16 0 0 0 255 255 255 255 2 0 9 0 0 0 0 0 data 2 0x90002 0x14e5 oops 0
-ciMethodData java/util/HashMap afterNodeInsertion (Z)V 2 1582 orig 264 104 158 190 102 0 0 0 0 232 63 158 5 0 0 0 0 40 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 77 68 79 32 101 120 116 114 97 32 100 97 116 97 32 108 111 99 107 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 113 33 0 0 1 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 3 0 3 0 0 0 0 0 0 0 255 255 255 255 0 0 0 0 0 0 0 0 data 0 oops 0
-ciMethodData java/lang/String checkBounds ([BII)V 2 6991 orig 264 104 158 190 102 0 0 0 0 48 52 144 5 0 0 0 0 192 1 0 0 80 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 77 68 79 32 101 120 116 114 97 32 100 97 116 97 32 108 111 99 107 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 121 202 0 0 1 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 9 0 4 0 1 0 144 0 0 0 255 255 255 255 7 0 1 0 0 0 0 0 data 18 0x10007 0x194f 0x30 0x0 0x90002 0x0 0xe0007 0x194f 0x30 0x0 0x160002 0x0 0x1f0007 0x194f 0x30 0x0 0x290002 0x0 oops 0
-ciMethodData java/util/jar/Manifest$FastInputStream readLine ([B)I 2 6292 orig 264 104 158 190 102 0 0 0 0 96 27 190 5 0 0 0 0 128 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 77 68 79 32 101 120 116 114 97 32 100 97 116 97 32 108 111 99 107 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 153 180 0 0 1 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 3 0 3 0 1 0 48 0 0 0 255 255 255 255 5 0 5 0 0 0 0 0 data 6 0x50005 0x0 0xe066990 0x1693 0x0 0x0 oops 1 2 java/util/jar/Manifest$FastInputStream
-ciMethodData java/lang/ref/SoftReference get ()Ljava/lang/Object; 2 10516 orig 264 104 158 190 102 0 0 0 0 224 98 146 5 0 0 0 0 112 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 77 68 79 32 101 120 116 114 97 32 100 97 116 97 32 108 111 99 107 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 153 56 1 0 1 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 8 0 4 0 1 0 80 0 0 0 255 255 255 255 2 0 1 0 0 0 0 0 data 10 0x10002 0x2714 0x60007 0x7 0x40 0x270d 0x110007 0x26f5 0x20 0x18 oops 0
-ciMethodData java/lang/ThreadLocal getMap (Ljava/lang/Thread;)Ljava/lang/ThreadLocal$ThreadLocalMap; 2 3631 orig 264 104 158 190 102 0 0 0 0 240 229 160 5 0 0 0 0 40 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 77 68 79 32 101 120 116 114 97 32 100 97 116 97 32 108 111 99 107 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 121 97 0 0 1 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 3 0 3 0 0 0 0 0 0 0 255 255 255 255 0 0 0 0 0 0 0 0 data 0 oops 0
-ciMethodData java/lang/ThreadLocal get ()Ljava/lang/Object; 2 5932 orig 264 104 158 190 102 0 0 0 0 104 227 160 5 0 0 0 0 232 1 0 0 112 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 77 68 79 32 101 120 116 114 97 32 100 97 116 97 32 108 111 99 107 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 97 169 0 0 1 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 8 0 3 0 1 0 160 0 0 0 255 255 255 255 2 0 0 0 0 0 0 0 data 20 0x2 0x152c 0x60005 0x74 0xdeaf350 0x14b4 0xdd664f0 0x4 0xb0007 0x2 0x50 0x152a 0x100002 0x152a 0x150007 0x7 0x20 0x1523 0x220002 0x9 oops 2 4 java/lang/ThreadLocal 6 sun/misc/FloatingDecimal$1
-ciMethodData java/lang/ThreadLocal$ThreadLocalMap access$000 (Ljava/lang/ThreadLocal$ThreadLocalMap;Ljava/lang/ThreadLocal;)Ljava/lang/ThreadLocal$ThreadLocalMap$Entry; 2 5971 orig 264 104 158 190 102 0 0 0 0 56 10 173 5 0 0 0 0 56 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 77 68 79 32 101 120 116 114 97 32 100 97 116 97 32 108 111 99 107 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 153 170 0 0 1 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 3 0 3 0 1 0 16 0 0 0 255 255 255 255 2 0 2 0 0 0 0 0 data 2 0x20002 0x1553 oops 0
-ciMethodData java/lang/ThreadLocal$ThreadLocalMap getEntry (Ljava/lang/ThreadLocal;)Ljava/lang/ThreadLocal$ThreadLocalMap$Entry; 2 5991 orig 264 104 158 190 102 0 0 0 0 64 1 173 5 0 0 0 0 224 1 0 0 96 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 77 68 79 32 101 120 116 114 97 32 100 97 116 97 32 108 111 99 107 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 49 171 0 0 1 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 8 0 3 0 1 0 144 0 0 0 255 255 255 255 2 0 1 0 0 0 0 0 data 18 0x10002 0x1567 0x150007 0x7 0x70 0x1560 0x190005 0x0 0xdd65ec0 0x155f 0x0 0x0 0x1d0007 0x0 0x20 0x155f 0x260002 0x7 oops 1 8 java/lang/ThreadLocal$ThreadLocalMap$Entry
-ciMethodData java/lang/String <init> ([BIILjava/lang/String;)V 2 5653 orig 264 104 158 190 102 0 0 0 0 232 52 144 5 0 0 0 0 200 1 0 0 48 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 77 68 79 32 101 120 116 114 97 32 100 97 116 97 32 108 111 99 107 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 169 160 0 0 1 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 5 0 3 0 1 0 96 0 0 0 255 255 255 255 2 0 1 0 0 0 0 0 data 12 0x10002 0x1415 0x60007 0x1415 0x30 0x0 0xf0002 0x0 0x160002 0x1415 0x1f0002 0x1415 oops 0
-ciMethodData java/lang/StringCoding decode (Ljava/lang/String;[BII)[C 2 5734 orig 264 104 158 190 102 0 0 0 0 64 229 172 5 0 0 0 0 192 3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 77 68 79 32 101 120 116 114 97 32 100 97 116 97 32 108 111 99 107 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 41 163 0 0 1 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 49 0 3 0 1 0 96 2 0 0 255 255 255 255 2 0 3 0 0 0 0 0 data 76 0x30002 0x1466 0x60104 0x0 0xdeaf630 0x1465 0x0 0x0 0xc0007 0x1467 0x38 0x0 0x110003 0x0 0x18 0x190007 0x2 0x120 0x1465 0x200005 0x363 0xdeaf630 0x1102 0x0 0x0 0x230005 0x363 0x61c9ab0 0x1102 0x0 0x0 0x260007 0x1461 0x138 0x4 0x2d0005 0x0 0xdeaf630 0x4 0x0 0x0 0x300005 0x0 0x61c9ab0 0x4 0x0 0x0 0x330007 0x0 0xb8 0x4 0x3b0002 0x6 0x420007 0x0 0x30 0x6 0x4e0002 0x6 0x530003 0x6 0x18 0x5a0007 0x6 0x30 0x0 0x630002 0x0 0x6c0002 0x6 0x740005 0x0 0xdeaf630 0x1467 0x0 0x0 oops 6 4 java/lang/StringCoding$StringDecoder 21 java/lang/StringCoding$StringDecoder 27 java/lang/String 37 java/lang/StringCoding$StringDecoder 43 java/lang/String 72 java/lang/StringCoding$StringDecoder
-ciMethodData java/lang/StringCoding deref (Ljava/lang/ThreadLocal;)Ljava/lang/Object; 2 5752 orig 264 104 158 190 102 0 0 0 0 104 224 172 5 0 0 0 0 248 1 0 0 48 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 77 68 79 32 101 120 116 114 97 32 100 97 116 97 32 108 111 99 107 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 185 163 0 0 1 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 11 0 3 0 1 0 176 0 0 0 255 255 255 255 5 0 1 0 0 0 0 0 data 22 0x10005 0x0 0xdeaf350 0x1477 0x0 0x0 0x49104 0x0 0x61ca8e0 0x1476 0x0 0x0 0x90007 0x1476 0x20 0x2 0xf0005 0x0 0x61ca8e0 0x1476 0x0 0x0 oops 3 2 java/lang/ThreadLocal 8 java/lang/ref/SoftReference 18 java/lang/ref/SoftReference
-ciMethodData java/lang/StringCoding$StringDecoder decode ([BII)[C 2 6305 orig 264 104 158 190 102 0 0 0 0 48 27 173 5 0 0 0 0 152 4 0 0 232 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 77 68 79 32 101 120 116 114 97 32 100 97 116 97 32 108 111 99 107 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 241 180 0 0 1 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 61 0 3 0 1 0 56 3 0 0 255 255 255 255 5 0 5 0 0 0 0 0 data 103 0x50005 0x2be 0x7e551d0 0x13dc 0x7e55280 0x5 0x80002 0x169f 0x140007 0x169f 0x20 0x0 0x1e0004 0xffffffffffffffea 0x7e551d0 0x1687 0x7e55280 0x11 0x210007 0x16 0x90 0x1689 0x280004 0x0 0x7e551d0 0x1687 0x7e55330 0x2 0x300005 0x0 0x7e551d0 0x1687 0x7e55330 0x2 0x430002 0x1689 0x4b0005 0x11 0x7e55280 0x5 0x0 0x0 0x520002 0x16 0x590002 0x16 0x670005 0x11 0x7e55280 0x5 0x0 0x0 0x6e0005 0x0 0x893e750 0x16 0x0 0x0 0x710007 0x16 0x50 0x0 0x760005 0x0 0x0 0x0 0x0 0x0 0x7f0005 0x11 0x7e55280 0x5 0x0 0x0 0x860005 0x0 0x893e750 0x16 0x0 0x0 0x890007 0x16 0x50 0x0 0x8e0005 0x0 0x0 0x0 0x0 0x0 0x910003 0x16 0x28 0x9c0002 0x0 0xa40005 0x11 0x7e553e0 0x5 0x0 0x0 0xaf0002 0x16 oops 14 2 sun/nio/cs/UTF_8$Decoder 4 sun/nio/cs/UTF_16$Decoder 14 sun/nio/cs/UTF_8$Decoder 16 sun/nio/cs/UTF_16$Decoder 24 sun/nio/cs/UTF_8$Decoder 26 sun/nio/cs/SingleByte$Decoder 30 sun/nio/cs/UTF_8$Decoder 32 sun/nio/cs/SingleByte$Decoder 38 sun/nio/cs/UTF_16$Decoder 48 sun/nio/cs/UTF_16$Decoder 54 java/nio/charset/CoderResult 70 sun/nio/cs/UTF_16$Decoder 76 java/nio/charset/CoderResult 97 java/nio/HeapCharBuffer
-ciMethodData java/nio/charset/CharsetDecoder maxCharsPerByte ()F 2 6380 orig 264 104 158 190 102 0 0 0 0 152 133 166 5 0 0 0 0 32 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 77 68 79 32 101 120 116 114 97 32 100 97 116 97 32 108 111 99 107 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 97 183 0 0 1 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 3 0 3 0 0 0 0 0 0 0 255 255 255 255 0 0 0 0 0 0 0 0 data 0 oops 0
-ciMethodData java/lang/StringCoding access$000 (IF)I 2 6344 orig 264 104 158 190 102 0 0 0 0 128 235 172 5 0 0 0 0 96 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 77 68 79 32 101 120 116 114 97 32 100 97 116 97 32 108 111 99 107 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 65 182 0 0 1 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 3 0 3 0 1 0 16 0 0 0 255 255 255 255 2 0 2 0 0 0 0 0 data 2 0x20002 0x16c8 oops 0
-ciMethodData java/lang/StringCoding scale (IF)I 2 6470 orig 264 104 158 190 102 0 0 0 0 208 226 172 5 0 0 0 0 40 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 77 68 79 32 101 120 116 114 97 32 100 97 116 97 32 108 111 99 107 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 49 186 0 0 1 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 3 0 3 0 0 0 0 0 0 0 255 255 255 255 0 0 0 0 0 0 0 0 data 0 oops 0
-ciMethodData java/lang/StringCoding access$100 ([CILjava/nio/charset/Charset;Z)[C 2 6571 orig 264 104 158 190 102 0 0 0 0 16 236 172 5 0 0 0 0 112 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 77 68 79 32 101 120 116 114 97 32 100 97 116 97 32 108 111 99 107 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 89 189 0 0 1 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 17 0 3 0 1 0 16 0 0 0 255 255 255 255 2 0 4 0 0 0 0 0 data 2 0x40002 0x17ab oops 0
-ciMethodData java/lang/StringCoding safeTrim ([CILjava/nio/charset/Charset;Z)[C 2 6581 orig 264 104 158 190 102 0 0 0 0 64 226 172 5 0 0 0 0 224 1 0 0 80 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 77 68 79 32 101 120 116 114 97 32 100 97 116 97 32 108 111 99 107 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 161 189 0 0 1 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 16 0 3 0 1 0 128 0 0 0 255 255 255 255 7 0 3 0 0 0 0 0 data 16 0x30007 0x16 0x70 0x179e 0x70007 0x179e 0x50 0x0 0xa0002 0x0 0xd0007 0x0 0x20 0x0 0x140002 0x16 oops 0
-ciMethodData java/util/jar/Manifest$FastInputStream peek ()B 2 6177 orig 264 104 158 190 102 0 0 0 0 200 26 190 5 0 0 0 0 112 1 0 0 32 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 77 68 79 32 101 120 116 114 97 32 100 97 116 97 32 108 111 99 107 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 17 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 9 177 0 0 1 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 8 0 3 0 1 0 80 0 0 0 255 255 255 255 7 0 8 0 0 0 0 0 data 10 0x80007 0x1621 0x30 0x0 0xc0002 0x0 0x170007 0x1621 0x20 0x0 oops 0
-ciMethodData java/util/jar/Attributes read (Ljava/util/jar/Manifest$FastInputStream;[B)V 2 30419 orig 264 104 158 190 102 0 0 0 0 104 10 190 5 0 0 0 0 232 7 0 0 0 3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 77 68 79 32 101 120 116 114 97 32 100 97 116 97 32 108 111 99 107 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 71 15 0 0 81 52 0 0 233 59 3 0 0 0 0 0 0 0 0 0 2 0 0 0 2 0 39 0 4 0 1 0 144 6 0 0 255 255 255 255 5 0 10 0 0 0 0 0 data 210 0xa0005 0x0 0xe066990 0xdad 0x0 0x0 0x110007 0x0 0x660 0xdad 0x200007 0xdad 0x30 0x0 0x290002 0x0 0x2f0007 0x0 0x40 0xdad 0x3a0007 0x0 0x20 0xdad 0x420007 0x722 0x38 0x68b 0x450003 0x68b 0x5b0 0x500007 0x6cb 0x100 0x57 0x540007 0x57 0x30 0x0 0x5d0002 0x0 0x790002 0x57 0x870002 0x57 0x8b0005 0x0 0xe066990 0x57 0x0 0x0 0x900007 0x3 0x38 0x54 0x970003 0x54 0xfffffffffffffe48 0xa60002 0x3 0xae0003 0x3 0x130 0xba0007 0x6cb 0x50 0x604b 0xc10007 0x604b 0xffffffffffffffe0 0x0 0xca0002 0x0 0xd70007 0x6cb 0x30 0x0 0xe00002 0x0 0xef0002 0x6cb 0xf40005 0x0 0xe066990 0x6cb 0x0 0x0 0xf90007 0x6c8 0x48 0x3 0x1100002 0x3 0x1130003 0x3 0xfffffffffffffd18 0x1240002 0x6c8 0x12d0005 0x0 0xe066820 0x6cc 0x0 0x0 0x1300007 0x6cc 0x270 0x0 0x1350007 0x0 0x250 0x0 0x13a0002 0x0 0x1410002 0x0 0x1460005 0x0 0x0 0x0 0x0 0x0 0x14a0005 0x0 0x0 0x0 0x0 0x0 0x14f0005 0x0 0x0 0x0 0x0 0x0 0x1540005 0x0 0x0 0x0 0x0 0x0 0x1590005 0x0 0x0 0x0 0x0 0x0 0x15e0005 0x0 0x0 0x0 0x0 0x0 0x1630005 0x0 0x0 0x0 0x0 0x0 0x1680005 0x0 0x0 0x0 0x0 0x0 0x16d0005 0x0 0x0 0x0 0x0 0x0 0x1700005 0x0 0x0 0x0 0x0 0x0 0x1730005 0x0 0x0 0x0 0x0 0x0 0x1760003 0x6cc 0xc8 0x1830002 0x0 0x1880005 0x0 0x0 0x0 0x0 0x0 0x18c0005 0x0 0x0 0x0 0x0 0x0 0x18f0005 0x0 0x0 0x0 0x0 0x0 0x1920002 0x0 0x1960003 0x6cc 0xfffffffffffff988 oops 4 2 java/util/jar/Manifest$FastInputStream 47 java/util/jar/Manifest$FastInputStream 83 java/util/jar/Manifest$FastInputStream 100 java/util/jar/Attributes
-ciMethodData java/util/jar/Attributes$Name isValid (Ljava/lang/String;)Z 2 25416 orig 264 104 158 190 102 0 0 0 0 144 42 190 5 0 0 0 0 80 2 0 0 80 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 77 68 79 32 101 120 116 114 97 32 100 97 116 97 32 108 111 99 107 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 16 0 0 137 47 0 0 65 154 2 0 0 0 0 0 0 0 0 0 2 0 0 0 1 0 50 0 4 0 1 0 8 1 0 0 255 255 255 255 5 0 1 0 0 0 0 0 data 33 0x10005 0xdd 0x61c9ab0 0x514 0x0 0x0 0x80007 0x0 0x40 0x5f1 0xc0007 0x5f1 0x20 0x0 0x150007 0x5f1 0x98 0x5340 0x1a0005 0xc16 0x61c9ab0 0x472a 0x0 0x0 0x1d0002 0x5340 0x200007 0x5340 0x20 0x0 0x280003 0x5340 0xffffffffffffff80 oops 2 2 java/lang/String 20 java/lang/String
-ciMethodData java/lang/String <init> ([BIII)V 2 26894 orig 264 104 158 190 102 0 0 0 0 168 50 144 5 0 0 0 0 48 2 0 0 120 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 77 68 79 32 101 120 116 114 97 32 100 97 116 97 32 108 111 99 107 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 16 0 0 217 50 0 0 113 200 2 0 0 0 0 0 0 0 0 0 2 0 0 0 2 0 12 0 4 0 1 0 200 0 0 0 255 255 255 255 2 0 1 0 0 0 0 0 data 25 0x10002 0x65b 0x80002 0x65b 0x120007 0x0 0x70 0x65b 0x1e0007 0x65b 0x38 0x590c 0x310003 0x590c 0xffffffffffffffe0 0x340003 0x65b 0x50 0x450007 0x0 0x38 0x0 0x5a0003 0x0 0xffffffffffffffe0 oops 0
-ciMethodData sun/misc/ASCIICaseInsensitiveComparator lowerCaseHashCode (Ljava/lang/String;)I 2 26911 orig 264 104 158 190 102 0 0 0 0 80 62 190 5 0 0 0 0 240 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 77 68 79 32 101 120 116 114 97 32 100 97 116 97 32 108 111 99 107 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 16 0 0 225 50 0 0 249 200 2 0 0 0 0 0 0 0 0 0 2 0 0 0 1 0 20 0 4 0 1 0 168 0 0 0 255 255 255 255 5 0 3 0 0 0 0 0 data 21 0x30005 0x29d 0x61c9ab0 0x3bf 0x0 0x0 0xb0007 0x65c 0x78 0x591d 0x140005 0x2487 0x61c9ab0 0x3496 0x0 0x0 0x170002 0x591d 0x1f0003 0x591d 0xffffffffffffffa0 oops 2 2 java/lang/String 12 java/lang/String
-ciMethodData java/util/jar/Attributes$Name <init> (Ljava/lang/String;)V 2 2963 orig 264 104 158 190 102 0 0 0 0 216 41 190 5 0 0 0 0 0 2 0 0 112 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 77 68 79 32 101 120 116 114 97 32 100 97 116 97 32 108 111 99 107 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 153 76 0 0 1 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 7 0 3 0 1 0 176 0 0 0 255 255 255 255 2 0 1 0 0 0 0 0 data 22 0x10002 0x993 0xa0007 0x993 0x30 0x0 0x130002 0x0 0x180002 0x993 0x1b0007 0x993 0x30 0x0 0x230002 0x0 0x290005 0x1d4 0x61c9ab0 0x7bf 0x0 0x0 oops 1 18 java/lang/String
-ciMethodData java/util/jar/Attributes putValue (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; 2 2946 orig 264 104 158 190 102 0 0 0 0 192 253 189 5 0 0 0 0 200 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 77 68 79 32 101 120 116 114 97 32 100 97 116 97 32 108 111 99 107 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 17 76 0 0 1 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 3 0 3 0 1 0 112 0 0 0 255 255 255 255 2 0 6 0 0 0 0 0 data 14 0x60002 0x982 0xa0005 0x0 0xe066820 0x982 0x0 0x0 0xd0104 0x0 0x0 0x0 0x0 0x0 oops 1 4 java/util/jar/Attributes
-ciMethodData java/util/jar/Attributes put (Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; 2 2953 orig 264 104 158 190 102 0 0 0 0 32 253 189 5 0 0 0 0 232 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 77 68 79 32 101 120 116 114 97 32 100 97 116 97 32 108 111 99 107 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 73 76 0 0 1 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 3 0 3 0 1 0 144 0 0 0 255 255 255 255 4 0 5 0 0 0 0 0 data 18 0x50004 0x0 0x886d380 0x1ac 0x0 0x0 0x90004 0x0 0x61c9ab0 0x587 0x0 0x0 0xc0005 0x0 0x87257b0 0x989 0x0 0x0 oops 3 2 java/util/jar/Attributes$Name 8 java/lang/String 14 java/util/HashMap
-ciMethodData java/util/jar/Attributes$Name hashCode ()I 2 4362 orig 264 104 158 190 102 0 0 0 0 208 45 190 5 0 0 0 0 120 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 77 68 79 32 101 120 116 114 97 32 100 97 116 97 32 108 111 99 107 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 81 120 0 0 1 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 6 0 3 0 1 0 48 0 0 0 255 255 255 255 7 0 5 0 0 0 0 0 data 6 0x50007 0x580 0x30 0x98a 0xd0002 0x98a oops 0
-ciMethodData java/util/HashMap afterNodeAccess (Ljava/util/HashMap$Node;)V 2 322 orig 264 104 158 190 102 0 0 0 0 88 63 158 5 0 0 0 0 40 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 77 68 79 32 101 120 116 114 97 32 100 97 116 97 32 108 111 99 107 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 66 1 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 3 0 3 0 0 0 0 0 0 0 255 255 255 255 0 0 0 0 0 0 0 0 data 0 oops 0
-instanceKlass org/jpedal/fonts/StandardFonts
-instanceKlass java/util/TimerTask
-instanceKlass org/jpedal/PageOffsets
-instanceKlass org/jpedal/utils/LogWriter
-instanceKlass org/jpedal/utils/Messages
-instanceKlass java/util/zip/ZipFile$ZipEntryIterator
-instanceKlass java/util/jar/JarFile$JarEntryIterator
-instanceKlass org/w3c/dom/Attr
-instanceKlass com/sun/org/apache/xerces/internal/dom/NamedNodeMapImpl
-instanceKlass org/w3c/dom/NamedNodeMap
-instanceKlass com/sun/org/apache/xerces/internal/dom/CharacterDataImpl$1
-instanceKlass org/w3c/dom/Text
-instanceKlass org/w3c/dom/CharacterData
-instanceKlass org/w3c/dom/TypeInfo
-instanceKlass com/sun/org/apache/xerces/internal/dom/DeepNodeListImpl
-instanceKlass com/sun/org/apache/xerces/internal/dom/DeferredDocumentImpl$RefCount
-instanceKlass com/sun/org/apache/xerces/internal/dom/NodeImpl
-instanceKlass org/w3c/dom/events/EventTarget
-instanceKlass org/w3c/dom/ranges/DocumentRange
-instanceKlass org/w3c/dom/events/DocumentEvent
-instanceKlass org/w3c/dom/traversal/DocumentTraversal
-instanceKlass com/sun/org/apache/xerces/internal/dom/DeferredNode
-instanceKlass sun/net/DefaultProgressMeteringPolicy
-instanceKlass sun/net/ProgressMeteringPolicy
-instanceKlass sun/net/ProgressMonitor
-instanceKlass com/sun/org/apache/xerces/internal/util/URI
-instanceKlass javax/xml/parsers/DocumentBuilder
-instanceKlass org/jpedal/examples/viewer/gui/swing/SwingMousePageTurn
-instanceKlass org/jpedal/examples/viewer/gui/swing/SwingMousePanMode
-instanceKlass org/jpedal/examples/viewer/gui/swing/SwingMouseSelector
-instanceKlass org/jpedal/examples/viewer/gui/swing/SwingMouseFunctionality
-instanceKlass org/jpedal/examples/viewer/gui/swing/SwingMouseListener$AutoScrollThread
-instanceKlass org/jpedal/examples/viewer/gui/swing/SwingMouseListener
-instanceKlass org/jpedal/examples/viewer/RecentDocuments
-instanceKlass org/jpedal/examples/viewer/Commands$ViewStack
-instanceKlass org/jpedal/examples/viewer/MouseMode
-instanceKlass org/jpedal/examples/viewer/gui/popups/WizardPanelModel
-instanceKlass java/awt/datatransfer/Transferable
-instanceKlass org/jpedal/examples/viewer/gui/popups/DownloadProgress
-instanceKlass javax/swing/filechooser/FileFilter
-instanceKlass javax/swing/event/InternalFrameListener
-instanceKlass org/jpedal/examples/viewer/Commands
-instanceKlass org/jpedal/grouping/DefaultSearchListener
-instanceKlass org/jpedal/grouping/SearchListener
-instanceKlass javax/swing/plaf/basic/BasicProgressBarUI$Handler
-instanceKlass javax/swing/JProgressBar$ModelListener
-instanceKlass javax/swing/plaf/basic/BasicDesktopPaneUI$Handler
-instanceKlass javax/swing/DefaultDesktopManager
-instanceKlass javax/swing/DesktopManager
-instanceKlass javax/swing/plaf/basic/BasicToolBarUI$Handler
-instanceKlass com/sun/java/swing/plaf/windows/WindowsBorders
-instanceKlass javax/swing/JToolBar$DefaultToolBarLayout
-instanceKlass javax/swing/tree/DefaultMutableTreeNode
-instanceKlass javax/swing/tree/TreeCellRenderer
-instanceKlass org/jpedal/examples/viewer/gui/generic/GUIButton
-instanceKlass org/jpedal/examples/viewer/gui/swing/SwingID
-instanceKlass org/jpedal/examples/viewer/gui/generic/GUICombo
-instanceKlass javax/swing/event/TreeSelectionListener
-instanceKlass javax/swing/event/HyperlinkListener
-instanceKlass org/jpedal/examples/viewer/gui/generic/GUIOutline
-instanceKlass org/jpedal/examples/viewer/gui/GUI
-instanceKlass org/jpedal/gui/GUIFactory
-instanceKlass java/net/URI$Parser
-instanceKlass java/net/URI
-instanceKlass org/w3c/dom/NodeList
-instanceKlass javax/xml/parsers/DocumentBuilderFactory
-instanceKlass javax/xml/transform/Result
-instanceKlass javax/xml/transform/Source
-instanceKlass org/jpedal/examples/viewer/utils/PropertiesFile
-instanceKlass org/jpedal/examples/viewer/gui/swing/SwingThumbnailPanel$1
-instanceKlass org/jpedal/ThumbnailDecoder
-instanceKlass org/jpedal/examples/viewer/gui/swing/SwingThumbnailPanel$ThumbPainter$1
-instanceKlass org/jpedal/utils/SwingWorker
-instanceKlass org/jpedal/fonts/FontMappings
-instanceKlass org/jpedal/objects/acroforms/actions/DefaultActionHandler
-instanceKlass org/jpedal/objects/acroforms/formData/ComponentData
-instanceKlass org/jpedal/objects/acroforms/formData/GUIData
-instanceKlass org/jpedal/objects/acroforms/actions/ActionHandler
-instanceKlass org/jpedal/objects/raw/FormStream
-instanceKlass org/jpedal/objects/acroforms/creation/FormFactory
-instanceKlass org/jpedal/objects/acroforms/rendering/DefaultAcroRenderer
-instanceKlass org/jpedal/SingleDisplay
-instanceKlass org/jpedal/parser/DecoderResults
-instanceKlass org/jpedal/objects/PdfResources
-instanceKlass org/jpedal/utils/repositories/Vector_String
-instanceKlass org/jpedal/utils/repositories/Vector_Float
-instanceKlass java/awt/geom/Area
-instanceKlass org/jpedal/utils/repositories/Vector_Shape
-instanceKlass org/jpedal/utils/repositories/Vector_Double
-instanceKlass org/jpedal/utils/repositories/Vector_Rectangle
-instanceKlass org/jpedal/utils/repositories/Vector_Int
-instanceKlass org/jpedal/color/PdfPaint
-instanceKlass org/jpedal/render/BaseDisplay
-instanceKlass java/util/Random
-instanceKlass java/lang/Math$RandomNumberGeneratorHolder
-instanceKlass javax/imageio/ImageIO$CacheInfo
-instanceKlass javax/imageio/ImageTypeSpecifier
-instanceKlass javax/imageio/ImageWriter
-instanceKlass javax/imageio/ImageTranscoder
-instanceKlass javax/imageio/metadata/IIOMetadataFormat
-instanceKlass javax/imageio/ImageReader
-instanceKlass javax/imageio/spi/IIORegistry$1
-instanceKlass com/sun/imageio/plugins/jpeg/JPEG
-instanceKlass javax/imageio/stream/ImageOutputStream
-instanceKlass javax/imageio/spi/DigraphNode
-instanceKlass javax/imageio/stream/ImageInputStream
-instanceKlass javax/imageio/spi/SubRegistry
-instanceKlass java/util/Vector$Itr
-instanceKlass javax/imageio/spi/IIOServiceProvider
-instanceKlass javax/imageio/spi/RegisterableService
-instanceKlass javax/imageio/spi/ServiceRegistry
-instanceKlass javax/imageio/ImageIO
-instanceKlass org/jpedal/examples/handlers/DefaultImageHelper
-instanceKlass org/jpedal/external/ImageHelper
-instanceKlass java/io/ObjectInput
-instanceKlass java/io/ObjectOutput
-instanceKlass org/jpedal/utils/repositories/Vector_Object
-instanceKlass org/jpedal/external/ExternalHandlers
-instanceKlass org/jpedal/linear/LinearParser
-instanceKlass org/jpedal/FileAccess
-instanceKlass org/jpedal/parser/SwingPrinter
-instanceKlass org/jpedal/SwingPainter
-instanceKlass org/jpedal/DisplayOffsets
-instanceKlass org/jpedal/objects/PdfFileInformation
-instanceKlass javax/print/attribute/SetOfIntegerSyntax
-instanceKlass org/jpedal/grouping/PdfGroupingAlgorithms
-instanceKlass org/jpedal/parser/DecoderOptions
-instanceKlass org/jpedal/utils/DPIFactory
-instanceKlass org/jpedal/objects/PdfImageData
-instanceKlass org/jpedal/objects/outlines/OutlineData
-instanceKlass org/jpedal/objects/PdfPageData
-instanceKlass org/jpedal/io/ObjectStore
-instanceKlass java/awt/print/PageFormat
-instanceKlass org/jpedal/text/TextLines
-instanceKlass org/jpedal/objects/PdfData
-instanceKlass org/w3c/dom/Document
-instanceKlass org/jpedal/io/StatusBar
-instanceKlass org/jpedal/render/DynamicVectorRenderer
-instanceKlass org/jpedal/Display
-instanceKlass org/jpedal/objects/acroforms/rendering/AcroRenderer
-instanceKlass org/jpedal/parser/BaseDecoder
-instanceKlass org/jpedal/io/PdfObjectReader
-instanceKlass org/jpedal/examples/viewer/utils/Printer
-instanceKlass org/jpedal/examples/viewer/Values
-instanceKlass org/jpedal/examples/viewer/gui/generic/GUIMouseHandler
-instanceKlass org/jpedal/examples/viewer/gui/generic/GUISearchWindow
-instanceKlass org/jpedal/examples/viewer/gui/generic/GUIThumbnailPanel
-instanceKlass org/jpedal/objects/raw/PdfObject
-instanceKlass javax/swing/SizeRequirements
-instanceKlass com/sun/java/swing/plaf/windows/WindowsIconFactory$RadioButtonIcon
-instanceKlass javax/swing/ButtonGroup
-instanceKlass framework/reply/ReplySurvey
-instanceKlass framework/Question
-instanceKlass org/jdom2/ContentList$FilterListIterator
-instanceKlass org/jdom2/filter/AbstractFilter
-instanceKlass org/jdom2/internal/ArrayCopy
-instanceKlass org/jdom2/Verifier
-instanceKlass org/jdom2/filter/Filter
-instanceKlass org/jdom2/Namespace
-instanceKlass com/sun/org/apache/xerces/internal/impl/Constants$ArrayEnumeration
-instanceKlass com/sun/org/apache/xerces/internal/impl/Constants
-instanceKlass com/sun/org/apache/xerces/internal/util/XMLChar
-instanceKlass com/sun/org/apache/xerces/internal/parsers/AbstractSAXParser$LocatorProxy
-instanceKlass org/xml/sax/ext/Locator2
-instanceKlass org/xml/sax/Locator
-instanceKlass com/sun/org/apache/xerces/internal/util/XMLSymbols
-instanceKlass com/sun/org/apache/xerces/internal/utils/XMLLimitAnalyzer
-instanceKlass com/sun/xml/internal/stream/util/BufferAllocator
-instanceKlass com/sun/xml/internal/stream/util/ThreadLocalBufferAllocator
-instanceKlass com/sun/xml/internal/stream/Entity
-instanceKlass com/sun/org/apache/xerces/internal/xni/parser/XMLInputSource
-instanceKlass org/jdom2/input/sax/SAXBuilderEngine
-instanceKlass org/jdom2/input/sax/BuilderErrorHandler
-instanceKlass com/sun/org/apache/xerces/internal/parsers/AbstractSAXParser$AttributesProxy
-instanceKlass org/xml/sax/ext/Attributes2
-instanceKlass org/xml/sax/Attributes
-instanceKlass org/xml/sax/AttributeList
-instanceKlass com/sun/org/apache/xerces/internal/impl/dtd/DTDGrammarBucket
-instanceKlass com/sun/org/apache/xerces/internal/impl/dtd/XMLAttributeDecl
-instanceKlass com/sun/org/apache/xerces/internal/impl/dtd/XMLSimpleType
-instanceKlass com/sun/org/apache/xerces/internal/impl/dtd/XMLElementDecl
-instanceKlass com/sun/org/apache/xerces/internal/impl/validation/ValidationState
-instanceKlass com/sun/org/apache/xerces/internal/impl/dv/ValidationContext
-instanceKlass com/sun/org/apache/xerces/internal/impl/dtd/XMLDTDValidator
-instanceKlass com/sun/org/apache/xerces/internal/impl/RevalidationHandler
-instanceKlass com/sun/org/apache/xerces/internal/impl/dtd/XMLDTDValidatorFilter
-instanceKlass com/sun/org/apache/xerces/internal/xni/parser/XMLDocumentFilter
-instanceKlass com/sun/org/apache/xerces/internal/impl/dtd/XMLEntityDecl
-instanceKlass com/sun/org/apache/xerces/internal/impl/dtd/XMLDTDProcessor
-instanceKlass com/sun/org/apache/xerces/internal/xni/parser/XMLDTDContentModelFilter
-instanceKlass com/sun/org/apache/xerces/internal/xni/parser/XMLDTDFilter
-instanceKlass com/sun/org/apache/xerces/internal/parsers/XML11Configurable
-instanceKlass com/sun/org/apache/xerces/internal/parsers/XMLParser
-instanceKlass org/xml/sax/Parser
-instanceKlass javax/xml/parsers/SAXParser
-instanceKlass com/sun/org/apache/xerces/internal/xs/PSVIProvider
-instanceKlass com/sun/org/apache/xerces/internal/jaxp/JAXPConstants
-instanceKlass org/jdom2/util/IteratorIterable
-instanceKlass org/jdom2/input/sax/TextBuffer
-instanceKlass org/xml/sax/InputSource
-instanceKlass org/jdom2/internal/SystemProperty
-instanceKlass org/jdom2/output/Format$1
-instanceKlass org/jdom2/output/Format$EscapeStrategy7Bits
-instanceKlass org/jdom2/output/Format$EscapeStrategy8Bits
-instanceKlass org/jdom2/output/Format$EscapeStrategyUTF
-instanceKlass org/jdom2/output/EscapeStrategy
-instanceKlass org/jdom2/output/Format
-instanceKlass org/jdom2/output/support/Walker
-instanceKlass org/jdom2/output/support/AbstractOutputProcessor
-instanceKlass org/jdom2/output/support/XMLOutputProcessor
-instanceKlass org/jdom2/output/XMLOutputter
-instanceKlass javax/xml/validation/Schema
-instanceKlass com/sun/org/apache/xerces/internal/jaxp/validation/XSGrammarPoolContainer
-instanceKlass com/sun/org/apache/xerces/internal/utils/XMLSecurityPropertyManager
-instanceKlass com/sun/org/apache/xerces/internal/utils/SecuritySupport$8
-instanceKlass com/sun/org/apache/xerces/internal/utils/XMLSecurityManager
-instanceKlass com/sun/org/apache/xerces/internal/jaxp/validation/XMLSchemaFactory$XMLGrammarPoolWrapper
-instanceKlass com/sun/org/apache/xerces/internal/xni/grammars/XMLGrammarPool
-instanceKlass com/sun/org/apache/xerces/internal/util/DOMEntityResolverWrapper
-instanceKlass com/sun/org/apache/xerces/internal/jaxp/validation/DraconianErrorHandler
-instanceKlass com/sun/org/apache/xerces/internal/util/ErrorHandlerWrapper
-instanceKlass com/sun/org/apache/xerces/internal/impl/xs/opti/SchemaDOMParser$BooleanStack
-instanceKlass com/sun/org/apache/xerces/internal/impl/msg/XMLMessageFormatter
-instanceKlass com/sun/org/apache/xerces/internal/impl/XMLVersionDetector
-instanceKlass com/sun/org/apache/xerces/internal/impl/validation/ValidationManager
-instanceKlass com/sun/org/apache/xerces/internal/impl/dv/dtd/NMTOKENDatatypeValidator
-instanceKlass com/sun/org/apache/xerces/internal/impl/dv/dtd/NOTATIONDatatypeValidator
-instanceKlass com/sun/org/apache/xerces/internal/impl/dv/dtd/ENTITYDatatypeValidator
-instanceKlass com/sun/org/apache/xerces/internal/impl/dv/dtd/ListDatatypeValidator
-instanceKlass com/sun/org/apache/xerces/internal/impl/dv/dtd/IDREFDatatypeValidator
-instanceKlass com/sun/org/apache/xerces/internal/impl/dv/dtd/IDDatatypeValidator
-instanceKlass com/sun/org/apache/xerces/internal/impl/dv/dtd/StringDatatypeValidator
-instanceKlass com/sun/org/apache/xerces/internal/impl/dv/DatatypeValidator
-instanceKlass com/sun/org/apache/xerces/internal/utils/SecuritySupport$3
-instanceKlass com/sun/org/apache/xerces/internal/utils/SecuritySupport$2
-instanceKlass com/sun/org/apache/xerces/internal/utils/SecuritySupport$1
-instanceKlass com/sun/org/apache/xerces/internal/utils/SecuritySupport$4
-instanceKlass com/sun/org/apache/xerces/internal/utils/SecuritySupport
-instanceKlass com/sun/org/apache/xerces/internal/utils/ObjectFactory
-instanceKlass com/sun/org/apache/xerces/internal/impl/dv/DTDDVFactory
-instanceKlass com/sun/org/apache/xerces/internal/xni/parser/XMLDTDScanner
-instanceKlass com/sun/org/apache/xerces/internal/xni/parser/XMLDTDContentModelSource
-instanceKlass com/sun/org/apache/xerces/internal/xni/parser/XMLDTDSource
-instanceKlass com/sun/org/apache/xerces/internal/xni/grammars/XMLDTDDescription
-instanceKlass com/sun/org/apache/xerces/internal/impl/XMLDocumentScannerImpl$TrailingMiscDriver
-instanceKlass com/sun/org/apache/xerces/internal/impl/XMLDocumentScannerImpl$PrologDriver
-instanceKlass com/sun/org/apache/xerces/internal/impl/XMLDocumentScannerImpl$XMLDeclDriver
-instanceKlass com/sun/org/apache/xerces/internal/util/NamespaceSupport
-instanceKlass com/sun/org/apache/xerces/internal/xni/NamespaceContext
-instanceKlass com/sun/org/apache/xerces/internal/util/XMLAttributesImpl$Attribute
-instanceKlass com/sun/org/apache/xerces/internal/util/XMLAttributesImpl
-instanceKlass com/sun/org/apache/xerces/internal/xni/XMLAttributes
-instanceKlass com/sun/org/apache/xerces/internal/impl/XMLDocumentFragmentScannerImpl$FragmentContentDriver
-instanceKlass com/sun/org/apache/xerces/internal/impl/XMLDocumentFragmentScannerImpl$Driver
-instanceKlass com/sun/org/apache/xerces/internal/impl/XMLDocumentFragmentScannerImpl$ElementStack2
-instanceKlass com/sun/org/apache/xerces/internal/xni/QName
-instanceKlass com/sun/org/apache/xerces/internal/impl/XMLDocumentFragmentScannerImpl$ElementStack
-instanceKlass com/sun/org/apache/xerces/internal/xni/XMLString
-instanceKlass com/sun/org/apache/xerces/internal/impl/XMLScanner
-instanceKlass com/sun/xml/internal/stream/XMLBufferListener
-instanceKlass com/sun/org/apache/xerces/internal/impl/XMLEntityHandler
-instanceKlass com/sun/org/apache/xerces/internal/xni/parser/XMLDocumentScanner
-instanceKlass com/sun/org/apache/xerces/internal/xni/parser/XMLDocumentSource
-instanceKlass com/sun/org/apache/xerces/internal/xni/parser/XMLPullParserConfiguration
-instanceKlass com/sun/org/apache/xerces/internal/xni/parser/XMLParserConfiguration
-instanceKlass com/sun/org/apache/xerces/internal/impl/xs/opti/DefaultXMLDocumentHandler
-instanceKlass com/sun/org/apache/xerces/internal/xni/XMLDTDContentModelHandler
-instanceKlass com/sun/org/apache/xerces/internal/xni/XMLDTDHandler
-instanceKlass com/sun/org/apache/xerces/internal/xni/XMLDocumentHandler
-instanceKlass com/sun/org/apache/xerces/internal/impl/xs/util/SimpleLocator
-instanceKlass com/sun/org/apache/xerces/internal/util/SymbolHash$Entry
-instanceKlass com/sun/org/apache/xerces/internal/util/SymbolHash
-instanceKlass com/sun/org/apache/xerces/internal/impl/xs/traversers/XSDocumentInfo
-instanceKlass org/w3c/dom/Element
-instanceKlass org/w3c/dom/Node
-instanceKlass com/sun/org/apache/xerces/internal/impl/xs/XSParticleDecl
-instanceKlass com/sun/org/apache/xerces/internal/xs/XSParticle
-instanceKlass com/sun/org/apache/xerces/internal/impl/xs/traversers/XSDHandler
-instanceKlass com/sun/org/apache/xerces/internal/impl/xs/models/XSEmptyCM
-instanceKlass com/sun/org/apache/xerces/internal/impl/xs/models/XSCMValidator
-instanceKlass com/sun/org/apache/xerces/internal/impl/xs/models/CMBuilder
-instanceKlass com/sun/org/apache/xerces/internal/impl/xs/SubstitutionGroupHandler$OneSubGroup
-instanceKlass com/sun/org/apache/xerces/internal/impl/xs/XSElementDecl
-instanceKlass com/sun/org/apache/xerces/internal/xs/XSElementDeclaration
-instanceKlass com/sun/org/apache/xerces/internal/xs/XSTerm
-instanceKlass com/sun/org/apache/xerces/internal/xs/XSObject
-instanceKlass com/sun/org/apache/xerces/internal/impl/xs/SubstitutionGroupHandler
-instanceKlass com/sun/org/apache/xerces/internal/impl/xs/XSGrammarBucket
-instanceKlass com/sun/org/apache/xerces/internal/util/FeatureState
-instanceKlass com/sun/org/apache/xerces/internal/impl/xs/XSMessageFormatter
-instanceKlass com/sun/org/apache/xerces/internal/util/MessageFormatter
-instanceKlass com/sun/org/apache/xerces/internal/util/DefaultErrorHandler
-instanceKlass com/sun/org/apache/xerces/internal/xni/parser/XMLErrorHandler
-instanceKlass com/sun/org/apache/xerces/internal/util/PropertyState
-instanceKlass com/sun/org/apache/xerces/internal/xni/grammars/XMLSchemaDescription
-instanceKlass com/sun/org/apache/xerces/internal/xni/grammars/XMLGrammarDescription
-instanceKlass com/sun/org/apache/xerces/internal/impl/xs/models/CMNodeFactory
-instanceKlass com/sun/org/apache/xerces/internal/impl/XMLErrorReporter
-instanceKlass com/sun/org/apache/xerces/internal/util/ParserConfigurationSettings
-instanceKlass com/sun/org/apache/xerces/internal/xni/parser/XMLComponentManager
-instanceKlass com/sun/org/apache/xerces/internal/impl/XMLEntityScanner
-instanceKlass com/sun/org/apache/xerces/internal/xni/XMLLocator
-instanceKlass com/sun/xml/internal/stream/XMLEntityStorage
-instanceKlass com/sun/org/apache/xerces/internal/impl/XMLEntityManager$CharacterBuffer
-instanceKlass com/sun/org/apache/xerces/internal/impl/XMLEntityManager$CharacterBufferPool
-instanceKlass com/sun/org/apache/xerces/internal/util/AugmentationsImpl$AugmentationsItemsContainer
-instanceKlass com/sun/org/apache/xerces/internal/util/AugmentationsImpl
-instanceKlass com/sun/org/apache/xerces/internal/xni/Augmentations
-instanceKlass com/sun/org/apache/xerces/internal/util/XMLResourceIdentifierImpl
-instanceKlass com/sun/org/apache/xerces/internal/xni/XMLResourceIdentifier
-instanceKlass com/sun/org/apache/xerces/internal/impl/XMLEntityManager
-instanceKlass com/sun/org/apache/xerces/internal/xni/parser/XMLEntityResolver
-instanceKlass com/sun/org/apache/xerces/internal/util/SymbolTable$Entry
-instanceKlass com/sun/org/apache/xerces/internal/util/SymbolTable
-instanceKlass com/sun/org/apache/xerces/internal/impl/xs/XMLSchemaLoader
-instanceKlass org/w3c/dom/DOMConfiguration
-instanceKlass com/sun/org/apache/xerces/internal/xs/XSLoader
-instanceKlass com/sun/org/apache/xerces/internal/xni/parser/XMLComponent
-instanceKlass com/sun/org/apache/xerces/internal/xni/grammars/XMLGrammarLoader
-instanceKlass javax/xml/validation/SecuritySupport$5
-instanceKlass javax/xml/validation/SchemaFactoryFinder$2
-instanceKlass javax/xml/validation/SecuritySupport$8
-instanceKlass javax/xml/validation/SecuritySupport$2
-instanceKlass javax/xml/validation/SchemaFactoryFinder
-instanceKlass javax/xml/validation/SecuritySupport$1
-instanceKlass javax/xml/validation/SecuritySupport
-instanceKlass javax/xml/validation/SchemaFactory
-instanceKlass javax/xml/parsers/SecuritySupport$1
-instanceKlass javax/xml/parsers/FactoryFinder$1
-instanceKlass javax/xml/parsers/SecuritySupport$5
-instanceKlass javax/xml/parsers/SecuritySupport$2
-instanceKlass javax/xml/parsers/SecuritySupport
-instanceKlass javax/xml/parsers/FactoryFinder
-instanceKlass javax/xml/parsers/SAXParserFactory
-instanceKlass org/jdom2/DefaultJDOMFactory
-instanceKlass org/xml/sax/helpers/DefaultHandler
-instanceKlass org/xml/sax/EntityResolver
-instanceKlass org/xml/sax/ext/DeclHandler
-instanceKlass org/xml/sax/ext/LexicalHandler
-instanceKlass org/jdom2/input/sax/DefaultSAXHandlerFactory
-instanceKlass org/jdom2/JDOMFactory
-instanceKlass org/jdom2/input/sax/SAXHandlerFactory
-instanceKlass org/xml/sax/XMLReader
-instanceKlass org/xml/sax/ErrorHandler
-instanceKlass org/xml/sax/DTDHandler
-instanceKlass org/xml/sax/ContentHandler
-instanceKlass org/jdom2/input/sax/XMLReaderJDOMFactory
-instanceKlass org/jdom2/input/SAXBuilder
-instanceKlass org/jdom2/input/sax/SAXEngine
-instanceKlass org/jdom2/Parent
-instanceKlass org/jdom2/CloneBase
-instanceKlass org/jdom2/NamespaceAware
-instanceKlass io/serializer/Parser
-instanceKlass io/CommAdapter
-instanceKlass io/ClientConnection
-instanceKlass javax/swing/text/DefaultStyledDocument$ChangeUpdateRunnable
-instanceKlass javax/swing/event/UndoableEditListener
-instanceKlass java/util/concurrent/locks/LockSupport
-instanceKlass javax/swing/text/DefaultCaret$1
-instanceKlass javax/swing/TimerQueue$1
-instanceKlass java/util/concurrent/BlockingQueue
-instanceKlass javax/swing/TimerQueue
-instanceKlass javax/swing/text/AbstractDocument$UndoRedoDocumentEvent
-instanceKlass javax/swing/text/SegmentCache
-instanceKlass javax/swing/event/DocumentEvent$ElementChange
-instanceKlass javax/swing/text/DefaultStyledDocument$ElementBuffer$ElemChanges
-instanceKlass javax/swing/text/Utilities
-instanceKlass javax/swing/text/DefaultStyledDocument$ElementSpec
-instanceKlass javax/swing/text/TabableView
-instanceKlass javax/swing/text/FlowView$FlowStrategy
-instanceKlass javax/swing/text/DefaultStyledDocument$AbstractChangeHandler
-instanceKlass javax/swing/event/DocumentEvent$EventType
-instanceKlass javax/swing/event/DocumentEvent
-instanceKlass javax/swing/undo/AbstractUndoableEdit
-instanceKlass javax/swing/undo/UndoableEdit
-instanceKlass javax/swing/text/DefaultStyledDocument$ElementBuffer
-instanceKlass javax/swing/text/StyledDocument
-instanceKlass javax/swing/text/StyledEditorKit$AttributeTracker
-instanceKlass javax/swing/event/CaretListener
-instanceKlass javax/swing/text/StyledEditorKit$StyledViewFactory
-instanceKlass sun/font/CMap
-instanceKlass sun/font/T2KFontScaler$1
-instanceKlass sun/font/FontScaler
-instanceKlass sun/font/StrikeCache$DisposableStrike
-instanceKlass sun/font/FontStrikeDisposer
-instanceKlass sun/java2d/Disposer$PollDisposable
-instanceKlass sun/font/FontStrikeDesc
-instanceKlass sun/font/FontDesignMetrics$MetricsKey
-instanceKlass java/awt/FontMetrics
-instanceKlass javax/accessibility/AccessibleRelationSet
-instanceKlass javax/accessibility/AccessibleContext$1
-instanceKlass sun/awt/AWTAccessor$AccessibleContextAccessor
-instanceKlass javax/accessibility/AccessibleComponent
-instanceKlass ui/GUI$4
-instanceKlass javax/swing/GroupLayout$ComponentInfo
-instanceKlass javax/swing/GroupLayout
-instanceKlass java/awt/image/BufferedImage$1
-instanceKlass sun/awt/image/GifFrame
-instanceKlass sun/awt/image/ImageDecoder
-instanceKlass sun/awt/image/ImageFetcher$1
-instanceKlass sun/awt/image/FetcherInfo
-instanceKlass sun/awt/image/ImageConsumerQueue
-instanceKlass sun/awt/image/ImageWatched$Link
-instanceKlass sun/awt/image/ImageWatched
-instanceKlass java/awt/image/ImageConsumer
-instanceKlass sun/awt/image/MultiResolutionImage
-instanceKlass java/awt/MediaEntry
-instanceKlass sun/awt/image/InputStreamImageSource
-instanceKlass sun/awt/image/ImageFetchable
-instanceKlass java/awt/image/ImageProducer
-instanceKlass java/awt/MediaTracker
-instanceKlass javax/accessibility/AccessibleContext
-instanceKlass java/awt/image/BufferStrategy
-instanceKlass javax/swing/ImageIcon$2
-instanceKlass javax/swing/ImageIcon$1
-instanceKlass javax/swing/ImageIcon
-instanceKlass java/awt/event/WindowAdapter
-instanceKlass javax/swing/plaf/basic/BasicTabbedPaneUI$Handler
-instanceKlass javax/swing/plaf/basic/BasicTabbedPaneUI$TabbedPaneLayout
-instanceKlass javax/swing/JTabbedPane$ModelListener
-instanceKlass com/sun/java/swing/plaf/windows/WindowsIconFactory$MenuItemArrowIcon
-instanceKlass com/sun/java/swing/plaf/windows/WindowsMenuItemUI$1
-instanceKlass javax/swing/plaf/basic/BasicMenuItemUI$Handler
-instanceKlass javax/swing/event/MenuDragMouseListener
-instanceKlass javax/swing/plaf/basic/BasicMenuUI$MouseInputHandler
-instanceKlass sun/swing/MenuItemLayoutHelper
-instanceKlass javax/swing/plaf/basic/BasicGraphicsUtils
-instanceKlass com/sun/java/swing/plaf/windows/WindowsIconFactory$MenuArrowIcon
-instanceKlass com/sun/java/swing/plaf/windows/WindowsMenuUI$1
-instanceKlass com/sun/java/swing/plaf/windows/WindowsMenuItemUIAccessor
-instanceKlass javax/swing/JMenuItem$MenuItemFocusListener
-instanceKlass javax/swing/JMenu$MenuChangeListener
-instanceKlass javax/swing/KeyboardManager
-instanceKlass javax/swing/plaf/basic/BasicMenuBarUI$Handler
-instanceKlass com/sun/java/swing/plaf/windows/WindowsMenuBarUI$2
-instanceKlass javax/swing/plaf/basic/BasicBorders
-instanceKlass javax/swing/plaf/basic/BasicComboBoxUI$DefaultKeySelectionManager
-instanceKlass javax/swing/JComboBox$KeySelectionManager
-instanceKlass javax/swing/plaf/basic/BasicComboBoxUI$ComboBoxLayoutManager
-instanceKlass javax/swing/plaf/basic/BasicComboBoxUI$Handler
-instanceKlass javax/swing/text/Segment
-instanceKlass java/text/CharacterIterator
-instanceKlass javax/swing/JTextField$ScrollRepainter
-instanceKlass javax/swing/plaf/synth/SynthUI
-instanceKlass javax/swing/plaf/synth/SynthConstants
-instanceKlass javax/swing/text/JTextComponent$DefaultKeymap
-instanceKlass javax/swing/text/Keymap
-instanceKlass javax/swing/text/TabExpander
-instanceKlass javax/swing/text/StyleContext$KeyEnumeration
-instanceKlass javax/swing/text/GapContent$StickyPosition
-instanceKlass javax/swing/text/Position
-instanceKlass javax/swing/text/AbstractDocument$1
-instanceKlass javax/swing/text/AbstractDocument$AbstractElement
-instanceKlass javax/swing/text/Element
-instanceKlass java/util/Collections$3
-instanceKlass javax/swing/text/StyleContext$SmallAttributeSet
-instanceKlass java/util/Collections$EmptyEnumeration
-instanceKlass javax/swing/text/StyleContext$NamedStyle
-instanceKlass javax/swing/text/Style
-instanceKlass javax/swing/text/SimpleAttributeSet$EmptyAttributeSet
-instanceKlass javax/swing/text/SimpleAttributeSet
-instanceKlass javax/swing/text/MutableAttributeSet
-instanceKlass javax/swing/text/AttributeSet
-instanceKlass javax/swing/text/StyleContext$FontKey
-instanceKlass javax/swing/text/AttributeSet$ParagraphAttribute
-instanceKlass javax/swing/text/AttributeSet$ColorAttribute
-instanceKlass javax/swing/text/AttributeSet$FontAttribute
-instanceKlass javax/swing/text/AttributeSet$CharacterAttribute
-instanceKlass javax/swing/text/StyleConstants
-instanceKlass javax/swing/text/StyleContext
-instanceKlass javax/swing/text/AbstractDocument$AttributeContext
-instanceKlass javax/swing/text/GapVector
-instanceKlass javax/swing/text/AbstractDocument$Content
-instanceKlass javax/swing/text/AbstractDocument
-instanceKlass javax/swing/text/DefaultHighlighter$SafeDamager
-instanceKlass javax/swing/text/LayeredHighlighter$LayerPainter
-instanceKlass javax/swing/text/Highlighter$HighlightPainter
-instanceKlass javax/swing/text/Highlighter$Highlight
-instanceKlass javax/swing/text/LayeredHighlighter
-instanceKlass javax/swing/text/Highlighter
-instanceKlass javax/swing/text/Document
-instanceKlass javax/swing/text/DefaultCaret$Handler
-instanceKlass java/awt/datatransfer/ClipboardOwner
-instanceKlass javax/swing/text/Caret
-instanceKlass javax/swing/plaf/basic/BasicTextUI$UpdateHandler
-instanceKlass javax/swing/event/DocumentListener
-instanceKlass javax/swing/text/View
-instanceKlass javax/swing/text/Position$Bias
-instanceKlass javax/swing/text/EditorKit
-instanceKlass javax/swing/text/ViewFactory
-instanceKlass javax/swing/AbstractAction
-instanceKlass com/sun/beans/util/Cache$CacheEntry
-instanceKlass com/sun/beans/util/Cache
-instanceKlass javax/swing/text/JTextComponent$1
-instanceKlass sun/swing/SwingAccessor$JTextComponentAccessor
-instanceKlass javax/swing/plaf/basic/BasicComboBoxEditor
-instanceKlass javax/swing/ComboBoxEditor
-instanceKlass javax/swing/plaf/basic/BasicScrollPaneUI$Handler
-instanceKlass java/awt/event/ComponentAdapter
-instanceKlass javax/swing/plaf/basic/BasicScrollBarUI$ScrollListener
-instanceKlass javax/swing/plaf/basic/BasicScrollBarUI$Handler
-instanceKlass javax/swing/plaf/basic/BasicScrollBarUI$ModelListener
-instanceKlass java/beans/VetoableChangeListener
-instanceKlass javax/swing/plaf/basic/BasicButtonListener
-instanceKlass javax/swing/AbstractButton$Handler
-instanceKlass javax/swing/DefaultButtonModel
-instanceKlass javax/swing/ButtonModel
-instanceKlass java/util/TimSort
-instanceKlass sun/java2d/loops/GraphicsPrimitiveMgr$PrimitiveSpec
-instanceKlass sun/java2d/loops/GraphicsPrimitiveMgr$2
-instanceKlass sun/java2d/loops/GraphicsPrimitiveMgr$1
-instanceKlass sun/java2d/loops/GeneralRenderer
-instanceKlass sun/java2d/loops/CustomComponent
-instanceKlass sun/java2d/pipe/ValidatePipe
-instanceKlass java/awt/BasicStroke
-instanceKlass java/awt/Stroke
-instanceKlass java/awt/AlphaComposite
-instanceKlass sun/java2d/loops/XORComposite
-instanceKlass java/awt/Composite
-instanceKlass sun/awt/ConstrainableGraphics
-instanceKlass sun/java2d/loops/GraphicsPrimitiveMgr
-instanceKlass sun/java2d/loops/GraphicsPrimitive
-instanceKlass sun/java2d/loops/CompositeType
-instanceKlass sun/java2d/DefaultDisposerRecord
-instanceKlass sun/java2d/loops/RenderLoops
-instanceKlass sun/awt/image/BufImgSurfaceData$ICMColorData
-instanceKlass sun/awt/image/NativeLibLoader$1
-instanceKlass sun/awt/image/NativeLibLoader
-instanceKlass java/awt/image/SampleModel
-instanceKlass java/awt/image/DataBuffer$1
-instanceKlass sun/awt/image/SunWritableRaster$DataStealer
-instanceKlass java/awt/image/DataBuffer
-instanceKlass java/awt/image/Raster
-instanceKlass java/awt/image/WritableRenderedImage
-instanceKlass java/awt/image/RenderedImage
-instanceKlass com/sun/java/swing/plaf/windows/WindowsScrollBarUI$Grid
-instanceKlass javax/swing/DefaultBoundedRangeModel
-instanceKlass javax/swing/BoundedRangeModel
-instanceKlass javax/swing/JScrollBar$ModelListener
-instanceKlass java/awt/Adjustable
-instanceKlass javax/swing/ViewportLayout
-instanceKlass javax/swing/ScrollPaneLayout
-instanceKlass javax/swing/plaf/basic/BasicComboPopup$Handler
-instanceKlass sun/reflect/ClassDefiner$1
-instanceKlass sun/reflect/ClassDefiner
-instanceKlass sun/reflect/MethodAccessorGenerator$1
-instanceKlass sun/reflect/Label$PatchInfo
-instanceKlass sun/reflect/Label
-instanceKlass sun/reflect/UTF8
-instanceKlass sun/reflect/ClassFileAssembler
-instanceKlass sun/reflect/ByteVectorImpl
-instanceKlass sun/reflect/ByteVector
-instanceKlass sun/reflect/ByteVectorFactory
-instanceKlass sun/reflect/AccessorGenerator
-instanceKlass sun/reflect/ClassFileConstants
-instanceKlass javax/swing/plaf/basic/BasicListUI$Handler
-instanceKlass javax/swing/plaf/basic/DragRecognitionSupport$BeforeDrag
-instanceKlass javax/swing/event/MouseInputListener
-instanceKlass javax/swing/event/ListSelectionListener
-instanceKlass javax/swing/TransferHandler$TransferSupport
-instanceKlass javax/swing/TransferHandler$DropHandler
-instanceKlass java/awt/datatransfer/SystemFlavorMap
-instanceKlass java/awt/datatransfer/FlavorTable
-instanceKlass java/awt/datatransfer/FlavorMap
-instanceKlass java/awt/dnd/DropTargetContext
-instanceKlass java/awt/dnd/DropTarget
-instanceKlass java/awt/dnd/DropTargetListener
-instanceKlass javax/swing/ListCellRenderer
-instanceKlass sun/swing/UIAction
-instanceKlass javax/swing/Action
-instanceKlass javax/swing/TransferHandler
-instanceKlass javax/swing/DefaultListSelectionModel
-instanceKlass javax/swing/ListSelectionModel
-instanceKlass java/awt/event/KeyAdapter
-instanceKlass java/awt/event/MouseMotionAdapter
-instanceKlass javax/swing/ToolTipManager$stillInsideTimerAction
-instanceKlass javax/swing/ToolTipManager$outsideTimerAction
-instanceKlass javax/swing/Timer$DoPostEvent
-instanceKlass javax/swing/ToolTipManager$insideTimerAction
-instanceKlass javax/swing/Timer
-instanceKlass com/sun/java/swing/plaf/windows/WindowsPopupMenuUI$MnemonicListener
-instanceKlass java/awt/event/FocusAdapter
-instanceKlass javax/swing/plaf/basic/BasicPopupMenuUI$MenuKeyboardHelper
-instanceKlass javax/swing/MenuSelectionManager
-instanceKlass javax/swing/plaf/basic/BasicPopupMenuUI$MouseGrabber
-instanceKlass javax/swing/event/ChangeListener
-instanceKlass javax/swing/plaf/basic/BasicPopupMenuUI$BasicMenuKeyListener
-instanceKlass javax/swing/event/MenuKeyListener
-instanceKlass javax/swing/plaf/basic/BasicPopupMenuUI$BasicPopupMenuListener
-instanceKlass javax/swing/event/PopupMenuListener
-instanceKlass javax/swing/BoxLayout
-instanceKlass javax/swing/plaf/basic/BasicLookAndFeel$1
-instanceKlass java/awt/Toolkit$SelectiveAWTEventListener
-instanceKlass javax/swing/plaf/basic/BasicLookAndFeel$AWTEventHelper
-instanceKlass javax/swing/Popup
-instanceKlass javax/swing/DefaultSingleSelectionModel
-instanceKlass javax/swing/SingleSelectionModel
-instanceKlass javax/swing/plaf/basic/BasicComboPopup$EmptyListModelClass
-instanceKlass javax/swing/plaf/basic/ComboPopup
-instanceKlass java/awt/Graphics
-instanceKlass com/sun/java/swing/plaf/windows/WindowsComboBoxUI$2
-instanceKlass java/awt/event/MouseAdapter
-instanceKlass java/awt/AWTEventMulticaster
-instanceKlass java/awt/event/MouseWheelListener
-instanceKlass java/awt/event/HierarchyBoundsListener
-instanceKlass java/awt/event/HierarchyListener
-instanceKlass java/awt/event/InputMethodListener
-instanceKlass java/awt/event/TextListener
-instanceKlass java/awt/event/AdjustmentListener
-instanceKlass java/awt/event/ItemListener
-instanceKlass java/awt/event/WindowStateListener
-instanceKlass java/awt/event/WindowFocusListener
-instanceKlass java/awt/event/MouseMotionListener
-instanceKlass java/awt/event/MouseListener
-instanceKlass java/awt/event/KeyListener
-instanceKlass java/awt/event/FocusListener
-instanceKlass java/awt/event/ContainerListener
-instanceKlass javax/swing/AncestorNotifier
-instanceKlass java/awt/event/ComponentListener
-instanceKlass javax/swing/ClientPropertyKey$1
-instanceKlass sun/awt/AWTAccessor$ClientPropertyKeyAccessor
-instanceKlass javax/swing/JComboBox$1
-instanceKlass javax/swing/event/AncestorListener
-instanceKlass javax/swing/AbstractListModel
-instanceKlass javax/swing/MutableComboBoxModel
-instanceKlass javax/swing/plaf/basic/BasicHTML
-instanceKlass database/access/DbConnectionAccess
-instanceKlass database/Connector
-instanceKlass javax/swing/ActionMap
-instanceKlass java/awt/event/KeyEvent$1
-instanceKlass sun/awt/AWTAccessor$KeyEventAccessor
-instanceKlass java/awt/VKCollection
-instanceKlass javax/swing/InputMap
-instanceKlass javax/swing/LayoutComparator
-instanceKlass javax/swing/RepaintManager$PaintManager
-instanceKlass javax/swing/JRootPane$RootLayout
-instanceKlass javax/swing/ArrayTable
-instanceKlass com/sun/java/swing/SwingUtilities3
-instanceKlass javax/swing/RepaintManager$ProcessingRunnable
-instanceKlass sun/font/TrueTypeFont$DirectoryEntry
-instanceKlass java/nio/DirectByteBuffer$Deallocator
-instanceKlass sun/nio/ch/Util$BufferCache
-instanceKlass sun/nio/ch/Util
-instanceKlass sun/nio/ch/IOStatus
-instanceKlass sun/nio/ch/NativeThread
-instanceKlass java/nio/channels/spi/AbstractInterruptibleChannel$1
-instanceKlass sun/nio/ch/NativeDispatcher
-instanceKlass sun/nio/ch/NativeThreadSet
-instanceKlass sun/nio/ch/IOUtil$1
-instanceKlass sun/nio/ch/IOUtil
-instanceKlass java/nio/file/attribute/FileAttribute
-instanceKlass java/nio/channels/spi/AbstractInterruptibleChannel
-instanceKlass java/nio/channels/InterruptibleChannel
-instanceKlass java/nio/channels/ScatteringByteChannel
-instanceKlass java/nio/channels/GatheringByteChannel
-instanceKlass java/nio/channels/SeekableByteChannel
-instanceKlass java/nio/channels/ByteChannel
-instanceKlass java/nio/channels/WritableByteChannel
-instanceKlass java/nio/channels/ReadableByteChannel
-instanceKlass java/nio/channels/Channel
-instanceKlass java/io/RandomAccessFile
-instanceKlass java/io/DataOutput
-instanceKlass sun/font/TrueTypeFont$1
-instanceKlass sun/font/TrueTypeFont$TTDisposerRecord
-instanceKlass sun/font/SunFontManager$5
-instanceKlass sun/font/SunFontManager$FamilyDescription
-instanceKlass sun/awt/Win32FontManager$2
-instanceKlass java/util/TreeMap$Entry
-instanceKlass java/lang/ProcessEnvironment$CheckedEntry
-instanceKlass java/lang/ProcessEnvironment$CheckedEntrySet$1
-instanceKlass java/util/NavigableMap
-instanceKlass java/util/SortedMap
-instanceKlass java/util/Collections$UnmodifiableMap
-instanceKlass java/lang/ProcessEnvironment$EntryComparator
-instanceKlass java/lang/ProcessEnvironment$NameComparator
-instanceKlass sun/font/SunFontManager$3
-instanceKlass sun/font/FontFamily
-instanceKlass sun/font/Font2DHandle
-instanceKlass sun/font/CompositeFontDescriptor
-instanceKlass sun/awt/FontDescriptor
-instanceKlass sun/awt/FontConfiguration
-instanceKlass sun/font/SunFontManager$FontRegistrationInfo
-instanceKlass sun/font/SunFontManager$2
-instanceKlass sun/awt/Win32FontManager$1
-instanceKlass sun/font/GlyphList
-instanceKlass sun/font/StrikeCache$1
-instanceKlass sun/font/StrikeCache
-instanceKlass sun/font/FontStrike
-instanceKlass sun/font/CharToGlyphMapper
-instanceKlass java/awt/geom/Path2D
-instanceKlass sun/font/StrikeMetrics
-instanceKlass sun/font/Font2D
-instanceKlass sun/font/FontManagerNativeLibrary$1
-instanceKlass sun/font/FontManagerNativeLibrary
-instanceKlass sun/font/SunFontManager$1
-instanceKlass sun/font/SunFontManager$T1Filter
-instanceKlass sun/font/SunFontManager$TTFilter
-instanceKlass java/io/FilenameFilter
-instanceKlass sun/font/SunFontManager
-instanceKlass sun/font/FontManagerForSGE
-instanceKlass sun/font/FontManager
-instanceKlass sun/java2d/FontSupport
-instanceKlass sun/font/FontManagerFactory$1
-instanceKlass sun/font/FontManagerFactory
-instanceKlass sun/font/FontUtilities$1
-instanceKlass sun/font/FontUtilities
-instanceKlass sun/reflect/misc/Trampoline
-instanceKlass sun/net/www/protocol/jar/JarFileFactory
-instanceKlass sun/net/www/protocol/jar/URLJarFile$URLJarFileCloseController
-instanceKlass sun/reflect/misc/MethodUtil$1
-instanceKlass java/awt/FlowLayout
-instanceKlass javax/swing/event/EventListenerList
-instanceKlass java/awt/Window$WindowDisposerRecord
-instanceKlass java/awt/geom/RectangularShape
-instanceKlass java/awt/Shape
-instanceKlass java/awt/BorderLayout
-instanceKlass java/awt/LayoutManager2
-instanceKlass java/awt/GraphicsConfiguration
-instanceKlass sun/awt/image/SurfaceManager$ProxiedGraphicsConfig
-instanceKlass sun/java2d/pipe/hw/AccelGraphicsConfig
-instanceKlass sun/java2d/pipe/hw/BufferedContextProvider
-instanceKlass sun/java2d/pipe/BufferedContext
-instanceKlass sun/java2d/pipe/hw/ContextCapabilities
-instanceKlass sun/java2d/d3d/D3DGraphicsDevice$1
-instanceKlass sun/java2d/d3d/D3DGraphicsDevice$1Result
-instanceKlass sun/java2d/d3d/D3DRenderQueue$1
-instanceKlass sun/java2d/pipe/RenderBuffer
-instanceKlass sun/java2d/pipe/RenderQueue
-instanceKlass sun/misc/PerfCounter$WindowsClientCounters
-instanceKlass java/awt/GraphicsDevice
-instanceKlass java/awt/Cursor$1
-instanceKlass sun/awt/AWTAccessor$CursorAccessor
-instanceKlass java/awt/Cursor
-instanceKlass org/jpedal/examples/viewer/Viewer
-instanceKlass java/awt/Component$3
-instanceKlass java/awt/ComponentOrientation
-instanceKlass java/awt/Frame$1
-instanceKlass sun/awt/AWTAccessor$FrameAccessor
-instanceKlass java/awt/Window$1
-instanceKlass sun/awt/AWTAccessor$WindowAccessor
-instanceKlass java/util/concurrent/atomic/AtomicBoolean
-instanceKlass java/awt/event/WindowListener
-instanceKlass javax/swing/Scrollable
-instanceKlass javax/swing/tree/MutableTreeNode
-instanceKlass javax/swing/tree/TreeNode
-instanceKlass javax/swing/GroupLayout$Spring
-instanceKlass javax/swing/event/ListDataListener
-instanceKlass javax/swing/ComboBoxModel
-instanceKlass javax/swing/ListModel
-instanceKlass java/awt/event/ActionListener
-instanceKlass javax/swing/ScrollPaneConstants
-instanceKlass javax/swing/RootPaneContainer
-instanceKlass javax/swing/WindowConstants
-instanceKlass utils/ConfigProperties
-instanceKlass java/lang/Package
-instanceKlass java/awt/TrayIcon
-instanceKlass java/awt/MenuComponent
-instanceKlass java/awt/EventQueue$3
-instanceKlass sun/awt/dnd/SunDragSourceContextPeer
-instanceKlass java/awt/dnd/peer/DragSourceContextPeer
-instanceKlass sun/awt/EventQueueDelegate
-instanceKlass java/awt/ModalEventFilter
-instanceKlass java/awt/EventDispatchThread$HierarchyEventFilter
-instanceKlass java/awt/EventFilter
-instanceKlass sun/awt/EventQueueItem
-instanceKlass java/awt/EventDispatchThread$1
-instanceKlass java/awt/Conditional
-instanceKlass java/awt/EventQueue$5
-instanceKlass java/awt/event/InvocationEvent$1
-instanceKlass sun/awt/AWTAccessor$InvocationEventAccessor
-instanceKlass java/awt/ActiveEvent
-instanceKlass ClientApp$1
-instanceKlass com/sun/java/swing/plaf/windows/WindowsLookAndFeel$SkinIcon
-instanceKlass javax/swing/BorderFactory
-instanceKlass com/sun/java/swing/plaf/windows/WindowsLookAndFeel$1
-instanceKlass com/sun/java/swing/plaf/windows/WindowsIconFactory$RadioButtonMenuItemIcon
-instanceKlass javax/swing/plaf/basic/BasicIconFactory$CheckBoxMenuItemIcon
-instanceKlass javax/swing/plaf/basic/BasicIconFactory$MenuItemCheckIcon
-instanceKlass javax/swing/plaf/basic/BasicIconFactory
-instanceKlass java/awt/ItemSelectable
-instanceKlass javax/swing/MenuElement
-instanceKlass javax/accessibility/Accessible
-instanceKlass com/sun/java/swing/plaf/windows/WindowsIconFactory$VistaMenuItemCheckIconFactory$VistaMenuItemCheckIcon
-instanceKlass com/sun/java/swing/plaf/windows/WindowsIconFactory$MenuItemCheckIcon
-instanceKlass sun/swing/SwingLazyValue$1
-instanceKlass com/sun/java/swing/plaf/windows/WindowsIconFactory$VistaMenuItemCheckIconFactory
-instanceKlass sun/swing/MenuItemCheckIconFactory
-instanceKlass com/sun/java/swing/plaf/windows/WindowsLookAndFeel$ActiveWindowsIcon
-instanceKlass com/sun/java/swing/plaf/windows/WindowsIconFactory$FrameButtonIcon
-instanceKlass com/sun/java/swing/plaf/windows/WindowsIconFactory
-instanceKlass com/sun/java/swing/plaf/windows/WindowsLookAndFeel$LazyWindowsIcon
-instanceKlass com/sun/java/swing/plaf/windows/XPStyle$Skin
-instanceKlass com/sun/java/swing/plaf/windows/WindowsLookAndFeel$XPColorValue$XPColorValueKey
-instanceKlass java/awt/geom/Point2D
-instanceKlass com/sun/java/swing/plaf/windows/WindowsLookAndFeel$XPValue
-instanceKlass com/sun/java/swing/plaf/windows/DesktopProperty
-instanceKlass com/sun/java/swing/plaf/windows/WindowsTreeUI$ExpandedIcon
-instanceKlass javax/swing/Icon
-instanceKlass java/awt/SystemColor$$Lambda$13
-instanceKlass sun/awt/AWTAccessor$SystemColorAccessor
-instanceKlass com/sun/java/swing/plaf/windows/WindowsRootPaneUI$AltProcessor
-instanceKlass sun/util/ResourceBundleEnumeration
-instanceKlass sun/swing/ImageCache
-instanceKlass sun/swing/CachedPainter
-instanceKlass com/sun/java/swing/plaf/windows/XPStyle
-instanceKlass javax/swing/plaf/ComponentUI
-instanceKlass javax/swing/JComponent$1
-instanceKlass java/awt/Container$1
-instanceKlass sun/awt/AWTAccessor$ContainerAccessor
-instanceKlass java/awt/LightweightDispatcher
-instanceKlass java/awt/event/AWTEventListener
-instanceKlass java/awt/LayoutManager
-instanceKlass javax/swing/TransferHandler$HasGetTransferHandler
-instanceKlass javax/swing/UIManager$2
-instanceKlass sun/awt/KeyboardFocusManagerPeerImpl
-instanceKlass java/awt/peer/KeyboardFocusManagerPeer
-instanceKlass java/awt/FocusTraversalPolicy
-instanceKlass java/awt/DefaultKeyboardFocusManager$1
-instanceKlass sun/awt/AWTAccessor$DefaultKeyboardFocusManagerAccessor
-instanceKlass java/awt/AWTKeyStroke$1
-instanceKlass java/awt/AWTKeyStroke
-instanceKlass java/awt/KeyboardFocusManager$1
-instanceKlass sun/awt/AWTAccessor$KeyboardFocusManagerAccessor
-instanceKlass java/awt/KeyboardFocusManager
-instanceKlass java/awt/KeyEventPostProcessor
-instanceKlass java/awt/KeyEventDispatcher
-instanceKlass sun/awt/PaintEventDispatcher
-instanceKlass javax/swing/RepaintManager$DisplayChangedHandler
-instanceKlass sun/swing/SwingAccessor
-instanceKlass javax/swing/RepaintManager$1
-instanceKlass sun/swing/SwingAccessor$RepaintManagerAccessor
-instanceKlass javax/swing/RepaintManager
-instanceKlass javax/swing/plaf/metal/OceanTheme$6
-instanceKlass javax/swing/plaf/metal/OceanTheme$5
-instanceKlass javax/swing/plaf/metal/OceanTheme$4
-instanceKlass javax/swing/plaf/metal/OceanTheme$3
-instanceKlass javax/swing/plaf/metal/OceanTheme$2
-instanceKlass javax/swing/plaf/metal/OceanTheme$1
-instanceKlass java/util/EventListenerProxy
-instanceKlass sun/swing/SwingUtilities2$AATextInfo
-instanceKlass sun/misc/FloatingDecimal$ASCIIToBinaryBuffer
-instanceKlass sun/java2d/SunGraphicsEnvironment$1
-instanceKlass sun/awt/SunDisplayChanger
-instanceKlass sun/java2d/SurfaceManagerFactory
-instanceKlass sun/java2d/windows/WindowsFlags$1
-instanceKlass sun/java2d/windows/WindowsFlags
-instanceKlass javax/swing/plaf/metal/MetalLookAndFeel$$Lambda$12
-instanceKlass javax/swing/plaf/metal/MetalLookAndFeel$$Lambda$11
-instanceKlass javax/swing/plaf/metal/MetalLookAndFeel$$Lambda$10
-instanceKlass javax/swing/plaf/metal/MetalLookAndFeel$$Lambda$9
-instanceKlass javax/swing/plaf/metal/MetalLookAndFeel$$Lambda$8
-instanceKlass javax/swing/plaf/metal/MetalLookAndFeel$FontActiveValue
-instanceKlass javax/swing/plaf/metal/MetalLookAndFeel$$Lambda$7
-instanceKlass javax/swing/plaf/metal/MetalLookAndFeel$$Lambda$6
-instanceKlass javax/swing/UIDefaults$LazyInputMap
-instanceKlass java/awt/geom/Dimension2D
-instanceKlass javax/swing/plaf/basic/BasicLookAndFeel$2
-instanceKlass sun/swing/SwingUtilities2$2
-instanceKlass javax/swing/border/AbstractBorder
-instanceKlass javax/swing/border/Border
-instanceKlass javax/swing/UIDefaults$ActiveValue
-instanceKlass sun/swing/SwingLazyValue
-instanceKlass javax/swing/UIDefaults$LazyValue
-instanceKlass javax/swing/plaf/metal/DefaultMetalTheme$FontDelegate
-instanceKlass javax/swing/plaf/UIResource
-instanceKlass javax/swing/plaf/metal/MetalTheme
-instanceKlass sun/swing/DefaultLookup
-instanceKlass javax/swing/LookAndFeel
-instanceKlass javax/swing/UIManager$1
-instanceKlass javax/swing/UIManager$LAFState
-instanceKlass javax/swing/SwingUtilities
-instanceKlass javax/swing/SwingConstants
-instanceKlass sun/swing/SwingUtilities2$LSBCacheEntry
-instanceKlass sun/swing/StringUIClientPropertyKey
-instanceKlass sun/swing/UIClientPropertyKey
-instanceKlass java/awt/font/FontRenderContext
-instanceKlass sun/swing/SwingUtilities2
-instanceKlass java/util/IdentityHashMap$IdentityHashMapIterator
-instanceKlass sun/awt/PostEventQueue
-instanceKlass sun/awt/MostRecentKeyValue
-instanceKlass java/awt/Queue
-instanceKlass java/awt/EventQueue$2
-instanceKlass sun/awt/AWTAccessor$EventQueueAccessor
-instanceKlass java/awt/EventQueue$1
-instanceKlass java/awt/EventQueue
-instanceKlass sun/awt/AppContext$1
-instanceKlass sun/awt/AppContext$2
-instanceKlass sun/awt/AppContext$3
-instanceKlass sun/awt/AppContext$6
-instanceKlass sun/misc/JavaAWTAccess
-instanceKlass sun/awt/AppContext$GetAppContextLock
-instanceKlass sun/awt/AppContext
-instanceKlass java/awt/Toolkit$DesktopPropertyChangeSupport$1
-instanceKlass java/util/ComparableTimSort
-instanceKlass java/util/Arrays$LegacyMergeSort
-instanceKlass sun/awt/SunHints$Value
-instanceKlass java/awt/RenderingHints$Key
-instanceKlass sun/awt/SunHints
-instanceKlass java/awt/RenderingHints
-instanceKlass sun/awt/windows/WDesktopProperties$WinPlaySound
-instanceKlass java/awt/Color
-instanceKlass java/awt/Paint
-instanceKlass java/util/concurrent/locks/ReentrantReadWriteLock$WriteLock
-instanceKlass java/util/concurrent/locks/ReentrantReadWriteLock$ReadLock
-instanceKlass sun/nio/ch/Interruptible
-instanceKlass java/util/concurrent/locks/ReentrantReadWriteLock
-instanceKlass java/util/concurrent/locks/ReadWriteLock
-instanceKlass sun/awt/windows/ThemeReader
-instanceKlass sun/awt/windows/WDesktopProperties
-instanceKlass sun/awt/windows/WToolkit$$Lambda$5
-instanceKlass sun/awt/windows/WToolkit$$Lambda$4
-instanceKlass sun/awt/windows/WToolkit$$Lambda$3
-instanceKlass sun/awt/windows/WToolkit$$Lambda$2
-instanceKlass sun/awt/AWTAutoShutdown
-instanceKlass sun/misc/ThreadGroupUtils
-instanceKlass java/lang/invoke/InnerClassLambdaMetafactory$1
-instanceKlass sun/java2d/Disposer$$Lambda$1
-instanceKlass java/lang/invoke/InfoFromMemberName
-instanceKlass java/lang/invoke/MethodHandleInfo
-instanceKlass sun/security/util/SecurityConstants
-instanceKlass java/security/AccessController$1
-instanceKlass java/lang/invoke/AbstractValidatingLambdaMetafactory
-instanceKlass jdk/internal/org/objectweb/asm/FieldVisitor
-instanceKlass java/lang/invoke/InvokerBytecodeGenerator$CpPatch
-instanceKlass java/lang/invoke/BoundMethodHandle$Factory
-instanceKlass java/lang/invoke/BoundMethodHandle$SpeciesData
-instanceKlass java/lang/ClassValue$Version
-instanceKlass java/lang/ClassValue$Identity
-instanceKlass java/lang/ClassValue
-instanceKlass java/util/EnumMap$1
-instanceKlass sun/invoke/util/ValueConversions$1
-instanceKlass java/lang/invoke/MethodHandleImpl$Lazy
-instanceKlass sun/invoke/empty/Empty
-instanceKlass sun/invoke/util/VerifyType
-instanceKlass jdk/internal/org/objectweb/asm/AnnotationVisitor
-instanceKlass jdk/internal/org/objectweb/asm/Frame
-instanceKlass jdk/internal/org/objectweb/asm/Label
-instanceKlass jdk/internal/org/objectweb/asm/Type
-instanceKlass jdk/internal/org/objectweb/asm/MethodVisitor
-instanceKlass jdk/internal/org/objectweb/asm/Item
-instanceKlass jdk/internal/org/objectweb/asm/ByteVector
-instanceKlass jdk/internal/org/objectweb/asm/ClassVisitor
-instanceKlass java/lang/invoke/InvokerBytecodeGenerator
-instanceKlass java/lang/invoke/DirectMethodHandle$Lazy
-instanceKlass java/util/Collections$UnmodifiableCollection$1
-instanceKlass sun/invoke/util/BytecodeDescriptor
-instanceKlass java/util/AbstractList$Itr
-instanceKlass java/util/SubList$1
-instanceKlass java/lang/invoke/LambdaForm$Name
-instanceKlass sun/invoke/util/ValueConversions
-instanceKlass java/lang/Long$LongCache
-instanceKlass java/lang/Character$CharacterCache
-instanceKlass java/lang/Short$ShortCache
-instanceKlass sun/invoke/util/Wrapper$Format
-instanceKlass sun/invoke/util/VerifyAccess
-instanceKlass java/lang/Byte$ByteCache
-instanceKlass java/lang/invoke/MethodHandles
-instanceKlass java/lang/invoke/MethodHandles$Lookup
-instanceKlass java/lang/invoke/LambdaMetafactory
-instanceKlass sun/java2d/Disposer$1
-instanceKlass sun/java2d/Disposer
-instanceKlass sun/awt/windows/WToolkit$ToolkitDisposer
-instanceKlass sun/java2d/DisposerRecord
-instanceKlass sun/misc/PerformanceLogger$TimeData
-instanceKlass sun/misc/PerformanceLogger
-instanceKlass sun/awt/SunToolkit$ModalityListenerList
-instanceKlass sun/awt/ModalityListener
-instanceKlass java/beans/PropertyChangeListener
-instanceKlass java/beans/ChangeListenerMap
-instanceKlass java/beans/PropertyChangeSupport
-instanceKlass sun/awt/windows/WToolkit$2
-instanceKlass java/awt/Component$DummyRequestFocusController
-instanceKlass sun/awt/RequestFocusController
-instanceKlass java/awt/Component$1
-instanceKlass sun/awt/AWTAccessor$ComponentAccessor
-instanceKlass java/lang/Class$4
-instanceKlass java/text/AttributedCharacterIterator$Attribute
-instanceKlass sun/font/AttributeValues
-instanceKlass java/awt/geom/AffineTransform
-instanceKlass sun/font/FontAccess
-instanceKlass java/awt/Font
-instanceKlass sun/awt/windows/WObjectPeer
-instanceKlass java/awt/dnd/peer/DropTargetPeer
-instanceKlass java/awt/peer/ComponentPeer
-instanceKlass java/awt/event/InputEvent$1
-instanceKlass sun/awt/AWTAccessor$InputEventAccessor
-instanceKlass java/awt/event/NativeLibLoader$1
-instanceKlass java/awt/event/NativeLibLoader
-instanceKlass java/awt/AWTEvent$1
-instanceKlass sun/awt/AWTAccessor$AWTEventAccessor
-instanceKlass java/util/EventObject
-instanceKlass java/awt/Component$AWTTreeLock
-instanceKlass java/awt/Component
-instanceKlass java/awt/MenuContainer
-instanceKlass java/awt/image/ImageObserver
-instanceKlass sun/awt/DisplayChangedListener
-instanceKlass java/util/EventListener
-instanceKlass sun/awt/image/SurfaceManager
-instanceKlass sun/awt/image/SurfaceManager$ImageAccessor
-instanceKlass java/awt/ImageCapabilities
-instanceKlass java/awt/Image
-instanceKlass sun/java2d/DestSurfaceProvider
-instanceKlass sun/java2d/loops/RenderCache$Entry
-instanceKlass sun/java2d/loops/RenderCache
-instanceKlass sun/java2d/pipe/DrawImage
-instanceKlass sun/java2d/pipe/GeneralCompositePipe
-instanceKlass sun/java2d/pipe/SpanShapeRenderer
-instanceKlass sun/java2d/pipe/AlphaPaintPipe
-instanceKlass sun/java2d/pipe/AAShapePipe
-instanceKlass sun/java2d/pipe/RegionIterator
-instanceKlass sun/java2d/pipe/Region
-instanceKlass sun/java2d/pipe/SpanClipRenderer
-instanceKlass sun/java2d/pipe/PixelToShapeConverter
-instanceKlass sun/java2d/pipe/AlphaColorPipe
-instanceKlass sun/java2d/pipe/CompositePipe
-instanceKlass sun/java2d/pipe/GlyphListPipe
-instanceKlass sun/java2d/pipe/OutlineTextRenderer
-instanceKlass sun/java2d/pipe/RenderingEngine$1
-instanceKlass sun/java2d/pipe/RenderingEngine
-instanceKlass sun/java2d/pipe/LoopPipe
-instanceKlass sun/java2d/pipe/LoopBasedPipe
-instanceKlass sun/java2d/pipe/ParallelogramPipe
-instanceKlass sun/java2d/pipe/NullPipe
-instanceKlass sun/java2d/pipe/DrawImagePipe
-instanceKlass sun/java2d/pipe/TextPipe
-instanceKlass sun/java2d/pipe/ShapeDrawPipe
-instanceKlass sun/java2d/pipe/PixelFillPipe
-instanceKlass sun/java2d/pipe/PixelDrawPipe
-instanceKlass sun/java2d/StateTrackableDelegate$2
-instanceKlass sun/java2d/StateTrackableDelegate
-instanceKlass java/awt/color/ICC_Profile$1
-instanceKlass sun/java2d/cmm/ProfileActivator
-instanceKlass sun/java2d/cmm/ProfileDeferralMgr
-instanceKlass java/awt/color/ICC_Profile
-instanceKlass java/awt/color/ColorSpace
-instanceKlass java/awt/image/ColorModel$1
-instanceKlass java/awt/image/ColorModel
-instanceKlass sun/awt/image/PixelConverter
-instanceKlass sun/java2d/loops/SurfaceType
-instanceKlass sun/java2d/SurfaceData
-instanceKlass sun/java2d/Surface
-instanceKlass sun/java2d/StateTrackable
-instanceKlass sun/java2d/DisposerTarget
-instanceKlass java/awt/Transparency
-instanceKlass sun/awt/windows/WToolkit$1
-instanceKlass java/net/URLClassLoader$2
-instanceKlass java/util/ResourceBundle$Control$1
-instanceKlass sun/security/util/ManifestEntryVerifier$SunProviderHolder
-instanceKlass sun/nio/cs/Surrogate
-instanceKlass sun/nio/cs/Surrogate$Parser
-instanceKlass java/util/Base64$Encoder
-instanceKlass java/util/Base64$Decoder
-instanceKlass java/util/Base64
-instanceKlass java/security/cert/CertPath
-instanceKlass java/math/MutableBigInteger
-instanceKlass sun/security/provider/ByteArrayAccess
-instanceKlass java/security/spec/DSAParameterSpec
-instanceKlass java/security/spec/AlgorithmParameterSpec
-instanceKlass java/security/interfaces/DSAParams
-instanceKlass java/security/MessageDigestSpi
-instanceKlass java/security/interfaces/DSAPrivateKey
-instanceKlass java/security/PrivateKey
-instanceKlass javax/security/auth/Destroyable
-instanceKlass java/util/ArrayList$SubList$1
-instanceKlass java/util/ListIterator
-instanceKlass sun/security/x509/OIDMap$OIDInfo
-instanceKlass sun/security/x509/OIDMap
-instanceKlass sun/security/x509/PKIXExtensions
-instanceKlass sun/text/normalizer/NormalizerBase$1
-instanceKlass sun/text/normalizer/NormalizerBase$QuickCheckResult
-instanceKlass sun/text/normalizer/NormalizerBase$Mode
-instanceKlass sun/text/normalizer/NormalizerBase
-instanceKlass java/text/Normalizer
-instanceKlass sun/security/x509/CertificateExtensions
-instanceKlass sun/security/pkcs/PKCS9Attribute
-instanceKlass sun/security/x509/AVAKeyword
-instanceKlass sun/security/jca/ServiceId
-instanceKlass java/security/SignatureSpi
-instanceKlass java/util/regex/Matcher
-instanceKlass java/util/regex/MatchResult
-instanceKlass java/util/regex/Pattern$TreeInfo
-instanceKlass java/util/regex/Pattern$Node
-instanceKlass java/util/regex/Pattern
-instanceKlass sun/security/pkcs/SignerInfo
-instanceKlass sun/security/util/MemoryCache$CacheEntry
-instanceKlass sun/security/x509/X509AttributeName
-instanceKlass java/security/interfaces/DSAPublicKey
-instanceKlass java/security/interfaces/DSAKey
-instanceKlass java/security/spec/DSAPublicKeySpec
-instanceKlass java/security/KeyFactorySpi
-instanceKlass sun/security/jca/ProviderList$ServiceList$1
-instanceKlass java/security/KeyFactory
-instanceKlass java/security/spec/EncodedKeySpec
-instanceKlass java/security/spec/KeySpec
-instanceKlass sun/security/util/BitArray
-instanceKlass java/security/AlgorithmParametersSpi
-instanceKlass java/security/AlgorithmParameters
-instanceKlass sun/security/x509/X509Key
-instanceKlass java/security/PublicKey
-instanceKlass java/security/Key
-instanceKlass sun/security/x509/CertificateX509Key
-instanceKlass sun/security/x509/CertificateValidity
-instanceKlass sun/security/x509/AVA
-instanceKlass sun/security/x509/RDN
-instanceKlass javax/security/auth/x500/X500Principal
-instanceKlass sun/security/x509/X500Name$1
-instanceKlass sun/security/x509/X500Name
-instanceKlass sun/security/x509/GeneralNameInterface
-instanceKlass sun/security/x509/CertificateAlgorithmId
-instanceKlass sun/security/x509/SerialNumber
-instanceKlass sun/security/x509/CertificateSerialNumber
-instanceKlass sun/security/x509/CertificateVersion
-instanceKlass sun/security/x509/X509CertInfo
-instanceKlass sun/security/x509/CertAttrSet
-instanceKlass sun/security/util/Cache$EqualByteArray
-instanceKlass java/security/cert/X509Extension
-instanceKlass sun/security/jca/GetInstance$Instance
-instanceKlass sun/security/util/Cache
-instanceKlass java/security/Provider$UString
-instanceKlass java/security/Provider$Service
-instanceKlass sun/security/provider/NativePRNG$NonBlocking
-instanceKlass sun/security/provider/NativePRNG$Blocking
-instanceKlass sun/security/provider/NativePRNG
-instanceKlass sun/security/provider/SunEntries$1
-instanceKlass sun/security/provider/SunEntries
-instanceKlass sun/security/jca/ProviderConfig$2
-instanceKlass sun/security/jca/GetInstance
-instanceKlass java/security/cert/CertificateFactorySpi
-instanceKlass java/security/cert/CertificateFactory
-instanceKlass sun/security/x509/AlgorithmId
-instanceKlass sun/security/util/ByteArrayTagOrder
-instanceKlass sun/security/util/ByteArrayLexOrder
-instanceKlass sun/security/util/DerEncoder
-instanceKlass sun/security/util/DerValue
-instanceKlass sun/security/util/ObjectIdentifier
-instanceKlass sun/security/pkcs/ContentInfo
-instanceKlass sun/security/util/DerIndefLenConverter
-instanceKlass sun/security/util/DerInputStream
-instanceKlass sun/security/pkcs/PKCS7
-instanceKlass java/security/Security$1
-instanceKlass java/security/Security
-instanceKlass sun/security/jca/ProviderList$2
-instanceKlass sun/misc/FDBigInteger
-instanceKlass sun/misc/FloatingDecimal$PreparedASCIIToBinaryBuffer
-instanceKlass sun/misc/FloatingDecimal$ASCIIToBinaryConverter
-instanceKlass sun/misc/FloatingDecimal$BinaryToASCIIBuffer
-instanceKlass sun/misc/FloatingDecimal$ExceptionalBinaryToASCIIBuffer
-instanceKlass sun/misc/FloatingDecimal$BinaryToASCIIConverter
-instanceKlass sun/misc/FloatingDecimal
-instanceKlass java/security/Provider$EngineDescription
-instanceKlass java/security/Provider$ServiceKey
-instanceKlass sun/security/jca/ProviderConfig
-instanceKlass sun/security/jca/ProviderList
-instanceKlass sun/security/jca/Providers
-instanceKlass sun/security/util/ManifestDigester$Entry
-instanceKlass sun/security/util/ManifestDigester$Position
-instanceKlass sun/security/util/ManifestDigester
-instanceKlass sun/security/util/SignatureFileVerifier
-instanceKlass sun/security/util/ManifestEntryVerifier
-instanceKlass java/util/jar/JarVerifier$3
-instanceKlass java/security/CodeSigner
-instanceKlass java/util/jar/JarVerifier
-instanceKlass sun/misc/ASCIICaseInsensitiveComparator
-instanceKlass java/util/jar/Attributes$Name
-instanceKlass java/util/jar/Attributes
-instanceKlass java/util/jar/Manifest
-instanceKlass sun/misc/IOUtils
-instanceKlass java/util/zip/ZStreamRef
-instanceKlass java/util/zip/Inflater
-instanceKlass sun/util/calendar/CalendarUtils
-instanceKlass sun/util/calendar/CalendarDate
-instanceKlass java/util/TimeZone$1
-instanceKlass java/util/zip/CRC32
-instanceKlass java/util/zip/Checksum
-instanceKlass sun/util/calendar/ZoneInfoFile$ZoneOffsetTransitionRule
-instanceKlass java/io/DataInput
-instanceKlass sun/util/calendar/ZoneInfoFile$1
-instanceKlass sun/util/calendar/ZoneInfoFile
-instanceKlass java/util/TimeZone
-instanceKlass sun/util/calendar/CalendarSystem
-instanceKlass java/util/Date
-instanceKlass java/util/zip/ZipUtils
-instanceKlass java/util/zip/ZipEntry
-instanceKlass sun/misc/ExtensionDependency
-instanceKlass sun/misc/JarIndex
-instanceKlass java/util/zip/ZipCoder
-instanceKlass java/nio/charset/StandardCharsets
-instanceKlass java/util/jar/JavaUtilJarAccessImpl
-instanceKlass sun/misc/JavaUtilJarAccess
-instanceKlass java/util/logging/Logger$1
-instanceKlass java/util/Collections$SynchronizedMap
-instanceKlass java/util/concurrent/locks/AbstractQueuedSynchronizer$ConditionObject
-instanceKlass java/util/concurrent/locks/Condition
-instanceKlass sun/security/action/GetBooleanAction
-instanceKlass sun/awt/KeyboardFocusManagerPeerProvider
-instanceKlass sun/awt/InputMethodSupport
-instanceKlass sun/awt/ComponentFactory
-instanceKlass sun/awt/WindowClosingListener
-instanceKlass sun/awt/WindowClosingSupport
-instanceKlass java/awt/Toolkit$2
-instanceKlass java/awt/Insets
-instanceKlass java/awt/GraphicsEnvironment$1
-instanceKlass java/awt/GraphicsEnvironment
-instanceKlass java/awt/Toolkit$1
-instanceKlass java/awt/Toolkit$3
-instanceKlass java/util/LinkedList$Node
-instanceKlass java/util/Deque
-instanceKlass java/util/Queue
-instanceKlass java/util/ResourceBundle$CacheKeyReference
-instanceKlass java/util/ResourceBundle$CacheKey
-instanceKlass java/util/ResourceBundle$RBClassLoader$1
-instanceKlass java/net/URLClassLoader$3$1
-instanceKlass sun/misc/FileURLMapper
-instanceKlass sun/misc/URLClassPath$JarLoader$1
-instanceKlass sun/misc/CompoundEnumeration
-instanceKlass java/net/URLClassLoader$3
-instanceKlass sun/misc/URLClassPath$1
-instanceKlass java/lang/ClassLoader$2
-instanceKlass sun/misc/URLClassPath$2
-instanceKlass sun/misc/Launcher$BootClassPathHolder$1
-instanceKlass sun/misc/Launcher$BootClassPathHolder
-instanceKlass java/util/LinkedHashMap$LinkedHashIterator
-instanceKlass java/util/ServiceLoader$1
-instanceKlass java/util/ServiceLoader$LazyIterator
-instanceKlass java/util/ServiceLoader
-instanceKlass java/util/spi/ResourceBundleControlProvider
-instanceKlass java/util/ResourceBundle
-instanceKlass java/util/ResourceBundle$Control
-instanceKlass java/awt/Toolkit$5
-instanceKlass sun/awt/AWTAccessor
-instanceKlass java/awt/Toolkit$4
-instanceKlass sun/awt/AWTAccessor$ToolkitAccessor
-instanceKlass java/awt/Toolkit
-instanceKlass sun/awt/OSInfo$1
-instanceKlass sun/awt/OSInfo$WindowsVersion
-instanceKlass sun/awt/OSInfo
-instanceKlass javax/swing/UIManager$LookAndFeelInfo
-instanceKlass javax/swing/UIManager
-instanceKlass java/util/logging/LogManager$5
-instanceKlass java/util/HashMap$HashIterator
-instanceKlass sun/reflect/UnsafeFieldAccessorFactory
-instanceKlass java/util/logging/LoggingProxyImpl
-instanceKlass sun/util/logging/LoggingProxy
-instanceKlass sun/util/logging/LoggingSupport$1
-instanceKlass sun/util/logging/LoggingSupport
-instanceKlass sun/util/logging/PlatformLogger$LoggerProxy
-instanceKlass sun/util/logging/PlatformLogger$1
-instanceKlass sun/util/logging/PlatformLogger
-instanceKlass java/util/Properties$LineReader
-instanceKlass java/util/logging/LogManager$LoggerContext$1
-instanceKlass java/util/ArrayList$Itr
-instanceKlass java/util/logging/LogManager$3
-instanceKlass java/util/logging/LogManager$2
-instanceKlass java/lang/Shutdown$Lock
-instanceKlass java/lang/Shutdown
-instanceKlass java/lang/ApplicationShutdownHooks$1
-instanceKlass java/lang/ApplicationShutdownHooks
-instanceKlass java/util/logging/LogManager$LogNode
-instanceKlass java/util/logging/LogManager$LoggerContext
-instanceKlass java/util/logging/LogManager$1
-instanceKlass java/util/logging/LogManager
-instanceKlass java/util/concurrent/locks/AbstractQueuedSynchronizer$Node
-instanceKlass java/util/concurrent/locks/AbstractOwnableSynchronizer
-instanceKlass java/util/concurrent/CopyOnWriteArrayList
-instanceKlass java/util/logging/Logger$LoggerBundle
-instanceKlass java/util/logging/Level$KnownLevel
-instanceKlass java/util/logging/Level
-instanceKlass java/util/logging/Handler
-instanceKlass java/util/logging/Logger
-instanceKlass java/lang/Class$MethodArray
-instanceKlass sun/launcher/LauncherHelper$FXHelper
-instanceKlass ClientApp
-instanceKlass java/io/FilePermission$1
-instanceKlass sun/net/www/MessageHeader
-instanceKlass java/net/URLConnection
-instanceKlass java/security/PermissionCollection
-instanceKlass sun/nio/ch/DirectBuffer
-instanceKlass sun/misc/PerfCounter$CoreCounters
-instanceKlass sun/misc/Perf
-instanceKlass sun/misc/Perf$GetPerfAction
-instanceKlass sun/misc/PerfCounter
-instanceKlass sun/nio/ByteBuffered
-instanceKlass sun/misc/Resource
-instanceKlass sun/nio/cs/ThreadLocalCoders$Cache
-instanceKlass sun/nio/cs/ThreadLocalCoders
-instanceKlass java/util/zip/ZipFile$1
-instanceKlass sun/misc/JavaUtilZipFileAccess
-instanceKlass java/util/zip/ZipFile
-instanceKlass java/util/zip/ZipConstants
-instanceKlass sun/misc/URLClassPath$Loader
-instanceKlass sun/misc/URLClassPath$3
-instanceKlass sun/net/util/URLUtil
-instanceKlass java/net/URLClassLoader$1
-instanceKlass java/lang/StringCoding$StringDecoder
-instanceKlass java/lang/ThreadLocal$ThreadLocalMap
-instanceKlass java/lang/StringCoding
-instanceKlass sun/misc/PostVMInitHook
-instanceKlass java/lang/Void
-instanceKlass java/lang/invoke/Invokers
-instanceKlass java/lang/invoke/MethodTypeForm
-instanceKlass java/lang/invoke/MethodHandleStatics$1
-instanceKlass java/lang/invoke/MethodHandleStatics
-instanceKlass java/lang/invoke/MethodType$ConcurrentWeakInternSet
-instanceKlass java/lang/invoke/LambdaForm$NamedFunction
-instanceKlass java/lang/invoke/MemberName$Factory
-instanceKlass java/lang/invoke/MethodHandleImpl
-instanceKlass java/lang/SystemClassLoaderAction
-instanceKlass sun/misc/Launcher$AppClassLoader$1
-instanceKlass sun/misc/URLClassPath
-instanceKlass java/security/Principal
-instanceKlass java/security/ProtectionDomain$Key
-instanceKlass java/security/CodeSource
-instanceKlass java/security/ProtectionDomain$3
-instanceKlass sun/misc/JavaSecurityProtectionDomainAccess
-instanceKlass java/security/ProtectionDomain$1
-instanceKlass sun/misc/JavaSecurityAccess
-instanceKlass java/net/URLStreamHandler
-instanceKlass java/net/Parts
-instanceKlass java/net/URL
-instanceKlass java/util/BitSet
-instanceKlass sun/net/www/ParseUtil
-instanceKlass java/io/FileInputStream$1
-instanceKlass java/lang/CharacterData
-instanceKlass sun/util/locale/LocaleUtils
-instanceKlass java/util/Locale$LocaleKey
-instanceKlass sun/util/locale/BaseLocale$Key
-instanceKlass sun/util/locale/BaseLocale
-instanceKlass java/util/concurrent/ConcurrentHashMap$CollectionView
-instanceKlass java/util/concurrent/ConcurrentHashMap$CounterCell
-instanceKlass java/util/concurrent/ConcurrentHashMap$Node
-instanceKlass java/util/concurrent/locks/ReentrantLock
-instanceKlass java/util/concurrent/locks/Lock
-instanceKlass java/util/concurrent/ConcurrentMap
-instanceKlass sun/util/locale/LocaleObjectCache
-instanceKlass java/util/Locale
-instanceKlass java/lang/reflect/Array
-instanceKlass java/nio/charset/CoderResult$Cache
-instanceKlass java/nio/charset/CoderResult
-instanceKlass java/nio/charset/CharsetDecoder
-instanceKlass sun/nio/cs/ArrayDecoder
-instanceKlass java/io/Reader
-instanceKlass java/lang/Readable
-instanceKlass sun/misc/MetaIndex
-instanceKlass sun/misc/Launcher$ExtClassLoader$1
-instanceKlass java/util/StringTokenizer
-instanceKlass java/net/URLClassLoader$7
-instanceKlass sun/misc/JavaNetAccess
-instanceKlass java/lang/ClassLoader$ParallelLoaders
-instanceKlass sun/security/util/Debug
-instanceKlass sun/misc/Launcher$Factory
-instanceKlass java/net/URLStreamHandlerFactory
-instanceKlass sun/misc/Launcher
-instanceKlass java/lang/Compiler$1
-instanceKlass java/lang/Compiler
-instanceKlass java/lang/System$2
-instanceKlass sun/misc/JavaLangAccess
-instanceKlass sun/io/Win32ErrorMode
-instanceKlass sun/misc/OSEnvironment
-instanceKlass java/lang/Integer$IntegerCache
-instanceKlass sun/misc/NativeSignalHandler
-instanceKlass sun/misc/Signal
-instanceKlass java/lang/Terminator$1
-instanceKlass sun/misc/SignalHandler
-instanceKlass java/lang/Terminator
-instanceKlass java/io/ExpiringCache$Entry
-instanceKlass java/lang/ClassLoader$3
-instanceKlass java/lang/ClassLoader$NativeLibrary
-instanceKlass java/nio/file/Path
-instanceKlass java/nio/file/Watchable
-instanceKlass java/lang/Enum
-instanceKlass java/io/ExpiringCache
-instanceKlass java/io/FileSystem
-instanceKlass java/io/DefaultFileSystem
-instanceKlass java/io/File
-instanceKlass java/nio/Bits$1
-instanceKlass sun/misc/JavaNioAccess
-instanceKlass java/nio/ByteOrder
-instanceKlass java/nio/Bits
-instanceKlass java/nio/charset/CodingErrorAction
-instanceKlass java/nio/charset/CharsetEncoder
-instanceKlass sun/nio/cs/ArrayEncoder
-instanceKlass sun/reflect/ReflectionFactory$1
-instanceKlass java/lang/Class$1
-instanceKlass sun/nio/cs/SingleByte
-instanceKlass sun/nio/cs/HistoricallyNamedCharset
-instanceKlass java/util/Arrays
-instanceKlass sun/security/action/GetPropertyAction
-instanceKlass java/lang/ThreadLocal
-instanceKlass java/nio/charset/spi/CharsetProvider
-instanceKlass java/nio/charset/Charset
-instanceKlass java/io/Writer
-instanceKlass sun/reflect/misc/ReflectUtil
-instanceKlass java/lang/reflect/ReflectAccess
-instanceKlass sun/reflect/LangReflectAccess
-instanceKlass java/lang/reflect/Modifier
-instanceKlass sun/reflect/annotation/AnnotationType
-instanceKlass java/lang/Class$AnnotationData
-instanceKlass sun/reflect/generics/repository/AbstractRepository
-instanceKlass java/lang/Class$Atomic
-instanceKlass java/lang/Class$ReflectionData
-instanceKlass java/lang/Class$3
-instanceKlass java/util/concurrent/atomic/AtomicReferenceFieldUpdater$AtomicReferenceFieldUpdaterImpl$1
-instanceKlass java/security/PrivilegedExceptionAction
-instanceKlass java/util/concurrent/atomic/AtomicReferenceFieldUpdater
-instanceKlass java/io/OutputStream
-instanceKlass java/io/Flushable
-instanceKlass java/util/HashMap$Node
-instanceKlass sun/reflect/Reflection
-instanceKlass java/util/Collections$UnmodifiableCollection
-instanceKlass sun/misc/SharedSecrets
-instanceKlass java/io/FileDescriptor$1
-instanceKlass sun/misc/JavaIOFileDescriptorAccess
-instanceKlass java/io/FileDescriptor
-instanceKlass java/io/InputStream
-instanceKlass java/io/Closeable
-instanceKlass java/lang/AutoCloseable
-instanceKlass sun/misc/Version
-instanceKlass java/lang/Runtime
-instanceKlass java/util/Hashtable$Enumerator
-instanceKlass java/util/Iterator
-instanceKlass java/util/Enumeration
-instanceKlass java/util/Objects
-instanceKlass java/util/Collections$SynchronizedCollection
-instanceKlass java/util/AbstractMap
-instanceKlass java/util/Collections
-instanceKlass java/util/Set
-instanceKlass java/lang/Math
-instanceKlass java/util/Hashtable$Entry
-instanceKlass java/util/Map$Entry
-instanceKlass sun/misc/VM
-instanceKlass java/lang/ref/ReferenceQueue$Lock
-instanceKlass java/lang/ref/ReferenceQueue
-instanceKlass java/lang/ref/Reference$Lock
-instanceKlass sun/reflect/ReflectionFactory
-instanceKlass java/util/AbstractCollection
-instanceKlass java/util/RandomAccess
-instanceKlass java/util/List
-instanceKlass java/util/Collection
-instanceKlass java/lang/Iterable
-instanceKlass java/security/cert/Certificate
-instanceKlass sun/reflect/ReflectionFactory$GetReflectionFactoryAction
-instanceKlass java/security/PrivilegedAction
-instanceKlass java/security/AccessController
-instanceKlass java/security/Permission
-instanceKlass java/security/Guard
-instanceKlass java/lang/String$CaseInsensitiveComparator
-instanceKlass java/util/Comparator
-instanceKlass java/io/ObjectStreamField
-instanceKlass java/lang/Number
-instanceKlass java/lang/Character
-instanceKlass java/lang/Boolean
-instanceKlass java/nio/Buffer
-instanceKlass java/lang/StackTraceElement
-instanceKlass sun/misc/Unsafe
-instanceKlass java/lang/AbstractStringBuilder
-instanceKlass java/lang/Appendable
-instanceKlass java/lang/invoke/CallSite
-instanceKlass java/lang/invoke/MethodType
-instanceKlass java/lang/invoke/LambdaForm
-instanceKlass java/lang/invoke/MethodHandleNatives
-instanceKlass java/lang/invoke/MemberName
-instanceKlass java/lang/invoke/MethodHandle
-instanceKlass sun/reflect/CallerSensitive
-instanceKlass java/lang/annotation/Annotation
-instanceKlass sun/reflect/FieldAccessor
-instanceKlass sun/reflect/ConstantPool
-instanceKlass sun/reflect/ConstructorAccessor
-instanceKlass sun/reflect/MethodAccessor
-instanceKlass sun/reflect/MagicAccessorImpl
-instanceKlass java/lang/reflect/Parameter
-instanceKlass java/lang/reflect/Member
-instanceKlass java/lang/reflect/AccessibleObject
-instanceKlass java/util/Dictionary
-instanceKlass java/util/Map
-instanceKlass java/lang/ThreadGroup
-instanceKlass java/lang/Thread$UncaughtExceptionHandler
-instanceKlass java/lang/Thread
-instanceKlass java/lang/Runnable
-instanceKlass java/lang/ref/Reference
-instanceKlass java/security/AccessControlContext
-instanceKlass java/security/ProtectionDomain
-instanceKlass java/lang/SecurityManager
-instanceKlass java/lang/Throwable
-instanceKlass java/lang/System
-instanceKlass java/lang/ClassLoader
-instanceKlass java/lang/Cloneable
-instanceKlass java/lang/Class
-instanceKlass java/lang/reflect/Type
-instanceKlass java/lang/reflect/GenericDeclaration
-instanceKlass java/lang/reflect/AnnotatedElement
-instanceKlass java/lang/String
-instanceKlass java/lang/CharSequence
-instanceKlass java/lang/Comparable
-instanceKlass java/io/Serializable
-ciInstanceKlass java/lang/Object 1 1 76 3 3 8 8 8 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 100 100 100 100 100 7 100 100 1 1 1 12 12 12 12 12 12 12 12 12 12 10 10 10 10 10 10 10 10 10 10
-ciInstanceKlass java/io/Serializable 1 0 5 1 1 100 100
-ciInstanceKlass java/lang/String 1 1 535 3 3 3 3 8 8 8 8 8 8 8 8 8 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 5 0 100 100 100 100 7 7 100 100 100 7 7 100 100 7 100 100 100 100 100 100 7 100 7 7 100 7 100 100 7 100 7 100 100 7 7 7 100 100 7 7 100 100 7 7 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 9 9 9 9 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 11 11 11 11 11 11 11 11 1
-staticfield java/lang/String serialPersistentFields [Ljava/io/ObjectStreamField; 0 [Ljava/io/ObjectStreamField;
-staticfield java/lang/String CASE_INSENSITIVE_ORDER Ljava/util/Comparator; java/lang/String$CaseInsensitiveComparator
-ciInstanceKlass java/lang/Class 1 1 1182 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 3 3 5 0 8 8 8 8 7 7 7 100 100 100 100 7 100 7 100 7 7 100 7 100 7 7 100 7 100 100 100 7 100 100 100 100 100 100 7 7 7 100 100 100 100 7 7 7 100 100 100 7 100 100 7 7 100 100 100 7 100 100 100 100 7 7 7 100 100 100 100 100 100 100 100 100 100 100 100 100 7 7 7 100 100 100 100 100 100 100 100 100 100 7 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 1 1 1 1 1 1 1
-staticfield java/lang/Class serialPersistentFields [Ljava/io/ObjectStreamField; 0 [Ljava/io/ObjectStreamField;
-ciInstanceKlass java/lang/Cloneable 1 0 5 1 1 100 100
-instanceKlass java/util/ResourceBundle$RBClassLoader
-instanceKlass java/security/SecureClassLoader
-instanceKlass sun/reflect/DelegatingClassLoader
-ciInstanceKlass java/lang/ClassLoader 1 1 839 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 100 100 100 7 7 7 100 100 100 100 7 100 100 7 7 7 7 100 7 100 100 100 100 7 7 100 100 7 100 7 7 100 100 100 100 7 100 100 7 7 100 7 7 100 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 100 100 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 11 11 11 11 11 11 1 1
-staticfield java/lang/ClassLoader nocerts [Ljava/security/cert/Certificate; 0 [Ljava/security/cert/Certificate;
-ciInstanceKlass java/lang/System 1 1 366 8 8 8 8 8 8 8 8 8 8 8 8 8 7 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 7 7 7 7 7 100 7 100 100 100 100 100 100 7 7 100 100 7 100 100 7 7 7 7 100 100 100 7 100 100 7 7 7 7 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 9 9 9 9 9 9 9 9 9 9 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 11
-staticfield java/lang/System in Ljava/io/InputStream; java/io/BufferedInputStream
-staticfield java/lang/System out Ljava/io/PrintStream; java/io/PrintStream
-staticfield java/lang/System err Ljava/io/PrintStream; java/io/PrintStream
-instanceKlass java/lang/Exception
-instanceKlass java/lang/Error
-ciInstanceKlass java/lang/Throwable 1 1 324 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 5 0 100 100 100 100 100 100 100 7 100 100 100 100 7 7 100 100 100 100 100 100 100 100 100 7 7 100 100 100 100 100 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 9 9 9 9 9 9 9 9 9 9 9 9 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 11 11 11 11 11 11 11 11 1 1 1 1
-staticfield java/lang/Throwable UNASSIGNED_STACK [Ljava/lang/StackTraceElement; 0 [Ljava/lang/StackTraceElement;
-staticfield java/lang/Throwable SUPPRESSED_SENTINEL Ljava/util/List; java/util/Collections$UnmodifiableRandomAccessList
-staticfield java/lang/Throwable EMPTY_THROWABLE_ARRAY [Ljava/lang/Throwable; 0 [Ljava/lang/Throwable;
-staticfield java/lang/Throwable $assertionsDisabled Z 1
-instanceKlass java/lang/VirtualMachineError
-instanceKlass java/lang/LinkageError
-instanceKlass java/lang/ThreadDeath
-ciInstanceKlass java/lang/Error 1 1 27 1 1 1 1 1 1 1 1 1 1 5 0 100 7 1 1 12 12 12 12 12 10 10 10 10 10
-ciInstanceKlass java/lang/ThreadDeath 0 0 15 1 1 1 1 1 1 1 1 5 0 100 100 12 10
-instanceKlass javax/swing/text/BadLocationException
-instanceKlass java/beans/PropertyVetoException
-instanceKlass java/lang/InterruptedException
-instanceKlass org/jpedal/exception/PdfException
-instanceKlass java/lang/CloneNotSupportedException
-instanceKlass javax/xml/parsers/ParserConfigurationException
-instanceKlass org/xml/sax/SAXException
-instanceKlass org/jdom2/JDOMException
-instanceKlass com/itextpdf/text/DocumentException
-instanceKlass java/sql/SQLException
-instanceKlass java/security/GeneralSecurityException
-instanceKlass java/io/IOException
-instanceKlass javax/swing/UnsupportedLookAndFeelException
-instanceKlass java/security/PrivilegedActionException
-instanceKlass java/lang/ReflectiveOperationException
-instanceKlass java/lang/RuntimeException
-ciInstanceKlass java/lang/Exception 1 1 27 1 1 1 1 1 1 1 1 1 1 5 0 100 7 1 1 12 12 12 12 12 10 10 10 10 10
-instanceKlass java/util/NoSuchElementException
-instanceKlass java/util/ConcurrentModificationException
-instanceKlass java/lang/IndexOutOfBoundsException
-instanceKlass java/lang/SecurityException
-instanceKlass java/lang/UnsupportedOperationException
-instanceKlass java/lang/invoke/WrongMethodTypeException
-instanceKlass java/lang/IllegalStateException
-instanceKlass java/lang/IllegalArgumentException
-instanceKlass java/lang/ArithmeticException
-instanceKlass java/lang/NullPointerException
-instanceKlass java/lang/IllegalMonitorStateException
-instanceKlass java/lang/ArrayStoreException
-instanceKlass java/lang/ClassCastException
-ciInstanceKlass java/lang/RuntimeException 1 1 27 1 1 1 1 1 1 1 1 1 1 5 0 100 100 1 1 12 12 12 12 12 10 10 10 10 10
-ciInstanceKlass java/lang/SecurityManager 0 0 372 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 100 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10
-ciInstanceKlass java/security/ProtectionDomain 1 1 264 8 8 8 8 8 8 8 8 8 8 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 100 100 100 7 100 100 100 100 100 100 100 100 100 7 7 100 7 7 7 100 7 7 100 100 100 7 7 100 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 9 9 9 9 9 9 9 9 9 9 9 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 11 11 11 11 11 11 11
-staticfield java/security/ProtectionDomain debug Lsun/security/util/Debug; null
-ciInstanceKlass java/security/AccessControlContext 1 1 299 8 8 8 8 8 8 8 8 8 8 8 8 8 7 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 100 7 100 100 7 100 100 7 100 100 7 100 100 7 100 100 7 100 7 100 100 100 100 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 9 9 9 9 9 9 9 9 9 9 9 9 9 9 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 11 11 11 11 11 11
-instanceKlass java/lang/reflect/InvocationTargetException
-instanceKlass java/lang/NoSuchFieldException
-instanceKlass java/lang/NoSuchMethodException
-instanceKlass java/lang/InstantiationException
-instanceKlass java/lang/IllegalAccessException
-instanceKlass java/lang/ClassNotFoundException
-ciInstanceKlass java/lang/ReflectiveOperationException 1 1 24 1 1 1 1 1 1 1 1 1 1 5 0 7 100 1 12 12 12 12 10 10 10 10
-ciInstanceKlass java/lang/ClassNotFoundException 1 1 29 1 1 1 1 1 1 1 1 1 1 1 1 1 1 5 0 100 7 100 1 1 1 12 12 12 9 10 10
-instanceKlass java/lang/IncompatibleClassChangeError
-instanceKlass java/lang/BootstrapMethodError
-instanceKlass java/lang/NoClassDefFoundError
-ciInstanceKlass java/lang/LinkageError 1 1 21 1 1 1 1 1 1 1 1 1 5 0 7 100 1 12 12 12 10 10 10
-ciInstanceKlass java/lang/NoClassDefFoundError 0 0 18 1 1 1 1 1 1 1 1 1 5 0 100 100 12 12 10 10
-ciInstanceKlass java/lang/ClassCastException 1 1 18 1 1 1 1 1 1 1 1 1 5 0 100 100 12 12 10 10
-ciInstanceKlass java/lang/ArrayStoreException 1 1 18 1 1 1 1 1 1 1 1 1 5 0 100 100 12 12 10 10
-instanceKlass java/lang/StackOverflowError
-instanceKlass java/lang/OutOfMemoryError
-ciInstanceKlass java/lang/VirtualMachineError 1 1 24 1 1 1 1 1 1 1 1 1 1 5 0 100 100 1 12 12 12 12 10 10 10 10
-ciInstanceKlass java/lang/OutOfMemoryError 1 1 18 1 1 1 1 1 1 1 1 1 5 0 100 100 12 12 10 10
-ciInstanceKlass java/lang/StackOverflowError 1 1 18 1 1 1 1 1 1 1 1 1 5 0 100 100 12 12 10 10
-ciInstanceKlass java/lang/IllegalMonitorStateException 1 1 18 1 1 1 1 1 1 1 1 1 5 0 100 100 12 12 10 10
-instanceKlass java/lang/ref/PhantomReference
-instanceKlass java/lang/ref/FinalReference
-instanceKlass java/lang/ref/WeakReference
-instanceKlass java/lang/ref/SoftReference
-ciInstanceKlass java/lang/ref/Reference 1 1 114 8 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 7 7 7 7 100 7 7 7 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 9 9 9 9 9 9 9 10 10 10 10 10 10 10 10 10 10 10 1 1
-instanceKlass sun/font/FontDesignMetrics$KeyReference
-instanceKlass sun/font/StrikeCache$SoftDisposerRef
-instanceKlass sun/misc/SoftCache$ValueCell
-instanceKlass sun/security/util/MemoryCache$SoftCacheEntry
-instanceKlass java/util/ResourceBundle$BundleReference
-instanceKlass sun/util/locale/LocaleObjectCache$CacheEntry
-ciInstanceKlass java/lang/ref/SoftReference 1 1 32 1 1 1 1 1 1 1 1 1 1 1 1 1 1 100 7 7 1 1 1 1 12 12 12 12 12 9 9 10 10 10
-instanceKlass javax/swing/text/DefaultStyledDocument$AbstractChangeHandler$DocReference
-instanceKlass javax/swing/text/GapContent$MarkData
-instanceKlass com/sun/java/swing/plaf/windows/DesktopProperty$WeakPCL
-instanceKlass javax/swing/plaf/metal/MetalLookAndFeel$AATextListener
-instanceKlass java/lang/ClassValue$Entry
-instanceKlass java/util/ResourceBundle$LoaderReference
-instanceKlass java/util/logging/LogManager$LoggerWeakRef
-instanceKlass java/lang/ThreadLocal$ThreadLocalMap$Entry
-instanceKlass java/lang/invoke/MethodType$ConcurrentWeakInternSet$WeakEntry
-instanceKlass java/util/WeakHashMap$Entry
-ciInstanceKlass java/lang/ref/WeakReference 1 1 17 1 1 1 1 1 1 7 100 1 1 1 1 12 12 10 10
-instanceKlass java/lang/ref/Finalizer
-ciInstanceKlass java/lang/ref/FinalReference 1 1 13 1 1 1 1 1 100 7 1 1 1 12 10
-instanceKlass sun/misc/Cleaner
-ciInstanceKlass java/lang/ref/PhantomReference 1 1 16 1 1 1 1 1 1 1 1 100 7 1 1 1 12 10
-ciInstanceKlass sun/misc/Cleaner 1 1 71 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 7 100 7 7 100 7 100 1 1 1 1 1 1 1 1 1 1 1 1 12 12 12 12 12 12 12 12 12 12 12 12 12 9 9 9 9 9 10 10 10 10 10 10 10 11
-staticfield sun/misc/Cleaner dummyQueue Ljava/lang/ref/ReferenceQueue; java/lang/ref/ReferenceQueue
-ciInstanceKlass java/lang/ref/Finalizer 1 1 145 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 7 7 7 7 100 7 7 100 100 100 7 7 100 7 100 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 9 9 9 9 9 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 11 1
-staticfield java/lang/ref/Finalizer lock Ljava/lang/Object; java/lang/Object
-instanceKlass org/jpedal/examples/viewer/gui/swing/SwingMousePageTurn$2
-instanceKlass org/jpedal/examples/viewer/gui/swing/SwingMousePageTurn$6
-instanceKlass org/jpedal/examples/viewer/gui/swing/SwingMousePageTurn$5
-instanceKlass org/jpedal/examples/viewer/gui/swing/SwingMouseListener$3
-instanceKlass org/jpedal/examples/viewer/Commands$23
-instanceKlass org/jpedal/examples/viewer/Commands$22
-instanceKlass org/jpedal/examples/viewer/Commands$27
-instanceKlass org/jpedal/examples/viewer/Commands$26
-instanceKlass sun/awt/image/ImageFetcher
-instanceKlass java/awt/EventDispatchThread
-instanceKlass java/util/logging/LogManager$Cleaner
-instanceKlass java/lang/ref/Finalizer$FinalizerThread
-instanceKlass java/lang/ref/Reference$ReferenceHandler
-ciInstanceKlass java/lang/Thread 1 1 543 3 3 8 8 8 8 8 8 8 8 8 8 8 8 7 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 3 3 100 100 100 100 100 100 100 100 100 100 100 100 7 7 7 100 7 7 7 7 100 100 100 100 100 100 7 7 100 100 100 100 100 100 7 100 100 100 100 100 100 100 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 11 11 11 11 11 11 11 1 1 1 1
-staticfield java/lang/Thread EMPTY_STACK_TRACE [Ljava/lang/StackTraceElement; 0 [Ljava/lang/StackTraceElement;
-staticfield java/lang/Thread SUBCLASS_IMPLEMENTATION_PERMISSION Ljava/lang/RuntimePermission; java/lang/RuntimePermission
-ciInstanceKlass java/lang/ThreadGroup 1 1 265 8 8 8 8 8 8 8 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 7 100 100 100 100 100 7 100 100 7 7 100 100 7 100 7 100 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 9 9 9 9 9 9 9 9 9 9 9 9 9 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 11 1
-ciInstanceKlass java/util/Map 1 1 129 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 100 100 100 100 100 100 100 100 100 100 100 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 10 10 10 11 11 11 11 11 11 11 11 11 11 11 11 11 11
-instanceKlass java/util/Hashtable
-ciInstanceKlass java/util/Dictionary 1 1 28 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 7 100 1 1 1 1 1 1 12 10
-instanceKlass javax/swing/UIDefaults
-instanceKlass java/util/Properties
-ciInstanceKlass java/util/Hashtable 1 1 394 3 3 4 4 8 8 8 8 8 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 3 3 5 0 100 100 100 100 100 100 100 100 100 100 7 100 100 7 100 7 100 100 100 7 100 7 7 100 7 7 7 100 100 7 7 7 100 7 100 100 100 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 9 9 9 9 9 9 9 9 9 9 9 9 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 11 11 11 11 11 11 11 11 11 11 11 11 1 1 1 1
-instanceKlass java/security/Provider
-ciInstanceKlass java/util/Properties 1 1 260 3 8 8 8 8 8 8 8 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 5 0 100 100 100 100 100 100 100 100 100 100 100 7 100 100 100 100 7 7 100 100 7 7 100 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 9 9 9 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 11 11 1 1
-staticfield java/util/Properties hexDigit [C 16
-instanceKlass java/lang/reflect/Executable
-instanceKlass java/lang/reflect/Field
-ciInstanceKlass java/lang/reflect/AccessibleObject 1 1 141 8 8 8 7 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 100 100 100 7 100 100 7 7 100 7 7 7 7 7 7 7 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 9 9 9 9 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 11 1
-staticfield java/lang/reflect/AccessibleObject ACCESS_PERMISSION Ljava/security/Permission; java/lang/reflect/ReflectPermission
-staticfield java/lang/reflect/AccessibleObject reflectionFactory Lsun/reflect/ReflectionFactory; sun/reflect/ReflectionFactory
-ciInstanceKlass java/lang/reflect/Field 1 1 354 8 8 8 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 100 100 100 100 100 100 7 7 100 100 100 100 100 100 100 7 7 7 100 100 100 100 100 100 100 100 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 1
-ciInstanceKlass java/lang/reflect/Parameter 0 0 207 8 8 8 8 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 9 9 9 9 9 9 9 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 11 11 11 11
-instanceKlass java/lang/reflect/Constructor
-instanceKlass java/lang/reflect/Method
-ciInstanceKlass java/lang/reflect/Executable 1 1 359 3 8 8 8 8 8 8 8 8 8 8 8 8 8 8 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 100 100 100 100 100 100 100 100 100 100 100 100 100 7 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 9 9 9 9 9 9 9 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 11 11 11 1
-ciInstanceKlass java/lang/reflect/Method 1 1 338 8 8 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 7 100 100 100 100 100 100 100 100 7 100 7 100 100 100 100 100 100 7 7 7 100 100 100 100 100 100 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 11 11 11
-ciInstanceKlass java/lang/reflect/Constructor 1 1 323 8 8 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 7 100 7 100 100 100 100 100 100 7 7 100 100 100 100 100 7 7 7 100 100 100 100 100 100 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 9 9 9 9 9 9 9 9 9 9 9 9 9 9 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 11 11 1
-instanceKlass sun/reflect/FieldAccessorImpl
-instanceKlass sun/reflect/ConstructorAccessorImpl
-instanceKlass sun/reflect/MethodAccessorImpl
-ciInstanceKlass sun/reflect/MagicAccessorImpl 1 1 10 1 1 1 1 1 7 100 12 10
-instanceKlass sun/reflect/GeneratedMethodAccessor5
-instanceKlass sun/reflect/GeneratedMethodAccessor4
-instanceKlass sun/reflect/GeneratedMethodAccessor3
-instanceKlass sun/reflect/GeneratedMethodAccessor2
-instanceKlass sun/reflect/GeneratedMethodAccessor1
-instanceKlass sun/reflect/DelegatingMethodAccessorImpl
-instanceKlass sun/reflect/NativeMethodAccessorImpl
-ciInstanceKlass sun/reflect/MethodAccessorImpl 1 1 19 1 1 1 1 1 1 1 1 1 1 1 100 100 7 100 100 12 10
-instanceKlass sun/reflect/GeneratedConstructorAccessor2
-instanceKlass sun/reflect/BootstrapConstructorAccessorImpl
-instanceKlass sun/reflect/GeneratedConstructorAccessor1
-instanceKlass sun/reflect/DelegatingConstructorAccessorImpl
-instanceKlass sun/reflect/NativeConstructorAccessorImpl
-ciInstanceKlass sun/reflect/ConstructorAccessorImpl 1 1 21 1 1 1 1 1 1 1 1 1 1 1 1 100 100 100 100 100 7 12 10
-ciInstanceKlass sun/reflect/DelegatingClassLoader 1 1 10 1 1 1 1 7 100 1 12 10
-ciInstanceKlass sun/reflect/ConstantPool 0 0 103 8 100 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 100 100 100 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 9 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10
-instanceKlass sun/reflect/UnsafeFieldAccessorImpl
-ciInstanceKlass sun/reflect/FieldAccessorImpl 1 1 53 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 100 100 100 100 7 1 1 1 1 1 1 1 1 1 1 1 1 1 1 12 10
-instanceKlass sun/reflect/UnsafeObjectFieldAccessorImpl
-instanceKlass sun/reflect/UnsafeStaticFieldAccessorImpl
-ciInstanceKlass sun/reflect/UnsafeFieldAccessorImpl 1 1 226 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 100 100 100 7 100 100 100 100 100 100 7 100 100 100 7 7 7 7 7 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 9 9 9 9 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10
-staticfield sun/reflect/UnsafeFieldAccessorImpl unsafe Lsun/misc/Unsafe; sun/misc/Unsafe
-instanceKlass sun/reflect/UnsafeQualifiedStaticFieldAccessorImpl
-ciInstanceKlass sun/reflect/UnsafeStaticFieldAccessorImpl 1 1 35 8 7 1 1 1 1 1 1 1 1 1 1 1 1 1 1 7 7 7 7 1 1 1 1 12 12 12 12 12 9 9 10 10 10
-ciInstanceKlass sun/reflect/CallerSensitive 0 0 15 1 1 1 1 1 1 1 100 100 100 1 1 1 1
-instanceKlass java/lang/invoke/SimpleMethodHandle
-instanceKlass java/lang/invoke/BoundMethodHandle
-instanceKlass java/lang/invoke/DirectMethodHandle
-ciInstanceKlass java/lang/invoke/MethodHandle 1 1 489 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 100 100 7 100 7 100 100 100 7 100 100 7 7 100 7 7 7 7 100 7 7 7 7 7 100 100 7 100 100 7 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 9 9 9 9 9 9 9 9 9 9 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 11 1 1
-staticfield java/lang/invoke/MethodHandle NF_reinvokerTarget Ljava/lang/invoke/LambdaForm$NamedFunction; java/lang/invoke/LambdaForm$NamedFunction
-staticfield java/lang/invoke/MethodHandle FORM_OFFSET J 16
-staticfield java/lang/invoke/MethodHandle $assertionsDisabled Z 1
-instanceKlass java/lang/invoke/DirectMethodHandle$Special
-instanceKlass java/lang/invoke/DirectMethodHandle$Accessor
-instanceKlass java/lang/invoke/DirectMethodHandle$Constructor
-ciInstanceKlass java/lang/invoke/DirectMethodHandle 1 1 686 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 7 7 7 7 7 7 7 7 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 100 100 7 7 7 100 7 100 7 7 100 7 100 7 7 100 7 7 100 7 7 100 7 7 100 7 7 7 100 100 100 7 7 7 7 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 1 1 1 1 1 1 1 1
-staticfield java/lang/invoke/DirectMethodHandle IMPL_NAMES Ljava/lang/invoke/MemberName$Factory; java/lang/invoke/MemberName$Factory
-staticfield java/lang/invoke/DirectMethodHandle ACCESSOR_FORMS [Ljava/lang/invoke/LambdaForm; 132 [Ljava/lang/invoke/LambdaForm;
-staticfield java/lang/invoke/DirectMethodHandle $assertionsDisabled Z 1
-ciInstanceKlass java/lang/invoke/MemberName 1 1 641 3 3 3 3 3 3 3 3 3 3 3 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 100 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 3 3 3 3 3 3 3 7 7 100 100 100 7 7 100 100 100 100 100 100 100 100 100 7 100 7 7 7 7 7 100 7 7 100 100 100 100 7 100 100 100 7 7 7 100 7 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 9 9 9 9 9 9 9 9 9 9 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 1 1 1
-staticfield java/lang/invoke/MemberName $assertionsDisabled Z 1
-ciInstanceKlass java/lang/invoke/MethodHandleNatives 1 1 396 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 100 100 7 7 100 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 100 100 100 100 7 100 100 100 100 100 100 100 100 100 100 100 100 7 100 7 100 100 100 7 7 7 7 7 7 100 7 7 100 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 9 9 9 9 9 9 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 1 1
-staticfield java/lang/invoke/MethodHandleNatives COUNT_GWT Z 1
-staticfield java/lang/invoke/MethodHandleNatives $assertionsDisabled Z 1
-instanceKlass java/lang/invoke/LambdaForm$DMH
-instanceKlass java/lang/invoke/LambdaForm$BMH
-instanceKlass java/lang/invoke/LambdaForm$DMH
-instanceKlass java/lang/invoke/LambdaForm$MH
-instanceKlass java/lang/invoke/LambdaForm$MH
-instanceKlass java/lang/invoke/LambdaForm$DMH
-instanceKlass java/lang/invoke/LambdaForm$LFI
-instanceKlass java/lang/invoke/LambdaForm$NFI
-instanceKlass java/lang/invoke/LambdaForm$LFI
-instanceKlass java/lang/invoke/LambdaForm$LFI
-instanceKlass java/lang/invoke/LambdaForm$DMH
-instanceKlass java/lang/invoke/LambdaForm$LFI
-instanceKlass java/lang/invoke/LambdaForm$MH
-instanceKlass java/lang/invoke/LambdaForm$DMH
-instanceKlass java/lang/invoke/LambdaForm$DMH
-instanceKlass java/lang/invoke/LambdaForm$DMH
-instanceKlass java/lang/invoke/LambdaForm$DMH
-instanceKlass java/lang/invoke/LambdaForm$DMH
-instanceKlass java/lang/invoke/LambdaForm$DMH
-instanceKlass java/lang/invoke/LambdaForm$DMH
-instanceKlass java/lang/invoke/LambdaForm$DMH
-instanceKlass java/lang/invoke/LambdaForm$DMH
-instanceKlass java/lang/invoke/LambdaForm$DMH
-instanceKlass java/lang/invoke/LambdaForm$DMH
-instanceKlass java/lang/invoke/LambdaForm$DMH
-instanceKlass java/lang/invoke/LambdaForm$DMH
-instanceKlass java/lang/invoke/LambdaForm$DMH
-instanceKlass java/lang/invoke/LambdaForm$DMH
-instanceKlass java/lang/invoke/LambdaForm$DMH
-instanceKlass java/lang/invoke/LambdaForm$MH
-instanceKlass java/lang/invoke/LambdaForm$DMH
-instanceKlass java/lang/invoke/LambdaForm$DMH
-instanceKlass java/lang/invoke/LambdaForm$DMH
-instanceKlass java/lang/invoke/LambdaForm$DMH
-instanceKlass java/lang/invoke/LambdaForm$DMH
-instanceKlass java/lang/invoke/LambdaForm$DMH
-instanceKlass java/lang/invoke/LambdaForm$DMH
-instanceKlass java/lang/invoke/LambdaForm$DMH
-instanceKlass java/lang/invoke/LambdaForm$DMH
-instanceKlass java/lang/invoke/LambdaForm$DMH
-instanceKlass java/lang/invoke/LambdaForm$DMH
-ciInstanceKlass java/lang/invoke/LambdaForm 1 1 870 4 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 7 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 3 3 3 100 100 100 7 7 100 100 7 100 100 100 100 100 100 7 7 7 7 100 7 7 100 100 7 100 7 7 100 100 7 7 7 7 100 100 7 7 7 7 7 7 7 7 7 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 11 11 11 11 11 1 1 1 1 1
-staticfield java/lang/invoke/LambdaForm PREPARED_FORMS Ljava/util/concurrent/ConcurrentHashMap; java/util/concurrent/ConcurrentHashMap
-staticfield java/lang/invoke/LambdaForm COMPILE_THRESHOLD I 30
-staticfield java/lang/invoke/LambdaForm INTERNED_ARGUMENTS [[Ljava/lang/invoke/LambdaForm$Name; 5 [[Ljava/lang/invoke/LambdaForm$Name;
-staticfield java/lang/invoke/LambdaForm IMPL_NAMES Ljava/lang/invoke/MemberName$Factory; java/lang/invoke/MemberName$Factory
-staticfield java/lang/invoke/LambdaForm CONSTANT_ZERO [Ljava/lang/invoke/LambdaForm$Name; 5 [Ljava/lang/invoke/LambdaForm$Name;
-staticfield java/lang/invoke/LambdaForm TRACE_INTERPRETER Z 0
-staticfield java/lang/invoke/LambdaForm $assertionsDisabled Z 1
-ciInstanceKlass java/lang/invoke/MethodType 1 1 533 8 8 8 8 8 8 8 8 8 8 8 7 7 7 7 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 3 3 5 0 7 100 100 100 7 100 100 7 100 7 100 100 100 100 100 7 7 7 7 100 7 7 7 7 7 7 7 7 7 7 100 100 7 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 11 11 11 1
-staticfield java/lang/invoke/MethodType internTable Ljava/lang/invoke/MethodType$ConcurrentWeakInternSet; java/lang/invoke/MethodType$ConcurrentWeakInternSet
-staticfield java/lang/invoke/MethodType NO_PTYPES [Ljava/lang/Class; 0 [Ljava/lang/Class;
-staticfield java/lang/invoke/MethodType objectOnlyTypes [Ljava/lang/invoke/MethodType; 20 [Ljava/lang/invoke/MethodType;
-staticfield java/lang/invoke/MethodType serialPersistentFields [Ljava/io/ObjectStreamField; 0 [Ljava/io/ObjectStreamField;
-staticfield java/lang/invoke/MethodType rtypeOffset J 12
-staticfield java/lang/invoke/MethodType ptypesOffset J 16
-staticfield java/lang/invoke/MethodType $assertionsDisabled Z 1
-ciInstanceKlass java/lang/BootstrapMethodError 0 0 35 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 5 0 100 100 100 100 1 1 12 12 12 12 12 10 10 10 10 10
-instanceKlass java/lang/invoke/VolatileCallSite
-instanceKlass java/lang/invoke/MutableCallSite
-instanceKlass java/lang/invoke/ConstantCallSite
-ciInstanceKlass java/lang/invoke/CallSite 1 1 280 8 8 8 8 8 8 8 8 7 7 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 7 100 7 100 100 100 100 7 7 100 100 100 100 100 100 7 100 7 100 7 7 100 7 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 9 9 9 9 9 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 1
-staticfield java/lang/invoke/CallSite GET_TARGET Ljava/lang/invoke/MethodHandle; java/lang/invoke/DirectMethodHandle
-staticfield java/lang/invoke/CallSite TARGET_OFFSET J 12
-ciInstanceKlass java/lang/invoke/ConstantCallSite 1 1 39 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 100 100 100 7 7 1 1 12 12 12 12 12 12 9 9 10 10 10 10 10
-ciInstanceKlass java/lang/invoke/MutableCallSite 0 0 54 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 100 100 100 100 1 1 1 1 1 1 12 12 12 12 12 12 12 12 12 12 9 9 10 10 10 10 10 10 10 10
-ciInstanceKlass java/lang/invoke/VolatileCallSite 0 0 30 1 1 1 1 1 1 1 1 1 1 1 1 100 100 1 1 1 12 12 12 12 12 12 10 10 10 10 10 10
-instanceKlass java/lang/StringBuilder
-instanceKlass java/lang/StringBuffer
-ciInstanceKlass java/lang/AbstractStringBuilder 1 1 309 3 3 8 8 8 8 8 8 8 8 8 8 8 8 8 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 5 0 100 7 100 7 100 100 100 7 100 7 100 7 100 100 100 7 7 7 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 9 9 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 11 11
-ciInstanceKlass java/lang/StringBuffer 1 1 369 8 8 8 7 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 5 0 100 100 100 100 100 7 100 7 7 100 100 7 7 7 100 7 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 9 9 9 9 9 9 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 11 1 1
-staticfield java/lang/StringBuffer serialPersistentFields [Ljava/io/ObjectStreamField; 3 [Ljava/io/ObjectStreamField;
-ciInstanceKlass java/lang/StringBuilder 1 1 323 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 5 0 100 100 100 100 100 7 100 100 7 7 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 9 9 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 11
-ciInstanceKlass sun/misc/Unsafe 1 1 386 8 8 7 7 7 7 7 7 7 7 7 7 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 100 7 100 100 7 100 7 100 100 7 7 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10
-staticfield sun/misc/Unsafe theUnsafe Lsun/misc/Unsafe; sun/misc/Unsafe
-staticfield sun/misc/Unsafe ARRAY_BOOLEAN_BASE_OFFSET I 16
-staticfield sun/misc/Unsafe ARRAY_BYTE_BASE_OFFSET I 16
-staticfield sun/misc/Unsafe ARRAY_SHORT_BASE_OFFSET I 16
-staticfield sun/misc/Unsafe ARRAY_CHAR_BASE_OFFSET I 16
-staticfield sun/misc/Unsafe ARRAY_INT_BASE_OFFSET I 16
-staticfield sun/misc/Unsafe ARRAY_LONG_BASE_OFFSET I 16
-staticfield sun/misc/Unsafe ARRAY_FLOAT_BASE_OFFSET I 16
-staticfield sun/misc/Unsafe ARRAY_DOUBLE_BASE_OFFSET I 16
-staticfield sun/misc/Unsafe ARRAY_OBJECT_BASE_OFFSET I 16
-staticfield sun/misc/Unsafe ARRAY_BOOLEAN_INDEX_SCALE I 1
-staticfield sun/misc/Unsafe ARRAY_BYTE_INDEX_SCALE I 1
-staticfield sun/misc/Unsafe ARRAY_SHORT_INDEX_SCALE I 2
-staticfield sun/misc/Unsafe ARRAY_CHAR_INDEX_SCALE I 2
-staticfield sun/misc/Unsafe ARRAY_INT_INDEX_SCALE I 4
-staticfield sun/misc/Unsafe ARRAY_LONG_INDEX_SCALE I 8
-staticfield sun/misc/Unsafe ARRAY_FLOAT_INDEX_SCALE I 4
-staticfield sun/misc/Unsafe ARRAY_DOUBLE_INDEX_SCALE I 8
-staticfield sun/misc/Unsafe ARRAY_OBJECT_INDEX_SCALE I 4
-staticfield sun/misc/Unsafe ADDRESS_SIZE I 8
-ciInstanceKlass java/lang/StackTraceElement 0 0 95 8 8 8 8 8 8 8 8 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 5 0 100 100 100 100 100 100 1 1 1 1 1 1 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 9 9 9 9 10 10 10 10 10 10 10 10 10 10 10 10
-instanceKlass java/nio/ShortBuffer
-instanceKlass java/nio/IntBuffer
-instanceKlass java/nio/LongBuffer
-instanceKlass java/nio/CharBuffer
-instanceKlass java/nio/ByteBuffer
-ciInstanceKlass java/nio/Buffer 1 1 100 8 8 8 8 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 100 100 7 100 7 100 100 100 1 1 1 1 12 12 12 12 12 12 12 12 12 12 12 9 9 9 9 10 10 10 10 10 10 10 10 10 10 10 10 10
-ciInstanceKlass java/lang/Boolean 1 1 107 8 8 8 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 5 0 100 7 7 100 100 100 7 100 7 7 1 1 1 1 1 1 1 1 12 12 12 12 12 12 12 12 12 12 12 12 12 12 9 9 9 9 10 10 10 10 10 10 10 10 10 10
-staticfield java/lang/Boolean TRUE Ljava/lang/Boolean; java/lang/Boolean
-staticfield java/lang/Boolean FALSE Ljava/lang/Boolean; java/lang/Boolean
-staticfield java/lang/Boolean TYPE Ljava/lang/Class; java/lang/Class
-ciInstanceKlass java/lang/Character 1 1 456 3 3 3 3 3 3 3 3 8 8 7 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 5 0 5 0 100 100 100 7 100 100 100 7 100 7 100 100 100 100 7 7 100 100 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 9 9 9 9 9 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 11 11 1 1 1 1
-staticfield java/lang/Character TYPE Ljava/lang/Class; java/lang/Class
-staticfield java/lang/Character $assertionsDisabled Z 1
-instanceKlass java/util/concurrent/atomic/AtomicLong
-instanceKlass java/math/BigInteger
-instanceKlass java/util/concurrent/atomic/AtomicInteger
-instanceKlass java/lang/Long
-instanceKlass java/lang/Integer
-instanceKlass java/lang/Short
-instanceKlass java/lang/Byte
-instanceKlass java/lang/Double
-instanceKlass java/lang/Float
-ciInstanceKlass java/lang/Number 1 1 31 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 5 0 100 100 7 12 12 10 10
-ciInstanceKlass java/lang/Float 1 1 166 3 3 3 4 4 4 4 8 8 8 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 3 3 3 4 4 5 0 7 100 100 7 100 7 100 100 7 1 1 1 1 1 1 1 1 1 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 9 9 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10
-staticfield java/lang/Float TYPE Ljava/lang/Class; java/lang/Class
-ciInstanceKlass java/lang/Double 1 1 220 8 8 8 8 8 8 8 8 8 8 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 3 3 3 5 0 5 0 5 0 5 0 5 0 6 0 6 0 6 0 6 0 6 0 6 0 6 0 7 100 7 100 100 7 100 100 100 7 1 1 1 1 1 1 1 1 1 1 1 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 9 9 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10
-staticfield java/lang/Double TYPE Ljava/lang/Class; java/lang/Class
-ciInstanceKlass java/lang/Byte 1 1 150 8 8 8 8 8 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 3 3 3 5 0 5 0 7 7 7 100 100 7 100 100 1 1 1 1 1 1 1 1 1 1 1 1 1 1 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 9 9 9 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 1
-staticfield java/lang/Byte TYPE Ljava/lang/Class; java/lang/Class
-ciInstanceKlass java/lang/Short 1 1 156 3 3 8 8 8 8 8 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 3 3 3 5 0 5 0 7 100 100 7 100 7 7 100 1 1 1 1 1 1 1 1 1 1 1 1 1 1 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 9 9 9 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 1
-staticfield java/lang/Short TYPE Ljava/lang/Class; java/lang/Class
-ciInstanceKlass java/lang/Integer 1 1 306 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 3 5 0 5 0 5 0 100 7 7 100 100 7 7 100 7 100 7 100 100 100 7 100 7 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 9 9 9 9 9 9 9 9 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 1
-staticfield java/lang/Integer TYPE Ljava/lang/Class; java/lang/Class
-staticfield java/lang/Integer digits [C 36
-staticfield java/lang/Integer DigitTens [C 100
-staticfield java/lang/Integer DigitOnes [C 100
-staticfield java/lang/Integer sizeTable [I 10
-ciInstanceKlass java/lang/Long 1 1 353 3 3 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 3 5 0 5 0 5 0 5 0 5 0 5 0 5 0 5 0 5 0 5 0 5 0 5 0 5 0 5 0 5 0 100 100 7 100 100 100 7 7 100 100 7 100 100 100 100 100 100 100 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 9 9 9 9 9 9 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 1
-staticfield java/lang/Long TYPE Ljava/lang/Class; java/lang/Class
-ciInstanceKlass java/lang/NullPointerException 1 1 18 1 1 1 1 1 1 1 1 1 5 0 100 100 12 12 10 10
-ciInstanceKlass java/lang/ArithmeticException 1 1 18 1 1 1 1 1 1 1 1 1 5 0 100 100 12 12 10 10
-ciInstanceKlass java/util/Comparator 1 1 259 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 3 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 9 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 15 15 15 15 15 15 15 16 18 18 18 18 18 18 1 1 1
-ciInstanceKlass java/lang/Math 1 1 278 3 3 3 3 3 3 4 4 4 4 4 8 8 7 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 5 0 5 0 5 0 5 0 5 0 5 0 5 0 5 0 5 0 5 0 6 0 6 0 6 0 6 0 6 0 6 0 6 0 6 0 6 0 100 100 7 7 7 7 100 100 7 1 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 9 9 9 9 9 9 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 1
-staticfield java/lang/Math $assertionsDisabled Z 1
-instanceKlass java/util/TreeMap
-instanceKlass java/util/EnumMap
-instanceKlass sun/misc/SoftCache
-instanceKlass java/util/IdentityHashMap
-instanceKlass java/util/concurrent/ConcurrentHashMap
-instanceKlass sun/util/PreHashedMap
-instanceKlass java/util/WeakHashMap
-instanceKlass java/util/HashMap
-instanceKlass java/util/Collections$EmptyMap
-ciInstanceKlass java/util/AbstractMap 1 1 147 8 8 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 100 100 100 7 100 100 7 100 100 100 100 7 7 7 7 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 9 9 10 10 10 10 10 10 10 10 10 10 10 10 10 10 11 11 11 11 11 11 11 11 11 11 11 11 11 1 1
-instanceKlass com/sun/org/apache/xerces/internal/impl/XMLEntityManager$RewindableInputStream
-instanceKlass sun/java2d/cmm/ProfileDeferralInfo
-instanceKlass java/util/jar/JarVerifier$VerifierStream
-instanceKlass java/util/zip/ZipFile$ZipFileInputStream
-instanceKlass java/io/ByteArrayInputStream
-instanceKlass java/io/FilterInputStream
-instanceKlass java/io/FileInputStream
-ciInstanceKlass java/io/InputStream 1 1 58 8 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 5 0 100 100 100 7 100 100 100 7 12 12 12 12 12 10 10 10 10 10 10 10
-instanceKlass java/lang/ProcessEnvironment
-instanceKlass javax/swing/UIDefaults$TextAndMnemonicHashMap
-instanceKlass java/util/LinkedHashMap
-ciInstanceKlass java/util/HashMap 1 1 465 3 3 4 4 4 4 4 8 8 8 100 100 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 3 3 3 5 0 100 7 100 100 100 100 100 100 100 100 100 7 100 100 100 100 7 100 100 100 7 100 100 7 100 7 100 100 100 100 7 100 7 7 100 100 7 7 7 7 7 100 100 100 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 9 9 9 9 9 9 9 9 9 9 9 9 9 9 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 11 11 11 11 11 11 11 11 11 11 11 11 11 1 1 1 1 1 1 1 1 1 1 1 1
-instanceKlass java/util/LinkedHashMap$Entry
-ciInstanceKlass java/util/HashMap$Node 1 1 82 8 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 7 100 100 7 100 100 100 1 1 1 1 1 1 1 1 1 12 12 12 12 12 12 12 12 12 12 12 12 9 9 9 9 10 10 10 10 10 10 10 11 11
-instanceKlass sun/awt/image/PNGFilterInputStream
-instanceKlass sun/net/www/protocol/jar/JarURLConnection$JarURLInputStream
-instanceKlass java/util/jar/Manifest$FastInputStream
-instanceKlass java/util/zip/InflaterInputStream
-instanceKlass java/io/DataInputStream
-instanceKlass java/io/BufferedInputStream
-ciInstanceKlass java/io/FilterInputStream 1 1 48 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 7 100 7 1 1 12 12 12 12 12 12 12 12 12 12 9 10 10 10 10 10 10 10 10 10 10
-instanceKlass sun/nio/cs/ISO_8859_1
-instanceKlass sun/nio/cs/US_ASCII
-instanceKlass sun/nio/cs/Unicode
-instanceKlass sun/nio/cs/MS1252
-ciInstanceKlass java/nio/charset/Charset 1 1 315 8 8 8 8 8 8 8 8 7 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 100 100 100 100 100 7 7 7 100 100 100 100 100 100 100 100 100 100 100 100 7 7 100 100 100 100 100 7 7 100 7 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 9 9 9 9 9 9 9 9 9 9 9 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 11 11 11 11 1
-instanceKlass sun/nio/ch/Util$1
-instanceKlass java/util/concurrent/locks/ReentrantReadWriteLock$Sync$ThreadLocalHoldCounter
-instanceKlass sun/misc/FloatingDecimal$1
-instanceKlass java/lang/InheritableThreadLocal
-ciInstanceKlass java/lang/ThreadLocal 1 1 117 3 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 7 7 7 100 100 7 7 100 7 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 9 9 9 9 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 1 1
-ciInstanceKlass java/util/Arrays 1 1 797 3 8 8 8 8 8 8 8 8 100 100 100 100 100 100 7 100 100 7 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 3 100 100 100 7 7 100 100 100 7 7 100 100 7 100 100 100 7 100 100 100 100 100 7 7 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 7 7 100 100 100 100 100 100 100 100 100 7 100 100 100 100 100 100 100 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 9 9 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 11 11 11 11 11 11 11 11 11 11 11 11 15 15 15 15 15 16 18 18 18 18 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
-staticfield java/util/Arrays $assertionsDisabled Z 1
-ciInstanceKlass sun/nio/cs/HistoricallyNamedCharset 1 0 7 1 1 1 1 100 100
-ciInstanceKlass java/nio/charset/CodingErrorAction 1 1 33 8 8 8 1 1 1 1 1 1 1 1 1 1 1 1 1 1 7 7 1 12 12 12 12 12 12 9 9 9 9 10 10
-staticfield java/nio/charset/CodingErrorAction IGNORE Ljava/nio/charset/CodingErrorAction; java/nio/charset/CodingErrorAction
-staticfield java/nio/charset/CodingErrorAction REPLACE Ljava/nio/charset/CodingErrorAction; java/nio/charset/CodingErrorAction
-staticfield java/nio/charset/CodingErrorAction REPORT Ljava/nio/charset/CodingErrorAction; java/nio/charset/CodingErrorAction
-instanceKlass java/nio/MappedByteBuffer
-instanceKlass java/nio/HeapByteBuffer
-ciInstanceKlass java/nio/ByteBuffer 1 1 251 8 8 8 8 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 100 100 100 100 100 100 100 100 100 100 7 7 100 100 7 7 7 7 100 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 9 9 9 9 9 9 9 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10
-ciInstanceKlass java/nio/HeapByteBuffer 1 1 256 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 100 7 7 100 100 7 7 100 100 100 100 100 7 100 100 100 7 100 100 100 100 7 100 100 100 100 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 9 9 9 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10
-instanceKlass java/io/ExpiringCache$1
-ciInstanceKlass java/util/LinkedHashMap 1 1 227 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 5 0 100 100 100 100 100 100 7 7 100 7 7 100 7 100 100 7 100 100 100 100 100 100 100 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 9 9 9 9 9 9 9 9 9 9 9 9 9 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 11 11 1 1 1 1 1 1 1 1
-instanceKlass java/util/HashMap$TreeNode
-ciInstanceKlass java/util/LinkedHashMap$Entry 1 1 24 1 1 1 1 1 1 1 1 1 1 1 1 100 7 100 100 1 1 1 1 1 12 10
-instanceKlass java/lang/NumberFormatException
-instanceKlass org/jdom2/IllegalNameException
-instanceKlass org/jdom2/IllegalAddException
-instanceKlass org/jdom2/IllegalDataException
-ciInstanceKlass java/lang/IllegalArgumentException 1 1 24 1 1 1 1 1 1 1 1 1 1 5 0 100 100 1 12 12 12 12 10 10 10 10
-ciInstanceKlass sun/nio/cs/ArrayDecoder 1 0 7 1 1 1 1 100 100
-instanceKlass sun/nio/cs/UnicodeDecoder
-instanceKlass sun/nio/cs/UTF_8$Decoder
-instanceKlass sun/nio/cs/SingleByte$Decoder
-ciInstanceKlass java/nio/charset/CharsetDecoder 1 1 272 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 3 3 3 100 7 100 100 7 7 100 100 100 100 7 100 100 7 100 7 7 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 9 9 9 9 9 9 9 9 9 9 9 9 9 9 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10
-staticfield java/nio/charset/CharsetDecoder $assertionsDisabled Z 1
-ciInstanceKlass sun/nio/cs/SingleByte$Decoder 1 1 113 3 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 100 100 7 100 7 7 7 7 100 7 7 1 1 1 1 1 1 1 1 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 9 9 9 9 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 1
-instanceKlass java/nio/ByteBufferAsCharBufferB
-instanceKlass java/nio/HeapCharBuffer
-ciInstanceKlass java/nio/CharBuffer 1 1 251 8 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 7 100 100 7 100 7 100 100 100 100 100 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 9 9 9 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 11 11 11 15 15 16 16 18 1 1
-ciInstanceKlass java/nio/HeapCharBuffer 1 1 135 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 100 100 7 100 100 100 100 100 7 7 100 1 1 1 1 1 1 1 1 1 1 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 9 9 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10
-ciInstanceKlass java/nio/charset/CoderResult 1 1 136 8 8 8 8 8 8 7 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 3 3 3 100 7 7 7 100 100 100 100 100 7 7 100 100 100 1 1 1 1 1 1 1 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 9 9 9 9 9 9 9 9 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 1
-staticfield java/nio/charset/CoderResult names [Ljava/lang/String; 4 [Ljava/lang/String;
-staticfield java/nio/charset/CoderResult UNDERFLOW Ljava/nio/charset/CoderResult; java/nio/charset/CoderResult
-staticfield java/nio/charset/CoderResult OVERFLOW Ljava/nio/charset/CoderResult; java/nio/charset/CoderResult
-staticfield java/nio/charset/CoderResult $assertionsDisabled Z 1
-ciInstanceKlass java/util/HashMap$TreeNode 0 0 174 100 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 100 100 100 100 100 100 100 100 100 100 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 9 9 9 9 9 9 9 9 9 9 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 1
-ciInstanceKlass java/lang/StringCoding 1 1 308 8 8 8 8 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 100 100 100 100 100 100 7 100 7 100 7 100 7 7 7 100 100 100 7 100 7 100 7 100 100 100 100 100 7 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 9 9 9 9 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 11 11 1 1
-staticfield java/lang/StringCoding decoder Ljava/lang/ThreadLocal; java/lang/ThreadLocal
-staticfield java/lang/StringCoding encoder Ljava/lang/ThreadLocal; java/lang/ThreadLocal
-ciInstanceKlass java/lang/ThreadLocal$ThreadLocalMap 1 1 120 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 100 7 7 100 7 7 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 9 9 9 9 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 1
-ciInstanceKlass java/lang/ThreadLocal$ThreadLocalMap$Entry 1 1 25 1 1 1 1 1 1 1 1 1 1 1 100 100 7 7 1 1 1 1 12 12 9 10 1
-ciInstanceKlass java/lang/StringCoding$StringDecoder 1 1 142 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 100 7 100 7 100 7 100 7 7 7 100 7 7 7 7 7 7 1 1 1 1 1 1 1 1 1 1 1 1 1 1 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 9 9 9 9 9 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 11 11 1
-ciInstanceKlass sun/nio/cs/UTF_8$Decoder 1 1 214 3 3 7 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 100 100 100 100 7 7 100 100 7 7 7 7 100 100 100 7 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 9 9 9 9 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 1
-staticfield sun/nio/cs/UTF_8$Decoder $assertionsDisabled Z 1
-ciInstanceKlass sun/util/logging/PlatformLogger 1 1 235 8 8 7 100 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 3 3 3 3 3 3 3 3 7 7 100 100 100 7 100 7 7 7 7 7 100 7 7 7 7 7 100 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 11 11 11 11 11 11 11 1 1 1 1
-staticfield sun/util/logging/PlatformLogger DEFAULT_LEVEL Lsun/util/logging/PlatformLogger$Level; sun/util/logging/PlatformLogger$Level
-instanceKlass java/io/ObjectStreamException
-instanceKlass java/io/EOFException
-instanceKlass java/net/MalformedURLException
-instanceKlass java/io/FileNotFoundException
-ciInstanceKlass java/io/IOException 1 1 24 1 1 1 1 1 1 1 1 1 1 5 0 100 7 1 12 12 12 12 10 10 10 10
-ciInstanceKlass java/util/jar/Attributes 1 1 260 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 100 100 100 7 100 100 100 7 7 100 100 7 7 7 7 7 7 7 100 7 100 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 9 9 9 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 1
-ciInstanceKlass java/util/jar/Manifest$FastInputStream 1 1 76 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 100 7 100 7 100 7 100 7 1 1 1 1 12 12 12 12 12 12 12 12 12 12 12 12 12 12 9 9 9 9 10 10 10 10 10 10 10 10 10 10 1
-ciInstanceKlass java/util/jar/Attributes$Name 1 1 166 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 100 100 7 7 7 100 7 7 1 1 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 10 10 10 10 10 10 10 10 10 10 10 10 11
-staticfield java/util/jar/Attributes$Name MANIFEST_VERSION Ljava/util/jar/Attributes$Name; java/util/jar/Attributes$Name
-staticfield java/util/jar/Attributes$Name SIGNATURE_VERSION Ljava/util/jar/Attributes$Name; java/util/jar/Attributes$Name
-staticfield java/util/jar/Attributes$Name CONTENT_TYPE Ljava/util/jar/Attributes$Name; java/util/jar/Attributes$Name
-staticfield java/util/jar/Attributes$Name CLASS_PATH Ljava/util/jar/Attributes$Name; java/util/jar/Attributes$Name
-staticfield java/util/jar/Attributes$Name MAIN_CLASS Ljava/util/jar/Attributes$Name; java/util/jar/Attributes$Name
-staticfield java/util/jar/Attributes$Name SEALED Ljava/util/jar/Attributes$Name; java/util/jar/Attributes$Name
-staticfield java/util/jar/Attributes$Name EXTENSION_LIST Ljava/util/jar/Attributes$Name; java/util/jar/Attributes$Name
-staticfield java/util/jar/Attributes$Name EXTENSION_NAME Ljava/util/jar/Attributes$Name; java/util/jar/Attributes$Name
-staticfield java/util/jar/Attributes$Name EXTENSION_INSTALLATION Ljava/util/jar/Attributes$Name; java/util/jar/Attributes$Name
-staticfield java/util/jar/Attributes$Name IMPLEMENTATION_TITLE Ljava/util/jar/Attributes$Name; java/util/jar/Attributes$Name
-staticfield java/util/jar/Attributes$Name IMPLEMENTATION_VERSION Ljava/util/jar/Attributes$Name; java/util/jar/Attributes$Name
-staticfield java/util/jar/Attributes$Name IMPLEMENTATION_VENDOR Ljava/util/jar/Attributes$Name; java/util/jar/Attributes$Name
-staticfield java/util/jar/Attributes$Name IMPLEMENTATION_VENDOR_ID Ljava/util/jar/Attributes$Name; java/util/jar/Attributes$Name
-staticfield java/util/jar/Attributes$Name IMPLEMENTATION_URL Ljava/util/jar/Attributes$Name; java/util/jar/Attributes$Name
-staticfield java/util/jar/Attributes$Name SPECIFICATION_TITLE Ljava/util/jar/Attributes$Name; java/util/jar/Attributes$Name
-staticfield java/util/jar/Attributes$Name SPECIFICATION_VERSION Ljava/util/jar/Attributes$Name; java/util/jar/Attributes$Name
-staticfield java/util/jar/Attributes$Name SPECIFICATION_VENDOR Ljava/util/jar/Attributes$Name; java/util/jar/Attributes$Name
-ciInstanceKlass sun/misc/ASCIICaseInsensitiveComparator 1 1 64 7 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 100 7 7 7 100 1 1 1 1 12 12 12 12 12 12 12 12 12 12 9 9 10 10 10 10 10 10 10 10 10 10
-staticfield sun/misc/ASCIICaseInsensitiveComparator CASE_INSENSITIVE_ORDER Ljava/util/Comparator; sun/misc/ASCIICaseInsensitiveComparator
-staticfield sun/misc/ASCIICaseInsensitiveComparator $assertionsDisabled Z 1
-ciInstanceKlass sun/misc/FloatingDecimal$1 1 1 25 1 1 1 1 1 1 1 1 1 1 1 1 7 100 7 7 1 1 12 12 10 10 10 1
-ciInstanceKlass sun/nio/cs/UTF_16$Decoder 1 1 15 1 1 1 1 1 1 100 100 7 1 1 12 10 1
-instanceKlass java/lang/StringIndexOutOfBoundsException
-ciInstanceKlass java/lang/IndexOutOfBoundsException 0 0 18 1 1 1 1 1 1 1 1 1 5 0 100 100 12 12 10 10
-ciInstanceKlass java/lang/StringIndexOutOfBoundsException 0 0 35 8 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 5 0 100 100 100 1 1 12 12 12 12 12 10 10 10 10 10 10
-compile java/util/jar/Attributes read (Ljava/util/jar/Manifest$FastInputStream;[B)V -1 4 inline 84 0 -1 java/util/jar/Attributes read (Ljava/util/jar/Manifest$FastInputStream;[B)V 1 10 java/util/jar/Manifest$FastInputStream readLine ([B)I 2 5 java/util/jar/Manifest$FastInputStream readLine ([BII)I 1 166 java/lang/String <init> ([BIILjava/lang/String;)V 2 1 java/lang/Object <init> ()V 2 22 java/lang/String checkBounds ([BII)V 2 31 java/lang/StringCoding decode (Ljava/lang/String;[BII)[C 3 3 java/lang/StringCoding deref (Ljava/lang/ThreadLocal;)Ljava/lang/Object; 4 1 java/lang/ThreadLocal get ()Ljava/lang/Object; 5 6 java/lang/ThreadLocal getMap (Ljava/lang/Thread;)Ljava/lang/ThreadLocal$ThreadLocalMap; 5 16 java/lang/ThreadLocal$ThreadLocalMap access$000 (Ljava/lang/ThreadLocal$ThreadLocalMap;Ljava/lang/ThreadLocal;)Ljava/lang/ThreadLocal$ThreadLocalMap$Entry; 6 2 java/lang/ThreadLocal$ThreadLocalMap getEntry (Ljava/lang/ThreadLocal;)Ljava/lang/ThreadLocal$ThreadLocalMap$Entry; 7 1 java/lang/ThreadLocal access$400 (Ljava/lang/ThreadLocal;)I 4 15 java/lang/ref/SoftReference get ()Ljava/lang/Object; 3 32 java/lang/StringCoding$StringDecoder requestedCharsetName ()Ljava/lang/String; 3 116 java/lang/StringCoding$StringDecoder decode ([BII)[C 4 5 java/nio/charset/CharsetDecoder maxCharsPerByte ()F 4 8 java/lang/StringCoding access$000 (IF)I 5 2 java/lang/StringCoding scale (IF)I 4 67 java/lang/StringCoding access$100 ([CILjava/nio/charset/Charset;Z)[C 5 4 java/lang/StringCoding safeTrim ([CILjava/nio/charset/Charset;Z)[C 6 10 java/lang/System getSecurityManager ()Ljava/lang/SecurityManager; 6 20 java/util/Arrays copyOf ([CI)[C 4 164 java/nio/Buffer position ()I 4 175 java/lang/StringCoding access$100 ([CILjava/nio/charset/Charset;Z)[C 5 4 java/lang/StringCoding safeTrim ([CILjava/nio/charset/Charset;Z)[C 6 10 java/lang/System getSecurityManager ()Ljava/lang/SecurityManager; 6 20 java/util/Arrays copyOf ([CI)[C 1 239 java/lang/String <init> ([BIII)V 2 1 java/lang/Object <init> ()V 2 8 java/lang/String checkBounds ([BII)V 1 244 java/util/jar/Manifest$FastInputStream peek ()B 1 292 java/lang/String <init> ([BIILjava/lang/String;)V 2 1 java/lang/Object <init> ()V 2 22 java/lang/String checkBounds ([BII)V 2 31 java/lang/StringCoding decode (Ljava/lang/String;[BII)[C 3 3 java/lang/StringCoding deref (Ljava/lang/ThreadLocal;)Ljava/lang/Object; 4 1 java/lang/ThreadLocal get ()Ljava/lang/Object; 5 6 java/lang/ThreadLocal getMap (Ljava/lang/Thread;)Ljava/lang/ThreadLocal$ThreadLocalMap; 5 16 java/lang/ThreadLocal$ThreadLocalMap access$000 (Ljava/lang/ThreadLocal$ThreadLocalMap;Ljava/lang/ThreadLocal;)Ljava/lang/ThreadLocal$ThreadLocalMap$Entry; 6 2 java/lang/ThreadLocal$ThreadLocalMap getEntry (Ljava/lang/ThreadLocal;)Ljava/lang/ThreadLocal$ThreadLocalMap$Entry; 7 1 java/lang/ThreadLocal access$400 (Ljava/lang/ThreadLocal;)I 4 15 java/lang/ref/SoftReference get ()Ljava/lang/Object; 3 32 java/lang/StringCoding$StringDecoder requestedCharsetName ()Ljava/lang/String; 3 116 java/lang/StringCoding$StringDecoder decode ([BII)[C 4 5 java/nio/charset/CharsetDecoder maxCharsPerByte ()F 4 8 java/lang/StringCoding access$000 (IF)I 5 2 java/lang/StringCoding scale (IF)I 4 67 java/lang/StringCoding access$100 ([CILjava/nio/charset/Charset;Z)[C 5 4 java/lang/StringCoding safeTrim ([CILjava/nio/charset/Charset;Z)[C 6 10 java/lang/System getSecurityManager ()Ljava/lang/SecurityManager; 6 20 java/util/Arrays copyOf ([CI)[C 4 164 java/nio/Buffer position ()I 4 175 java/lang/StringCoding access$100 ([CILjava/nio/charset/Charset;Z)[C 5 4 java/lang/StringCoding safeTrim ([CILjava/nio/charset/Charset;Z)[C 6 10 java/lang/System getSecurityManager ()Ljava/lang/SecurityManager; 6 20 java/util/Arrays copyOf ([CI)[C 1 301 java/util/jar/Attributes putValue (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; 2 6 java/util/jar/Attributes$Name <init> (Ljava/lang/String;)V 3 1 java/lang/Object <init> ()V 3 24 java/util/jar/Attributes$Name isValid (Ljava/lang/String;)Z 4 1 java/lang/String length ()I 4 26 java/lang/String charAt (I)C 4 29 java/util/jar/Attributes$Name isValid (C)Z 5 1 java/util/jar/Attributes$Name isAlpha (C)Z 5 8 java/util/jar/Attributes$Name isDigit (C)Z 2 10 java/util/jar/Attributes put (Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; 3 12 java/util/HashMap put (Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; 4 2 java/util/HashMap hash (Ljava/lang/Object;)I 5 9 java/util/jar/Attributes$Name hashCode ()I 6 13 sun/misc/ASCIICaseInsensitiveComparator lowerCaseHashCode (Ljava/lang/String;)I 7 3 java/lang/String length ()I 7 20 java/lang/String charAt (I)C 7 23 sun/misc/ASCIICaseInsensitiveComparator toLower (I)I 8 1 sun/misc/ASCIICaseInsensitiveComparator isUpper (I)Z 4 9 java/util/HashMap putVal (ILjava/lang/Object;Ljava/lang/Object;ZZ)Ljava/lang/Object; 5 56 java/util/HashMap newNode (ILjava/lang/Object;Ljava/lang/Object;Ljava/util/HashMap$Node;)Ljava/util/HashMap$Node; 6 9 java/util/HashMap$Node <init> (ILjava/lang/Object;Ljava/lang/Object;Ljava/util/HashMap$Node;)V 7 1 java/lang/Object <init> ()V 5 152 java/util/HashMap newNode (ILjava/lang/Object;Ljava/lang/Object;Ljava/util/HashMap$Node;)Ljava/util/HashMap$Node; 6 9 java/util/HashMap$Node <init> (ILjava/lang/Object;Ljava/lang/Object;Ljava/util/HashMap$Node;)V 7 1 java/lang/Object <init> ()V 5 253 java/util/HashMap afterNodeAccess (Ljava/util/HashMap$Node;)V 5 295 java/util/HashMap afterNodeInsertion (Z)V
diff --git a/project/PPPClient/res/chuv_logo.png b/project/PPPClient/res/chuv_logo.png
new file mode 100644
index 0000000..ffb517a
Binary files /dev/null and b/project/PPPClient/res/chuv_logo.png differ
diff --git a/project/PPPClient/res/expand_icon.jpg b/project/PPPClient/res/expand_icon.jpg
new file mode 100644
index 0000000..8467063
Binary files /dev/null and b/project/PPPClient/res/expand_icon.jpg differ
diff --git a/project/PPPClient/res/shcs_logo2_icon.gif b/project/PPPClient/res/shcs_logo2_icon.gif
new file mode 100644
index 0000000..d2dbea4
Binary files /dev/null and b/project/PPPClient/res/shcs_logo2_icon.gif differ
diff --git a/project/PPPClient/res/shcs_logo2_icon.png b/project/PPPClient/res/shcs_logo2_icon.png
new file mode 100644
index 0000000..fa3cb02
Binary files /dev/null and b/project/PPPClient/res/shcs_logo2_icon.png differ
diff --git a/project/PPPClient/src/io/Questionnaire.java b/project/PPPClient/src/io/Questionnaire.java
index 3f9a25e..7beab81 100644
--- a/project/PPPClient/src/io/Questionnaire.java
+++ b/project/PPPClient/src/io/Questionnaire.java
@@ -1,273 +1,264 @@
package io;
-import java.awt.BorderLayout;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.Map;
import java.util.Set;
import com.itextpdf.text.BaseColor;
import com.itextpdf.text.Document;
import com.itextpdf.text.DocumentException;
import com.itextpdf.text.Element;
import com.itextpdf.text.ExceptionConverter;
import com.itextpdf.text.Font;
-import com.itextpdf.text.Font.FontFamily;
import com.itextpdf.text.FontFactory;
import com.itextpdf.text.Image;
import com.itextpdf.text.PageSize;
import com.itextpdf.text.Paragraph;
import com.itextpdf.text.Phrase;
import com.itextpdf.text.Rectangle;
import com.itextpdf.text.pdf.AcroFields;
-import com.itextpdf.text.pdf.BaseFont;
-import com.itextpdf.text.pdf.ColumnText;
import com.itextpdf.text.pdf.GrayColor;
-import com.itextpdf.text.pdf.PdfAction;
-import com.itextpdf.text.pdf.PdfBorderDictionary;
import com.itextpdf.text.pdf.PdfContentByte;
import com.itextpdf.text.pdf.PdfFormField;
import com.itextpdf.text.pdf.PdfPCell;
import com.itextpdf.text.pdf.PdfPCellEvent;
import com.itextpdf.text.pdf.PdfPTable;
import com.itextpdf.text.pdf.PdfReader;
import com.itextpdf.text.pdf.PdfStamper;
import com.itextpdf.text.pdf.PdfWriter;
-import com.itextpdf.text.pdf.PushbuttonField;
import com.itextpdf.text.pdf.RadioCheckField;
-import com.itextpdf.text.pdf.TextField;
import framework.Question;
public class Questionnaire implements PdfPCellEvent{
/** The path output file. */
String pathOutputFile;
/** The document. */
Document document;
int tf;
public Questionnaire(String path){
pathOutputFile = path;
document = new Document(PageSize.A4, 25, 25, 50, 50);
}
public Questionnaire(int tf){
this.tf = tf;
}
/** The resulting PDF. */
public static final String RESULT1 = "outputPDF/buttons.pdf";
/** The resulting PDF. */
public static final String RESULT2 = "outputPDF/buttons_filled.pdf";
/** Path to a JavaScript resource. */
public static final String RESOURCE = "res/buttons.js";
/** Path to an image used as button icon. */
public static final String IMAGE = "res/info.png";
/** Possible values of a radio field / checkboxes */
public static final String[] LANGUAGES = { "English", "German", "French", "Spanish", "Dutch" };
/**
* Creates a PDF document.
* @param filename the path to the new PDF document
* @throws DocumentException
* @throws IOException
*/
public void createPdf(Map<Integer, Question> map, Set<Integer> ids) throws IOException, DocumentException {
@SuppressWarnings("unused")
PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream("outputPDF/temp.pdf"));
document.open();
Image logo = Image.getInstance("res/shcs_logo2.gif");
logo.scalePercent(30f);
float[] columnWidths1 = {0.2f, 0.8f};
PdfPTable table_title = new PdfPTable(columnWidths1);
PdfPCell c01 = new PdfPCell(logo, false);
- PdfPCell c02 = new PdfPCell(new Paragraph("Survery | Project #693",
- FontFactory.getFont(FontFactory.HELVETICA, 20, Font.BOLD, BaseColor.BLACK)));
+ PdfPCell c02 = new PdfPCell(new Paragraph("Privacy and Usability Survey | Project #693",
+ FontFactory.getFont(FontFactory.HELVETICA, 16, Font.BOLD, BaseColor.BLACK)));
c01.setVerticalAlignment(Element.ALIGN_MIDDLE);
c02.setVerticalAlignment(Element.ALIGN_MIDDLE);
c02.setHorizontalAlignment(Element.ALIGN_CENTER);
c01.setBorder(Rectangle.NO_BORDER);
c02.setBorder(Rectangle.NO_BORDER);
table_title.addCell(c01);
table_title.addCell(c02);
table_title.setWidthPercentage(100);
table_title.setSpacingBefore(0);
table_title.setSpacingAfter(25);
document.add(table_title);
//----------------------------------------------------------------------------------
PdfPTable table1 = new PdfPTable(1);
table1.setWidthPercentage(100);
- PdfPCell c11 = new PdfPCell(new Phrase("Today you are receiving a pharmacogenetics report based on the genome of your patient. Because of its highly sensitive nature, the genetic information you are provided " +
- "with is processed in a privacy-preserving way. In particular, to protect patients’ genomic privacy, their genetic and clinical data is stored encrypted at the SHCS data center, and securely analyzed " +
- "through a sophisticated algorithm designed and developed at EPFL [1, 2]. The actual clinical and genetic information is never revealed. Only the authorized users, such as you, can get some processed " +
- "information, for example, the final result of a pharmacogenetics risk test. " +
+ PdfPCell c11 = new PdfPCell(new Phrase("Dear Doctor," +
+ "\n\nYou are receiving a pharmacogenetics report based on the genome of your patient. Because of its highly sensitive nature, the genetic information you are provided with is processed in a privacy-preserving way. In particular, to protect patients’ genomic privacy, their genetic and clinical data are stored encrypted at the SHCS data center, and securely analyzed through a sophisticated algorithm designed and developed at EPFL [1, 2]. The actual clinical and genetic information is never revealed. Only the authorized users, such as you, can get some processed information, for example, the interpreted final result of a pharmacogenetics risk test. " +
"This mechanism protects the data against insiders or hackers trying to illegally access patients’ medical information, while still allowing authorized users to obtain the information they need. " +
- "To help us understanding the importance of genomic privacy in the medical domain, and the impact of privacy-enhancing technologies in daily clinical practice, please complete the following survey."
- ,FontFactory.getFont(FontFactory.HELVETICA, 10, Font.NORMAL, BaseColor.BLACK)));
+ "\n\nTo help us better understanding the importance of genomic privacy in the medical domain, and the impact of privacy-enhancing technologies in daily clinical practice, please complete the following survey. Answers are on a scale from 1 (Strongly Disagree) to 5 (Strongly Agree). " +
+ "\nNote: this work is part of Project #693, funded by the Swiss HIV Cohort. PIs: Prof. A. Telenti, formerly at CHUV, and Prof. J.-P. Hubaux, at EPFL. \n\n[1] J. L. Raisaro, E. Ayday, P. J. McLaren, J.-P. Hubaux, and A. Telenti. Privacy-Preserving HIV Pharmacogenetics: A Real Use Case of Genomic Data Protection. GenoPri 2014 \n[2] E. Ayday, J. L. Raisaro, J. Rougemont, and J.-P. Hubaux. Protecting and Evaluating Genomic Privacy in Medical Tests and Personalized Medicine. WPES 2013"
+ ,FontFactory.getFont(FontFactory.HELVETICA, 8, Font.NORMAL, BaseColor.BLACK)));
c11.setLeading(1.5f, 1.5f);
c11.setPaddingBottom(8);
table1.addCell(c11);
table1.setSpacingAfter(10);
document.add(table1);
//----------------------------------------------------------------------------------
// // step 4
// // add the JavaScript
// writer.addJavaScript(Utilities.readFileToString(RESOURCE));
for(Integer id: ids){
PdfPCell c2;
PdfPTable table = new PdfPTable(1);
table.setSpacingAfter(10);
table.setWidthPercentage(100);
PdfPCell c1 = new PdfPCell(new Phrase(id + ") " + map.get(id).getQuestion(),FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
c1.setPaddingTop(5);
c1.setPaddingBottom(5);
c1.setHorizontalAlignment(Element.ALIGN_CENTER);
c1.setBorder(Rectangle.NO_BORDER);
table.addCell(c1);
c2 = new PdfPCell(new Phrase(" 1" +
" 2" +
" 3" +
" 4" +
" 5",FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, BaseColor.BLACK)));
c2.setHorizontalAlignment(Element.ALIGN_LEFT);
c2.setVerticalAlignment(Element.ALIGN_MIDDLE);
c2.setCellEvent(new Questionnaire(id));
c2.setBorder(Rectangle.TOP);
c2.setPaddingTop(2);
c2.setPaddingBottom(5);
c2.setBackgroundColor(new BaseColor(242, 242, 242));
table.addCell(c2);
document.add(table);
}
//----------------------------------------------------------------------------------
// step 5
document.close();
}
@Override
public void cellLayout(PdfPCell cell, Rectangle position,
PdfContentByte[] canvases) {
PdfWriter writer = canvases[0].getPdfWriter();
PdfFormField radiogroup = PdfFormField.createRadioButton(writer, true);
radiogroup.setFieldName(String.valueOf(tf));
float llx = position.getLeft();
float lly = position.getBottom();
float cell_h = cell.getHeight();
float cell_w = cell.getWidth();
Rectangle rect;
for(int i=1 ; i<=5; i++){
rect = new Rectangle(llx + (3+i)*cell_w/12, lly+cell_h/2-6, llx + (3+i)*cell_w/12+12 ,lly+cell_h/2+6);
RadioCheckField radio = new RadioCheckField(writer, rect, String.valueOf(i), String.valueOf(i));
radio.setBorderColor(GrayColor.GRAYBLACK);
radio.setCheckType(RadioCheckField.TYPE_SQUARE);
try {
PdfFormField field = radio.getRadioField();
radiogroup.addKid(field);
writer.addAnnotation(radiogroup);
}
catch(IOException ioe) {
throw new ExceptionConverter(ioe);
}
catch(DocumentException de) {
throw new ExceptionConverter(de);
}
}
}
public void writeAnswers(Map<String, String> answers) throws IOException, DocumentException{
PdfReader reader = new PdfReader("outputPDF/temp.pdf");
PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(pathOutputFile));
AcroFields form = stamper.getAcroFields();
Set<String> fields = form.getFields().keySet();
for(String key: fields){
if(answers.containsKey(key)){
form.setField(key, answers.get(key));
}
}
stamper.close();
reader.close();
deleteFile("outputPDF/temp.pdf");
}
private void deleteFile(String fileName){
// A File object to represent the filename
File f = new File(fileName);
// Make sure the file or directory exists and isn't write protected
if (!f.exists())
throw new IllegalArgumentException(
"Delete: no such file or directory: " + fileName);
if (!f.canWrite())
throw new IllegalArgumentException("Delete: write protected: "
+ fileName);
// If it is a directory, make sure it is empty
if (f.isDirectory()) {
String[] files = f.list();
if (files.length > 0)
throw new IllegalArgumentException(
"Delete: directory not empty: " + fileName);
}
// Attempt to delete it
boolean success = f.delete();
if (!success)
throw new IllegalArgumentException("Delete: deletion failed");
}
}
diff --git a/project/PPPClient/src/ui/GUI.java b/project/PPPClient/src/ui/GUI.java
index 09a0e0e..fa225b6 100644
--- a/project/PPPClient/src/ui/GUI.java
+++ b/project/PPPClient/src/ui/GUI.java
@@ -1,927 +1,948 @@
package ui;
import io.ClientConnection;
import io.CommAdapter;
import io.Questionnaire;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Font;
import java.awt.SystemColor;
+import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowAdapter;
import java.io.File;
import java.io.IOException;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.Map;
import java.util.Set;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.Box;
import javax.swing.BoxLayout;
import javax.swing.ButtonGroup;
import javax.swing.DefaultComboBoxModel;
import javax.swing.GroupLayout;
import javax.swing.GroupLayout.Alignment;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JDialog;
import javax.swing.JFileChooser;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JRadioButton;
import javax.swing.JScrollPane;
import javax.swing.JSeparator;
import javax.swing.JTabbedPane;
import javax.swing.JTextArea;
import javax.swing.JTextPane;
import javax.swing.JTree;
import javax.swing.LayoutStyle.ComponentPlacement;
import javax.swing.SwingConstants;
import javax.swing.border.EmptyBorder;
import javax.swing.border.LineBorder;
import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.tree.TreeModel;
import javax.swing.tree.TreePath;
import org.jpedal.examples.viewer.Commands;
import org.jpedal.examples.viewer.Viewer;
import utils.ClientProperties;
import com.itextpdf.text.DocumentException;
import database.DBconnectorClient;
import framework.Diagnostic;
import framework.MedUnit;
import framework.Question;
import framework.reply.ReplySurvey;
import framework.test.TestName;
+import javax.swing.JSplitPane;
+import java.awt.event.MouseAdapter;
+import java.awt.event.MouseEvent;
/**
*
- * @author youssef, raisaro
+ * @author raisaro
*/
public class GUI extends javax.swing.JFrame {
private static final Logger LOGGER = Logger.getLogger(GUI.class.getName());
private static final long serialVersionUID = -4582280515597700650L;
// configuration
private ClientProperties props;
private JTree jTree;
private DBconnectorClient connectorClientDB;
private LinkedList<Integer> patients;
/** List of all relevant tests */
private HashMap<String, TestName> testsByName;
private Viewer viewer;
private JDialog dialog;
private JFrame frame;
private boolean survey_submitted;
private int close_trials;
private Map<Integer, ButtonGroup> buttonGroupMap;
private Questionnaire quest;
private Map<Integer, Question> map;
private Set<Integer> ids;
private Map<String,String> answers;
private Map<Integer, String> locations;
+ private JButton btnSubmitQuestionnaire;
/**
* Creates new form GUI
*/
public GUI(ClientProperties props){
+ setLocationByPlatform(true);
+ setIconImage(Toolkit.getDefaultToolkit().getImage("res/shcs_logo2_icon.png"));
frame = this;
this.props = props;
this.connectorClientDB = new DBconnectorClient(props.getDbMsAccess());
survey_submitted = false;
close_trials = 0;
try {
initComponents();
viewer = new Viewer(jScrollPane2, null);
viewer.setupViewer();
- // create questionnare
-
+ // create questionnare
+
System.out.println("#of questions: " + ids.size());
-// viewer_q = new Viewer(jScrollPane4, null);
-// viewer_q.setupViewer();
-//
-// // specify file you wish to open (JPedal handles getting the byte data)
-// String filepathReport = "outputPDF/buttons_filled.pdf";
-//
-// // open generated PDF
-// // object must be either String in full filepath, or
-// // File object which can be relative
-// Object[] input = new Object[]{ new File(filepathReport) };
-// viewer_q.executeCommand(Commands.OPENFILE, input);
-
- JButton btnSubmitQuestionnaire = new JButton("Submit Questionnaire");
+
+ btnSubmitQuestionnaire = new JButton("Submit Questionnaire");
btnSubmitQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
btnSubmitQuestionnaire.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
submitButtonActionPerformed(arg0);
}
});
JButton btnResetQuestionnaire = new JButton("Save as PDF");
btnResetQuestionnaire.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
savePDFButtonActionPerformed(arg0);
}
});
btnResetQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
JPanel panel_button = new JPanel();
panel_button.setLayout(new BoxLayout(panel_button, BoxLayout.X_AXIS));
lblNewLabel_3 = new JLabel("");
lblNewLabel_3.setIcon(new ImageIcon("res/location_icon.png"));
panel_button.add(lblNewLabel_3);
comboBox = new JComboBox<String>();
comboBox.setFont(new Font("Tahoma", Font.BOLD, 12));
comboBox.setModel(new DefaultComboBoxModel<String>(new String[] {"Select Location"}));
for(Integer id_loc : locations.keySet()){
comboBox.addItem(locations.get(id_loc));
}
panel_button.add(comboBox);
rigidArea = Box.createRigidArea(new Dimension(10, 0));
panel_button.add(rigidArea);
lblNewLabel_1 = new JLabel("");
lblNewLabel_1.setIcon(new ImageIcon("res/submit.png"));
panel_button.add(lblNewLabel_1);
panel_button.add(btnSubmitQuestionnaire);
panel_button.add(Box.createRigidArea(new Dimension(10,0)));
lblNewLabel_2 = new JLabel("");
lblNewLabel_2.setIcon(new ImageIcon("res/pdf.png"));
panel_button.add(lblNewLabel_2);
panel_button.add(btnResetQuestionnaire);
panel_button.setPreferredSize(new Dimension(211, 35));
panel_button.validate();
- JPanel panel_3 = new JPanel();
+ splitPane = new JSplitPane();
+ splitPane.setOneTouchExpandable(true);
+ splitPane.setResizeWeight(0.52);
+ splitPane.setOrientation(JSplitPane.VERTICAL_SPLIT);
+
GroupLayout gl_panel = new GroupLayout(panel);
gl_panel.setHorizontalGroup(
- gl_panel.createParallelGroup(Alignment.TRAILING)
+ gl_panel.createParallelGroup(Alignment.LEADING)
.addGroup(gl_panel.createSequentialGroup()
- .addGap(63)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addGap(103)
- .addComponent(panel_button, GroupLayout.DEFAULT_SIZE, 598, Short.MAX_VALUE)
- .addGap(241))
+ .addGap(165)
+ .addComponent(panel_button, GroupLayout.DEFAULT_SIZE, 421, Short.MAX_VALUE)
+ .addGap(242))
.addGroup(gl_panel.createSequentialGroup()
- .addGap(41)
- .addGroup(gl_panel.createParallelGroup(Alignment.TRAILING)
- .addComponent(jScrollPane4, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 932, Short.MAX_VALUE)
- .addComponent(panel_1, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 932, Short.MAX_VALUE))
- .addGap(32))
+ .addContainerGap()
+ .addComponent(splitPane, GroupLayout.DEFAULT_SIZE, 738, Short.MAX_VALUE)
+ .addGap(80))
);
gl_panel.setVerticalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
+ gl_panel.createParallelGroup(Alignment.TRAILING)
.addGroup(gl_panel.createSequentialGroup()
- .addGap(22)
- .addComponent(panel_1, GroupLayout.PREFERRED_SIZE, 212, GroupLayout.PREFERRED_SIZE)
- .addGap(18)
- .addComponent(jScrollPane4, GroupLayout.DEFAULT_SIZE, 417, Short.MAX_VALUE)
- .addGap(26)
- .addGroup(gl_panel.createParallelGroup(Alignment.LEADING)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(panel_button, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE)))
+ .addContainerGap()
+ .addComponent(splitPane, GroupLayout.DEFAULT_SIZE, 603, Short.MAX_VALUE)
+ .addPreferredGap(ComponentPlacement.RELATED)
+ .addComponent(panel_button, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE)
+ .addGap(11))
);
- panel_3.setLayout(new BoxLayout(panel_3, BoxLayout.X_AXIS));
+
+ panel_1 = new JPanel();
+ panel_1.setMinimumSize(new Dimension(10, 0));
+ panel_1.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
+ panel_1.setBackground(SystemColor.menu);
+ splitPane.setLeftComponent(panel_1);
+
+ label_1 = new JLabel("");
+ label_1.setIcon(new ImageIcon("res/shcs_logo2_medium.gif"));
+
+ label_2 = new JLabel("");
+ label_2.setIcon(new ImageIcon("res/EPFL_logo.png"));
+
+ label_3 = new JLabel("");
+ label_3.setIcon(new ImageIcon("res/chuv_logo.png"));
+
+ label_4 = new JLabel("Dear Doctor,");
+ label_4.setFont(new Font("Tahoma", Font.BOLD, 14));
+
+ scrollPane = new JScrollPane();
+ scrollPane.setBorder(null);
+ GroupLayout gl_panel_1 = new GroupLayout(panel_1);
+ gl_panel_1.setHorizontalGroup(
+ gl_panel_1.createParallelGroup(Alignment.LEADING)
+ .addGroup(gl_panel_1.createSequentialGroup()
+ .addGap(25)
+ .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
+ .addComponent(label_3)
+ .addComponent(label_2)
+ .addComponent(label_1, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE))
+ .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
+ .addGroup(gl_panel_1.createSequentialGroup()
+ .addGap(20)
+ .addComponent(label_4)
+ .addGap(109))
+ .addGroup(gl_panel_1.createSequentialGroup()
+ .addGap(10)
+ .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 557, Short.MAX_VALUE)
+ .addContainerGap())))
+ );
+ gl_panel_1.setVerticalGroup(
+ gl_panel_1.createParallelGroup(Alignment.LEADING)
+ .addGroup(gl_panel_1.createSequentialGroup()
+ .addContainerGap()
+ .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
+ .addGroup(gl_panel_1.createSequentialGroup()
+ .addComponent(label_4)
+ .addPreferredGap(ComponentPlacement.UNRELATED)
+ .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 416, Short.MAX_VALUE))
+ .addGroup(gl_panel_1.createSequentialGroup()
+ .addGap(9)
+ .addComponent(label_1, GroupLayout.PREFERRED_SIZE, 96, GroupLayout.PREFERRED_SIZE)
+ .addGap(18)
+ .addComponent(label_2)
+ .addGap(28)
+ .addComponent(label_3)))
+ .addContainerGap(114, GroupLayout.PREFERRED_SIZE))
+ );
+
+ introduction = new JTextPane();
+ introduction.setBackground(SystemColor.control);
+ introduction.setContentType("text/html");
+ introduction.setText("You are receiving a pharmacogenetics report based on the genome of your patient. Because of its highly sensitive nature, the genetic information you are provided with is processed in a privacy-preserving way. In particular, to protect patients\u2019 genomic privacy, their genetic and clinical data are stored encrypted at the SHCS data center, and securely analyzed through a sophisticated algorithm designed and developed at EPFL [1, 2]. The actual clinical and genetic information is never revealed. Only the authorized users, such as you, can get some processed information, for example, the interpreted final result of a pharmacogenetics risk test.\r\nThis mechanism protects the data against insiders or hackers trying to illegally access patients\u2019 medical information, while still allowing authorized users to obtain the information they need.\r\n<br><br>\r\n<b>To help us better understanding the importance of genomic privacy in the medical domain, and the impact of privacy-enhancing technologies in daily clinical practice, please complete the following survey. Answers are on a scale from 1 (Strongly Disagree) to 5 (Strongly Agree).</b>\r\n<font size=\"2\">\r\n<br><br>\r\nNote: this work is part of Project #693, funded by the Swiss HIV Cohort. PIs: Prof. A. Telenti, formerly at CHUV, and Prof. J.-P. Hubaux, at EPFL.\r\n<br><br>\r\n[1] J. L. Raisaro, E. Ayday, P. J. McLaren, J.-P. Hubaux, and A. Telenti. Privacy-Preserving HIV Pharmacogenetics: A Real Use Case of Genomic Data Protection. GenoPri 2014<br>\r\n[2] E. Ayday, J. L. Raisaro, J. Rougemont, and J.-P. Hubaux. Protecting and Evaluating Genomic Privacy in Medical Tests and Personalized Medicine. WPES 2013\r\n</font>");
+ scrollPane.setViewportView(introduction);
+ panel_1.setLayout(gl_panel_1);
+
+ jScrollPane4 = new JScrollPane();
+ jScrollPane4.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
+ splitPane.setRightComponent(jScrollPane4);
+
+
+ jScrollPane4.setViewportView(panel_2);
+ javax.swing.SwingUtilities.invokeLater(new Runnable() {
+ public void run() {
+ jScrollPane4.getVerticalScrollBar().setValue(0);
+ }
+ });
+ introduction.setCaretPosition(0);
panel.setLayout(gl_panel);
/////////////////////////////////////////////////////////
// display the tests available
// get the tests
HashMap<String, ArrayList<TestName>> testsRelevantByGroup = connectorClientDB.getRelevantTestsByGroup();
ArrayList<String> groups = new ArrayList<String>(testsRelevantByGroup.keySet());
// flatten hashmap into linkedlist
// tests = new LinkedList<>();
testsByName = new HashMap<String, TestName>();
for (String group : groups) {
// tests.addAll(testsRelevantByGroup.get(group));
for (TestName test : testsRelevantByGroup.get(group)) {
testsByName.put(test.getName(), test);
}
}
// define tree structure of the tests
DefaultMutableTreeNode root = new DefaultMutableTreeNode("All");
for (String group : groups) {
DefaultMutableTreeNode child = new DefaultMutableTreeNode(group);
root.add(child);
for (TestName test : testsRelevantByGroup.get(group)) {
DefaultMutableTreeNode grandChild = new DefaultMutableTreeNode(test.getName());
child.add(grandChild);
}
}
// define swing object
jTree = new JTree(root);
+ jTree.setFont(new Font("Tahoma", Font.PLAIN, 11));
for(int i=0;i<jTree.getRowCount();i++){
jTree.expandRow(i);
}
jScrollPane3.setViewportView(jTree);
// jTree.addTreeSelectionListener(new TreeSelectionListener() {
//
// @Override
// public void valueChanged(TreeSelectionEvent e) {
// tp = jTree.getSelectionPaths();
// }
// });
jScrollPane3.setViewportView(jTree);
/////////////////////////////////////////////////////////
// display the patients registered
patients = connectorClientDB.getPatients();
for (Integer patientId : patients) {
jComboBox1.addItem(patientId.toString());
}
} catch (SQLException ex) {
Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex);
ex.printStackTrace();
// } catch (IOException e) {
// // TODO Auto-generated catch block
// e.printStackTrace();
// } catch (DocumentException e) {
// // TODO Auto-generated catch block
// e.printStackTrace();
}
}
/**
* 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() {
-
- jPanel1 = new javax.swing.JPanel();
- jLabel2 = new javax.swing.JLabel();
- jLabel1 = new javax.swing.JLabel();
jPanel2 = new javax.swing.JPanel();
jComboBox1 = new javax.swing.JComboBox<String>();
+ jComboBox1.setFont(new Font("Tahoma", Font.BOLD, 12));
jButton1 = new javax.swing.JButton();
jButton1.setFont(new Font("Tahoma", Font.BOLD, 12));
jLabel3 = new javax.swing.JLabel();
jLabel4 = new javax.swing.JLabel();
jScrollPane3 = new javax.swing.JScrollPane();
jScrollPane2 = new javax.swing.JScrollPane();
+ jScrollPane2.setMinimumSize(new Dimension(5, 5));
jMenuBar1 = new javax.swing.JMenuBar();
jMenu1 = new javax.swing.JMenu();
jMenuItem1 = new javax.swing.JMenuItem();
jMenu2 = new javax.swing.JMenu();
dialog = new JDialog();
tabbedPane = new JTabbedPane(JTabbedPane.TOP);
+ tabbedPane.setFont(new Font("Tahoma", Font.BOLD, 12));
setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
addWindowListener(new WindowAdapter() {
@Override
public void windowClosing(java.awt.event.WindowEvent windowEvent) {
if (!survey_submitted && close_trials <= 2){
JOptionPane.showMessageDialog(frame, "Before closing the application, please fill in and submit the questionnaire.");
close_trials++;
tabbedPane.setSelectedIndex(1);
}else{
System.exit(0);
}
}
});
- setTitle("HIV Pharmacogenomics\n");
-
- jLabel2.setIcon(new javax.swing.ImageIcon("res/shcs_logo2_small.gif")); // NOI18N
-
- jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
- jLabel1.setText("HIV Pharmacogenomics | Project #693");
-
- javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
- jPanel1.setLayout(jPanel1Layout);
- jPanel1Layout.setHorizontalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap(71, Short.MAX_VALUE)
- .addComponent(jLabel1)
- .addGap(18, 18, 18)
- .addComponent(jLabel2))
- );
- jPanel1Layout.setVerticalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jLabel1)
- .addGap(11, 11, 11))
- .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)
- );
+ setTitle("Privacy-Preserving HIV Pharmacogenomics\r\n");
jPanel2.setBackground(new java.awt.Color(255, 255, 255));
jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<String>(new String[]{"Select Patient"}));
jButton1.setText("Run Test");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});
JLabel lblNewLabel = new JLabel("");
lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
lblNewLabel.setIcon(new javax.swing.ImageIcon("res/gears.png"));
javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
jPanel2Layout.setHorizontalGroup(
jPanel2Layout.createParallelGroup(Alignment.LEADING)
.addComponent(jComboBox1, 0, 248, Short.MAX_VALUE)
.addGroup(jPanel2Layout.createSequentialGroup()
.addGap(75)
.addGroup(jPanel2Layout.createParallelGroup(Alignment.TRAILING)
.addComponent(jButton1)
.addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 75, GroupLayout.PREFERRED_SIZE))
.addContainerGap(98, Short.MAX_VALUE))
);
jPanel2Layout.setVerticalGroup(
jPanel2Layout.createParallelGroup(Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addComponent(jComboBox1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
.addPreferredGap(ComponentPlacement.RELATED, 223, Short.MAX_VALUE)
.addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE)
.addPreferredGap(ComponentPlacement.RELATED)
.addComponent(jButton1)
.addGap(19))
);
jPanel2.setLayout(jPanel2Layout);
jLabel3.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
jLabel3.setText("Select Patient");
jLabel4.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
jLabel4.setText("Select Test");
jScrollPane3.setBackground(new java.awt.Color(255, 255, 255));
jMenu1.setText("File");
jMenuItem1.setText("Exit");
jMenu1.add(jMenuItem1);
jMenuBar1.add(jMenu1);
jMenu2.setText("Edit");
jMenuBar1.add(jMenu2);
setJMenuBar(jMenuBar1);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
layout.setHorizontalGroup(
layout.createParallelGroup(Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addGroup(layout.createParallelGroup(Alignment.LEADING, false)
- .addComponent(jLabel3)
.addComponent(jLabel4)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, 244, Short.MAX_VALUE)
- .addComponent(jScrollPane3))
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 970, Short.MAX_VALUE))
- .addContainerGap())
+ .addComponent(jLabel3)
+ .addComponent(jScrollPane3, GroupLayout.DEFAULT_SIZE, 234, Short.MAX_VALUE)
+ .addComponent(jPanel2, 0, 0, Short.MAX_VALUE))
+ .addPreferredGap(ComponentPlacement.RELATED)
+ .addComponent(tabbedPane, GroupLayout.PREFERRED_SIZE, 751, Short.MAX_VALUE)
+ .addGap(19))
);
layout.setVerticalGroup(
- layout.createParallelGroup(Alignment.LEADING)
+ layout.createParallelGroup(Alignment.TRAILING)
.addGroup(layout.createSequentialGroup()
+ .addContainerGap()
.addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel4))
- .addPreferredGap(ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(Alignment.LEADING)
+ .addComponent(tabbedPane, Alignment.LEADING, GroupLayout.PREFERRED_SIZE, 687, Short.MAX_VALUE)
.addGroup(layout.createSequentialGroup()
- .addComponent(jScrollPane3, GroupLayout.PREFERRED_SIZE, 388, GroupLayout.PREFERRED_SIZE)
+ .addComponent(jLabel4)
+ .addPreferredGap(ComponentPlacement.RELATED)
+ .addComponent(jScrollPane3, GroupLayout.PREFERRED_SIZE, 356, GroupLayout.PREFERRED_SIZE)
.addPreferredGap(ComponentPlacement.RELATED)
.addComponent(jLabel3)
.addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 785, Short.MAX_VALUE))
+ .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, 283, Short.MAX_VALUE)))
.addContainerGap())
);
jScrollPane2.setAutoscrolls(true);
jScrollPane3.setAutoscrolls(true);
tabbedPane.addTab("Report", new ImageIcon("res/report_icon.gif"), jScrollPane2, null);
tabbedPane.setBackgroundAt(0, new Color(255, 255, 255));
panel = new JPanel();
+ panel.setPreferredSize(new Dimension(0, 0));
tabbedPane.addTab("Survey", new ImageIcon("res/survey_icon.png"), panel, null);
tabbedPane.setBackgroundAt(1, new Color(255, 255, 255));
tabbedPane.setEnabledAt(1, true);
-
- panel_1 = new JPanel();
- panel_1.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
- panel_1.setBackground(SystemColor.control);
-
- JLabel label = new JLabel("");
- label.setIcon(new ImageIcon("res/shcs_logo2_medium.gif"));
-
- lblDearDoctor = new JLabel("Dear Doctor,");
- lblDearDoctor.setFont(new Font("Tahoma", Font.BOLD, 14));
-
- JScrollPane scrollPane = new JScrollPane();
- scrollPane.setBorder(null);
- GroupLayout gl_panel_1 = new GroupLayout(panel_1);
- gl_panel_1.setHorizontalGroup(
- gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(25)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addComponent(lblDearDoctor)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 763, Short.MAX_VALUE))
- .addContainerGap())
- );
- gl_panel_1.setVerticalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
- .addGroup(gl_panel_1.createSequentialGroup()
- .addContainerGap()
- .addComponent(lblDearDoctor)
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addComponent(scrollPane, GroupLayout.PREFERRED_SIZE, 169, GroupLayout.PREFERRED_SIZE))
- .addGroup(gl_panel_1.createSequentialGroup()
- .addGap(36)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 96, GroupLayout.PREFERRED_SIZE)))
- .addContainerGap(25, Short.MAX_VALUE))
- );
-
- JTextPane txtpnTodayYouAre = new JTextPane();
- txtpnTodayYouAre.setBorder(null);
- txtpnTodayYouAre.setText("Today you are receiving a pharmacogenetics report based on the genome of your patient. Because of its highly sensitive nature, " +
- "the genetic information you are provided with is processed in a privacy-preserving way. In particular, to protect patients’ genomic privacy, " +
- "their genetic and clinical data is stored encrypted at the SHCS data center, and securely analyzed through a sophisticated algorithm designed and developed at EPFL [1, 2]. " +
- "The actual clinical and genetic information is never revealed. Only the authorized users, such as you, can get some processed information, for example, the final result of a " +
- "pharmacogenetics risk test.\nThis mechanism protects the data against insiders or hackers trying to illegally access patients’ medical information, while still allowing authorized " +
- "users to obtain the information they need." +
- "\n\nTo help us understanding the importance of genomic privacy in the medical domain, and the impact of privacy-enhancing technologies in daily clinical practice, please complete the following survey.");
- txtpnTodayYouAre.setFont(new Font("Tahoma", Font.PLAIN, 13));
- txtpnTodayYouAre.setEditable(false);
- txtpnTodayYouAre.setBackground(SystemColor.control);
- scrollPane.setViewportView(txtpnTodayYouAre);
- panel_1.setLayout(gl_panel_1);
- jScrollPane4 = new javax.swing.JScrollPane();
- jScrollPane4.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
getContentPane().setLayout(layout);
buttonGroupMap = new HashMap<Integer, ButtonGroup>();
ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
CommAdapter commHandlerAdapter = new CommAdapter(connection);
ReplySurvey replySurvey = commHandlerAdapter.callServiceSurvey();
map = replySurvey.getQuestions();
ids = map.keySet();
locations = replySurvey.getLocations();
+ buttonGroupMap = new HashMap<Integer, ButtonGroup>();
+
panel_2 = new JPanel();
- panel_2.setBackground(Color.WHITE);
+ panel_2.addMouseListener(new MouseAdapter() {
+ @Override
+ public void mouseClicked(MouseEvent arg0) {
+ splitPane.setDividerLocation(0.0);
+ }
+ });
panel_2.setBorder(null);
- jScrollPane4.setViewportView(panel_2);
+ panel_2.setBackground(Color.WHITE);
panel_2.setLayout(new BoxLayout(panel_2, BoxLayout.Y_AXIS));
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
-
+
+// JLabel expand_icon = new JLabel("");
+// expand_icon.setVerticalAlignment(SwingConstants.TOP);
+// expand_icon.setHorizontalAlignment(SwingConstants.LEFT);
+// expand_icon.setAlignmentY(Component.TOP_ALIGNMENT);
+// expand_icon.setAlignmentX(Component.LEFT_ALIGNMENT);
+// expand_icon.setIcon(new ImageIcon("C:\\Users\\raisaro\\workspace\\yussef\\project\\PPPClient\\res\\expand_icon.jpg"));
+// JPanel first_row_panel = new JPanel();
+// first_row_panel.setLayout(new BoxLayout(first_row_panel, BoxLayout.X_AXIS));
+// first_row_panel.setAlignmentX(Component.LEFT_ALIGNMENT);
+// first_row_panel.add(expand_icon);
+// panel_2.add(first_row_panel);
+
+ //dynamic question generation
int type = 0;
for(Integer id : ids){
ButtonGroup group = new ButtonGroup();
- JRadioButton r1 = new JRadioButton("1"); r1.setActionCommand("1"); r1.setBackground(Color.WHITE);
- JRadioButton r2 = new JRadioButton("2"); r2.setActionCommand("2"); r2.setBackground(Color.WHITE);
- JRadioButton r3 = new JRadioButton("3"); r3.setActionCommand("3"); r3.setBackground(Color.WHITE);
- JRadioButton r4 = new JRadioButton("4"); r4.setActionCommand("4"); r4.setBackground(Color.WHITE);
- JRadioButton r5 = new JRadioButton("5"); r5.setActionCommand("5"); r5.setBackground(Color.WHITE);
+ JRadioButton r1 = new JRadioButton("1"); r1.setActionCommand("1"); r1.setBackground(Color.WHITE);
+ JRadioButton r2 = new JRadioButton("2"); r2.setActionCommand("2"); r2.setBackground(Color.WHITE);
+ JRadioButton r3 = new JRadioButton("3"); r3.setActionCommand("3"); r3.setBackground(Color.WHITE);
+ JRadioButton r4 = new JRadioButton("4"); r4.setActionCommand("4"); r4.setBackground(Color.WHITE);
+ JRadioButton r5 = new JRadioButton("5"); r5.setActionCommand("5"); r5.setBackground(Color.WHITE);
group.add(r1);
group.add(r2);
group.add(r3);
group.add(r4);
group.add(r5);
JPanel radio_panel = new JPanel();
radio_panel.setLayout((new BoxLayout(radio_panel, BoxLayout.X_AXIS)));
radio_panel.setBackground(Color.WHITE);
radio_panel.setAlignmentX(Component.CENTER_ALIGNMENT);
radio_panel.add(r1);
radio_panel.add(r2);
radio_panel.add(r3);
radio_panel.add(r4);
radio_panel.add(r5);
radio_panel.doLayout();
radio_panel.setPreferredSize(radio_panel.getPreferredSize());
JTextArea question = new JTextArea(id + ") " + map.get(id).getQuestion());
question.setEditable(false);
question.setLineWrap(true);
question.setWrapStyleWord(true);
question.setFont(new Font("Tahoma", Font.PLAIN, 13));
JPanel row_panel = new JPanel();
row_panel.setLayout(new BoxLayout(row_panel, BoxLayout.X_AXIS));
row_panel.add(Box.createRigidArea(new Dimension(20,0)));
row_panel.add(question);
row_panel.add(Box.createRigidArea(new Dimension(20,0)));
row_panel.add(radio_panel);
row_panel.add(Box.createRigidArea(new Dimension(20,0)));
row_panel.setBackground(Color.WHITE);
int type_new = map.get(id).getType();
if(type_new != type){
type = type_new;
JLabel question_group = new JLabel("");
switch(type){
case 1:
question_group.setText("Clinical Utility");
break;
case 2:
question_group.setText("Privacy Concerns");
break;
case 3:
question_group.setText("Usability Assessment");
break;
}
question_group.setAlignmentX(Component.CENTER_ALIGNMENT);
question_group.setFont(new Font("Tahoma", Font.BOLD, 13));
+ panel_2.add(new JSeparator());
panel_2.add(Box.createRigidArea(new Dimension(0,5)));
panel_2.add(question_group);
panel_2.add(Box.createRigidArea(new Dimension(0,5)));
panel_2.add(new JSeparator());
panel_2.add(Box.createRigidArea(new Dimension(0,5)));
}
panel_2.add(Box.createRigidArea(new Dimension(0,5)));
panel_2.add(row_panel);
panel_2.add(Box.createRigidArea(new Dimension(0,5)));
// panel_2.add(radio_panel);
- panel_2.add(new JSeparator());
+// panel_2.add(new JSeparator());
panel_2.add(Box.createRigidArea(new Dimension(0,5)));
// panel_2.setPreferredSize(panel_2.getPreferredSize());
buttonGroupMap.put(id, group);
}
+
+
+
-
- this.setSize(new Dimension(1300, 865));
-// pack();
+ this.setSize(new Dimension(1118, 768));
+// this.pack();
}// </editor-fold>//GEN-END:initComponents
private void submitButtonActionPerformed(java.awt.event.ActionEvent evt){
try{
answers = new HashMap<String, String>();
StringBuilder sb = new StringBuilder();
Set<Integer> questions_id = buttonGroupMap.keySet();
for(Integer q: questions_id){
ButtonGroup bg = buttonGroupMap.get(q);
sb.append(q).append(",");
sb.append(bg.getSelection().getActionCommand()).append(";");
answers.put(q.toString(),bg.getSelection().getActionCommand());
}
String answer = sb.toString();
Integer id_loc = null;
for(Integer i: locations.keySet()){
if(locations.get(i).equals(comboBox.getSelectedItem().toString()))
id_loc = i;
}
String id_p;
if(jComboBox1.getSelectedItem().toString().equals("Select Patient"))
id_p = "0";
else
id_p = jComboBox1.getSelectedItem().toString();
ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
CommAdapter commHandlerAdapter = new CommAdapter(connection);
String reply = commHandlerAdapter.callServiceSurveyAnswer(answer, id_loc.toString(), id_p);
if(reply.equals("1")){
survey_submitted = true;
dialog.setVisible(false);
JOptionPane.showMessageDialog(
this,
"Congrats! Your aswers have been sent to the SHCS datacenter.",
"Information Message",
JOptionPane.INFORMATION_MESSAGE);
+ btnSubmitQuestionnaire.setEnabled(false);
}
else{
throw new IOException();
}
} catch (NullPointerException e){
LOGGER.log(Level.SEVERE, null, e);
dialog.setVisible(false);
JOptionPane.showMessageDialog(
this,
"Please respond to all the questions!",
"Error Message",
JOptionPane.ERROR_MESSAGE);
} catch (IOException e) {
LOGGER.log(Level.SEVERE, null, e);
dialog.setVisible(false);
JOptionPane.showMessageDialog(
this,
"The SHCS datacenter does not respond. Please save the survey and send it to jean.raisaro@epfl.ch.",
"Error Message",
JOptionPane.ERROR_MESSAGE);
}
}
private void savePDFButtonActionPerformed(java.awt.event.ActionEvent evt){
try {
answers = new HashMap<String, String>();
Set<Integer> questions_id = buttonGroupMap.keySet();
for(Integer q: questions_id){
ButtonGroup bg = buttonGroupMap.get(q);
answers.put(q.toString(),bg.getSelection().getActionCommand());
}
JFileChooser chooser = new JFileChooser();
// Note: source for ExampleFileFilter can be found in FileChooserDemo,
// under the demo/jfc directory in the JDK.
int returnVal = chooser.showSaveDialog(this);
System.out.println(returnVal);
if(returnVal == JFileChooser.APPROVE_OPTION) {
System.out.println("You chose to open this file: " +
chooser.getSelectedFile().getPath());
quest = new Questionnaire(chooser.getSelectedFile().getPath() + ".pdf");
quest.createPdf(map, ids);
quest.writeAnswers(answers);
survey_submitted = true;
}else{
quest = new Questionnaire("outputPDF/survey.pdf");
quest.createPdf(map, ids);
quest.writeAnswers(answers);
survey_submitted = true;
}
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (DocumentException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (NullPointerException e) {
LOGGER.log(Level.SEVERE, null, e);
dialog.setVisible(false);
JOptionPane.showMessageDialog(
this,
"Please respond to all the questions!",
"Error Message",
JOptionPane.ERROR_MESSAGE);
}
}
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
JPanel contentPanel = new JPanel();
- dialog.setBounds(100, 100, 410, 80);
+ dialog.setBounds(100, 100, 420, 100);
dialog.getContentPane().setLayout(new BorderLayout());
contentPanel.setLayout(new FlowLayout());
contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
dialog.getContentPane().add(contentPanel, BorderLayout.CENTER);
{
- JLabel label = new JLabel("Please wait...The overall computation can take few seconds");
+ JLabel label = new JLabel("Please wait...The overall computation can take some seconds!");
+ JLabel label2 = new JLabel("Cryptographic operations are being performed at the SHCS...");
label.setHorizontalAlignment(SwingConstants.CENTER);
- label.setFont(new Font("Tahoma", Font.PLAIN, 12));
+ label.setFont(new Font("Tahoma", Font.BOLD, 12));
+ label2.setHorizontalAlignment(SwingConstants.CENTER);
+ label2.setFont(new Font("Tahoma", Font.PLAIN, 12));
contentPanel.add(label);
+ contentPanel.add(label2);
}
{
JPanel buttonPane = new JPanel();
buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
dialog.getContentPane().add(buttonPane, BorderLayout.SOUTH);
}
dialog.setLocationRelativeTo(this);
dialog.setVisible(true);
GUIWorker gw = new GUIWorker(this, props);
Thread t = new Thread(gw);
t.start();
}
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JButton jButton1;
private javax.swing.JComboBox<String> jComboBox1;
- private javax.swing.JLabel jLabel1;
- private javax.swing.JLabel jLabel2;
private javax.swing.JLabel jLabel3;
private javax.swing.JLabel jLabel4;
private javax.swing.JMenu jMenu1;
private javax.swing.JMenu jMenu2;
private javax.swing.JMenuBar jMenuBar1;
private javax.swing.JMenuItem jMenuItem1;
- private javax.swing.JPanel jPanel1;
private javax.swing.JPanel jPanel2;
private javax.swing.JScrollPane jScrollPane3;
private javax.swing.JTabbedPane tabbedPane;
private javax.swing.JScrollPane jScrollPane2;
- private javax.swing.JScrollPane jScrollPane4;
private JPanel panel;
- private JPanel panel_1;
- private JPanel panel_2;
- private JLabel lblDearDoctor;
private JLabel lblNewLabel_1;
private JLabel lblNewLabel_2;
private JLabel lblNewLabel_3;
private JComboBox<String> comboBox;
private Component rigidArea;
+ private JSplitPane splitPane;
+ private JPanel panel_1;
+ private JLabel label_1;
+ private JLabel label_2;
+ private JLabel label_3;
+ private JLabel label_4;
+ private JScrollPane scrollPane;
+ private JTextPane introduction;
+ private JScrollPane jScrollPane4;
+ private JPanel panel_2;
// End of variables declaration//GEN-END:variables
class GUIWorker implements Runnable{
private JFrame mainFrame;
private ClientProperties props;
private MedUnit mu;
public GUIWorker(GUI gui, ClientProperties props) {
mainFrame = gui;
this.props = props;
this.mu = new MedUnit(props, 0);
}
@Override
public void run() {
try{
int patientId = Integer.parseInt((String) jComboBox1.getSelectedItem());
// convert selected tests to test identifiers
ArrayList<TestName> selectedTests = new ArrayList<TestName>();
for (String currentName : getSelectedTests()) {
TestName currentTest = testsByName.get(currentName);
if (currentTest == null) {
throw new IllegalStateException("Trying to run unknown test: " + currentTest);
}
selectedTests.add(currentTest);
}
// run tests
Diagnostic diagnostic = mu.runTests(patientId, selectedTests);
// warn for tests with missing material
warnFailedTests(diagnostic, selectedTests);
// create report
mu.createReport(patientId, selectedTests, diagnostic);
dialog.setVisible(false);
// specify file you wish to open (JPedal handles getting the byte data)
String filepathReport = props.getPathPDF() + patientId + ".pdf";
// open generated PDF
// object must be either String in full filepath, or
// File object which can be relative
Object[] input = new Object[]{ new File(filepathReport) };
viewer.executeCommand(Commands.OPENFILE, input);
// display CAD result as bar plot
if (diagnostic.hasCAD()) {
System.out.println("CAD = " + diagnostic.getResultCAD());
BarPlotFrame frame = new BarPlotFrame(diagnostic.getResultCAD(), patientId);
frame.setVisible(true);
frame.setAlwaysOnTop(true);
}
} catch (SQLException e) {
LOGGER.log(Level.SEVERE, null, e);
displayError("Not able to connect to service. Please try again.");
} catch (IOException e) {
LOGGER.log(Level.SEVERE, null, e);
displayError("Not able to connect to service. Please try again.");
} catch (NullPointerException e){
LOGGER.log(Level.SEVERE, null, e);
- displayError("Please select a patient.");
+ displayError("Please select a patient and one or multiple tests.");
+ } catch (NumberFormatException e){
+ LOGGER.log(Level.SEVERE, null, e);
+ displayError("Please select a patient and one or multiple tests.");
}
}
private void warnFailedTests(Diagnostic diagnostic, ArrayList<TestName> selectedTests) {
ArrayList<Integer> failedTests = diagnostic.getInvalidTests();
if (!failedTests.isEmpty()) {
String msg = "Could not complete tests: ";
boolean first = true;
for (TestName testName : selectedTests) {
if (failedTests.contains(testName.getId())) {
if (first) {
first = false;
} else {
msg += ", ";
}
msg += testName.getName();
}
}
displayError(msg);
}
}
private void displayError(String msg) {
dialog.setVisible(false);
JOptionPane.showMessageDialog(
mainFrame,
msg,
"Error Message",
JOptionPane.ERROR_MESSAGE);
}
private ArrayList<String> getSelectedTests() {
ArrayList<String> tests = new ArrayList<String>();
for (TreePath treePath : jTree.getSelectionPaths()) {
tests.addAll(getChildrenTests(jTree.getModel(), treePath.getLastPathComponent()));
}
return tests;
}
private ArrayList<String> getChildrenTests(TreeModel model, Object node) {
ArrayList<String> tests = new ArrayList<String>();
if (model.isLeaf(node)) { // leaf
DefaultMutableTreeNode leaf = (DefaultMutableTreeNode) node;
tests.add(leaf.toString());
}
else { // iterate over children
for (int i = 0; i < model.getChildCount(node); i++) {
tests.addAll(getChildrenTests(model, model.getChild(node, i)));
}
}
return tests;
}
}
}
diff --git a/project/PPPClient/src/ui/GUIbis.java b/project/PPPClient/src/ui/GUIbis.java
deleted file mode 100644
index ddceb8b..0000000
--- a/project/PPPClient/src/ui/GUIbis.java
+++ /dev/null
@@ -1,621 +0,0 @@
-package ui;
-
-import io.ClientConnection;
-import io.CommAdapter;
-
-import java.awt.BorderLayout;
-import java.awt.Color;
-import java.awt.Component;
-import java.awt.Dimension;
-import java.awt.FlowLayout;
-import java.awt.Font;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.awt.event.WindowAdapter;
-import java.io.File;
-import java.io.IOException;
-import java.sql.SQLException;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.LinkedList;
-import java.util.Map;
-import java.util.Set;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
-import javax.swing.BoxLayout;
-import javax.swing.ButtonGroup;
-import javax.swing.GroupLayout;
-import javax.swing.GroupLayout.Alignment;
-import javax.swing.ImageIcon;
-import javax.swing.JButton;
-import javax.swing.JDialog;
-import javax.swing.JFrame;
-import javax.swing.JLabel;
-import javax.swing.JOptionPane;
-import javax.swing.JPanel;
-import javax.swing.JRadioButton;
-import javax.swing.JTabbedPane;
-import javax.swing.JTextPane;
-import javax.swing.JTree;
-import javax.swing.LayoutStyle.ComponentPlacement;
-import javax.swing.SwingConstants;
-import javax.swing.border.EmptyBorder;
-import javax.swing.border.LineBorder;
-import javax.swing.tree.DefaultMutableTreeNode;
-import javax.swing.tree.TreeModel;
-import javax.swing.tree.TreePath;
-
-import org.jpedal.examples.viewer.Commands;
-import org.jpedal.examples.viewer.Viewer;
-
-import utils.ClientProperties;
-import database.DBconnectorClient;
-import framework.Diagnostic;
-import framework.MedUnit;
-import framework.Question;
-import framework.reply.ReplySurvey;
-import framework.test.TestName;
-import javax.swing.JScrollPane;
-import javax.swing.JSpinner;
-import javax.swing.ScrollPaneConstants;
-import javax.swing.JTextArea;
-
-/**
- *
- * @author youssef, raisaro
- */
-public class GUIbis extends javax.swing.JFrame {
-
- private static final Logger LOGGER = Logger.getLogger(GUIbis.class.getName());
-
- private static final long serialVersionUID = -4582280515597700650L;
-
- // configuration
- private ClientProperties props;
-
- private JTree jTree;
-// private TreePath[] tp;
- private DBconnectorClient connectorClientDB;
- private LinkedList<Integer> patients;
- /** List of all relevant tests */
- private HashMap<String, TestName> testsByName;
- private Viewer viewer;
- private JDialog dialog;
- private JFrame frame;
- private boolean survey_submitted;
- private int close_trials;
- private Map<Integer, ButtonGroup> buttonGroupMap;
-
- /**
- * Creates new form GUI
- */
- public GUIbis(ClientProperties props){
-
- frame = this;
- this.props = props;
- this.connectorClientDB = new DBconnectorClient(props.getDbMsAccess());
- survey_submitted = false;
- close_trials = 0;
-
-
- try {
- initComponents();
- viewer = new Viewer(jScrollPane2, null);
- viewer.setupViewer();
-
- /////////////////////////////////////////////////////////
- // display the tests available
-
- // get the tests
- HashMap<String, ArrayList<TestName>> testsRelevantByGroup = connectorClientDB.getRelevantTestsByGroup();
- ArrayList<String> groups = new ArrayList<String>(testsRelevantByGroup.keySet());
-
- // flatten hashmap into linkedlist
-// tests = new LinkedList<>();
- testsByName = new HashMap<String, TestName>();
- for (String group : groups) {
-// tests.addAll(testsRelevantByGroup.get(group));
- for (TestName test : testsRelevantByGroup.get(group)) {
- testsByName.put(test.getName(), test);
- }
- }
-
- // define tree structure of the tests
- DefaultMutableTreeNode root = new DefaultMutableTreeNode("All");
-
- for (String group : groups) {
- DefaultMutableTreeNode child = new DefaultMutableTreeNode(group);
- root.add(child);
-
- for (TestName test : testsRelevantByGroup.get(group)) {
- DefaultMutableTreeNode grandChild = new DefaultMutableTreeNode(test.getName());
- child.add(grandChild);
- }
- }
-
- // define swing object
- jTree = new JTree(root);
-
- for(int i=0;i<jTree.getRowCount();i++){
- jTree.expandRow(i);
- }
-
- jScrollPane3.setViewportView(jTree);
-// jTree.addTreeSelectionListener(new TreeSelectionListener() {
-//
-// @Override
-// public void valueChanged(TreeSelectionEvent e) {
-// tp = jTree.getSelectionPaths();
-// }
-// });
- jScrollPane3.setViewportView(jTree);
-
- /////////////////////////////////////////////////////////
- // display the patients registered
-
- patients = connectorClientDB.getPatients();
- for (Integer patientId : patients) {
- jComboBox1.addItem(patientId.toString());
- }
-
- } catch (SQLException ex) {
- Logger.getLogger(GUIbis.class.getName()).log(Level.SEVERE, null, ex);
- ex.printStackTrace();
- }
-
- }
-
- /**
- * 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() {
-
- jPanel1 = new javax.swing.JPanel();
- jLabel2 = new javax.swing.JLabel();
- jLabel1 = new javax.swing.JLabel();
- jPanel2 = new javax.swing.JPanel();
- jComboBox1 = new javax.swing.JComboBox<String>();
- jButton1 = new javax.swing.JButton();
- jLabel3 = new javax.swing.JLabel();
- jLabel4 = new javax.swing.JLabel();
- jScrollPane3 = new javax.swing.JScrollPane();
- jScrollPane2 = new javax.swing.JScrollPane();
- jScrollPane4 = new javax.swing.JScrollPane();
- jMenuBar1 = new javax.swing.JMenuBar();
- jMenu1 = new javax.swing.JMenu();
- jMenuItem1 = new javax.swing.JMenuItem();
- jMenu2 = new javax.swing.JMenu();
- dialog = new JDialog();
- tabbedPane = new JTabbedPane(JTabbedPane.TOP);
-
- setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
- addWindowListener(new WindowAdapter() {
- @Override
- public void windowClosing(java.awt.event.WindowEvent windowEvent) {
- if (!survey_submitted && close_trials <= 3){
- JOptionPane.showMessageDialog(frame, "Before closing the application, please fill in and submit the questionnaire.");
- close_trials++;
- tabbedPane.setSelectedIndex(1);
- }else{
- System.exit(0);
- }
- }
- });
- setTitle("HIV Pharmacogenomics\n");
-
- jLabel2.setIcon(new javax.swing.ImageIcon("res/shcs_logo2_small.gif")); // NOI18N
-
- jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
- jLabel1.setText("HIV Pharmacogenomics | Project #693");
-
- javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
- jPanel1.setLayout(jPanel1Layout);
- jPanel1Layout.setHorizontalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap(71, Short.MAX_VALUE)
- .addComponent(jLabel1)
- .addGap(18, 18, 18)
- .addComponent(jLabel2))
- );
- jPanel1Layout.setVerticalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jLabel1)
- .addGap(11, 11, 11))
- .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)
- );
-
- jPanel2.setBackground(new java.awt.Color(255, 255, 255));
- jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
-
- jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<String>(new String[]{"Select Patient"}));
-
- jButton1.setText("Run Test");
- jButton1.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton1ActionPerformed(evt);
- }
- });
-
-
-
- javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
- jPanel2Layout.setHorizontalGroup(
- jPanel2Layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jComboBox1, 0, 248, Short.MAX_VALUE)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addContainerGap(89, Short.MAX_VALUE)
- .addComponent(jButton1)
- .addGap(84))
- );
- jPanel2Layout.setVerticalGroup(
- jPanel2Layout.createParallelGroup(Alignment.LEADING)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addComponent(jComboBox1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED, 196, Short.MAX_VALUE)
- .addComponent(jButton1)
- .addGap(72))
- );
- jPanel2.setLayout(jPanel2Layout);
-
- jLabel3.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel3.setText("Select Patient");
-
- jLabel4.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
- jLabel4.setText("Select Test");
-
- jScrollPane3.setBackground(new java.awt.Color(255, 255, 255));
-
- jMenu1.setText("File");
-
- jMenuItem1.setText("Exit");
- jMenu1.add(jMenuItem1);
-
- jMenuBar1.add(jMenu1);
-
- jMenu2.setText("Edit");
- jMenuBar1.add(jMenu2);
-
- setJMenuBar(jMenuBar1);
-
-
-
- javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
- layout.setHorizontalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(layout.createParallelGroup(Alignment.LEADING, false)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
- .addComponent(jLabel3)
- .addComponent(jLabel4)
- .addComponent(jScrollPane3))
- .addGroup(layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addPreferredGap(ComponentPlacement.RELATED, 423, Short.MAX_VALUE)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addContainerGap())
- .addGroup(layout.createSequentialGroup()
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 800, GroupLayout.DEFAULT_SIZE)
- .addContainerGap())))
- );
- layout.setVerticalGroup(
- layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel4))
- .addPreferredGap(ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addComponent(jScrollPane3, GroupLayout.PREFERRED_SIZE, 388, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jLabel3)
- .addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 727, GroupLayout.DEFAULT_SIZE))
- .addContainerGap())
- );
-
-
- jScrollPane2.setAutoscrolls(true);
- jScrollPane3.setAutoscrolls(true);
- tabbedPane.addTab("Report", null, jScrollPane2, null);
- tabbedPane.addTab("Questionnaire", null, jScrollPane4, null);
-
- panel = new JPanel();
- panel.setBackground(Color.WHITE);
- panel.setBorder(null);
- jScrollPane4.setColumnHeaderView(panel);
- panel.setLayout(new BoxLayout(panel, BoxLayout.X_AXIS));
-
-// JLabel label_1 = new JLabel();
-// label_1.setBackground(Color.WHITE);
-// label_1.setIcon(new javax.swing.ImageIcon("res/shcs_logo2_medium.gif"));
-// panel.add(label_1);
-
-
-
-
- JTextPane textPane = new JTextPane();
- textPane.setEditable(false);
- textPane.setFont(new Font("Tahoma", Font.PLAIN, 12));
- textPane.setContentType("text/html\r\n");
- textPane.setText("Today you are receiving a pharmacogenetic report based on the genetic information of your patient. Because the human genome contains extremely private and sensitive information of an individual (such as disease predisposition, ethnicity and kinship), and represents a unique identifier, it must be managed with care. Traditional approaches to privacy, such as de-identification or aggregation have been proved to be ineffective with genomic data. The leakage of such information can pave the way to different abuses and threats (e.g., labor discrimination, health insurance discrimination, etc.). This software, designed and developed at EFPL [1,2], allows you to obtain results of pharmacogenetic tests while preserving the genomic privacy of patients. In particular, the genomic and clinical data of every patient is encrypted and securely stored at the SHCS data center and through a sophisticated algorithm, it can be processed for personalized medicine methods. The various tests are directly performed on the encrypted data and only authorized users can obtain the final result. This mechanism protects against insiders or hackers trying to illegally access and get the genomic information of patients." +
- "Through this questionnaire, we aim at evaluating the impact and the level of acceptance of this privacy-preserving technique in the daily clinical practice.");
- BorderLayout bl_noWrapPanel = new BorderLayout();
- bl_noWrapPanel.setVgap(50);
- bl_noWrapPanel.setHgap(20);
- JPanel noWrapPanel = new JPanel(bl_noWrapPanel);
- noWrapPanel.setBackground(Color.WHITE);
- noWrapPanel.setBorder(null);
- noWrapPanel.setPreferredSize(new Dimension(400,200));
- noWrapPanel.add(textPane);
- JScrollPane textscrollPane = new JScrollPane(noWrapPanel);
-// textscrollPane.setPreferredSize(new Dimension(400,200));
- textscrollPane.setViewportView(noWrapPanel); // creates a wrapped scroll pane using the text pane as a viewport.
-
- lblIcon = new JLabel();
- lblIcon.setHorizontalAlignment(SwingConstants.CENTER);
- lblIcon.setIcon(new javax.swing.ImageIcon("res/shcs_logo2_medium.gif"));
- noWrapPanel.add(lblIcon, BorderLayout.WEST);
-
- panel.add(textscrollPane);
-
-
- scrollPane = new JScrollPane();
- jScrollPane4.setViewportView(scrollPane);
-
- JPanel panel_1 = new JPanel();
- panel_1.setBorder(null);
- panel_1.setBackground(Color.WHITE);
- scrollPane.setViewportView(panel_1);
- panel_1.setLayout(new BoxLayout(panel_1, BoxLayout.Y_AXIS));
-
-
- getContentPane().setLayout(layout);
-
-
- // create questionnare
-
- buttonGroupMap = new HashMap<Integer, ButtonGroup>();
- ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
- CommAdapter commHandlerAdapter = new CommAdapter(connection);
- ReplySurvey replySurvey = commHandlerAdapter.callServiceSurvey();
-
- Map<Integer, Question> map = replySurvey.getQuestions();
- Set<Integer> ids = map.keySet();
-
- for(Integer id :ids){
- ButtonGroup group = new ButtonGroup();
- JRadioButton r1 = new JRadioButton("1"); r1.setActionCommand("1");
- JRadioButton r2 = new JRadioButton("2"); r2.setActionCommand("2");
- JRadioButton r3 = new JRadioButton("3"); r3.setActionCommand("3");
- JRadioButton r4 = new JRadioButton("4"); r4.setActionCommand("4");
- JRadioButton r5 = new JRadioButton("5"); r5.setActionCommand("5");
- group.add(r1);
- group.add(r2);
- group.add(r3);
- group.add(r4);
- group.add(r5);
- JPanel radio_panel = new JPanel();
- radio_panel.setLayout(new FlowLayout(FlowLayout.CENTER, 10, 5));
- radio_panel.setBackground(Color.WHITE);
- radio_panel.setAlignmentX(Component.CENTER_ALIGNMENT);
- radio_panel.add(r1);
- radio_panel.add(r2);
- radio_panel.add(r3);
- radio_panel.add(r4);
- radio_panel.add(r5);
- radio_panel.doLayout();
- radio_panel.setPreferredSize(radio_panel.getPreferredSize());
- JLabel label = new JLabel(map.get(id).getQuestion());
- label.setAlignmentX(Component.CENTER_ALIGNMENT);
- panel_1.add(label);
- panel_1.add(radio_panel);
- buttonGroupMap.put(id, group);
-
- }
-
- btnNewButton = new JButton("Submit Questionnaire");
- btnNewButton.setAlignmentX(Component.CENTER_ALIGNMENT);
- panel_1.add(btnNewButton);
-
-
- pack();
- }// </editor-fold>//GEN-END:initComponents
-
-
-
- private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
-
- JPanel contentPanel = new JPanel();
-
- dialog.setBounds(100, 100, 410, 80);
- dialog.getContentPane().setLayout(new BorderLayout());
- contentPanel.setLayout(new FlowLayout());
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- dialog.getContentPane().add(contentPanel, BorderLayout.CENTER);
- {
- JLabel label = new JLabel("Please wait...The overall computation can take few seconds");
- label.setHorizontalAlignment(SwingConstants.CENTER);
- label.setFont(new Font("Tahoma", Font.PLAIN, 12));
- contentPanel.add(label);
- }
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
- dialog.getContentPane().add(buttonPane, BorderLayout.SOUTH);
- }
- dialog.setLocationRelativeTo(this);
- dialog.setVisible(true);
-
- GUIWorker gw = new GUIWorker(this, props);
- Thread t = new Thread(gw);
- t.start();
-
- }
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JButton jButton1;
- private javax.swing.JComboBox<String> jComboBox1;
- private javax.swing.JLabel jLabel1;
- private javax.swing.JLabel jLabel2;
- private javax.swing.JLabel jLabel3;
- private javax.swing.JLabel jLabel4;
- private javax.swing.JMenu jMenu1;
- private javax.swing.JMenu jMenu2;
- private javax.swing.JMenuBar jMenuBar1;
- private javax.swing.JMenuItem jMenuItem1;
- private javax.swing.JPanel jPanel1;
- private javax.swing.JPanel jPanel2;
- private javax.swing.JScrollPane jScrollPane3;
- private javax.swing.JTabbedPane tabbedPane;
- private javax.swing.JScrollPane jScrollPane2;
- private javax.swing.JScrollPane jScrollPane4;
- private JPanel panel;
- private JScrollPane scrollPane;
- private JButton btnNewButton;
- private JLabel lblIcon;
-
- // End of variables declaration//GEN-END:variables
-
-
- class GUIWorker implements Runnable{
-
- private JFrame mainFrame;
- private ClientProperties props;
- private MedUnit mu;
-
- public GUIWorker(GUIbis gui, ClientProperties props) {
- mainFrame = gui;
-
- this.props = props;
- this.mu = new MedUnit(props, 0);
- }
-
- @Override
- public void run() {
-
- try{
- int patientId = Integer.parseInt((String) jComboBox1.getSelectedItem());
-
- // convert selected tests to test identifiers
- ArrayList<TestName> selectedTests = new ArrayList<TestName>();
- for (String currentName : getSelectedTests()) {
- TestName currentTest = testsByName.get(currentName);
-
- if (currentTest == null) {
- throw new IllegalStateException("Trying to run unknown test: " + currentTest);
- }
-
- selectedTests.add(currentTest);
- }
-
- // run tests
- Diagnostic diagnostic = mu.runTests(patientId, selectedTests);
-
- // warn for tests with missing material
- warnFailedTests(diagnostic, selectedTests);
-
- // create report
- mu.createReport(patientId, selectedTests, diagnostic);
-
- dialog.setVisible(false);
-
- // specify file you wish to open (JPedal handles getting the byte data)
- String filepathReport = props.getPathPDF() + patientId + ".pdf";
-
- // open generated PDF
- // object must be either String in full filepath, or
- // File object which can be relative
- Object[] input = new Object[]{ new File(filepathReport) };
- viewer.executeCommand(Commands.OPENFILE, input);
-
- // display CAD result as bar plot
- if (diagnostic.hasCAD()) {
- System.out.println("CAD = " + diagnostic.getResultCAD());
- BarPlotFrame frame = new BarPlotFrame(diagnostic.getResultCAD(), patientId);
- frame.setVisible(true);
- frame.setAlwaysOnTop(true);
- }
-
-
- } catch (SQLException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (IOException e) {
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Not able to connect to service. Please try again.");
- } catch (NullPointerException e){
- LOGGER.log(Level.SEVERE, null, e);
- displayError("Please select a patient.");
- }
-
- }
-
- private void warnFailedTests(Diagnostic diagnostic, ArrayList<TestName> selectedTests) {
- ArrayList<Integer> failedTests = diagnostic.getInvalidTests();
-
- if (!failedTests.isEmpty()) {
- String msg = "Could not complete tests: ";
- boolean first = true;
- for (TestName testName : selectedTests) {
- if (failedTests.contains(testName.getId())) {
- if (first) {
- first = false;
- } else {
- msg += ", ";
- }
- msg += testName.getName();
- }
- }
- displayError(msg);
- }
-
- }
-
- private void displayError(String msg) {
- dialog.setVisible(false);
- JOptionPane.showMessageDialog(
- mainFrame,
- msg,
- "Error Message",
- JOptionPane.ERROR_MESSAGE);
- }
-
- private ArrayList<String> getSelectedTests() {
- ArrayList<String> tests = new ArrayList<String>();
-
- for (TreePath treePath : jTree.getSelectionPaths()) {
- tests.addAll(getChildrenTests(jTree.getModel(), treePath.getLastPathComponent()));
- }
-
- return tests;
- }
-
- private ArrayList<String> getChildrenTests(TreeModel model, Object node) {
- ArrayList<String> tests = new ArrayList<String>();
-
- if (model.isLeaf(node)) { // leaf
- DefaultMutableTreeNode leaf = (DefaultMutableTreeNode) node;
- tests.add(leaf.toString());
- }
- else { // iterate over children
- for (int i = 0; i < model.getChildCount(node); i++) {
- tests.addAll(getChildrenTests(model, model.getChild(node, i)));
- }
- }
-
- return tests;
- }
-
- }
-}
diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/e2/70e70c886cac00141cc3aa66275e9c24 b/project/PPPClient/src/ui/OldGUI.java
similarity index 81%
rename from .metadata/.plugins/org.eclipse.core.resources/.history/e2/70e70c886cac00141cc3aa66275e9c24
rename to project/PPPClient/src/ui/OldGUI.java
index 8b30fef..d84f030 100644
--- a/.metadata/.plugins/org.eclipse.core.resources/.history/e2/70e70c886cac00141cc3aa66275e9c24
+++ b/project/PPPClient/src/ui/OldGUI.java
@@ -1,927 +1,900 @@
package ui;
import io.ClientConnection;
import io.CommAdapter;
import io.Questionnaire;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Font;
import java.awt.SystemColor;
+import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowAdapter;
import java.io.File;
import java.io.IOException;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.Map;
import java.util.Set;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.Box;
import javax.swing.BoxLayout;
import javax.swing.ButtonGroup;
import javax.swing.DefaultComboBoxModel;
import javax.swing.GroupLayout;
import javax.swing.GroupLayout.Alignment;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JDialog;
import javax.swing.JFileChooser;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JRadioButton;
import javax.swing.JScrollPane;
import javax.swing.JSeparator;
import javax.swing.JTabbedPane;
import javax.swing.JTextArea;
import javax.swing.JTextPane;
import javax.swing.JTree;
import javax.swing.LayoutStyle.ComponentPlacement;
import javax.swing.SwingConstants;
import javax.swing.border.EmptyBorder;
import javax.swing.border.LineBorder;
import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.tree.TreeModel;
import javax.swing.tree.TreePath;
import org.jpedal.examples.viewer.Commands;
import org.jpedal.examples.viewer.Viewer;
import utils.ClientProperties;
import com.itextpdf.text.DocumentException;
import database.DBconnectorClient;
import framework.Diagnostic;
import framework.MedUnit;
import framework.Question;
import framework.reply.ReplySurvey;
import framework.test.TestName;
/**
*
- * @author youssef, raisaro
+ * @author raisaro
*/
-public class GUI extends javax.swing.JFrame {
+public class OldGUI extends javax.swing.JFrame {
- private static final Logger LOGGER = Logger.getLogger(GUI.class.getName());
+ private static final Logger LOGGER = Logger.getLogger(OldGUI.class.getName());
private static final long serialVersionUID = -4582280515597700650L;
// configuration
private ClientProperties props;
private JTree jTree;
private DBconnectorClient connectorClientDB;
private LinkedList<Integer> patients;
/** List of all relevant tests */
private HashMap<String, TestName> testsByName;
private Viewer viewer;
private JDialog dialog;
private JFrame frame;
private boolean survey_submitted;
private int close_trials;
private Map<Integer, ButtonGroup> buttonGroupMap;
private Questionnaire quest;
private Map<Integer, Question> map;
private Set<Integer> ids;
private Map<String,String> answers;
private Map<Integer, String> locations;
/**
* Creates new form GUI
*/
- public GUI(ClientProperties props){
+ public OldGUI(ClientProperties props){
+ setIconImage(Toolkit.getDefaultToolkit().getImage("res/shcs_logo2_icon.png"));
frame = this;
this.props = props;
this.connectorClientDB = new DBconnectorClient(props.getDbMsAccess());
survey_submitted = false;
close_trials = 0;
try {
initComponents();
viewer = new Viewer(jScrollPane2, null);
viewer.setupViewer();
- // create questionnare
-
+ // create questionnare
+
System.out.println("#of questions: " + ids.size());
-// viewer_q = new Viewer(jScrollPane4, null);
-// viewer_q.setupViewer();
-//
-// // specify file you wish to open (JPedal handles getting the byte data)
-// String filepathReport = "outputPDF/buttons_filled.pdf";
-//
-// // open generated PDF
-// // object must be either String in full filepath, or
-// // File object which can be relative
-// Object[] input = new Object[]{ new File(filepathReport) };
-// viewer_q.executeCommand(Commands.OPENFILE, input);
JButton btnSubmitQuestionnaire = new JButton("Submit Questionnaire");
btnSubmitQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
btnSubmitQuestionnaire.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
submitButtonActionPerformed(arg0);
}
});
JButton btnResetQuestionnaire = new JButton("Save as PDF");
btnResetQuestionnaire.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
savePDFButtonActionPerformed(arg0);
}
});
btnResetQuestionnaire.setFont(new Font("Tahoma", Font.BOLD, 12));
JPanel panel_button = new JPanel();
panel_button.setLayout(new BoxLayout(panel_button, BoxLayout.X_AXIS));
lblNewLabel_3 = new JLabel("");
lblNewLabel_3.setIcon(new ImageIcon("res/location_icon.png"));
panel_button.add(lblNewLabel_3);
comboBox = new JComboBox<String>();
comboBox.setFont(new Font("Tahoma", Font.BOLD, 12));
comboBox.setModel(new DefaultComboBoxModel<String>(new String[] {"Select Location"}));
for(Integer id_loc : locations.keySet()){
comboBox.addItem(locations.get(id_loc));
}
panel_button.add(comboBox);
rigidArea = Box.createRigidArea(new Dimension(10, 0));
panel_button.add(rigidArea);
lblNewLabel_1 = new JLabel("");
lblNewLabel_1.setIcon(new ImageIcon("res/submit.png"));
panel_button.add(lblNewLabel_1);
panel_button.add(btnSubmitQuestionnaire);
panel_button.add(Box.createRigidArea(new Dimension(10,0)));
lblNewLabel_2 = new JLabel("");
lblNewLabel_2.setIcon(new ImageIcon("res/pdf.png"));
panel_button.add(lblNewLabel_2);
panel_button.add(btnResetQuestionnaire);
panel_button.setPreferredSize(new Dimension(211, 35));
panel_button.validate();
-
- JPanel panel_3 = new JPanel();
GroupLayout gl_panel = new GroupLayout(panel);
gl_panel.setHorizontalGroup(
gl_panel.createParallelGroup(Alignment.TRAILING)
.addGroup(gl_panel.createSequentialGroup()
- .addGap(63)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addGap(103)
- .addComponent(panel_button, GroupLayout.DEFAULT_SIZE, 498, Short.MAX_VALUE)
- .addGap(241))
+ .addGap(165)
+ .addComponent(panel_button, GroupLayout.DEFAULT_SIZE, 586, Short.MAX_VALUE)
+ .addGap(242))
.addGroup(gl_panel.createSequentialGroup()
.addGap(41)
.addGroup(gl_panel.createParallelGroup(Alignment.TRAILING)
- .addComponent(jScrollPane4, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE)
- .addComponent(panel_1, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 832, Short.MAX_VALUE))
+ .addComponent(jScrollPane4, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 920, Short.MAX_VALUE)
+ .addComponent(panel_1, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 920, Short.MAX_VALUE))
.addGap(32))
);
gl_panel.setVerticalGroup(
- gl_panel.createParallelGroup(Alignment.LEADING)
+ gl_panel.createParallelGroup(Alignment.TRAILING)
.addGroup(gl_panel.createSequentialGroup()
.addGap(22)
- .addComponent(panel_1, GroupLayout.PREFERRED_SIZE, 235, GroupLayout.PREFERRED_SIZE)
- .addGap(37)
- .addComponent(jScrollPane4, GroupLayout.DEFAULT_SIZE, 379, Short.MAX_VALUE)
- .addGap(26)
- .addGroup(gl_panel.createParallelGroup(Alignment.LEADING)
- .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(panel_button, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE)))
+ .addComponent(panel_1, GroupLayout.PREFERRED_SIZE, 333, GroupLayout.PREFERRED_SIZE)
+ .addPreferredGap(ComponentPlacement.UNRELATED)
+ .addComponent(jScrollPane4, GroupLayout.DEFAULT_SIZE, 352, Short.MAX_VALUE)
+ .addGap(18)
+ .addComponent(panel_button, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE)
+ .addContainerGap())
);
- panel_3.setLayout(new BoxLayout(panel_3, BoxLayout.X_AXIS));
panel.setLayout(gl_panel);
/////////////////////////////////////////////////////////
// display the tests available
// get the tests
HashMap<String, ArrayList<TestName>> testsRelevantByGroup = connectorClientDB.getRelevantTestsByGroup();
ArrayList<String> groups = new ArrayList<String>(testsRelevantByGroup.keySet());
// flatten hashmap into linkedlist
// tests = new LinkedList<>();
testsByName = new HashMap<String, TestName>();
for (String group : groups) {
// tests.addAll(testsRelevantByGroup.get(group));
for (TestName test : testsRelevantByGroup.get(group)) {
testsByName.put(test.getName(), test);
}
}
// define tree structure of the tests
DefaultMutableTreeNode root = new DefaultMutableTreeNode("All");
for (String group : groups) {
DefaultMutableTreeNode child = new DefaultMutableTreeNode(group);
root.add(child);
for (TestName test : testsRelevantByGroup.get(group)) {
DefaultMutableTreeNode grandChild = new DefaultMutableTreeNode(test.getName());
child.add(grandChild);
}
}
// define swing object
jTree = new JTree(root);
+ jTree.setFont(new Font("Tahoma", Font.PLAIN, 11));
for(int i=0;i<jTree.getRowCount();i++){
jTree.expandRow(i);
}
jScrollPane3.setViewportView(jTree);
// jTree.addTreeSelectionListener(new TreeSelectionListener() {
//
// @Override
// public void valueChanged(TreeSelectionEvent e) {
// tp = jTree.getSelectionPaths();
// }
// });
jScrollPane3.setViewportView(jTree);
/////////////////////////////////////////////////////////
// display the patients registered
patients = connectorClientDB.getPatients();
for (Integer patientId : patients) {
jComboBox1.addItem(patientId.toString());
}
} catch (SQLException ex) {
- Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex);
+ Logger.getLogger(OldGUI.class.getName()).log(Level.SEVERE, null, ex);
ex.printStackTrace();
// } catch (IOException e) {
// // TODO Auto-generated catch block
// e.printStackTrace();
// } catch (DocumentException e) {
// // TODO Auto-generated catch block
// e.printStackTrace();
}
}
/**
* 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() {
-
- jPanel1 = new javax.swing.JPanel();
- jLabel2 = new javax.swing.JLabel();
- jLabel1 = new javax.swing.JLabel();
jPanel2 = new javax.swing.JPanel();
jComboBox1 = new javax.swing.JComboBox<String>();
+ jComboBox1.setFont(new Font("Tahoma", Font.BOLD, 12));
jButton1 = new javax.swing.JButton();
jButton1.setFont(new Font("Tahoma", Font.BOLD, 12));
jLabel3 = new javax.swing.JLabel();
jLabel4 = new javax.swing.JLabel();
jScrollPane3 = new javax.swing.JScrollPane();
jScrollPane2 = new javax.swing.JScrollPane();
jMenuBar1 = new javax.swing.JMenuBar();
jMenu1 = new javax.swing.JMenu();
jMenuItem1 = new javax.swing.JMenuItem();
jMenu2 = new javax.swing.JMenu();
dialog = new JDialog();
tabbedPane = new JTabbedPane(JTabbedPane.TOP);
+ tabbedPane.setFont(new Font("Tahoma", Font.BOLD, 12));
setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
addWindowListener(new WindowAdapter() {
@Override
public void windowClosing(java.awt.event.WindowEvent windowEvent) {
if (!survey_submitted && close_trials <= 2){
JOptionPane.showMessageDialog(frame, "Before closing the application, please fill in and submit the questionnaire.");
close_trials++;
tabbedPane.setSelectedIndex(1);
}else{
System.exit(0);
}
}
});
- setTitle("HIV Pharmacogenomics\n");
-
- jLabel2.setIcon(new javax.swing.ImageIcon("res/shcs_logo2_small.gif")); // NOI18N
-
- jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
- jLabel1.setText("HIV Pharmacogenomics | Project #693");
-
- javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
- jPanel1.setLayout(jPanel1Layout);
- jPanel1Layout.setHorizontalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap(71, Short.MAX_VALUE)
- .addComponent(jLabel1)
- .addGap(18, 18, 18)
- .addComponent(jLabel2))
- );
- jPanel1Layout.setVerticalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jLabel1)
- .addGap(11, 11, 11))
- .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)
- );
+ setTitle("Privacy-Preserving HIV Pharmacogenomics\r\n");
jPanel2.setBackground(new java.awt.Color(255, 255, 255));
jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<String>(new String[]{"Select Patient"}));
jButton1.setText("Run Test");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});
JLabel lblNewLabel = new JLabel("");
lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
lblNewLabel.setIcon(new javax.swing.ImageIcon("res/gears.png"));
javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
jPanel2Layout.setHorizontalGroup(
jPanel2Layout.createParallelGroup(Alignment.LEADING)
.addComponent(jComboBox1, 0, 248, Short.MAX_VALUE)
.addGroup(jPanel2Layout.createSequentialGroup()
.addGap(75)
.addGroup(jPanel2Layout.createParallelGroup(Alignment.TRAILING)
.addComponent(jButton1)
.addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 75, GroupLayout.PREFERRED_SIZE))
.addContainerGap(98, Short.MAX_VALUE))
);
jPanel2Layout.setVerticalGroup(
jPanel2Layout.createParallelGroup(Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addComponent(jComboBox1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
.addPreferredGap(ComponentPlacement.RELATED, 223, Short.MAX_VALUE)
.addComponent(lblNewLabel, GroupLayout.PREFERRED_SIZE, 64, GroupLayout.PREFERRED_SIZE)
.addPreferredGap(ComponentPlacement.RELATED)
.addComponent(jButton1)
.addGap(19))
);
jPanel2.setLayout(jPanel2Layout);
jLabel3.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
jLabel3.setText("Select Patient");
jLabel4.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
jLabel4.setText("Select Test");
jScrollPane3.setBackground(new java.awt.Color(255, 255, 255));
jMenu1.setText("File");
jMenuItem1.setText("Exit");
jMenu1.add(jMenuItem1);
jMenuBar1.add(jMenu1);
jMenu2.setText("Edit");
jMenuBar1.add(jMenu2);
setJMenuBar(jMenuBar1);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
layout.setHorizontalGroup(
layout.createParallelGroup(Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addGroup(layout.createParallelGroup(Alignment.LEADING, false)
- .addComponent(jLabel3)
+ .addComponent(jPanel2, 0, 0, Short.MAX_VALUE)
.addComponent(jLabel4)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, 244, Short.MAX_VALUE)
- .addComponent(jScrollPane3))
- .addPreferredGap(ComponentPlacement.UNRELATED)
- .addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 970, Short.MAX_VALUE))
- .addContainerGap())
+ .addComponent(jScrollPane3, GroupLayout.DEFAULT_SIZE, 248, Short.MAX_VALUE)
+ .addComponent(jLabel3))
+ .addGap(24)
+ .addComponent(tabbedPane, GroupLayout.PREFERRED_SIZE, 732, Short.MAX_VALUE)
+ .addGap(4))
);
layout.setVerticalGroup(
- layout.createParallelGroup(Alignment.LEADING)
+ layout.createParallelGroup(Alignment.TRAILING)
.addGroup(layout.createSequentialGroup()
+ .addContainerGap()
.addGroup(layout.createParallelGroup(Alignment.TRAILING)
- .addComponent(jPanel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel4))
- .addPreferredGap(ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addComponent(jScrollPane3, GroupLayout.PREFERRED_SIZE, 388, GroupLayout.PREFERRED_SIZE)
+ .addComponent(tabbedPane, Alignment.LEADING, GroupLayout.PREFERRED_SIZE, 753, Short.MAX_VALUE)
+ .addGroup(Alignment.LEADING, layout.createSequentialGroup()
+ .addComponent(jLabel4)
+ .addPreferredGap(ComponentPlacement.RELATED)
+ .addComponent(jScrollPane3, GroupLayout.PREFERRED_SIZE, 356, GroupLayout.PREFERRED_SIZE)
.addPreferredGap(ComponentPlacement.RELATED)
.addComponent(jLabel3)
.addPreferredGap(ComponentPlacement.RELATED)
- .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- .addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 785, Short.MAX_VALUE))
- .addContainerGap())
+ .addComponent(jPanel2, GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)))
+ .addGap(2))
);
jScrollPane2.setAutoscrolls(true);
jScrollPane3.setAutoscrolls(true);
tabbedPane.addTab("Report", new ImageIcon("res/report_icon.gif"), jScrollPane2, null);
tabbedPane.setBackgroundAt(0, new Color(255, 255, 255));
panel = new JPanel();
tabbedPane.addTab("Survey", new ImageIcon("res/survey_icon.png"), panel, null);
tabbedPane.setBackgroundAt(1, new Color(255, 255, 255));
tabbedPane.setEnabledAt(1, true);
panel_1 = new JPanel();
panel_1.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
panel_1.setBackground(SystemColor.control);
JLabel label = new JLabel("");
label.setIcon(new ImageIcon("res/shcs_logo2_medium.gif"));
lblDearDoctor = new JLabel("Dear Doctor,");
lblDearDoctor.setFont(new Font("Tahoma", Font.BOLD, 14));
JScrollPane scrollPane = new JScrollPane();
scrollPane.setBorder(null);
+
+ label_1 = new JLabel("");
+ label_1.setIcon(new ImageIcon("res/EPFL_logo.png"));
+
+ JLabel label_2 = new JLabel("");
+ label_2.setIcon(new ImageIcon("res/chuv_logo.png"));
GroupLayout gl_panel_1 = new GroupLayout(panel_1);
gl_panel_1.setHorizontalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
- .addGroup(Alignment.LEADING, gl_panel_1.createSequentialGroup()
+ gl_panel_1.createParallelGroup(Alignment.LEADING)
+ .addGroup(gl_panel_1.createSequentialGroup()
.addGap(25)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE)
+ .addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
+ .addComponent(label, GroupLayout.PREFERRED_SIZE, 122, GroupLayout.PREFERRED_SIZE)
+ .addComponent(label_1)
+ .addComponent(label_2))
.addPreferredGap(ComponentPlacement.UNRELATED)
.addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
.addComponent(lblDearDoctor)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 661, Short.MAX_VALUE))
+ .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 763, Short.MAX_VALUE))
.addContainerGap())
);
gl_panel_1.setVerticalGroup(
- gl_panel_1.createParallelGroup(Alignment.TRAILING)
+ gl_panel_1.createParallelGroup(Alignment.LEADING)
.addGroup(gl_panel_1.createSequentialGroup()
.addGroup(gl_panel_1.createParallelGroup(Alignment.LEADING)
.addGroup(gl_panel_1.createSequentialGroup()
.addContainerGap()
.addComponent(lblDearDoctor)
.addPreferredGap(ComponentPlacement.UNRELATED)
- .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 203, Short.MAX_VALUE))
+ .addComponent(scrollPane, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
.addGroup(gl_panel_1.createSequentialGroup()
.addGap(36)
- .addComponent(label, GroupLayout.PREFERRED_SIZE, 96, GroupLayout.PREFERRED_SIZE)))
- .addContainerGap())
+ .addComponent(label, GroupLayout.PREFERRED_SIZE, 96, GroupLayout.PREFERRED_SIZE)
+ .addGap(44)
+ .addComponent(label_1)
+ .addGap(33)
+ .addComponent(label_2)))
+ .addContainerGap(29, Short.MAX_VALUE))
);
- JTextPane txtpnTodayYouAre = new JTextPane();
- txtpnTodayYouAre.setBorder(null);
- txtpnTodayYouAre.setText("Today you are receiving a pharmacogenetics report based on the genome of your patient. Because of its highly sensitive nature, " +
- "the genetic information you are provided with is processed in a privacy-preserving way. In particular, to protect patients’ genomic privacy, " +
- "their genetic and clinical data is stored encrypted at the SHCS data center, and securely analyzed through a sophisticated algorithm designed and developed at EPFL [1, 2]. " +
- "The actual clinical and genetic information is never revealed. Only the authorized users, such as you, can get some processed information, for example, the final result of a " +
- "pharmacogenetics risk test.\nThis mechanism protects the data against insiders or hackers trying to illegally access patients’ medical information, while still allowing authorized " +
- "users to obtain the information they need." +
- "\n\nTo help us understanding the importance of genomic privacy in the medical domain, and the impact of privacy-enhancing technologies in daily clinical practice, please complete the following survey.");
- txtpnTodayYouAre.setFont(new Font("Tahoma", Font.PLAIN, 13));
- txtpnTodayYouAre.setEditable(false);
- txtpnTodayYouAre.setBackground(SystemColor.control);
- scrollPane.setViewportView(txtpnTodayYouAre);
+
+ // creating survey
+ JTextPane introduction = new JTextPane();
+ introduction.setContentType("text/html");
+ introduction.setBorder(null);
+ introduction.setText("You are receiving a pharmacogenetics report based on the genome of your patient. Because of its highly sensitive nature, the genetic information you are provided with is processed in a privacy-preserving way. In particular, to protect patients\u2019 genomic privacy, their genetic and clinical data are stored encrypted at the SHCS data center, and securely analyzed through a sophisticated algorithm designed and developed at EPFL [1, 2]. The actual clinical and genetic information is never revealed. Only the authorized users, such as you, can get some processed information, for example, the interpreted final result of a pharmacogenetics risk test.\r\nThis mechanism protects the data against insiders or hackers trying to illegally access patients\u2019 medical information, while still allowing authorized users to obtain the information they need.\r\n<br><br>\r\nTo help us better understanding the importance of genomic privacy in the medical domain, and the impact of privacy-enhancing technologies in daily clinical practice, please complete the following survey. Answers are on a scale from 1 (Strongly Disagree) to 5 (Strongly Agree).\r\n<font size=\"2\">\r\n<br><br>\r\nNote: this work is part of Project #693, funded by the Swiss HIV Cohort. PIs: Prof. A. Telenti, formerly at CHUV, and Prof. J.-P. Hubaux, at EPFL.\r\n<br><br>\r\n[1] J. L. Raisaro, E. Ayday, P. J. McLaren, J.-P. Hubaux, and A. Telenti. Privacy-Preserving HIV Pharmacogenetics: A Real Use Case of Genomic Data Protection. GenoPri 2014<br>\r\n[2] E. Ayday, J. L. Raisaro, J. Rougemont, and J.-P. Hubaux. Protecting and Evaluating Genomic Privacy in Medical Tests and Personalized Medicine. WPES 2013\r\n</font>");
+ introduction.setFont(new Font("Tahoma", Font.PLAIN, 13));
+ introduction.setEditable(false);
+ introduction.setBackground(SystemColor.control);
+ scrollPane.setViewportView(introduction);
+ introduction.setCaretPosition(0);
panel_1.setLayout(gl_panel_1);
jScrollPane4 = new javax.swing.JScrollPane();
jScrollPane4.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
getContentPane().setLayout(layout);
buttonGroupMap = new HashMap<Integer, ButtonGroup>();
ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
CommAdapter commHandlerAdapter = new CommAdapter(connection);
ReplySurvey replySurvey = commHandlerAdapter.callServiceSurvey();
map = replySurvey.getQuestions();
ids = map.keySet();
locations = replySurvey.getLocations();
panel_2 = new JPanel();
panel_2.setBackground(Color.WHITE);
panel_2.setBorder(null);
jScrollPane4.setViewportView(panel_2);
panel_2.setLayout(new BoxLayout(panel_2, BoxLayout.Y_AXIS));
buttonGroupMap = new HashMap<Integer, ButtonGroup>();
-
+
+ //dynamic question generation
int type = 0;
for(Integer id : ids){
ButtonGroup group = new ButtonGroup();
- JRadioButton r1 = new JRadioButton("1"); r1.setActionCommand("1"); r1.setBackground(Color.WHITE);
- JRadioButton r2 = new JRadioButton("2"); r2.setActionCommand("2"); r2.setBackground(Color.WHITE);
- JRadioButton r3 = new JRadioButton("3"); r3.setActionCommand("3"); r3.setBackground(Color.WHITE);
- JRadioButton r4 = new JRadioButton("4"); r4.setActionCommand("4"); r4.setBackground(Color.WHITE);
- JRadioButton r5 = new JRadioButton("5"); r5.setActionCommand("5"); r5.setBackground(Color.WHITE);
+ JRadioButton r1 = new JRadioButton("1"); r1.setActionCommand("1"); r1.setBackground(Color.WHITE);
+ JRadioButton r2 = new JRadioButton("2"); r2.setActionCommand("2"); r2.setBackground(Color.WHITE);
+ JRadioButton r3 = new JRadioButton("3"); r3.setActionCommand("3"); r3.setBackground(Color.WHITE);
+ JRadioButton r4 = new JRadioButton("4"); r4.setActionCommand("4"); r4.setBackground(Color.WHITE);
+ JRadioButton r5 = new JRadioButton("5"); r5.setActionCommand("5"); r5.setBackground(Color.WHITE);
group.add(r1);
group.add(r2);
group.add(r3);
group.add(r4);
group.add(r5);
JPanel radio_panel = new JPanel();
radio_panel.setLayout((new BoxLayout(radio_panel, BoxLayout.X_AXIS)));
radio_panel.setBackground(Color.WHITE);
radio_panel.setAlignmentX(Component.CENTER_ALIGNMENT);
radio_panel.add(r1);
radio_panel.add(r2);
radio_panel.add(r3);
radio_panel.add(r4);
radio_panel.add(r5);
radio_panel.doLayout();
radio_panel.setPreferredSize(radio_panel.getPreferredSize());
JTextArea question = new JTextArea(id + ") " + map.get(id).getQuestion());
question.setEditable(false);
question.setLineWrap(true);
question.setWrapStyleWord(true);
question.setFont(new Font("Tahoma", Font.PLAIN, 13));
JPanel row_panel = new JPanel();
row_panel.setLayout(new BoxLayout(row_panel, BoxLayout.X_AXIS));
row_panel.add(Box.createRigidArea(new Dimension(20,0)));
row_panel.add(question);
row_panel.add(Box.createRigidArea(new Dimension(20,0)));
row_panel.add(radio_panel);
row_panel.add(Box.createRigidArea(new Dimension(20,0)));
row_panel.setBackground(Color.WHITE);
int type_new = map.get(id).getType();
if(type_new != type){
type = type_new;
JLabel question_group = new JLabel("");
switch(type){
case 1:
question_group.setText("Clinical Utility");
break;
case 2:
question_group.setText("Privacy Concerns");
break;
case 3:
question_group.setText("Usability Assessment");
break;
}
question_group.setAlignmentX(Component.CENTER_ALIGNMENT);
question_group.setFont(new Font("Tahoma", Font.BOLD, 13));
+ panel_2.add(new JSeparator());
panel_2.add(Box.createRigidArea(new Dimension(0,5)));
panel_2.add(question_group);
panel_2.add(Box.createRigidArea(new Dimension(0,5)));
panel_2.add(new JSeparator());
panel_2.add(Box.createRigidArea(new Dimension(0,5)));
}
panel_2.add(Box.createRigidArea(new Dimension(0,5)));
panel_2.add(row_panel);
panel_2.add(Box.createRigidArea(new Dimension(0,5)));
// panel_2.add(radio_panel);
- panel_2.add(new JSeparator());
+// panel_2.add(new JSeparator());
panel_2.add(Box.createRigidArea(new Dimension(0,5)));
// panel_2.setPreferredSize(panel_2.getPreferredSize());
buttonGroupMap.put(id, group);
}
+
+ javax.swing.SwingUtilities.invokeLater(new Runnable() {
+ public void run() {
+ jScrollPane4.getVerticalScrollBar().setValue(0);
+ }
+ });
-
- this.setSize(new Dimension(1300, 865));
+ this.setSize(new Dimension(1300, 875));
// pack();
}// </editor-fold>//GEN-END:initComponents
private void submitButtonActionPerformed(java.awt.event.ActionEvent evt){
try{
answers = new HashMap<String, String>();
StringBuilder sb = new StringBuilder();
Set<Integer> questions_id = buttonGroupMap.keySet();
for(Integer q: questions_id){
ButtonGroup bg = buttonGroupMap.get(q);
sb.append(q).append(",");
sb.append(bg.getSelection().getActionCommand()).append(";");
answers.put(q.toString(),bg.getSelection().getActionCommand());
}
String answer = sb.toString();
Integer id_loc = null;
for(Integer i: locations.keySet()){
if(locations.get(i).equals(comboBox.getSelectedItem().toString()))
id_loc = i;
}
String id_p;
if(jComboBox1.getSelectedItem().toString().equals("Select Patient"))
id_p = "0";
else
id_p = jComboBox1.getSelectedItem().toString();
ClientConnection connection = new ClientConnection(props.getUrlWebAppMaterial(), props.getUrlWebAppDecrypt(), props.getUrlWebAppSurveyQ(), props.getUrlWebAppSurveyA());
CommAdapter commHandlerAdapter = new CommAdapter(connection);
String reply = commHandlerAdapter.callServiceSurveyAnswer(answer, id_loc.toString(), id_p);
if(reply.equals("1")){
survey_submitted = true;
dialog.setVisible(false);
JOptionPane.showMessageDialog(
this,
"Congrats! Your aswers have been sent to the SHCS datacenter.",
"Information Message",
JOptionPane.INFORMATION_MESSAGE);
}
else{
throw new IOException();
}
} catch (NullPointerException e){
LOGGER.log(Level.SEVERE, null, e);
dialog.setVisible(false);
JOptionPane.showMessageDialog(
this,
"Please respond to all the questions!",
"Error Message",
JOptionPane.ERROR_MESSAGE);
} catch (IOException e) {
LOGGER.log(Level.SEVERE, null, e);
dialog.setVisible(false);
JOptionPane.showMessageDialog(
this,
"The SHCS datacenter does not respond. Please save the survey and send it to jean.raisaro@epfl.ch.",
"Error Message",
JOptionPane.ERROR_MESSAGE);
}
}
private void savePDFButtonActionPerformed(java.awt.event.ActionEvent evt){
try {
answers = new HashMap<String, String>();
Set<Integer> questions_id = buttonGroupMap.keySet();
for(Integer q: questions_id){
ButtonGroup bg = buttonGroupMap.get(q);
answers.put(q.toString(),bg.getSelection().getActionCommand());
}
JFileChooser chooser = new JFileChooser();
// Note: source for ExampleFileFilter can be found in FileChooserDemo,
// under the demo/jfc directory in the JDK.
int returnVal = chooser.showSaveDialog(this);
System.out.println(returnVal);
if(returnVal == JFileChooser.APPROVE_OPTION) {
System.out.println("You chose to open this file: " +
chooser.getSelectedFile().getPath());
quest = new Questionnaire(chooser.getSelectedFile().getPath() + ".pdf");
quest.createPdf(map, ids);
quest.writeAnswers(answers);
survey_submitted = true;
}else{
quest = new Questionnaire("outputPDF/survey.pdf");
quest.createPdf(map, ids);
quest.writeAnswers(answers);
survey_submitted = true;
}
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (DocumentException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (NullPointerException e) {
LOGGER.log(Level.SEVERE, null, e);
dialog.setVisible(false);
JOptionPane.showMessageDialog(
this,
"Please respond to all the questions!",
"Error Message",
JOptionPane.ERROR_MESSAGE);
}
}
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
JPanel contentPanel = new JPanel();
dialog.setBounds(100, 100, 410, 80);
dialog.getContentPane().setLayout(new BorderLayout());
contentPanel.setLayout(new FlowLayout());
contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
dialog.getContentPane().add(contentPanel, BorderLayout.CENTER);
{
JLabel label = new JLabel("Please wait...The overall computation can take few seconds");
label.setHorizontalAlignment(SwingConstants.CENTER);
label.setFont(new Font("Tahoma", Font.PLAIN, 12));
contentPanel.add(label);
}
{
JPanel buttonPane = new JPanel();
buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
dialog.getContentPane().add(buttonPane, BorderLayout.SOUTH);
}
dialog.setLocationRelativeTo(this);
dialog.setVisible(true);
GUIWorker gw = new GUIWorker(this, props);
Thread t = new Thread(gw);
t.start();
}
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JButton jButton1;
private javax.swing.JComboBox<String> jComboBox1;
- private javax.swing.JLabel jLabel1;
- private javax.swing.JLabel jLabel2;
private javax.swing.JLabel jLabel3;
private javax.swing.JLabel jLabel4;
private javax.swing.JMenu jMenu1;
private javax.swing.JMenu jMenu2;
private javax.swing.JMenuBar jMenuBar1;
private javax.swing.JMenuItem jMenuItem1;
- private javax.swing.JPanel jPanel1;
private javax.swing.JPanel jPanel2;
private javax.swing.JScrollPane jScrollPane3;
private javax.swing.JTabbedPane tabbedPane;
private javax.swing.JScrollPane jScrollPane2;
private javax.swing.JScrollPane jScrollPane4;
private JPanel panel;
private JPanel panel_1;
private JPanel panel_2;
private JLabel lblDearDoctor;
private JLabel lblNewLabel_1;
private JLabel lblNewLabel_2;
private JLabel lblNewLabel_3;
private JComboBox<String> comboBox;
private Component rigidArea;
+ private JLabel label_1;
// End of variables declaration//GEN-END:variables
class GUIWorker implements Runnable{
private JFrame mainFrame;
private ClientProperties props;
private MedUnit mu;
- public GUIWorker(GUI gui, ClientProperties props) {
+ public GUIWorker(OldGUI gui, ClientProperties props) {
mainFrame = gui;
this.props = props;
this.mu = new MedUnit(props, 0);
}
@Override
public void run() {
try{
int patientId = Integer.parseInt((String) jComboBox1.getSelectedItem());
// convert selected tests to test identifiers
ArrayList<TestName> selectedTests = new ArrayList<TestName>();
for (String currentName : getSelectedTests()) {
TestName currentTest = testsByName.get(currentName);
if (currentTest == null) {
throw new IllegalStateException("Trying to run unknown test: " + currentTest);
}
selectedTests.add(currentTest);
}
// run tests
Diagnostic diagnostic = mu.runTests(patientId, selectedTests);
// warn for tests with missing material
warnFailedTests(diagnostic, selectedTests);
// create report
mu.createReport(patientId, selectedTests, diagnostic);
dialog.setVisible(false);
// specify file you wish to open (JPedal handles getting the byte data)
String filepathReport = props.getPathPDF() + patientId + ".pdf";
// open generated PDF
// object must be either String in full filepath, or
// File object which can be relative
Object[] input = new Object[]{ new File(filepathReport) };
viewer.executeCommand(Commands.OPENFILE, input);
// display CAD result as bar plot
if (diagnostic.hasCAD()) {
System.out.println("CAD = " + diagnostic.getResultCAD());
BarPlotFrame frame = new BarPlotFrame(diagnostic.getResultCAD(), patientId);
frame.setVisible(true);
frame.setAlwaysOnTop(true);
}
} catch (SQLException e) {
LOGGER.log(Level.SEVERE, null, e);
displayError("Not able to connect to service. Please try again.");
} catch (IOException e) {
LOGGER.log(Level.SEVERE, null, e);
displayError("Not able to connect to service. Please try again.");
} catch (NullPointerException e){
LOGGER.log(Level.SEVERE, null, e);
displayError("Please select a patient.");
}
}
private void warnFailedTests(Diagnostic diagnostic, ArrayList<TestName> selectedTests) {
ArrayList<Integer> failedTests = diagnostic.getInvalidTests();
if (!failedTests.isEmpty()) {
String msg = "Could not complete tests: ";
boolean first = true;
for (TestName testName : selectedTests) {
if (failedTests.contains(testName.getId())) {
if (first) {
first = false;
} else {
msg += ", ";
}
msg += testName.getName();
}
}
displayError(msg);
}
}
private void displayError(String msg) {
dialog.setVisible(false);
JOptionPane.showMessageDialog(
mainFrame,
msg,
"Error Message",
JOptionPane.ERROR_MESSAGE);
}
private ArrayList<String> getSelectedTests() {
ArrayList<String> tests = new ArrayList<String>();
for (TreePath treePath : jTree.getSelectionPaths()) {
tests.addAll(getChildrenTests(jTree.getModel(), treePath.getLastPathComponent()));
}
return tests;
}
private ArrayList<String> getChildrenTests(TreeModel model, Object node) {
ArrayList<String> tests = new ArrayList<String>();
if (model.isLeaf(node)) { // leaf
DefaultMutableTreeNode leaf = (DefaultMutableTreeNode) node;
tests.add(leaf.toString());
}
else { // iterate over children
for (int i = 0; i < model.getChildCount(node); i++) {
tests.addAll(getChildrenTests(model, model.getChild(node, i)));
}
}
return tests;
}
}
}
diff --git a/project/PPPCommons/src/framework/reply/ReplySurvey.java b/project/PPPCommons/src/framework/reply/ReplySurvey.java
index 1ef062a..c7720d6 100644
--- a/project/PPPCommons/src/framework/reply/ReplySurvey.java
+++ b/project/PPPCommons/src/framework/reply/ReplySurvey.java
@@ -1,36 +1,35 @@
package framework.reply;
-import java.util.ArrayList;
import java.util.Map;
import framework.Question;
public class ReplySurvey{
private Map<Integer, Question> questions;
private Map<Integer, String> locations;
public ReplySurvey(Map<Integer, Question> quest, Map<Integer, String> loc) {
this.questions = quest;
this.locations = loc;
}
public Map<Integer, Question> getQuestions() {
return questions;
}
public Map<Integer, String> getLocations() {
return locations;
}
}

Event Timeline