facebook

Editor not refreshing when opening different umr-files

  1. MyEclipse Archived
  2.  > 
  3. UML Development
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #259827 Reply

    madmanx5
    Member

    Hello,

    i have got a problem when i have multiple umr files open in Eclipse.
    In MyEclipse UML Perspective, I open the umr files by doubleclicking them in the Package Explorer. Now, when I switch between the editors, the view in the editor window is not being refreshed. For example, when I open u1.umr and u2.umr and switch from u1 to u2, the editor still shows the diagram from u1, even if the editor for u2 is selected.
    When I switch several times back to u1 and then to u2 again, suddenly the view is refreshed, showing the diagram from u2. When I now switch back to u1, the diagram from u2 is showed in the editor of u1.
    It feels like some sort of lag, happens on single- as well as dual-core machines with plenty of ram, so I do not think it is a pc-specific problem.

    Any hint on this?

    The Error Log:

    !ENTRY com.genuitec.eclipse.uml 4 0 2006-10-04 15:12:27.866
    !MESSAGE While calling targetSet for org.argouml.ui.targetmanager.TargetEvent[source=org.argouml.ui.targetmanager.TargetManager@1a053d5] in
     org.argouml.uml.diagram.ui.TabDiagram[,0,0,902x541,invalid,layout=java.awt.BorderLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=9,maxi
    mumSize=,minimumSize=,preferredSize=] an error is thrown.
    !STACK 0
    java.lang.NullPointerException
            at java.awt.Rectangle.setBounds(Rectangle.java:254)
            at javax.swing.RepaintManager.collectDirtyComponents(RepaintManager.java:482)
            at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:418)
            at org.argouml.uml.diagram.ui.TabDiagram.setTarget(TabDiagram.java:219)
            at org.argouml.uml.diagram.ui.TabDiagram.targetSet(TabDiagram.java:424)
            at org.argouml.ui.targetmanager.TargetManager.fireTargetSet(TargetManager.java:619)
            at org.argouml.ui.targetmanager.TargetManager.internalOnSetTarget(TargetManager.java:393)
            at org.argouml.ui.targetmanager.TargetManager.setTarget(TargetManager.java:375)
            at org.argouml.ui.ProjectBrowser.propertyChange(ProjectBrowser.java:742)
            at org.argouml.kernel.ProjectManager.firePropertyChanged(ProjectManager.java:176)
            at org.argouml.kernel.ProjectManager.setCurrentProject(ProjectManager.java:203)
            at com.genuitec.eclipse.uml.editor.UMLEditor.restoreState(UMLEditor.java:625)
            at com.genuitec.eclipse.uml.UMLPlugin$1.partVisible(UMLPlugin.java:212)
            at org.eclipse.ui.internal.PartListenerList2$7.run(PartListenerList2.java:170)
            at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
            at org.eclipse.core.runtime.Platform.run(Platform.java:843)
            at org.eclipse.ui.internal.PartListenerList2.fireEvent(PartListenerList2.java:53)
            at org.eclipse.ui.internal.PartListenerList2.firePartVisible(PartListenerList2.java:168)
            at org.eclipse.ui.internal.PartService.firePartVisible(PartService.java:121)
            at org.eclipse.ui.internal.WWinPartService$1.partVisible(WWinPartService.java:60)
            at org.eclipse.ui.internal.PartListenerList2$7.run(PartListenerList2.java:170)
            at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
            at org.eclipse.core.runtime.Platform.run(Platform.java:843)
            at org.eclipse.ui.internal.PartListenerList2.fireEvent(PartListenerList2.java:53)
            at org.eclipse.ui.internal.PartListenerList2.firePartVisible(PartListenerList2.java:168)
            at org.eclipse.ui.internal.PartService.firePartVisible(PartService.java:121)
            at org.eclipse.ui.internal.WorkbenchPagePartList.firePartVisible(WorkbenchPagePartList.java:67)
            at org.eclipse.ui.internal.PartList.partVisible(PartList.java:269)
            at org.eclipse.ui.internal.PartList.access$2(PartList.java:258)
            at org.eclipse.ui.internal.PartList$1.propertyChanged(PartList.java:44)
            at org.eclipse.ui.internal.WorkbenchPartReference.fireInternalPropertyChange(WorkbenchPartReference.java:346)
            at org.eclipse.ui.internal.WorkbenchPartReference.fireVisibilityChange(WorkbenchPartReference.java:507)
            at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:295)
            at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:140)
            at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:268)
            at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
            at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:394)
            at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1144)
            at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1097)
            at org.eclipse.ui.internal.PartStack.presentationSelectionChanged(PartStack.java:795)
            at org.eclipse.ui.internal.PartStack.access$1(PartStack.java:781)
            at org.eclipse.ui.internal.PartStack$1.selectPart(PartStack.java:123)
            at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation$1.handleEvent(TabbedStackPresentation.java:126)
            at org.eclipse.ui.internal.presentations.util.AbstractTabFolder.fireEvent(AbstractTabFolder.java:267)
            at org.eclipse.ui.internal.presentations.util.AbstractTabFolder.fireEvent(AbstractTabFolder.java:276)
            at org.eclipse.ui.internal.presentations.defaultpresentation.DefaultTabFolder.access$1(DefaultTabFolder.java:1)
            at org.eclipse.ui.internal.presentations.defaultpresentation.DefaultTabFolder$2.handleEvent(DefaultTabFolder.java:84)
            at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
            at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1085)
            at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1109)
            at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1094)
            at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:935)
            at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3171)
            at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1953)
            at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:288)
            at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
            at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1085)
            at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3166)
            at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2842)
            at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)
            at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
            at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419)
            at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
            at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
            at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
            at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
            at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
            at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
            at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
            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:585)
            at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
            at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
            at org.eclipse.core.launcher.Main.run(Main.java:977)
            at org.eclipse.core.launcher.Main.main(Main.java:952)
    
    #259829 Reply

    madmanx5
    Member

    After rebooting, I get this in the error log:

    !ENTRY com.genuitec.eclipse.uml 4 0 2006-10-04 15:56:41.236
    !MESSAGE While calling targetSet for org.argouml.ui.targetmanager.TargetEvent[source=org.argouml.ui.targetmanager.TargetManager@18f5cce] in org.argouml.uml.diagram.ui.TabDiagram[,0,0,902x543,invalid,layout=java.awt.BorderLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=9,maximumSize=,minimumSize=,preferredSize=] an error is thrown.
    !STACK 0
    java.lang.NullPointerException
            at javax.swing.SwingUtilities.computeIntersection(SwingUtilities.java:417)
            at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:430)
            at org.argouml.uml.diagram.ui.TabDiagram.setTarget(TabDiagram.java:219)
            at org.argouml.uml.diagram.ui.TabDiagram.targetSet(TabDiagram.java:424)
            at org.argouml.ui.targetmanager.TargetManager.fireTargetSet(TargetManager.java:619)
            at org.argouml.ui.targetmanager.TargetManager.internalOnSetTarget(TargetManager.java:393)
            at org.argouml.ui.targetmanager.TargetManager.setTarget(TargetManager.java:375)
            at org.argouml.ui.ProjectBrowser.propertyChange(ProjectBrowser.java:742)
            at org.argouml.kernel.ProjectManager.firePropertyChanged(ProjectManager.java:176)
            at org.argouml.kernel.ProjectManager.setCurrentProject(ProjectManager.java:203)
            at com.genuitec.eclipse.uml.editor.UMLEditor.restoreState(UMLEditor.java:625)
            at com.genuitec.eclipse.uml.UMLPlugin$1.partVisible(UMLPlugin.java:212)
            at org.eclipse.ui.internal.PartListenerList2$7.run(PartListenerList2.java:170)
            at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
            at org.eclipse.core.runtime.Platform.run(Platform.java:843)
            at org.eclipse.ui.internal.PartListenerList2.fireEvent(PartListenerList2.java:53)
            at org.eclipse.ui.internal.PartListenerList2.firePartVisible(PartListenerList2.java:168)
            at org.eclipse.ui.internal.PartService.firePartVisible(PartService.java:121)
            at org.eclipse.ui.internal.WWinPartService$1.partVisible(WWinPartService.java:60)
            at org.eclipse.ui.internal.PartListenerList2$7.run(PartListenerList2.java:170)
            at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
            at org.eclipse.core.runtime.Platform.run(Platform.java:843)
            at org.eclipse.ui.internal.PartListenerList2.fireEvent(PartListenerList2.java:53)
            at org.eclipse.ui.internal.PartListenerList2.firePartVisible(PartListenerList2.java:168)
            at org.eclipse.ui.internal.PartService.firePartVisible(PartService.java:121)
            at org.eclipse.ui.internal.WorkbenchPagePartList.firePartVisible(WorkbenchPagePartList.java:67)
            at org.eclipse.ui.internal.PartList.partVisible(PartList.java:269)
            at org.eclipse.ui.internal.PartList.access$2(PartList.java:258)
            at org.eclipse.ui.internal.PartList$1.propertyChanged(PartList.java:44)
            at org.eclipse.ui.internal.WorkbenchPartReference.fireInternalPropertyChange(WorkbenchPartReference.java:346)
            at org.eclipse.ui.internal.WorkbenchPartReference.fireVisibilityChange(WorkbenchPartReference.java:507)
            at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:295)
            at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:140)
            at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:268)
            at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
            at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:394)
            at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1144)
            at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1097)
            at org.eclipse.ui.internal.PartStack.presentationSelectionChanged(PartStack.java:795)
            at org.eclipse.ui.internal.PartStack.access$1(PartStack.java:781)
            at org.eclipse.ui.internal.PartStack$1.selectPart(PartStack.java:123)
            at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation$1.handleEvent(TabbedStackPresentation.java:126)
            at org.eclipse.ui.internal.presentations.util.AbstractTabFolder.fireEvent(AbstractTabFolder.java:267)
            at org.eclipse.ui.internal.presentations.util.AbstractTabFolder.fireEvent(AbstractTabFolder.java:276)
            at org.eclipse.ui.internal.presentations.defaultpresentation.DefaultTabFolder.access$1(DefaultTabFolder.java:1)
            at org.eclipse.ui.internal.presentations.defaultpresentation.DefaultTabFolder$2.handleEvent(DefaultTabFolder.java:84)
            at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
            at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1085)
            at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1109)
            at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1094)
            at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:935)
            at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3171)
            at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1953)
            at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:288)
            at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
            at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1085)
            at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3166)
            at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2842)
            at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)
            at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
            at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419)
            at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
            at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
            at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
            at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
            at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
            at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
            at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
            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:585)
            at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
            at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
            at org.eclipse.core.launcher.Main.run(Main.java:977)
            at org.eclipse.core.launcher.Main.main(Main.java:952)
    
    #259914 Reply

    madmanx5
    Member

    Update: the problem seems only to occur on Linux, in Windows everything is fine

    #259940 Reply

    Riyad Kalla
    Member

    Can you go to MyEclipse > Installation Summary > INstallation Details and paste the result here for me from your Linux machine?

    #259996 Reply

    madmanx5
    Member
    
    *** Date: Fri Oct 06 09:50:45 CEST 2006
    
    *** System properties:
    OS=Linux
    OS version=2.6.16.13-4-smp
    Java version=1.5.0_08
    
    *** MyEclipse details:
    MyEclipse Enterprise Workbench
    
    Version: 5.0 GA
    Build id: 20060805-5.0-GA
    
    *** Eclipse details:
    Eclipse SDK
    
    Version: 3.2.0
    Build id: M20060628-1325
    
    Eclipse Platform
    
    Version: 3.2.0.v20060609m-AgOexn6hlEUsvBO
    Build id: M20060628-1325
    
    Eclipse Java Development Tools
    
    Version: 3.2.0.v20060609m-F7snq1fxia-Z4XP
    Build id: M20060628-1325
    
    Eclipse Plug-in Development Environment
    
    Version: 3.2.0.v20060609m------6zXJJzJzJq
    Build id: M20060628-1325
    
    Eclipse Project SDK
    
    Version: 3.2.0.v20060609m-GNq6oQq-7es-Y81
    Build id: M20060628-1325
    
    Eclipse Graphical Editing Framework
    
    Version: 3.2.0.v20060626
    Build id: 20060627-0816
    
    Eclipse RCP
    
    Version: 3.2.0.v20060609m-SVDNgVrNoh-MeGG
    Build id: M20060628-1325
    
    Eclipse Graphical Editing Framework
    
    Version: 3.2.0.v20060626
    Build id: 20060627-0816
    
    Eclipse startup command=-os
    linux
    -ws
    gtk
    -arch
    x86
    -launcher
    /home/guenter/programme/eclipse/eclipse
    -name
    Eclipse
    -showsplash
    600
    -exitdata
    268008
    -vm
    /opt/mcsys/java/bin/java
    #260004 Reply

    Riyad Kalla
    Member

    All those settings look fine. Can you add “-Dsun.java2d.d3d=false” to your command line arguments and see if that helps?

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: Editor not refreshing when opening different umr-files

You must be logged in to post in the forum log in