Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clearing property causes Eclipse to freeze #70

Closed
vaadin-bot opened this issue Feb 17, 2015 · 1 comment
Closed

Clearing property causes Eclipse to freeze #70

vaadin-bot opened this issue Feb 17, 2015 · 1 comment
Labels

Comments

@vaadin-bot
Copy link

Originally by @emarc


Clearing the "Name" property can cause a complete freeze of Eclipse (at least on OS X = beachball, force quit required).

To reproduce:

  • new Design
  • add layout
  • add component
  • empty the components (generated) "Name"

-> freeze

@vaadin-bot
Copy link
Author

Originally by @emarc


Manged to catch the exception:

java.lang.IllegalArgumentException: Invalid identifier : ><
    at org.eclipse.jdt.core.dom.SimpleName.setIdentifier(SimpleName.java:195)
    at org.eclipse.jdt.core.dom.AST.newSimpleName(AST.java:2202)
    at com.vaadin.designer.eclipse.java.ComponentJavaModel$FieldsGenerator.extractModelData(ComponentJavaModel.java:454)
    at com.vaadin.designer.eclipse.java.ComponentJavaModel$FieldsGenerator.inspectModel(ComponentJavaModel.java:434)
    at com.vaadin.designer.eclipse.java.ComponentJavaModel$FieldsGenerator.inspectModel(ComponentJavaModel.java:438)
    at com.vaadin.designer.eclipse.java.ComponentJavaModel$FieldsGenerator.<init>(ComponentJavaModel.java:396)
    at com.vaadin.designer.eclipse.java.ComponentJavaModel$FieldsGenerator.addModelFields(ComponentJavaModel.java:374)
    at com.vaadin.designer.eclipse.java.ComponentJavaModel.getRawJavaTextFromRoot(ComponentJavaModel.java:176)
    at com.vaadin.designer.eclipse.java.ComponentJavaModel.createJavaClassFromRoot(ComponentJavaModel.java:118)
    at com.vaadin.designer.eclipse.editors.VaadinEditor$Model2JavaHandler.updateJavaFile(VaadinEditor.java:947)
    at com.vaadin.designer.eclipse.editors.VaadinEditor$Model2JavaHandler.componentPropertyChange(VaadinEditor.java:958)
    at com.vaadin.designer.model.EditorController.firePropertyChangeEvent(EditorController.java:337)
    at com.vaadin.designer.model.ComponentModel.setTypedProperty(ComponentModel.java:136)
    at com.vaadin.designer.eclipse.views.PropertyEditorView$ComponentModelPropertySource.setPropertyValue(PropertyEditorView.java:190)
    at org.eclipse.ui.views.properties.PropertySheetEntry.valueChanged(PropertySheetEntry.java:787)
    at org.eclipse.ui.views.properties.PropertySheetEntry.setValue(PropertySheetEntry.java:728)
    at org.eclipse.ui.views.properties.PropertySheetEntry.applyEditorValue(PropertySheetEntry.java:151)
    at org.eclipse.ui.views.properties.PropertySheetEntry$1.applyEditorValue(PropertySheetEntry.java:108)
    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.TextCellEditor.handleDefaultSelection(TextCellEditor.java:298)
    at org.eclipse.jface.viewers.TextCellEditor$1.widgetDefaultSelected(TextCellEditor.java:147)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:119)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4188)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1467)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1490)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1475)
    at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1279)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4031)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3658)
    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(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:483)
    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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant