Error when saving in design mode (sometimes)

SWT Designer allows you to create the views, editors, perspectives, pref pages, composites, etc. that comprise Eclipse SWT & RCP applications and plug-ins.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

Error when saving in design mode (sometimes)

Postby byronpdx » Tue Sep 16, 2008 8:33 am

I get an error, and sometimes have to kill Eclipse, when saving in Design mode. Saving in Source mode does not seem to cause a problem. I don't know if I am doing something wrong or need to change Eclipse configuration, but it is a bother sometimes. I think it is related to databinding as it seemed to have started when I began doing more databinding, especially in complex forms.


Here is the error message:

Plug-in Provider: Instantiations
Plug-in Name: WindowBuilder Professional
Plug-in ID: com.swtdesigner
Plug-in Version:

at com.swtdesigner.model.util.ast.DecoratedASTNodeUtilities.setASTEditor(
at com.swtdesigner.model.parser.JavaInfoParser.parse(
at com.swtdesigner.gef.DesignerEditor.parseCompilationUnit(
at com.swtdesigner.gef.DesignerEditor.bufferChanged(
at org.eclipse.jdt.internal.ui.javaeditor.DocumentAdapter.fireBufferChanged(
at org.eclipse.jdt.internal.ui.javaeditor.DocumentAdapter.documentChanged(
at org.eclipse.jface.text.AbstractDocument.doFireDocumentChanged2(
at org.eclipse.jface.text.AbstractDocument.doFireDocumentChanged(
at org.eclipse.jface.text.AbstractDocument.doFireDocumentChanged(
at org.eclipse.jface.text.AbstractDocument.fireDocumentChanged(
at org.eclipse.jface.text.AbstractDocument.replace(
at org.eclipse.core.internal.filebuffers.SynchronizableDocument.replace(
at org.eclipse.jface.text.AbstractDocument.replace(
at org.eclipse.core.internal.filebuffers.SynchronizableDocument.replace(
at org.eclipse.text.edits.ReplaceEdit.performDocumentUpdating(
at org.eclipse.text.edits.TextEdit.traverseDocumentUpdating(
at org.eclipse.text.edits.TextEdit.traverseDocumentUpdating(
at org.eclipse.text.edits.TextEditProcessor.executeDo(
at org.eclipse.text.edits.TextEdit.dispatchPerformEdits(
at org.eclipse.text.edits.TextEditProcessor.performEdits(
at org.eclipse.ltk.core.refactoring.TextChange.perform(
at org.eclipse.jdt.internal.corext.fix.CleanUpRefactoring$CleanUpChange.perform(
at org.eclipse.ltk.core.refactoring.PerformChangeOperation$
at org.eclipse.ltk.core.refactoring.PerformChangeOperation.executeChange(
at org.eclipse.ltk.internal.ui.refactoring.UIPerformChangeOperation.executeChange(
at org.eclipse.jdt.internal.corext.fix.CleanUpPostSaveListener.saved(
at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitDocumentProvider$
at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitDocumentProvider.notifyPostSaveListeners(
at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitDocumentProvider.commitWorkingCopy(
at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitDocumentProvider$4.execute(
at org.eclipse.ui.editors.text.TextFileDocumentProvider$
at org.eclipse.ui.actions.WorkspaceModifyDelegatingOperation.execute(
at org.eclipse.ui.actions.WorkspaceModifyOperation$
at org.eclipse.ui.editors.text.TextFileDocumentProvider.executeOperation(
at org.eclipse.ui.editors.text.TextFileDocumentProvider.saveDocument(
at org.eclipse.ui.texteditor.AbstractTextEditor.performSave(
at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.performSave(
at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.doSave(
at com.swtdesigner.editors.MultiPageEditor.doSave(
at org.eclipse.debug.internal.ui.launchConfigurations.SaveScopeResourcesHandler.doSave(
at org.eclipse.debug.internal.ui.launchConfigurations.SaveScopeResourcesHandler.handleStatus(
at org.eclipse.debug.internal.ui.sourcelookup.Prompter$
at org.eclipse.ui.internal.UILockListener.doPendingWork(
at org.eclipse.ui.internal.UISynchronizer$
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(
at org.eclipse.swt.widgets.Display.runAsyncMessages(
at org.eclipse.swt.widgets.Display.readAndDispatch(
at org.eclipse.ui.internal.Workbench.runEventLoop(
at org.eclipse.ui.internal.Workbench.runUI(
at org.eclipse.ui.internal.Workbench.access$4(
at org.eclipse.ui.internal.Workbench$
at org.eclipse.core.databinding.observable.Realm.runWithDefault(
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(
at org.eclipse.ui.internal.ide.application.IDEApplication.start(
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 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(
at org.eclipse.equinox.launcher.Main.basicRun(

Designer Configuration Details:

Product: WindowBuilder Professional
Expected: Eclipse 3.4
Actual: Eclipse 3.4.0.v20080512
Actual Eclipse Build Name:
Actual Eclipse Build ID: I20080617-2000
IDE Actual Name: Eclipse
IDE Actual Version: 3.3.100.v200806172000
IDE Actual NL: en_US
Serial Number: WindowBuilderPro-07028-5229B
Activation Key: WindowBuilderPro-GK0TH-HM15H-73B4B
Physical Address: 00-19-D1-E6-96-EE
Code Gen: Flat Mode, Use Existing, First Assignment, Make Final
Events: Anonymous Class, Create Stubs
Platform Product: Eclipse
Platform Version: 3.3.100.v200806172000
OS Name: Windows XP
OS Architecture: x86
OS Version: 5.1
Byron Palmer
TriMet MTP Programmer/Analyst
Posts: 3
Joined: Mon Aug 18, 2008 1:55 pm

Re: Error when saving in design mode (sometimes)

Postby Eric Clayberg » Wed Sep 17, 2008 5:42 am

We need to see your complete Eclipse ".log" file.

The snippet you posted is just a side effect of something that happened earlier.

A test case that will reproduce this would also be helpful, since it looks like a parsing issue of some sort.
Eric Clayberg
Software Engineering Manager

Author: "Eclipse Plug-ins"
Eric Clayberg
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Re: Error when saving in design mode (sometimes)

Postby ksklein » Mon Sep 22, 2008 7:26 am

I have had similar problems, although I am currently unable to reproduce -- I recently moved up to eclipse 3.4 and the latest release which might have help resolve the issue.

However, saving while in design mode is *very* time consuming with what appear to be "pop up" windows opening and closing very quickly, redraws of the design screen going on during the save process, etc. This happens in almost all of my forms -- or at least those with more than several controls.

For example, I just accidentally hit save on a form with 239 lines of code -- it took 45 seconds for me to be able to edit again.
Posts: 4
Joined: Mon Sep 22, 2008 7:19 am

Re: Error when saving in design mode (sometimes)

Postby Eric Clayberg » Mon Sep 22, 2008 10:37 am

That sounds very bizarre. Nothing like that should happen when simply saving a file as that is a pure Eclipse operation.

What OS are you using? What exact build of SWT Designer are you using?

Do you have any Java > Editor < Save Action options turned on?

Can you send a sample class where this happens?
Eric Clayberg
Software Engineering Manager

Author: "Eclipse Plug-ins"
Eric Clayberg
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Return to SWT Designer

Who is online

Users browsing this forum: No registered users and 2 guests