Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsShare Model Editing example
https://www.eclipse.org/forums/index.php/mv/msg/185847/589677/#msg_589677
This is how I tried:
I am running a local server by using startserver.cmd.
First user:
I created a simple project and connected to server by ECF menu for that
project.
I created Data Graph model and opened an ecore file.
Second user:
I ran another instance of eclipse by using another workspace.
Created a new simple project, connected to same local server by using ECF
menu.
Created data graph model and linked (Advance -> link to file in file system)
it with the same file in first workspace and opened same ecore file.
Now, any change I make & save, is not reflected automatically to another
user.
I am not sure what I am doing wrong, any thoughts?]]>Parvez2005-11-17T13:49:00-00:00Re: Share Model Editing example
https://www.eclipse.org/forums/index.php/mv/msg/185847/589690/#msg_589690
throws null pointer exception if one user makes the changes and another
user closes and opens its diagram.
java.lang.NullPointerException
at
org.eclipse.ecf.example.sdo.gefeditor.editparts.MyEditPartFa ctory.createEditPart(MyEditPartFactory.java:37)
at
org.eclipse.gef.ui.parts.AbstractEditPartViewer.setContents( AbstractEditPartViewer.java:593)
at
org.eclipse.ecf.example.sdo.gefeditor.MyGraphicalEditor.init ializeGraphicalViewer(MyGraphicalEditor.java:148)
at
org.eclipse.gef.ui.parts.GraphicalEditor.createGraphicalView er(GraphicalEditor.java:138)
at
org.eclipse.gef.ui.parts.GraphicalEditorWithPalette.createPa rtControl(GraphicalEditorWithPalette.java:65)
at
org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:585)
at
org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:365)
at
org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:552)
at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:28 3)
at
org.eclipse.ui.internal.presentations.PresentablePart.setVis ible(PresentablePart.java:126)
at
org.eclipse.ui.internal.presentations.util.PresentablePartFo lder.select(PresentablePartFolder.java:268)
at
org.eclipse.ui.internal.presentations.util.LeftToRightTabOrd er.select(LeftToRightTabOrder.java:65)
at
org.eclipse.ui.internal.presentations.util.TabbedStackPresen tation.selectPart(TabbedStackPresentation.java:391)
at
org.eclipse.ui.internal.PartStack.refreshPresentationSelecti on(PartStack.java:1102)
at org.eclipse.ui.internal.PartStack.setSelection(PartStack.jav a:1051)
at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:12 56)
at org.eclipse.ui.internal.PartStack.add(PartStack.java:442)
at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:109 )
at
org.eclipse.ui.internal.EditorSashContainer.addEditor(Editor SashContainer.java:60)
at
org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorA reaHelper.java:212)
at
org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAre aHelper.java:202)
at
org.eclipse.ui.internal.EditorManager.createEditorTab(Editor Manager.java:753)
at
org.eclipse.ui.internal.EditorManager.openEditorFromDescript or(EditorManager.java:665)
at org.eclipse.ui.internal.EditorManager.openEditor(EditorManag er.java:628)
at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2323)
at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2258)
at org.eclipse.ui.internal.WorkbenchPage.access$9(WorkbenchPage .java:2250)
at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.ja va:2236)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:69)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2231)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2212)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:371)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:334)
at
org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInE ditor(EditorUtility.java:251)
at
org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInE ditor(EditorUtility.java:131)
at
org.eclipse.jdt.internal.ui.actions.OpenActionUtil.open(Open ActionUtil.java:49)
at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:16 9)
at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:15 3)
at
org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchR un(SelectionDispatchAction.java:222)
at
org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(Selec tionDispatchAction.java:198)
at
org.eclipse.jdt.internal.ui.packageview.PackageExplorerActio nGroup.handleOpen(PackageExplorerActionGroup.java:296)
at
org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$ 4.open(PackageExplorerPart.java:869)
at
org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredV iewer.java:741)
at
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:1044)
at org.eclipse.core.runtime.Platform.run(Platform.java:783)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:14 8)
at
org.eclipse.jface.viewers.StructuredViewer.fireOpen(Structur edViewer.java:739)
at
org.eclipse.jface.viewers.StructuredViewer.handleOpen(Struct uredViewer.java:968)
at
org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(Stru cturedViewer.java:1067)
at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrate gy.java:243)
at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.ja va:238)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate gy.java:277)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3080)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2713)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1699)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:367)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:103)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:226)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:376)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:163)
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.core.launcher.Main.invokeFramework(Main.java:334 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
at org.eclipse.core.launcher.Main.run(Main.java:973)
at org.eclipse.core.launcher.Main.main(Main.java:948)
Parvez Chauhan wrote:
> I am not able to use Share model editing example.
>
> This is how I tried:
>
> I am running a local server by using startserver.cmd.
>
> First user:
>
> I created a simple project and connected to server by ECF menu for that
> project.
>
> I created Data Graph model and opened an ecore file.
>
> Second user:
>
> I ran another instance of eclipse by using another workspace.
>
> Created a new simple project, connected to same local server by using ECF
> menu.
>
> Created data graph model and linked (Advance -> link to file in file system)
> it with the same file in first workspace and opened same ecore file.
>
> Now, any change I make & save, is not reflected automatically to another
> user.
>
> I am not sure what I am doing wrong, any thoughts?
>
>]]>Parvez2005-11-17T13:56:52-00:00Re: Share Model Editing example
https://www.eclipse.org/forums/index.php/mv/msg/185847/589700/#msg_589700
Parvez Chauhan wrote:
> I am not able to use Share model editing example.
>
> This is how I tried:
>
> I am running a local server by using startserver.cmd.
>
> First user:
>
> I created a simple project and connected to server by ECF menu for that
> project.
>
> I created Data Graph model and opened an ecore file.
>
> Second user:
>
> I ran another instance of eclipse by using another workspace.
>
> Created a new simple project, connected to same local server by using ECF
> menu.
>
> Created data graph model and linked (Advance -> link to file in file system)
> it with the same file in first workspace and opened same ecore file.
>
> Now, any change I make & save, is not reflected automatically to another
> user.
>
> I am not sure what I am doing wrong, any thoughts?
>
>]]>Isaac Xu2005-11-18T11:37:00-00:00Re: Share Model Editing example
https://www.eclipse.org/forums/index.php/mv/msg/185847/589716/#msg_589716
Isaac Xu wrote:
> I know It must be installed EMF for share Graph, hope useful.
>
> Parvez Chauhan wrote:
>> I am not able to use Share model editing example.
>>
>> This is how I tried:
>>
>> I am running a local server by using startserver.cmd.
>>
>> First user:
>>
>> I created a simple project and connected to server by ECF menu for
>> that project.
>>
>> I created Data Graph model and opened an ecore file.
>>
>> Second user:
>>
>> I ran another instance of eclipse by using another workspace.
>>
>> Created a new simple project, connected to same local server by using
>> ECF menu.
>>
>> Created data graph model and linked (Advance -> link to file in file
>> system) it with the same file in first workspace and opened same ecore
>> file.
>>
>> Now, any change I make & save, is not reflected automatically to
>> another user.
>>
>> I am not sure what I am doing wrong, any thoughts?
>>
>>]]>Parvez2005-11-18T13:07:21-00:00Re: Share Model Editing example
https://www.eclipse.org/forums/index.php/mv/msg/185847/590747/#msg_590747
I think there is a newly introduced bug in the graphshare example
application. I will take a look at it tonight (Fri) and this weekend.
I don't suspect it will be difficult to fix once I reaquaint with that code.
We (ECF) are anticipating doing an 0.5.2 build within the next couple of
days (certainly before next Thurs). I will try to make sure the fix for
this issue gets into 0.5.2. I would appreciate it, though, if someone
(Parvez?) could submit this as a bug report via bugs.eclipse.org...to
the ECF bug area?
Thanks!
Scott
Parvez Chauhan wrote:
> I do have EMF already installed.
>
> Isaac Xu wrote:
>
>> I know It must be installed EMF for share Graph, hope useful.
>>
>> Parvez Chauhan wrote:
>>
>>> I am not able to use Share model editing example.
>>>
>>> This is how I tried:
>>>
>>> I am running a local server by using startserver.cmd.
>>>
>>> First user:
>>>
>>> I created a simple project and connected to server by ECF menu for
>>> that project.
>>>
>>> I created Data Graph model and opened an ecore file.
>>>
>>> Second user:
>>>
>>> I ran another instance of eclipse by using another workspace.
>>>
>>> Created a new simple project, connected to same local server by using
>>> ECF menu.
>>>
>>> Created data graph model and linked (Advance -> link to file in file
>>> system) it with the same file in first workspace and opened same
>>> ecore file.
>>>
>>> Now, any change I make & save, is not reflected automatically to
>>> another user.
>>>
>>> I am not sure what I am doing wrong, any thoughts?
>>>
>>>]]>Scott Lewis2005-11-19T00:02:02-00:00Re: Share Model Editing example
https://www.eclipse.org/forums/index.php/mv/msg/185847/590757/#msg_590757
Parvez Chauhan wrote:
> <stuff deleted>
>> Created data graph model and linked (Advance -> link to file in file
>> system) it with the same file in first workspace and opened same ecore
>> file.
>>
>> Now, any change I make & save, is not reflected automatically to
>> another user.
>>
>> I am not sure what I am doing wrong, any thoughts?
>>
>>
So it seems that this problem is the side effect of a different bug that
prevented the state of the graphshare editor from being saved properly.
I believe I've fixed this other bug and the fix will be in release 0.5.2
which we will produce in the next few days.
Thanks again for the report.
Scott]]>Scott Lewis2005-11-19T08:57:50-00:00Re: Share Model Editing example
https://www.eclipse.org/forums/index.php/mv/msg/185847/590768/#msg_590768
Bug 117214 has been added to the database.
Parvez
Scott Lewis wrote:
> Hi Folks,
>
> I think there is a newly introduced bug in the graphshare example
> application. I will take a look at it tonight (Fri) and this weekend. I
> don't suspect it will be difficult to fix once I reaquaint with that code.
>
> We (ECF) are anticipating doing an 0.5.2 build within the next couple of
> days (certainly before next Thurs). I will try to make sure the fix for
> this issue gets into 0.5.2. I would appreciate it, though, if someone
> (Parvez?) could submit this as a bug report via bugs.eclipse.org...to
> the ECF bug area?
>
> Thanks!
>
> Scott
>
>
> Parvez Chauhan wrote:
>
>> I do have EMF already installed.
>>
>> Isaac Xu wrote:
>>
>>> I know It must be installed EMF for share Graph, hope useful.
>>>
>>> Parvez Chauhan wrote:
>>>
>>>> I am not able to use Share model editing example.
>>>>
>>>> This is how I tried:
>>>>
>>>> I am running a local server by using startserver.cmd.
>>>>
>>>> First user:
>>>>
>>>> I created a simple project and connected to server by ECF menu for
>>>> that project.
>>>>
>>>> I created Data Graph model and opened an ecore file.
>>>>
>>>> Second user:
>>>>
>>>> I ran another instance of eclipse by using another workspace.
>>>>
>>>> Created a new simple project, connected to same local server by
>>>> using ECF menu.
>>>>
>>>> Created data graph model and linked (Advance -> link to file in file
>>>> system) it with the same file in first workspace and opened same
>>>> ecore file.
>>>>
>>>> Now, any change I make & save, is not reflected automatically to
>>>> another user.
>>>>
>>>> I am not sure what I am doing wrong, any thoughts?
>>>>
>>>>]]>Parvez2005-11-20T14:43:26-00:00