Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Do the quickFixes work in tree-editor?
Do the quickFixes work in tree-editor? [message #1014914] Tue, 26 February 2013 18:31 Go to next message
oskar saiz is currently offline oskar saizFriend
Messages: 17
Registered: February 2013
Junior Member
Hi all.
I've done a simple example of integration of EMF editor (emfatic->eugenia) with EVL.
No GMF editor.

I validate my model and the constraints are fired.
But I cannot see the quickFixes anywhere.
Do they work just for graphic editors?

Thanks

oskar
Re: Do the quickFixes work in tree-editor? [message #1014956 is a reply to message #1014914] Tue, 26 February 2013 22:57 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2162
Registered: July 2009
Location: York, UK
Senior Member

Hi Oskar,

This should work; quick fixes should appear when you right-click on the errors/warnings in the Problems view.

Cheers,
Dimitris
Re: Do the quickFixes work in tree-editor? [message #1014995 is a reply to message #1014956] Wed, 27 February 2013 07:41 Go to previous messageGo to next message
oskar saiz is currently offline oskar saizFriend
Messages: 17
Registered: February 2013
Junior Member
Hi Dimitris.
I'm afraid it does not.

When I validate I can see the results of the validation in a popup dialog (see attached screenshot), but nothing appears in Problems view.

I've another issue that might be related (or maybe not):
When I validate from the root node, it works ok.
But when I select a intermediate or leave node, the evaluation is not made and I get the following exception:

java.lang.reflect.InvocationTargetException
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:421)
at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
at org.eclipse.emf.edit.ui.action.ValidateAction.run(ValidateAction.java:205)
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:1029)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:923)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.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 org.eclipse.emf.ecore.util.EcoreUtil.getURI(EcoreUtil.java:2972)
at org.eclipse.epsilon.evl.emf.validation.EvlMarkerResolutionGenerator.getEObjectId(EvlMarkerResolutionGenerator.java:107)
at org.eclipse.epsilon.evl.emf.validation.EvlMarkerResolutionGenerator.addResolution(EvlMarkerResolutionGenerator.java:116)
at org.eclipse.epsilon.evl.emf.validation.EvlValidator.addMarkers(EvlValidator.java:168)
at org.eclipse.epsilon.evl.emf.validation.EvlValidator.validate(EvlValidator.java:91)
at org.eclipse.epsilon.evl.emf.validation.CompositeEValidator.validate(CompositeEValidator.java:47)
at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:159)
at org.eclipse.emf.edit.ui.action.ValidateAction$2.validate(ValidateAction.java:281)
at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:137)
at org.eclipse.emf.edit.ui.action.ValidateAction.validate(ValidateAction.java:252)
at org.eclipse.emf.edit.ui.action.ValidateAction$1.run(ValidateAction.java:171)
at org.eclipse.ui.actions.WorkspaceModifyDelegatingOperation.execute(WorkspaceModifyDelegatingOperation.java:69)
at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:106)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344)
at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:118)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
Root exception:
java.lang.NullPointerException
at org.eclipse.emf.ecore.util.EcoreUtil.getURI(EcoreUtil.java:2972)
at org.eclipse.epsilon.evl.emf.validation.EvlMarkerResolutionGenerator.getEObjectId(EvlMarkerResolutionGenerator.java:107)
at org.eclipse.epsilon.evl.emf.validation.EvlMarkerResolutionGenerator.addResolution(EvlMarkerResolutionGenerator.java:116)
at org.eclipse.epsilon.evl.emf.validation.EvlValidator.addMarkers(EvlValidator.java:168)
at org.eclipse.epsilon.evl.emf.validation.EvlValidator.validate(EvlValidator.java:91)
at org.eclipse.epsilon.evl.emf.validation.CompositeEValidator.validate(CompositeEValidator.java:47)
at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:159)
at org.eclipse.emf.edit.ui.action.ValidateAction$2.validate(ValidateAction.java:281)
at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:137)
at org.eclipse.emf.edit.ui.action.ValidateAction.validate(ValidateAction.java:252)
at org.eclipse.emf.edit.ui.action.ValidateAction$1.run(ValidateAction.java:171)
at org.eclipse.ui.actions.WorkspaceModifyDelegatingOperation.execute(WorkspaceModifyDelegatingOperation.java:69)
at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:106)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344)
at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:118)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)


Session Data:
eclipse.buildId=M20120914-1800
java.version=1.7.0_15
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=es_ES
Framework arguments: -product org.eclipse.platform.ide
Command-line arguments: -product org.eclipse.platform.ide -data D:\prj\Generico 2013\WorkspaceGenerico2013/../runtime-EclipseApplication(1) -dev file:D:/prj/Generico 2013/WorkspaceGenerico2013/.metadata/.plugins/org.eclipse.pde.core/Eclipse Application (1)/dev.properties -os win32 -ws win32 -arch x86_64 -consoleLog

Any idea?

Thanks

oskar
Re: Do the quickFixes work in tree-editor? [message #1015511 is a reply to message #1014995] Fri, 01 March 2013 00:46 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2162
Registered: July 2009
Location: York, UK
Senior Member

Hi Oskar,

Could you please put together a minimal example [1] we can use to reproduce this?

Cheers,
Dimitris

[1] http://eclipse.org/epsilon/doc/articles/minimal-examples/
Re: Do the quickFixes work in tree-editor? [message #1015585 is a reply to message #1015511] Fri, 01 March 2013 09:46 Go to previous messageGo to next message
oskar saiz is currently offline oskar saizFriend
Messages: 17
Registered: February 2013
Junior Member
Hi Dimitris:

Please find enclosed the minimal example.

This is my eclipse version:
ECLIPSE VERSION
Eclipse Modeling Tools
Version: Juno Service Release 1
Build id: 20120920-0800
Epsilon version: 1.0.0.201211082326

I attach the following files:
1.- minimal.zip
The exported eclipse projects

2.- Eclipse Application (1).launch
The launch configuration

3.- mondra1.myfirstdsl
A model

The following files are already included in the projects, but I attach them, just in case
4.- MMfirst.emf
A Meta Model

5.- myConstraints.evl
The constraints file

Please remember there were 2 issues:
1.- Why the quick fixes do not appear
2.- Why cant I make a validation from anywhere else than the root node.

Thanks a lot

oskar
Re: Do the quickFixes work in tree-editor? [message #1015763 is a reply to message #1015585] Sat, 02 March 2013 12:37 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2162
Registered: July 2009
Location: York, UK
Senior Member

Hi Oskar,

This seems to be working fine for me (see attached screenshots) with the latest interim version of Epsilon on the 4.2 Modelling Distribution. Could you please try to update to the latest version of Epsilon and see if this fixes the problem?

Cheers,
Dimitris
Re: Do the quickFixes work in tree-editor? [message #1016003 is a reply to message #1015763] Mon, 04 March 2013 15:10 Go to previous messageGo to next message
oskar saiz is currently offline oskar saizFriend
Messages: 17
Registered: February 2013
Junior Member
Hi Dimitris.
I updated all to last version, using Eclipse->Help->Check for updates
Please, find in attached file the versions I have.
But unfortunatelly it keeps on not working.
I still cannot see anything in the "problems" view.
Any other clue?
Thanks a lot.
Oskar

  • Attachment: installed.png
    (Size: 103.67KB, Downloaded 232 times)
Re: Do the quickFixes work in tree-editor? [message #1016018 is a reply to message #1016003] Mon, 04 March 2013 15:43 Go to previous messageGo to next message
oskar saiz is currently offline oskar saizFriend
Messages: 17
Registered: February 2013
Junior Member
Hi Dimitris.
A colleage has tried and he got to do it.
So I'll try tomorrow.
I'll keep you informed.
Thanks and sorry for the noise.
oskar
Re: Do the quickFixes work in tree-editor? [message #1016181 is a reply to message #1016018] Tue, 05 March 2013 11:28 Go to previous message
oskar saiz is currently offline oskar saizFriend
Messages: 17
Registered: February 2013
Junior Member
Hi Dimitris.
I solved it.

I was making two mitakes:

1.- I was closing the "Validation Problems" dialog not clicking 'Ok'. Instead I always pressed ESCAPE or clicked the closeWindow Icon.

Making this, the validation errors don't appear in the 'Problems' view.

Could this behaviour be considered as a bug?

2.- The file I was trying to validate was not into a project. I just used to open it (File->Open file) and validate it.

Making this, the validation errors don't appear in the 'Problems' view.

Thanks a lot for your help.

Oskar
Previous Topic:Please Help
Next Topic:SVG in Eugnia
Goto Forum:
  


Current Time: Fri Apr 19 07:54:07 GMT 2024

Powered by FUDForum. Page generated in 0.02204 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top