Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Communications Framework (ECF) » Share Model Editing example
Share Model Editing example [message #589677] Thu, 17 November 2005 08:49 Go to next message
Parvez is currently offline Parvez
Messages: 181
Registered: July 2009
Senior Member
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?
Re: Share Model Editing example [message #589690 is a reply to message #589677] Thu, 17 November 2005 08:56 Go to previous messageGo to next message
Parvez is currently offline Parvez
Messages: 181
Registered: July 2009
Senior Member
More or less, same is true for ECF Graph Share example. But it also
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?
>
>
Re: Share Model Editing example [message #589700 is a reply to message #589677] Fri, 18 November 2005 06:37 Go to previous messageGo to next message
Isaac Xu is currently offline Isaac Xu
Messages: 6
Registered: July 2009
Junior Member
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?
>
>
Re: Share Model Editing example [message #589716 is a reply to message #589700] Fri, 18 November 2005 08:07 Go to previous messageGo to next message
Parvez is currently offline Parvez
Messages: 181
Registered: July 2009
Senior Member
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?
>>
>>
Re: Share Model Editing example [message #590747 is a reply to message #589716] Fri, 18 November 2005 19:02 Go to previous messageGo to next message
Scott Lewis is currently offline Scott Lewis
Messages: 970
Registered: July 2009
Senior Member
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?
>>>
>>>
Re: Share Model Editing example [message #590757 is a reply to message #589690] Sat, 19 November 2005 03:57 Go to previous messageGo to next message
Scott Lewis is currently offline Scott Lewis
Messages: 970
Registered: July 2009
Senior Member
Hi Parvez,

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
Re: Share Model Editing example [message #590768 is a reply to message #590747] Sun, 20 November 2005 09:43 Go to previous message
Parvez is currently offline Parvez
Messages: 181
Registered: July 2009
Senior Member
Thanks for info.
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?
>>>>
>>>>
Previous Topic:ECF0.51 update operation has failed
Next Topic:Some download file Links is invalid
Goto Forum:
  


Current Time: Sat Aug 30 08:25:50 EDT 2014

Powered by FUDForum. Page generated in 0.03313 seconds