| Check URI of Resource [message #1339070] |
Wed, 07 May 2014 09:57  |
Eclipse User |
|
|
|
Hi,
I tried a lot of time to solve the problem, but I haven't found a solution so far.
I want to query all object that are instances of two certain classes.
That is what is written in the following.
But I didn't manage to check the URI of the object.
In Java it coded like this:
.eResource().getURI().toString().startsWith("file:/");
Any help is very welcome.
Greetings, Mario
package klassen
pattern allTypes(klasse)
{
ConcreteClassifier(klasse);
}
or
{
AnonymousClass(klasse);
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Re: Check URI of Resource [message #1413273 is a reply to message #1413266] |
Thu, 28 August 2014 03:27  |
Eclipse User |
|
|
|
Hi,
Ábel: I was relating to the following description from Mario:
Quote:
The proposed solution using IBaseIndexResourceFilter does not work.
I have to filter the result from Incquery manually.
But I noticed that the memory usage decreases when filtering out all resources, that means that isResourceFiltered(Resource resource) always returns true.
For me it means, all resources were filtered out... So I am not sure, what happened.
Mario: in addition to the code snippet, can you also provide queries/instance model; or at least tell us what is the expected/actual outcome of the code?
Cheers,
Zoltán
|
|
|
Powered by
FUDForum. Page generated in 0.06079 seconds