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

Bug 333758

Summary: [Composite Diagram] Error when customizing a label of a property
Product: [Modeling] Papyrus Reporter: saadia dhouib <dhouib>
Component: CoreAssignee: Remi Schnekenburger <rschnekenburger>
Status: CLOSED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: rschnekenburger
Version: 0.10.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description saadia dhouib CLA 2011-01-07 10:44:09 EST
Steps to reproduce:
1- create class0
2- create class1
3- create a property inside class0 (p : class1)
4- try to change the appearance of the property label by unchecking the visibilty box.

Here you have an error and you can no more go to the properties view:

java.lang.IllegalArgumentException: Figure is not a child
	at org.eclipse.draw2d.Figure.remove(Figure.java:1264)
	at org.eclipse.draw2d.parts.ScrollableThumbnail.deactivate(ScrollableThumbnail.java:220)
	at org.eclipse.papyrus.outline.overview.OverviewComposite.dispose(OverviewComposite.java:94)
	at org.eclipse.papyrus.outline.DiagramOutline.refresh(DiagramOutline.java:325)
	at org.eclipse.papyrus.outline.DiagramOutline.selectionChanged(DiagramOutline.java:280)
	at org.eclipse.ui.internal.AbstractSelectionService.firePostSelection(AbstractSelectionService.java:179)
	at org.eclipse.ui.internal.AbstractSelectionService.setActivePart(AbstractSelectionService.java:289)
	at org.eclipse.ui.internal.WorkbenchPagePartList.fireActivePartChanged(WorkbenchPagePartList.java:60)
	at org.eclipse.ui.internal.PartList.setActivePart(PartList.java:136)
	at org.eclipse.ui.internal.WorkbenchPage.setActivePart(WorkbenchPage.java:3537)
	at org.eclipse.ui.internal.WorkbenchPage.internalActivate(WorkbenchPage.java:617)
	at org.eclipse.ui.internal.WorkbenchPage.activate(WorkbenchPage.java:589)
	at org.eclipse.ui.internal.WorkbenchPage.makeActive(WorkbenchPage.java:1250)
	at org.eclipse.ui.internal.WorkbenchPage.bringToTop(WorkbenchPage.java:844)
	at org.eclipse.ui.internal.views.log.LogView$25.run(LogView.java:1076)
	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)
	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4041)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3660)
	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)
Comment 1 Remi Schnekenburger CLA 2011-01-07 12:11:31 EST
(In reply to comment #0)
> Steps to reproduce:
> 1- create class0
> 2- create class1
> 3- create a property inside class0 (p : class1)
> 4- try to change the appearance of the property label by unchecking the
> visibilty box.
> 
> Here you have an error and you can no more go to the properties view:
> 
> java.lang.IllegalArgumentException: Figure is not a child
>     at org.eclipse.draw2d.Figure.remove(Figure.java:1264)
>     at
> org.eclipse.draw2d.parts.ScrollableThumbnail.deactivate(ScrollableThumbnail.java:220)
>     at
> org.eclipse.papyrus.outline.overview.OverviewComposite.dispose(OverviewComposite.java:94)
>     at
> org.eclipse.papyrus.outline.DiagramOutline.refresh(DiagramOutline.java:325)
>     at
> org.eclipse.papyrus.outline.DiagramOutline.selectionChanged(DiagramOutline.java:280)
>     at
> org.eclipse.ui.internal.AbstractSelectionService.firePostSelection(AbstractSelectionService.java:179)
>     at
> org.eclipse.ui.internal.AbstractSelectionService.setActivePart(AbstractSelectionService.java:289)
>     at
> org.eclipse.ui.internal.WorkbenchPagePartList.fireActivePartChanged(WorkbenchPagePartList.java:60)
>     at org.eclipse.ui.internal.PartList.setActivePart(PartList.java:136)
>     at
> org.eclipse.ui.internal.WorkbenchPage.setActivePart(WorkbenchPage.java:3537)
>     at
> org.eclipse.ui.internal.WorkbenchPage.internalActivate(WorkbenchPage.java:617)
>     at org.eclipse.ui.internal.WorkbenchPage.activate(WorkbenchPage.java:589)
>     at
> org.eclipse.ui.internal.WorkbenchPage.makeActive(WorkbenchPage.java:1250)
>     at org.eclipse.ui.internal.WorkbenchPage.bringToTop(WorkbenchPage.java:844)
>     at org.eclipse.ui.internal.views.log.LogView$25.run(LogView.java:1076)
>     at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
>     at
> org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)
>     at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4041)
>     at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3660)
>     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)

I was not able to reproduce the bug using Eclipse Modeling Package 3.6.1 and last Papyrus nightly. Could you try again, after an update of your installation?
Comment 2 saadia dhouib CLA 2011-01-10 05:21:52 EST
I have problems updating papyrus:

Cannot complete the install because of a conflicting dependency.
  Software being installed: MDT Papyrus - SDK: Runtime, Tools, Documentation and sources (Incubation) 0.7.2.v201101082104 (org.eclipse.papyrus.sdk.feature.group 0.7.2.v201101082104)
  Software currently installed: MARTE profile 0.7.1.201011231845 (org.eclipse.papyrus.marte.feature.feature.group 0.7.1.201011231845)
  Only one of the following can be installed at once: 
    Glue 1.0.0.v201012160302 (org.eclipse.xtext.gmf.glue 1.0.0.v201012160302)
    Papyrus Xtext integration into GMF (Incubation) 0.7.2.v201101082104 (org.eclipse.xtext.gmf.glue 0.7.2.v201101082104)
  Cannot satisfy dependency:
    From: org.eclipse.papyrus.constraintwithvsl.editor.xtext 0.7.1.201011231845
    To: bundle org.eclipse.xtext.gmf.glue 1.0.0
  Cannot satisfy dependency:
    From: MDT Papyrus - Runtime and Tools (Incubation) 0.7.2.v201101082104 (org.eclipse.papyrus.feature.group 0.7.2.v201101082104)
    To: org.eclipse.papyrus.xtext.integration.feature.group [0.7.2.v201101082104]
  Cannot satisfy dependency:
    From: MARTE profile 0.7.1.201011231845 (org.eclipse.papyrus.marte.feature.feature.group 0.7.1.201011231845)
    To: org.eclipse.papyrus.constraintwithvsl.editor.xtext [0.7.1.201011231845]
  Cannot satisfy dependency:
    From: MDT Papyrus - SDK: Runtime, Tools, Documentation and sources (Incubation) 0.7.2.v201101082104 (org.eclipse.papyrus.sdk.feature.group 0.7.2.v201101082104)
    To: org.eclipse.papyrus.feature.group [0.7.2.v201101082104]
  Cannot satisfy dependency:
    From: MDT Papyrus - XText integration for Direct editors (Incubation) 0.7.2.v201101082104 (org.eclipse.papyrus.xtext.integration.feature.group 0.7.2.v201101082104)
    To: org.eclipse.xtext.gmf.glue [0.7.2.v201101082104]
Comment 3 Remi Schnekenburger CLA 2011-01-10 05:41:28 EST
(In reply to comment #2)
> I have problems updating papyrus:
> 
> Cannot complete the install because of a conflicting dependency.
>   Software being installed: MDT Papyrus - SDK: Runtime, Tools, Documentation
> and sources (Incubation) 0.7.2.v201101082104
> (org.eclipse.papyrus.sdk.feature.group 0.7.2.v201101082104)
>   Software currently installed: MARTE profile 0.7.1.201011231845
> (org.eclipse.papyrus.marte.feature.feature.group 0.7.1.201011231845)
>   Only one of the following can be installed at once: 
>     Glue 1.0.0.v201012160302 (org.eclipse.xtext.gmf.glue 1.0.0.v201012160302)
>     Papyrus Xtext integration into GMF (Incubation) 0.7.2.v201101082104
> (org.eclipse.xtext.gmf.glue 0.7.2.v201101082104)
>   Cannot satisfy dependency:
>     From: org.eclipse.papyrus.constraintwithvsl.editor.xtext 0.7.1.201011231845
>     To: bundle org.eclipse.xtext.gmf.glue 1.0.0
>   Cannot satisfy dependency:
>     From: MDT Papyrus - Runtime and Tools (Incubation) 0.7.2.v201101082104
> (org.eclipse.papyrus.feature.group 0.7.2.v201101082104)
>     To: org.eclipse.papyrus.xtext.integration.feature.group
> [0.7.2.v201101082104]
>   Cannot satisfy dependency:
>     From: MARTE profile 0.7.1.201011231845
> (org.eclipse.papyrus.marte.feature.feature.group 0.7.1.201011231845)
>     To: org.eclipse.papyrus.constraintwithvsl.editor.xtext [0.7.1.201011231845]
>   Cannot satisfy dependency:
>     From: MDT Papyrus - SDK: Runtime, Tools, Documentation and sources
> (Incubation) 0.7.2.v201101082104 (org.eclipse.papyrus.sdk.feature.group
> 0.7.2.v201101082104)
>     To: org.eclipse.papyrus.feature.group [0.7.2.v201101082104]
>   Cannot satisfy dependency:
>     From: MDT Papyrus - XText integration for Direct editors (Incubation)
> 0.7.2.v201101082104 (org.eclipse.papyrus.xtext.integration.feature.group
> 0.7.2.v201101082104)
>     To: org.eclipse.xtext.gmf.glue [0.7.2.v201101082104]

Try to unistall your papyrus, and reinstall it again. I have updated some dependencies number, so they can be not compliant with previous ones.
Comment 4 Camille Letavernier CLA 2013-03-25 08:41:27 EDT
Closed