Project

General

Profile

Actions

Bug #6915

closed

В Enum definition editor сразу доступна для редактирования вторая строка (даже если первая не заполнена)

Added by Viktoria Kopach about 8 years ago. Updated almost 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Start date:
03/01/2016
Due date:
% Done:

100%

Estimated time:
Detected in build:
0.20.246
Platform:
Windows x64
Published in build:
0.20.251

Description

Первая строка пуста, сразу можно кликнуть во торую строку и начать редактировать.

То есть можно заполнять строки дальше, первая останется видимой и пустой:


Files

2016-03-01_1644.png (14 KB) 2016-03-01_1644.png Viktoria Kopach, 03/01/2016 04:45 PM
2016-03-01_1646.png (18.8 KB) 2016-03-01_1646.png Viktoria Kopach, 03/01/2016 04:47 PM
Actions #1

Updated by Viktoria Kopach about 8 years ago

  • Detected in build changed from svn to 0.20.246
  • Platform set to Windows x64
Actions #2

Updated by Anastasia Tugaenko about 8 years ago

  • Target version set to 0.20
Actions #3

Updated by Denis Kildishev about 8 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100
  • Published in build set to 0.20.248

Видимо фиксил и не закрыл

Actions #4

Updated by Viktoria Kopach about 8 years ago

  • Status changed from Resolved to Open

Все еще воспроизводится

Actions #5

Updated by Denis Kildishev about 8 years ago

1 пустая строка - стандартное одно пустое значение Enum Definition, который не может не иметь значений. Его можно удалить но только если есть еще хотябы 1 другое значение. Какое поведение ожидаемое?

Actions #6

Updated by Alexey Khoroshilov about 8 years ago

Denis Kildishev wrote:

Enum Definition, который не может не иметь значений.

А почему не может?

Actions #7

Updated by Denis Kildishev about 8 years ago

как минимум потому что по умолчанию выбирается 1е значение. Также не могу представить зачем нужно описание перечислимого типа без значений

Actions #8

Updated by Alexey Khoroshilov about 8 years ago

Denis Kildishev wrote:

как минимум потому что по умолчанию выбирается 1е значение. Также не могу представить зачем нужно описание перечислимого типа без значений

Enum без значений означет, что это заготовка еще не готовая к употреблению.
Иметь это состояние явно лучше, чем иметь недоenum с пустым значением.
Создавать атрибуты с таким enum можно просто запретить.

Actions #9

Updated by Denis Kildishev about 8 years ago

  • Status changed from Open to Resolved

Applied in changeset r4894.

Actions #10

Updated by Viktoria Kopach almost 8 years ago

  • Status changed from Resolved to Open
  • Published in build deleted (0.20.248)

1. Создаем ENUM_DEFINITION.
2. Открываем окно редактирования значений и закрываем, ничего не трогая.
3. Кликаем в какую-нибудь другую ячейку таблицы, потом снова в поле Value.
Возникает сообщение об ошибке:

eclipse.buildId=4.4.1.M20140925-0400
java.version=1.8.0_73
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=ru_RU
Framework arguments: -product org.eclipse.epp.package.standard.product -product org.eclipse.epp.package.standard.product -product org.eclipse.epp.package.standard.product
Command-line arguments: -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.standard.product -product org.eclipse.epp.package.standard.product -data D:\EclipseWorkspaces\Luna_Workspace -product org.eclipse.epp.package.standard.product

org.eclipse.jface
Error
Tue Apr 26 18:08:59 MSK 2016
Problems occurred when invoking code from plug-in: "org.eclipse.jface".

java.lang.ClassCastException: java.lang.String cannot be cast to com.unitesk.requality.eclipse.views.atypeeditors.EnumDefinitionValueEditor$EnumDefValueResult
at com.unitesk.requality.eclipse.views.properties.AttributesPanel$15.setValue(AttributesPanel.java:988)
at org.eclipse.jface.viewers.EditingSupport.saveCellEditorValue(EditingSupport.java:113)
at org.eclipse.jface.viewers.ColumnViewerEditor.saveEditorValue(ColumnViewerEditor.java:463)
at org.eclipse.jface.viewers.ColumnViewerEditor.applyEditorValue(ColumnViewerEditor.java:319)
at org.eclipse.jface.viewers.ColumnViewerEditor$2.applyEditorValue(ColumnViewerEditor.java:158)
at org.eclipse.jface.viewers.CellEditor$1.run(CellEditor.java:336)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:50)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:178)
at org.eclipse.jface.viewers.CellEditor.fireApplyEditorValue(CellEditor.java:333)
at org.eclipse.jface.viewers.CellEditor.focusLost(CellEditor.java:722)
at org.eclipse.jface.viewers.DialogCellEditor$3.focusLost(DialogCellEditor.java:304)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:143)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1085)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1066)
at org.eclipse.swt.widgets.Control.sendFocusEvent(Control.java:2841)
at org.eclipse.swt.widgets.Widget.wmKillFocus(Widget.java:1943)
at org.eclipse.swt.widgets.Control.WM_KILLFOCUS(Control.java:4983)
at org.eclipse.swt.widgets.Button.WM_KILLFOCUS(Button.java:1230)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4644)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:5036)
at org.eclipse.swt.internal.win32.OS.SetFocus(Native Method)
at org.eclipse.swt.widgets.Table.sendMouseDownEvent(Table.java:3866)
at org.eclipse.swt.widgets.Table.WM_LBUTTONDOWN(Table.java:6163)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4646)
at org.eclipse.swt.widgets.Table.windowProc(Table.java:5939)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:5023)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2549)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3759)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:135)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 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:648)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
at org.eclipse.equinox.launcher.Main.run(Main.java:1465)

Actions #11

Updated by Denis Kildishev almost 8 years ago

  • Status changed from Open to Resolved

предположительно решено

Actions #12

Updated by Denis Kildishev almost 8 years ago

  • Published in build set to 0.20.251
Actions #13

Updated by Viktoria Kopach almost 8 years ago

  • Status changed from Resolved to Verified
Actions #14

Updated by Alexey Khoroshilov almost 8 years ago

  • Status changed from Verified to Closed
Actions

Also available in: Atom PDF