Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 316121 - EEF keep selected files on generation
Summary: EEF keep selected files on generation
Status: RESOLVED FIXED
Alias: None
Product: EEF
Classification: Modeling
Component: General (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 major
Target Milestone: ---   Edit
Assignee: Bouchet Stéphane CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-08 08:48 EDT by Bouchet Stéphane CLA
Modified: 2016-05-05 10:27 EDT (History)
0 users

See Also:


Attachments
patch that clear selected files before adding them to the list (1.68 KB, patch)
2010-06-08 08:58 EDT, Bouchet Stéphane CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bouchet Stéphane CLA 2010-06-08 08:48:21 EDT
step to reproduce : 
right click on EEF eefgen model (A), then generates EEF architecture.

right click another EEF eefgen model (B) , but do not generates.

revert to first EEF eefgen model (A), then generates EEF architecture : it will generates 3 times ! ( A,B, A).

this will cause major problems if the (B) eefgen model is deleted : 

null
Error
Tue Jun 08 11:38:32 CEST 2010
Resource '/org.eclipse.emf.examples.library/model/extlibrary.eefgen' does not exist.

org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Resource '/org.eclipse.emf.examples.library/model/extlibrary.eefgen' does not exist.
at org.eclipse.emf.ecore.resource.impl.PlatformResourceURIHandlerImpl$WorkbenchHelper.createPlatformResourceInputStream(PlatformResourceURIHandlerImpl.java:218)
at org.eclipse.emf.ecore.resource.impl.PlatformResourceURIHandlerImpl.createInputStream(PlatformResourceURIHandlerImpl.java:448)
at org.eclipse.emf.ecore.resource.impl.ExtensibleURIConverterImpl.createInputStream(ExtensibleURIConverterImpl.java:301)
at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1254)
at org.eclipse.emf.eef.codegen.ui.generators.actions.GenerateEEFAction.initEEFGenModel(GenerateEEFAction.java:63)
at org.eclipse.emf.eef.codegen.ui.generators.actions.AbstractGenerateEEFAction.run(AbstractGenerateEEFAction.java:90)
at org.eclipse.emf.eef.codegen.ui.generators.actions.AbstractGenerateEEFAction.run(AbstractGenerateEEFAction.java:79)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)
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:1258)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3552)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3171)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2629)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2593)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2427)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:670)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:663)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
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:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
Caused by: org.eclipse.core.internal.resources.ResourceException: Resource '/org.eclipse.emf.examples.library/model/extlibrary.eefgen' does not exist.
at org.eclipse.core.internal.resources.Resource.checkExists(Resource.java:326)
at org.eclipse.core.internal.resources.Resource.checkAccessible(Resource.java:200)
at org.eclipse.core.internal.resources.File.getContents(File.java:291)
at org.eclipse.core.internal.resources.File.getContents(File.java:282)
at org.eclipse.emf.ecore.resource.impl.PlatformResourceURIHandlerImpl$WorkbenchHelper.createPlatformResourceInputStream(PlatformResourceURIHandlerImpl.java:204)
... 34 more
Comment 1 Bouchet Stéphane CLA 2010-06-08 08:58:11 EDT
Created attachment 171397 [details]
patch that clear selected files before adding them to the list
Comment 2 Bouchet Stéphane CLA 2011-06-15 11:40:55 EDT
fixed in EEF 1.0.0