|
|
|
|
| Re: retrieving crossreferences from external file [message #645060 is a reply to message #645045] |
Wed, 15 December 2010 07:34  |
Sebastian Zarnekow Messages: 2788 Registered: July 2009 |
Senior Member |
|
|
Hi Chuck,
sorry, I don't understand your problem. The default scope for your
reference to an EPackage will automatically return all visible EPackages
in the workspace. You'll only have to add the packages from the
registry, if you want to do this.
IScope parent = delegateGetScope(..); // all EPackages from the workspace
IScope result = createEPackageRegistryScope(parent, ...);
return result;
What did I miss?
Regards,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com
Am 15.12.10 12:04, schrieb chuck:
> chuck wrote on Tue, 14 December 2010 04:50
>> i try to explain:
>>
>>
>> public IScope scope_CallO_args(CallO o, EReference r) {
>>
>> List union=new ArrayList();
>>
>>
>> EList<Package> list_packages=getRoot(o).getPackages();
>> for (PackageOp pop : getRoot(o).getPackages()) {
>> union.add(pop.getVar());
>> }
>>
>> ... here i would retrieve epackages in ecore models in workspace...
>> this normally is execeuted when this scope s undefined....
>> }
>>
>> it's more clear?
>>
>> thx
>
>
> this problem isn't for eclasses because i have reference to existing
> package.... but for package i don't have reference to access element...i
> don't know if there is a way to access to workspace ecore models..-.
>
|
|
|
Powered by
FUDForum. Page generated in 0.01678 seconds