Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 336797

Summary: Installed Module Reference is not updated in opened editor
Product: [Technology] Tigerstripe Reporter: Maria Kolchinskaja <mshulgina>
Component: UIAssignee: Project Inbox <tigerstripe.ui-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: yuri
Version: unspecified   
Target Milestone: 0.5M0   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
336797 patch
none
336797_c3 patch
none
336797_c6 patch none

Description Maria Kolchinskaja CLA 2011-02-10 05:35:14 EST
Build Identifier: 

Replay steps of InstalledModuleReference test from Tigerstripe repository:
1. Create Tigerstripe project 'com.cisco.sample.project' with entity
2. Add Dependency to installed module 'com.cisco.testModule (2.0.0)'. Do not close editor.
3. Create Tigerstripe project 'com.cisco.testModule' (Add local project with sameId - verify access is now to local instance)
4. Remove Tigerstripe project 'com.cisco.testModule'
5. Double click 'com.cisco.sample.project/tigerstripe.xml' to verify access to module 'com.cisco.testModule (2.0.0)'
But module 'com.cisco.testModule (0.0.0)' (local instance) is displayed. 

Reproducible: Always
Comment 1 Anton Salnik CLA 2011-02-10 06:11:30 EST
Created attachment 188676 [details]
336797 patch
Comment 2 Yuri Strot CLA 2011-02-14 08:34:21 EST
Patch applied.
Comment 3 Maria Kolchinskaja CLA 2011-02-16 01:19:24 EST
Repeat steps 1-4
View 'com.cisco.sample.project/tigerstripe.xml' on Dependency tab.
The Dependency is updated, but 'Reference details' fields are not updated
Comment 4 Anton Salnik CLA 2011-02-17 02:21:21 EST
Created attachment 189152 [details]
336797_c3 patch
Comment 5 Yuri Strot CLA 2011-02-21 08:37:52 EST
336797_c3 patch applied.
Comment 6 Maria Kolchinskaja CLA 2011-02-25 04:21:17 EST
Repeat steps 1-4
View 'com.cisco.sample.project/tigerstripe.xml' on Dependency tab.
The Dependency is not updated
Comment 7 Anton Salnik CLA 2011-02-26 02:27:47 EST
Created attachment 189876 [details]
336797_c6 patch

The issue was related to 334903 fix.
Comment 8 Yuri Strot CLA 2011-02-28 06:39:40 EST
336797_c6 patch applied.
Comment 9 Maria Kolchinskaja CLA 2011-03-10 04:44:06 EST
All ok? but when I create Tigerstripe project 'com.cisco.testModule' (local project with sameId), internal error occurs:


java.lang.reflect.InvocationTargetException
	at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:121)
	at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
	at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
	at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:1008)
	at org.eclipse.tigerstripe.workbench.ui.internal.wizards.project.NewProjectWizard.performFinish(NewProjectWizard.java:133)
	at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:811)
	at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:430)
	at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234)
	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:4066)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
	at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
	at org.eclipse.jface.window.Window.open(Window.java:801)
	at org.eclipse.ui.internal.actions.NewWizardShortcutAction.run(NewWizardShortcutAction.java:135)
	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:4066)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
	at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
	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(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: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.runtime.CoreException: Couldn't create project: An error occured while trying to create project: Resource '/com.cisco.testModule/src' already exists.
	at org.eclipse.tigerstripe.workbench.ui.internal.wizards.project.NewProjectWizard$1.execute(NewProjectWizard.java:124)
	at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:106)
	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1975)
	at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:118)
	... 43 more
Caused by: org.eclipse.tigerstripe.workbench.TigerstripeException: An error occured while trying to create project: Resource '/com.cisco.testModule/src' already exists.
	at org.eclipse.tigerstripe.workbench.internal.core.project.TigerstripeProjectFactory.createProject(TigerstripeProjectFactory.java:103)
	at org.eclipse.tigerstripe.workbench.TigerstripeCore.createProject(TigerstripeCore.java:254)
	at org.eclipse.tigerstripe.workbench.ui.internal.wizards.project.NewProjectWizard$1.execute(NewProjectWizard.java:120)
	... 46 more
Comment 10 Maria Kolchinskaja CLA 2011-03-10 04:45:16 EST
https://bugs.eclipse.org/bugs/show_bug.cgi?id=336797#c9
Comment 11 Maria Kolchinskaja CLA 2011-03-10 06:43:34 EST
Closing issue, because Installed Module Reference now updated in opened editor.

Tigerstripe project 'com.cisco.testModule' was not removed from the workspace,
so the issue (comment 9
https://bugs.eclipse.org/bugs/show_bug.cgi?id=336797#c9) occurs