|
|
|
|
|
|
Re: [EMF Form] Implementing Reference Service - Need Help ?? [message #1391088 is a reply to message #1391023] |
Mon, 30 June 2014 12:28 |
Annamalai Mising name Messages: 126 Registered: July 2009 |
Senior Member |
|
|
Hello Jonas
I finally managed to download the zip of 1.3.0 and attach the source.
And in e3.MEEditorPage and found this code
final ViewModelContext vmc =
ViewModelContextFactory.INSTANCE.createViewModelContext(view, domainObject,
new ECPReferenceServiceImpl());
try {
ecpView = ECPSWTViewRenderer.INSTANCE.render(body, vmc);
} catch (final ECPRendererException ex) {
MessageDialog.openError(form.getShell(), ex.getClass().getName(),
ex.getMessage());
Activator.logException(ex);
}
And it seems to be not taking into consideration the Extension Point
based ReferenceServiceImpl but just hardcoding the
ECPReferenceServiceImpl by default.
Is this the 1, which is not letting our configuration from plugin.xml be
included to execute the ReferenceService example.
Any pointer in this line would be helpful and do let me know if this is
a bug.
Regards
Malai
On 6/30/2014 4:00 PM, Annamalai wrote:
> HI There
>
> I am on ECP 1.3 and even after installing the SDK i dnt see the Source
> in my plugins. Therefore unable to look into the code. I would
> appreciate if you can let me know how to change the default reference
> service to let it accept my service tthat i hav configured in my plugin.xml
>
> Also let me know if i have to contact a different updatesite to download
> the source for further debugging.
>
> Regards
> Malai
> On 6/26/2014 11:05 AM, Jonas Helming wrote:
>> Have you checked the model element opener in the explorer editor bridge?
>> It might pass the default reference service programatically into EMF
>> Forms...
>>
>> Am 25.06.2014 10:25, schrieb Annamalai:
>>> Yes ! I open the elements from Model Explorer.
>>>
>>> On 6/25/2014 1:08 PM, Jonas Helming wrote:
>>>> How do you open elements? From the model explorer?
>>>>
>>>>
>>>> Am 24.06.2014 13:27, schrieb Annamalai:
>>>>> I realised that the constructor alone is called whenever i open a EMF
>>>>> Form. But getExistingElementsFor is never called after that. I even
>>>>> tried to extend the current ECPReferenceServiceImpl and implement it.
>>>>>
>>>>> I am using the Default Form Editor, i have FormViewModel of just 1 of
>>>>> the Object types and the others are just using the default editor.
>>>>>
>>>>> Regards
>>>>> Malai
>>>>>
>>>>> On 6/24/2014 3:42 PM, Annamalai wrote:
>>>>>> Hi There
>>>>>>
>>>>>> I am trying to implement Reference Service as mentioned in the
>>>>>> tutorial
>>>>>> Customise EMF Forms.
>>>>>>
>>>>>> For now the context is set to the Project level by default as
>>>>>> explained.
>>>>>> Agreed so it loads all the possible references. But i would want to
>>>>>> change the context.
>>>>>>
>>>>>> Therefore i used the extension point
>>>>>> org.eclipse.emf.ecp.view.context.viewServices
>>>>>> Added org.eclipse.emf.ecp.edit plugin to dependancies
>>>>>> Created a new Class that implements ReferenceServices Interface.
>>>>>>
>>>>>> But this class is never initialised, non of the breakpoints under it
>>>>>> are
>>>>>> being invoked.
>>>>>>
>>>>>> Any help in this line would be appreciated.
>>>>>>
>>>>>> Regards
>>>>>> Malai
>>>>>
>>>>
>>>
>>
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.04282 seconds