{"action":"created","issue":{"url":"https://api.github.com/repos/elexis/elexis-3-core/issues/270","repository_url":"https://api.github.com/repos/elexis/elexis-3-core","labels_url":"https://api.github.com/repos/elexis/elexis-3-core/issues/270/labels{/name}","comments_url":"https://api.github.com/repos/elexis/elexis-3-core/issues/270/comments","events_url":"https://api.github.com/repos/elexis/elexis-3-core/issues/270/events","html_url":"https://github.com/elexis/elexis-3-core/issues/270","id":353414985,"node_id":"MDU6SXNzdWUzNTM0MTQ5ODU=","number":270,"title":"Can't create LabItem","user":{"login":"rgwch","id":3314994,"node_id":"MDQ6VXNlcjMzMTQ5OTQ=","avatar_url":"https://avatars3.githubusercontent.com/u/3314994?v=4","gravatar_id":"","url":"https://api.github.com/users/rgwch","html_url":"https://github.com/rgwch","followers_url":"https://api.github.com/users/rgwch/followers","following_url":"https://api.github.com/users/rgwch/following{/other_user}","gists_url":"https://api.github.com/users/rgwch/gists{/gist_id}","starred_url":"https://api.github.com/users/rgwch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rgwch/subscriptions","organizations_url":"https://api.github.com/users/rgwch/orgs","repos_url":"https://api.github.com/users/rgwch/repos","events_url":"https://api.github.com/users/rgwch/events{/privacy}","received_events_url":"https://api.github.com/users/rgwch/received_events","type":"User","site_admin":false},"labels":[{"id":44044349,"node_id":"MDU6TGFiZWw0NDA0NDM0OQ==","url":"https://api.github.com/repos/elexis/elexis-3-core/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":{"login":"col-panic","id":1679857,"node_id":"MDQ6VXNlcjE2Nzk4NTc=","avatar_url":"https://avatars2.githubusercontent.com/u/1679857?v=4","gravatar_id":"","url":"https://api.github.com/users/col-panic","html_url":"https://github.com/col-panic","followers_url":"https://api.github.com/users/col-panic/followers","following_url":"https://api.github.com/users/col-panic/following{/other_user}","gists_url":"https://api.github.com/users/col-panic/gists{/gist_id}","starred_url":"https://api.github.com/users/col-panic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/col-panic/subscriptions","organizations_url":"https://api.github.com/users/col-panic/orgs","repos_url":"https://api.github.com/users/col-panic/repos","events_url":"https://api.github.com/users/col-panic/events{/privacy}","received_events_url":"https://api.github.com/users/col-panic/received_events","type":"User","site_admin":false},"assignees":[{"login":"col-panic","id":1679857,"node_id":"MDQ6VXNlcjE2Nzk4NTc=","avatar_url":"https://avatars2.githubusercontent.com/u/1679857?v=4","gravatar_id":"","url":"https://api.github.com/users/col-panic","html_url":"https://github.com/col-panic","followers_url":"https://api.github.com/users/col-panic/followers","following_url":"https://api.github.com/users/col-panic/following{/other_user}","gists_url":"https://api.github.com/users/col-panic/gists{/gist_id}","starred_url":"https://api.github.com/users/col-panic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/col-panic/subscriptions","organizations_url":"https://api.github.com/users/col-panic/orgs","repos_url":"https://api.github.com/users/col-panic/repos","events_url":"https://api.github.com/users/col-panic/events{/privacy}","received_events_url":"https://api.github.com/users/col-panic/received_events","type":"User","site_admin":false}],"milestone":null,"comments":14,"created_at":"2018-08-23T14:43:20Z","updated_at":"2018-08-24T18:00:13Z","closed_at":null,"author_association":"NONE","body":"wenn man in einem frisch in euine leere Datenbank installierten Elexis 36 ein Laboritem erstellen will, kommt folgende Exception statt des laboritems:\r\n\r\n~~~~~~~~~\r\njava.lang.RuntimeException: ch.elexis.labitem.create\r\n\tat ch.elexis.core.ui.laboratory.preferences.LaborPrefs$9.widgetSelected(LaborPrefs.java:347) ~[na:na]\r\n\tat org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:249) ~[org.eclipse.swt.win32.win32.x86_3.106.3.v20180329-0507.jar:na]\r\n\tat org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:86) [org.eclipse.swt.win32.win32.x86_3.106.3.v20180329-0507.jar:na]\r\n\tat org.eclipse.swt.widgets.Display.sendEvent(Display.java:4428) ~[na:na]\r\n\tat org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1079) ~[na:na]\r\n\tat org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4238) ~[na:na]\r\n\tat org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3817) ~[na:na]\r\n\tat org.eclipse.jface.window.Window.runEventLoop(Window.java:818) ~[na:na]\r\n\tat org.eclipse.jface.window.Window.open(Window.java:794) ~[na:na]\r\n\tat org.eclipse.ui.internal.dialogs.WorkbenchPreferenceDialog.open(WorkbenchPreferenceDialog.java:211) ~[na:na]\r\n\tat org.eclipse.ui.internal.OpenPreferencesAction.run(OpenPreferencesAction.java:63) ~[na:na]\r\n\tat org.eclipse.jface.action.Action.runWithEvent(Action.java:473) ~[na:na]\r\n\tat org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:565) ~[na:na]\r\n\tat org.eclipse.jface.action.ActionContributionItem.lambda$4(ActionContributionItem.java:397) ~[na:na]\r\n\tat org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:86) [org.eclipse.swt.win32.win32.x86_3.106.3.v20180329-0507.jar:na]\r\n\tat org.eclipse.swt.widgets.Display.sendEvent(Display.java:4428) ~[na:na]\r\n\tat org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1079) ~[na:na]\r\n\tat org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4238) ~[na:na]\r\n~~~~~~~~~~\r\n"},"comment":{"url":"https://api.github.com/repos/elexis/elexis-3-core/issues/comments/415836052","html_url":"https://github.com/elexis/elexis-3-core/issues/270#issuecomment-415836052","issue_url":"https://api.github.com/repos/elexis/elexis-3-core/issues/270","id":415836052,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNTgzNjA1Mg==","user":{"login":"rgwch","id":3314994,"node_id":"MDQ6VXNlcjMzMTQ5OTQ=","avatar_url":"https://avatars3.githubusercontent.com/u/3314994?v=4","gravatar_id":"","url":"https://api.github.com/users/rgwch","html_url":"https://github.com/rgwch","followers_url":"https://api.github.com/users/rgwch/followers","following_url":"https://api.github.com/users/rgwch/following{/other_user}","gists_url":"https://api.github.com/users/rgwch/gists{/gist_id}","starred_url":"https://api.github.com/users/rgwch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rgwch/subscriptions","organizations_url":"https://api.github.com/users/rgwch/orgs","repos_url":"https://api.github.com/users/rgwch/repos","events_url":"https://api.github.com/users/rgwch/events{/privacy}","received_events_url":"https://api.github.com/users/rgwch/received_events","type":"User","site_admin":false},"created_at":"2018-08-24T18:00:13Z","updated_at":"2018-08-24T18:00:13Z","author_association":"NONE","body":"Also ich kann mir nicht vorstellen, dass das irgendwo ohne Absturz läuft. Das müsste überall Exceptions werfen:\r\nin ch.elexis.core.ui.laboratory.dialogs.EditLabItem steht unter Anderem:\r\n\r\n~~~~~~~~\r\nGroup grp = new Group(ret, SWT.NONE);\r\n\t\tgrp.setLayout(new FillLayout(SWT.HORIZONTAL));\r\n\t\tgrp.setLayoutData(SWTHelper.getFillGridData(3, true, 1, false));\r\n\t\tnumeric = new Button(grp, SWT.RADIO);\r\n\t\tnumeric.setText(Messages.EditLabItem_labelTypNumber);\r\n\t\talph = new Button(grp, SWT.RADIO);\r\n\t\talph.setText(Messages.EditLabItem_labelTypText);\r\n\t\tabs = new Button(grp, SWT.RADIO);\r\n\t\tabs.setText(Messages.EditLabItem_labelTypAbsolute);\r\n\t\tformula = new Button(grp, SWT.RADIO);\r\n\t\tformula.setText(Messages.EditLabItem_labelTypFormula);\r\n\t\t\r\n\t\tformula.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e){\r\n\t\t\t\tif (formula.getSelection()) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tScriptEditor se = new ScriptEditor(getShell(), formel,\r\n\t\t\t\t\t\tMessages.EditLabItem_titleScriptEditor);\r\n\t\t\t\t\tif (se.open() == Dialog.OK) {\r\n\t\t\t\t\t\tformel = se.getScript();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t\t\r\n\t\tdocument = new Button(grp, SWT.RADIO);\r\n\t\tdocument.setText(Messages.EditLabItem_labelTypDocument);\r\n\t\tdocument.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e){\r\n\t\t\t\tdocumentSelectionChanged();\r\n\t\t\t}\r\n\t\t});\r\n\t\tWidgetFactory.createLabel(ret, Messages.EditLabItem_labelRefMale);\r\n\t\t\r\n\t\tiRef = new Text(ret, SWT.BORDER);\r\n\t\tiRef.setLayoutData(SWTHelper.getFillGridData(1, true, 1, false));\r\n\t\tiRef.setTextLimit(80);\r\n\t\tiRef.setEnabled(actLabItem != null && !actLabItem.isNoReferenceValueItem());\r\n\t\t\r\n\t\tWidgetFactory.createLabel(ret, Messages.EditLabItem_labelRefFemale);\r\n\t\tiRfF = new Text(ret, SWT.BORDER);\r\n\t\tiRfF.setLayoutData(SWTHelper.getFillGridData(1, true, 1, false));\r\n\t\tiRfF.setTextLimit(80);\r\n\t\tiRfF.setEnabled(actLabItem != null && !actLabItem.isNoReferenceValueItem());\r\n\t\t\r\n\t\tWidgetFactory.createLabel(ret, Messages.EditLabItem_labelUnit);\r\n\t\t\r\n\t\tnoRefValues = new Button(grp, SWT.CHECK);\r\n\t\t noRefValues.setText(ch.elexis.core.l10n.Messages.LabResultEvaluator_LabItemNoRefValue);\r\n\t\t\r\n// ===> Da  // noRefValues.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 2, 1));\r\n\t\tnoRefValues.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e){\r\n\t\t\t\tiRef.setEnabled(!noRefValues.getSelection());\r\n\t\t\t\tiRfF.setEnabled(!noRefValues.getSelection());\r\n\t\t\t}\r\n\t\t});\r\n~~~~~~~~\r\n\r\nAlso die Group grp erhält ein FillLayout. Und weiter unten, wo ich es mit ==> markiert habe, bekommt ein Button in dieser grp ein GridData als LayoutData. Das müsste eigentliuch jedesmal eine ClassCastException werfen. Ich wäre froh, wenn mir jemand erklärt, wieso das bei Euch laufen kann. Ich zweifle an meinen Java-Kenntnissen...\r\n\r\nWie auch immer, ich wäre froh, wenn jemand das korrigieren würde."}}
{"actor":{"display_login":"rgwch"}}