Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » install and use model Query
install and use model Query [message #553008] Mon, 16 August 2010 02:51 Go to next message
moaad  is currently offline moaad Friend
Messages: 6
Registered: July 2010
Junior Member
Hello,

I'm trying to install the EMF model query plug-in. In the eclipse website
http://www.eclipse.org/modeling/emf/downloads/?project=query

I have download :
* All-In-One Update Site
* SDK (Runtime, Source)
* Runtime
* Examples

// I don't know why there is 4 zip file ..??!!

For the first one (All-In-One Update Site), I unzipped the file which contains a plug-in && feature folders. I opened the plug-in folder. I found 6 zip directories which I extract. then I moved the extracted directories to my eclipse plug-in directory. I did the same for feature folder. That how I learned to install plug-in. I did the same for all downloaded files.
I restarted Eclipse, however when I try :
import org.eclipse.emf.query;
or
org.eclipse.emf.query.conditions.*;

I got an error message : eclipse doesn't recognize the packages and propose to create classes.....

I tried a second method : I unzipped the file and automatically moved it to drop-in folder within eclipse directory. but I got the same result.

Finally, I open help -> install new softwar ->
i have chosen :
- http://download.eclipse.org/releases/galileo
and installed emf queries ...... but still the same problem.

Did I download the wrong files ?? or My plug-in installation method is wrong !!


My objective is to create a model then send queries to obtain information that I need ( example : for a library : number of books with more than 500 pages...)

So far, I haven't found any tutorial or website dealing with model query ?? is there a tutorial which explain how to run these queries??

Thanks in advance

[Updated on: Mon, 16 August 2010 03:18]

Report message to a moderator

Re: install ans use model Query [message #553009 is a reply to message #553008] Mon, 16 August 2010 03:21 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33141
Registered: July 2009
Senior Member
Moadd,

Which version of Eclipse/EMF are you trying to install this into?
Helios, i.e., Eclipse 3.6/EMF 2.6? In general, I'd suggest using the
Helios update site (Help->Install New Software...) rather than unzipping
downloads.

In terms of developing applications using it, I'm not sure if you added
the right bundle dependencies to make the libraries visible. What did
you do to try to make the libraries available in your projects?


moaad wrote:
> Hello,
>
> I'm trying to install the EMF model query plug-in. In the eclipse website
> http://www.eclipse.org/modeling/emf/downloads/?project=query
>
> I have download :
> * All-In-One Update Site
> * SDK (Runtime, Source)
> * Runtime
> * Examples
>
> // I don't know why there is 4 zip file ..??!!
>
> For the first one (All-In-One Update Site), I unzipped the file which
> contains a plug-in && feature folders. I opened the plug-in folder. I
> found 6 zip directories which I extract. then I moved the extracted
> directories to my eclipse plug-in directory. I did the same for
> feature folder. That how I learned to install plug-in. I did the same
> for all downloaded files.
> I restarted Eclipse, however when I try :
> import org.eclipse.emf.query; or org.eclipse.emf.query.conditions.*;
>
> I got an error message : eclipse doesn't recognize the packages and
> propose to create classes.....
>
> I tried a second method : I unzipped the file and automatically moved
> it to drop-in folder within eclipse directory. but I got the same result.
>
> Did I download the wrong files ?? or My plug-in installation method
> is wrong !!
>
>
> My objective is to create a model then send queries to obtain
> information that I need ( example : for a library : number of books
> with more than 500 pages...)
>
> So far, I haven't found any tutorial or website dealing with model
> query ??
> thanks in advance
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: install ans use model Query [message #553014 is a reply to message #553009] Mon, 16 August 2010 04:22 Go to previous messageGo to next message
moaad  is currently offline moaad Friend
Messages: 6
Registered: July 2010
Junior Member
hi Ed ,

I use eclipse Galileo but I don't know which version .

In the beginning, I have done nothing to make the library visible,
I just added the plug-in in the appropriate folder.

Normally, Eclipse recognize automatically libraries in the plug-in folder ??!!
I can find EObject... and build EMF project...and I did nothing to make them visible.

as it didn't work, I've added in the build Path an external folder
which contain the org.eclipse.emf.query.* but no result

**********************************************************

I have installed emf.queries from Install New Software .->
but I still can't find
EObjectCondition and athor class in org.eclipse.emf.query

I'm a newbie but I'm sure that this problem could resolved since I actually see the targeted class present in the downloaded folders


best regards

Re: install ans use model Query [message #553105 is a reply to message #553014] Mon, 16 August 2010 13:30 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33141
Registered: July 2009
Senior Member
Moaad,

Comments below.

moaad wrote:
> hi Ed ,
>
> I use eclipse Galileo but I don't know which version .
>
> In the beginning, I have done nothing to make the library visible,
> I just added the plug-in in the appropriate folder.
To install it in the IDE. You can normally do that with the update
manager rather than unzipping downloads...
>
> Normally, Eclipse recognize automatically libraries in the plug-in
> folder ??!! I can find EObject... and build EMF project...and I did
> nothing to make them visible.
Nothing is visible in a project unless it's added to the classpath.
When building bundles with the PDE, that involves editing the
MANIFEST.MF and adding dependencies....
>
> as it didn't work, I've added in the build Path an external folder
> which contain the org.eclipse.emf.query.* but no result
You're questions seem to be more basic about how to work with PDE and
JDT than about EMF specifically...
>
> **********************************************************
>
> I have installed emf.queries from Install New Software .->
> but I still can't find
> EObjectCondition and athor class in org.eclipse.emf.query
You'd normally look for the features in which the are contained, not for
the names of individual classes.
>
> I'm a newbie but I'm sure that this problem could resolved since I
> actually see the targeted class present in the downloaded folders
You'll need to read some tutorials about Java development and working
with the Plug-in development environment...
>
> best regards
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: install ans use model Query [message #553256 is a reply to message #553105] Mon, 16 August 2010 20:42 Go to previous message
moaad  is currently offline moaad Friend
Messages: 6
Registered: July 2010
Junior Member
thanks Ed, I read some tutorials and it helps.

best regards

Previous Topic:Specifying a list as a visible member in model editor?
Next Topic:Inheritance with loaded resource and "Sample Reflective Ecore Model Editor"
Goto Forum:
  


Current Time: Thu Apr 25 16:14:02 GMT 2024

Powered by FUDForum. Page generated in 0.04155 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top