Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » How to get compatible Eclipse and EMF?
How to get compatible Eclipse and EMF? [message #473033] Wed, 30 May 2007 01:29 Go to next message
Sunfire is currently offline SunfireFriend
Messages: 71
Registered: July 2009
Member
Hi,

I would like to reproduce some bugs in different builds of UML2. The way I
prefer to do so is to import the UML2's source code into Eclipse, compile
it, and construct a client program of it. The problem is that almost every
UML2 build has different "Build Dependencies" - it specifies some version
of Eclipse and some version of EMF. Does this mean that: in order for the
UML2's source code to compile/run properly, I have to download its
corresponding versions of Eclipse and EMF? Or I just need a single version
of Eclipse and EMF for all different UML2 builds?

In addition, how do I obtain the appropriate Eclipse/EMF version for a
specific UML2? For example, the latest build 2.1RC1a requires the Eclipse
S-3.3RC1-200705171700 for linux as a build dependency, but the latest
Eclipse available is only 3.2.2

Thanks in advance,

Sunny
Re: How to get compatible Eclipse and EMF? [message #473034 is a reply to message #473033] Wed, 30 May 2007 03:02 Go to previous messageGo to next message
Kenn Hussey is currently offline Kenn HusseyFriend
Messages: 1620
Registered: July 2009
Senior Member
Sunny,

Yes, in general, you need to select the appropriate versions of Eclipse and
EMF that support a given UML2 build. Practically speaking, it's rare that a
UML2 build will depend on something in a specific Eclipse platform build,
but because it is so closely related to EMF (e.g. the UML2 code generator),
it's quite common that it will depend on something in a specific EMF build
(especially with the rate at which things are changing in EMF of late).

To obtain the appropriate Eclipse/EMF version for a given UML2 build, all
you need to do is click on the links provided on the UML2 downloads page...
Yes, the latest available Eclipse release is 3.2.2, but interim builds are
available on a weekly basis for releases that are under development.

Kenn

"Sunny" <sunfire001@gmail.com> wrote in message
news:498e1f44a9b1e6c113bf80e7e9bf2264$1@www.eclipse.org...
> Hi,
>
> I would like to reproduce some bugs in different builds of UML2. The way I
> prefer to do so is to import the UML2's source code into Eclipse, compile
> it, and construct a client program of it. The problem is that almost every
> UML2 build has different "Build Dependencies" - it specifies some version
> of Eclipse and some version of EMF. Does this mean that: in order for the
> UML2's source code to compile/run properly, I have to download its
> corresponding versions of Eclipse and EMF? Or I just need a single version
> of Eclipse and EMF for all different UML2 builds?
>
> In addition, how do I obtain the appropriate Eclipse/EMF version for a
> specific UML2? For example, the latest build 2.1RC1a requires the Eclipse
> S-3.3RC1-200705171700 for linux as a build dependency, but the latest
> Eclipse available is only 3.2.2
>
> Thanks in advance,
>
> Sunny
>
Re: How to get compatible Eclipse and EMF? [message #473045 is a reply to message #473034] Wed, 30 May 2007 18:18 Go to previous messageGo to next message
Sunfire is currently offline SunfireFriend
Messages: 71
Registered: July 2009
Member
Hello Kenn,

Thanks for your answer. But I am still not sure whether I downloaded the
Eclipse and EMF correctly. So, let me confirm the this:

- The Eclipse and EMF that a specific UML2 build depends on are specified
under the "Build Dependencies" in the download page, right?

For instance, below is what I did:

I downloaded the UML2 I200703301423 build, the EMF 2.3.0M6, and Eclipse
3.3M6 (eclipse-SDK-3.3M6-linux-gtk.tar.gz). First, it is kind of strange
to me because the downloaded Eclipse is for linux, not for windows which
is my case. I uncompressed the Eclipse anyway since I thought I just need
a few .jar files in it as external library. Is this correct?

Then I uncompressed and imported the UML2 source files (i.e., those in
org.eclipse.uml2.uml_2.1.0.v200703301423 directory) and added the external
jars as required. However, the source files do not compile correctly: the
file org.eclipse.uml2.uml.UMLPlugin complains that
org.eclipse.runtime.IConfigurationElement cannot be resolved. Yet, I
already added org.eclipse.runtime as an external jar. What are the
problems?

Thank you very much,

-- Sunny
Re: How to get compatible Eclipse and EMF? [message #473046 is a reply to message #473034] Wed, 30 May 2007 18:44 Go to previous messageGo to next message
Sunfire is currently offline SunfireFriend
Messages: 71
Registered: July 2009
Member
Kenn,

The UMLPlugin.java complains that
org.eclipse.core.runtime.IConfigurationElement cannot be resolved. I
missed the *core* in the package name in my last message. Sorry for the
confusion...

Sunny
Re: How to get compatible Eclipse and EMF? [message #473048 is a reply to message #473045] Wed, 30 May 2007 19:40 Go to previous messageGo to next message
Kenn Hussey is currently offline Kenn HusseyFriend
Messages: 1620
Registered: July 2009
Senior Member
Sunny,

You would want to click on the 'Build Page' link on the right for each
dependency if you want builds for a different platform (UML2 is built on
Linux, but if you want to install it on Windows, you'll need the Widows
version of the Eclipse SDK).

Kenn

"Sunny" <sunfire001@gmail.com> wrote in message
news:8e5f4693df7e1af0c37ac31b52c180ec$1@www.eclipse.org...
> Hello Kenn,
>
> Thanks for your answer. But I am still not sure whether I downloaded the
> Eclipse and EMF correctly. So, let me confirm the this:
>
> - The Eclipse and EMF that a specific UML2 build depends on are specified
> under the "Build Dependencies" in the download page, right?
>
> For instance, below is what I did:
>
> I downloaded the UML2 I200703301423 build, the EMF 2.3.0M6, and Eclipse
> 3.3M6 (eclipse-SDK-3.3M6-linux-gtk.tar.gz). First, it is kind of strange
> to me because the downloaded Eclipse is for linux, not for windows which
> is my case. I uncompressed the Eclipse anyway since I thought I just need
> a few .jar files in it as external library. Is this correct?
>
> Then I uncompressed and imported the UML2 source files (i.e., those in
> org.eclipse.uml2.uml_2.1.0.v200703301423 directory) and added the external
> jars as required. However, the source files do not compile correctly: the
> file org.eclipse.uml2.uml.UMLPlugin complains that
> org.eclipse.runtime.IConfigurationElement cannot be resolved. Yet, I
> already added org.eclipse.runtime as an external jar. What are the
> problems?
>
> Thank you very much,
>
> -- Sunny
>
Re: How to get compatible Eclipse and EMF? [message #473049 is a reply to message #473046] Wed, 30 May 2007 19:41 Go to previous messageGo to next message
Kenn Hussey is currently offline Kenn HusseyFriend
Messages: 1620
Registered: July 2009
Senior Member
Sunny,

Sounds like you need the Windows version of the Eclipse SDK...

Kenn

"Sunny" <sunfire001@gmail.com> wrote in message
news:11464074318a73e0920129f8aeaba1d6$1@www.eclipse.org...
> Kenn,
>
> The UMLPlugin.java complains that
> org.eclipse.core.runtime.IConfigurationElement cannot be resolved. I
> missed the *core* in the package name in my last message. Sorry for the
> confusion...
>
> Sunny
>
Re: How to get compatible Eclipse and EMF? [message #473051 is a reply to message #473048] Wed, 30 May 2007 21:37 Go to previous messageGo to next message
Sunfire is currently offline SunfireFriend
Messages: 71
Registered: July 2009
Member
Kenn,

Thank you very much!

I downloaded the eclipse-SDK-3.3M6-win32.zip but the same compiling
problem exists. The UML2 and EMF I am using are UML2-I200703301423 and
EMF-2.3.0M6, respectively. It seems that these are compatible versions,
but how come it does not compile...

At least I learned how to choose correct versions and let me try another
set tonight.

Best,

-- Sunny
Re: How to get compatible Eclipse and EMF? [message #473062 is a reply to message #473051] Thu, 31 May 2007 13:29 Go to previous messageGo to next message
Kenn Hussey is currently offline Kenn HusseyFriend
Messages: 1620
Registered: July 2009
Senior Member
Sunny,

How exactly are you importing the source? I always select File > Import... >
Plug-in Development | Plug-ins and Fragments, check the 'Projects with
source folders' radio button, add org.eclipse.uml2.*, and press the 'Finish'
button, and it compiles for me...

Kenn

"Sunny" <sunfire001@gmail.com> wrote in message
news:7c8280472683e4d2d3fc3b430482c191$1@www.eclipse.org...
> Kenn,
>
> Thank you very much!
>
> I downloaded the eclipse-SDK-3.3M6-win32.zip but the same compiling
> problem exists. The UML2 and EMF I am using are UML2-I200703301423 and
> EMF-2.3.0M6, respectively. It seems that these are compatible versions,
> but how come it does not compile...
>
> At least I learned how to choose correct versions and let me try another
> set tonight.
>
> Best,
>
> -- Sunny
>
Re: How to get compatible Eclipse and EMF? [message #473070 is a reply to message #473062] Thu, 31 May 2007 21:03 Go to previous messageGo to next message
Sunfire is currently offline SunfireFriend
Messages: 71
Registered: July 2009
Member
Hi Kenn,

Thank you for your reply!

Below is what I did:

1. create any Java project in Eclipse 3.2

2. extract the src.zip to any folder. This src.zip is located at the
following directory of the uml2-I200703301423 version:

eclipse\plugins\org.eclipse.uml2.source_2.1.0.v200703301423\ src\org.eclipse.uml2.uml_2.1.0.v200703301423

3. in the newly created Java project, use Import->File System and select
the source folder just extracted. Then choose the top folder "org" and
Finish.

4. add the following external jars in the Properties-Libraries page:

org.eclipse.core.runtime_3.3.100.v20070319
org.eclipse.emf.common_2.3.0.v200703291501
org.eclipse.emf.ecore_2.3.0.v200703291501
org.eclipse.emf.ecore.xmi_2.3.0.v200703291501
org.eclipse.emf.mapping.ecore2xml_2.3.0.v200703291501
org.eclipse.osgi_3.3.0.v20070321
org.eclipse.uml2.common_1.3.0.v200703301423

5. compiling error

Is this process correct? I used the same process for UML2-1.1.1 and
UML2-2.0.1 and they compiled/run ok.

Have a good day,

-- Sunny
Re: How to get compatible Eclipse and EMF? [message #473093 is a reply to message #473070] Tue, 05 June 2007 02:45 Go to previous messageGo to next message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Sunny,

some comments below...




"Sunny" <sunfire001@gmail.com> wrote in message
news:d76e71081e8aa198cab3dc557096d85f$1@www.eclipse.org...
> Hi Kenn,
>
> Thank you for your reply!
>
> Below is what I did:
>
> 1. create any Java project in Eclipse 3.2

.... I think you mean Eclipse 3.3 ... UML2.1 requires Eclipse3.3 and EMF2.3.


>
> 2. extract the src.zip to any folder. This src.zip is located at the
> following directory of the uml2-I200703301423 version:
>
> eclipse\plugins\org.eclipse.uml2.source_2.1.0.v200703301423\ src\org.eclipse.uml2.uml_2.1.0.v200703301423
>
> 3. in the newly created Java project, use Import->File System and select
> the source folder just extracted. Then choose the top folder "org" and
> Finish.
>
> 4. add the following external jars in the Properties-Libraries page:
>
> org.eclipse.core.runtime_3.3.100.v20070319
> org.eclipse.emf.common_2.3.0.v200703291501
> org.eclipse.emf.ecore_2.3.0.v200703291501
> org.eclipse.emf.ecore.xmi_2.3.0.v200703291501
> org.eclipse.emf.mapping.ecore2xml_2.3.0.v200703291501
> org.eclipse.osgi_3.3.0.v20070321
> org.eclipse.uml2.common_1.3.0.v200703301423
>
> 5. compiling error

What is the compile error you are seeing?


>
> Is this process correct? I used the same process for UML2-1.1.1 and
> UML2-2.0.1 and they compiled/run ok.
>
> Have a good day,
>
> -- Sunny
>
Re: How to get compatible Eclipse and EMF? [message #473099 is a reply to message #473093] Tue, 05 June 2007 20:41 Go to previous messageGo to next message
Sunfire is currently offline SunfireFriend
Messages: 71
Registered: July 2009
Member
Hello James,

Thanks for your feedback.

The Eclipse platform I am using to develop applications is Eclipse 3.2. I
think this develpment platform is different from the Eclipse on which the
UML2 2.1 depends, right? In addition, I did add those Eclipse 3.3 jar
files in the Java Build path, as shown in the item 4 in my previous
message.

The error I got is that the UMLPlugin.java complains
org.eclipse.core.runtime.IConfigurationElement cannot be resolved.

Thank you for your time,

-- Sunny
Re: How to get compatible Eclipse and EMF? [message #473115 is a reply to message #473099] Thu, 07 June 2007 14:01 Go to previous messageGo to next message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Sunny,

It sounds like you are trying to mix and match different versions of
Eclipse. I'm not an expert in that area but I don't think it's possible
( or at least the results will be unpredictable ).

- James.



"Sunny" <sunfire001@gmail.com> wrote in message
news:f12e82577a64e07ad1cbc9698fd7f7f1$1@www.eclipse.org...
> Hello James,
>
> Thanks for your feedback.
>
> The Eclipse platform I am using to develop applications is Eclipse 3.2. I
> think this develpment platform is different from the Eclipse on which the
> UML2 2.1 depends, right? In addition, I did add those Eclipse 3.3 jar
> files in the Java Build path, as shown in the item 4 in my previous
> message.
>
> The error I got is that the UMLPlugin.java complains
> org.eclipse.core.runtime.IConfigurationElement cannot be resolved.
>
> Thank you for your time,
>
> -- Sunny
>
Re: How to get compatible Eclipse and EMF? [message #473118 is a reply to message #473115] Thu, 07 June 2007 16:12 Go to previous messageGo to next message
Sunfire is currently offline SunfireFriend
Messages: 71
Registered: July 2009
Member
Hi James,

I tried Eclipse 3.3M6 as both my development platform and external jars
for the uml2-I200703301423 version, but the same compiling error exists.
Actually the class org.eclipse.core.runtime.IConfigurationElement that
UMLPlugin references does not exist in the
org.eclipse.core.runtime_3.3.100.v20070319.jar. This is quite strange.

Then I added one more jar (org.eclipse.uml2.uml_2.1.0.v200703301423) in
the build path, and also deleted the UMLPlugin.java from its package cause
this is the only file causing the compiling error. Now the program
compiles.

I repeated the same process using Eclipse 3.2 as my development platform,
with all other configurations staying the same (i.e., the build path
includes all the same external jars as above), and it seems to work as
well.

Thank you for your help,

-- Sunny
Re: How to get compatible Eclipse and EMF? [message #473179 is a reply to message #473118] Tue, 12 June 2007 00:37 Go to previous messageGo to next message
Kenn Hussey is currently offline Kenn HusseyFriend
Messages: 1620
Registered: July 2009
Senior Member
Sunny,

The IConfigurationElement class is defined in the
org.eclipse.equinox.registry plug-in...

Kenn

"Sunny" <sunfire001@gmail.com> wrote in message
news:619d3875f910b14e6fd3d39051c70162$1@www.eclipse.org...
> Hi James,
>
> I tried Eclipse 3.3M6 as both my development platform and external jars
> for the uml2-I200703301423 version, but the same compiling error exists.
> Actually the class org.eclipse.core.runtime.IConfigurationElement that
> UMLPlugin references does not exist in the
> org.eclipse.core.runtime_3.3.100.v20070319.jar. This is quite strange.
> Then I added one more jar (org.eclipse.uml2.uml_2.1.0.v200703301423) in
> the build path, and also deleted the UMLPlugin.java from its package cause
> this is the only file causing the compiling error. Now the program
> compiles.
>
> I repeated the same process using Eclipse 3.2 as my development platform,
> with all other configurations staying the same (i.e., the build path
> includes all the same external jars as above), and it seems to work as
> well.
>
> Thank you for your help,
>
> -- Sunny
>
>
>
Re: How to get compatible Eclipse and EMF? [message #473208 is a reply to message #473179] Fri, 15 June 2007 16:01 Go to previous message
Sunfire is currently offline SunfireFriend
Messages: 71
Registered: July 2009
Member
Hello Kenn,

Sorry for my late response. I was out of town for a few days...

Now the uml2 implementation compiles/runs fine by adding the
org.eclipse.equinox.registry package. Thank you so much!

Cheers,

-- Sunny
Re: How to get compatible Eclipse and EMF? [message #618182 is a reply to message #473033] Wed, 30 May 2007 03:02 Go to previous message
Kenn Hussey is currently offline Kenn HusseyFriend
Messages: 1620
Registered: July 2009
Senior Member
Sunny,

Yes, in general, you need to select the appropriate versions of Eclipse and
EMF that support a given UML2 build. Practically speaking, it's rare that a
UML2 build will depend on something in a specific Eclipse platform build,
but because it is so closely related to EMF (e.g. the UML2 code generator),
it's quite common that it will depend on something in a specific EMF build
(especially with the rate at which things are changing in EMF of late).

To obtain the appropriate Eclipse/EMF version for a given UML2 build, all
you need to do is click on the links provided on the UML2 downloads page...
Yes, the latest available Eclipse release is 3.2.2, but interim builds are
available on a weekly basis for releases that are under development.

Kenn

"Sunny" <sunfire001@gmail.com> wrote in message
news:498e1f44a9b1e6c113bf80e7e9bf2264$1@www.eclipse.org...
> Hi,
>
> I would like to reproduce some bugs in different builds of UML2. The way I
> prefer to do so is to import the UML2's source code into Eclipse, compile
> it, and construct a client program of it. The problem is that almost every
> UML2 build has different "Build Dependencies" - it specifies some version
> of Eclipse and some version of EMF. Does this mean that: in order for the
> UML2's source code to compile/run properly, I have to download its
> corresponding versions of Eclipse and EMF? Or I just need a single version
> of Eclipse and EMF for all different UML2 builds?
>
> In addition, how do I obtain the appropriate Eclipse/EMF version for a
> specific UML2? For example, the latest build 2.1RC1a requires the Eclipse
> S-3.3RC1-200705171700 for linux as a build dependency, but the latest
> Eclipse available is only 3.2.2
>
> Thanks in advance,
>
> Sunny
>
Re: How to get compatible Eclipse and EMF? [message #618327 is a reply to message #473034] Wed, 30 May 2007 18:18 Go to previous message
Sunfire is currently offline SunfireFriend
Messages: 71
Registered: July 2009
Member
Hello Kenn,

Thanks for your answer. But I am still not sure whether I downloaded the
Eclipse and EMF correctly. So, let me confirm the this:

- The Eclipse and EMF that a specific UML2 build depends on are specified
under the "Build Dependencies" in the download page, right?

For instance, below is what I did:

I downloaded the UML2 I200703301423 build, the EMF 2.3.0M6, and Eclipse
3.3M6 (eclipse-SDK-3.3M6-linux-gtk.tar.gz). First, it is kind of strange
to me because the downloaded Eclipse is for linux, not for windows which
is my case. I uncompressed the Eclipse anyway since I thought I just need
a few .jar files in it as external library. Is this correct?

Then I uncompressed and imported the UML2 source files (i.e., those in
org.eclipse.uml2.uml_2.1.0.v200703301423 directory) and added the external
jars as required. However, the source files do not compile correctly: the
file org.eclipse.uml2.uml.UMLPlugin complains that
org.eclipse.runtime.IConfigurationElement cannot be resolved. Yet, I
already added org.eclipse.runtime as an external jar. What are the
problems?

Thank you very much,

-- Sunny
Re: How to get compatible Eclipse and EMF? [message #618329 is a reply to message #473034] Wed, 30 May 2007 18:44 Go to previous message
Sunfire is currently offline SunfireFriend
Messages: 71
Registered: July 2009
Member
Kenn,

The UMLPlugin.java complains that
org.eclipse.core.runtime.IConfigurationElement cannot be resolved. I
missed the *core* in the package name in my last message. Sorry for the
confusion...

Sunny
Re: How to get compatible Eclipse and EMF? [message #618333 is a reply to message #473045] Wed, 30 May 2007 19:40 Go to previous message
Kenn Hussey is currently offline Kenn HusseyFriend
Messages: 1620
Registered: July 2009
Senior Member
Sunny,

You would want to click on the 'Build Page' link on the right for each
dependency if you want builds for a different platform (UML2 is built on
Linux, but if you want to install it on Windows, you'll need the Widows
version of the Eclipse SDK).

Kenn

"Sunny" <sunfire001@gmail.com> wrote in message
news:8e5f4693df7e1af0c37ac31b52c180ec$1@www.eclipse.org...
> Hello Kenn,
>
> Thanks for your answer. But I am still not sure whether I downloaded the
> Eclipse and EMF correctly. So, let me confirm the this:
>
> - The Eclipse and EMF that a specific UML2 build depends on are specified
> under the "Build Dependencies" in the download page, right?
>
> For instance, below is what I did:
>
> I downloaded the UML2 I200703301423 build, the EMF 2.3.0M6, and Eclipse
> 3.3M6 (eclipse-SDK-3.3M6-linux-gtk.tar.gz). First, it is kind of strange
> to me because the downloaded Eclipse is for linux, not for windows which
> is my case. I uncompressed the Eclipse anyway since I thought I just need
> a few .jar files in it as external library. Is this correct?
>
> Then I uncompressed and imported the UML2 source files (i.e., those in
> org.eclipse.uml2.uml_2.1.0.v200703301423 directory) and added the external
> jars as required. However, the source files do not compile correctly: the
> file org.eclipse.uml2.uml.UMLPlugin complains that
> org.eclipse.runtime.IConfigurationElement cannot be resolved. Yet, I
> already added org.eclipse.runtime as an external jar. What are the
> problems?
>
> Thank you very much,
>
> -- Sunny
>
Re: How to get compatible Eclipse and EMF? [message #618336 is a reply to message #473046] Wed, 30 May 2007 19:41 Go to previous message
Kenn Hussey is currently offline Kenn HusseyFriend
Messages: 1620
Registered: July 2009
Senior Member
Sunny,

Sounds like you need the Windows version of the Eclipse SDK...

Kenn

"Sunny" <sunfire001@gmail.com> wrote in message
news:11464074318a73e0920129f8aeaba1d6$1@www.eclipse.org...
> Kenn,
>
> The UMLPlugin.java complains that
> org.eclipse.core.runtime.IConfigurationElement cannot be resolved. I
> missed the *core* in the package name in my last message. Sorry for the
> confusion...
>
> Sunny
>
Re: How to get compatible Eclipse and EMF? [message #618340 is a reply to message #473048] Wed, 30 May 2007 21:37 Go to previous message
Sunfire is currently offline SunfireFriend
Messages: 71
Registered: July 2009
Member
Kenn,

Thank you very much!

I downloaded the eclipse-SDK-3.3M6-win32.zip but the same compiling
problem exists. The UML2 and EMF I am using are UML2-I200703301423 and
EMF-2.3.0M6, respectively. It seems that these are compatible versions,
but how come it does not compile...

At least I learned how to choose correct versions and let me try another
set tonight.

Best,

-- Sunny
Re: How to get compatible Eclipse and EMF? [message #619412 is a reply to message #473051] Thu, 31 May 2007 13:29 Go to previous message
Kenn Hussey is currently offline Kenn HusseyFriend
Messages: 1620
Registered: July 2009
Senior Member
Sunny,

How exactly are you importing the source? I always select File > Import... >
Plug-in Development | Plug-ins and Fragments, check the 'Projects with
source folders' radio button, add org.eclipse.uml2.*, and press the 'Finish'
button, and it compiles for me...

Kenn

"Sunny" <sunfire001@gmail.com> wrote in message
news:7c8280472683e4d2d3fc3b430482c191$1@www.eclipse.org...
> Kenn,
>
> Thank you very much!
>
> I downloaded the eclipse-SDK-3.3M6-win32.zip but the same compiling
> problem exists. The UML2 and EMF I am using are UML2-I200703301423 and
> EMF-2.3.0M6, respectively. It seems that these are compatible versions,
> but how come it does not compile...
>
> At least I learned how to choose correct versions and let me try another
> set tonight.
>
> Best,
>
> -- Sunny
>
Re: How to get compatible Eclipse and EMF? [message #619427 is a reply to message #473062] Thu, 31 May 2007 21:03 Go to previous message
Sunfire is currently offline SunfireFriend
Messages: 71
Registered: July 2009
Member
Hi Kenn,

Thank you for your reply!

Below is what I did:

1. create any Java project in Eclipse 3.2

2. extract the src.zip to any folder. This src.zip is located at the
following directory of the uml2-I200703301423 version:

eclipse\plugins\org.eclipse.uml2.source_2.1.0.v200703301423\ src\org.eclipse.uml2.uml_2.1.0.v200703301423

3. in the newly created Java project, use Import->File System and select
the source folder just extracted. Then choose the top folder "org" and
Finish.

4. add the following external jars in the Properties-Libraries page:

org.eclipse.core.runtime_3.3.100.v20070319
org.eclipse.emf.common_2.3.0.v200703291501
org.eclipse.emf.ecore_2.3.0.v200703291501
org.eclipse.emf.ecore.xmi_2.3.0.v200703291501
org.eclipse.emf.mapping.ecore2xml_2.3.0.v200703291501
org.eclipse.osgi_3.3.0.v20070321
org.eclipse.uml2.common_1.3.0.v200703301423

5. compiling error

Is this process correct? I used the same process for UML2-1.1.1 and
UML2-2.0.1 and they compiled/run ok.

Have a good day,

-- Sunny
Re: How to get compatible Eclipse and EMF? [message #619681 is a reply to message #473070] Tue, 05 June 2007 02:45 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Sunny,

some comments below...




"Sunny" <sunfire001@gmail.com> wrote in message
news:d76e71081e8aa198cab3dc557096d85f$1@www.eclipse.org...
> Hi Kenn,
>
> Thank you for your reply!
>
> Below is what I did:
>
> 1. create any Java project in Eclipse 3.2

.... I think you mean Eclipse 3.3 ... UML2.1 requires Eclipse3.3 and EMF2.3.


>
> 2. extract the src.zip to any folder. This src.zip is located at the
> following directory of the uml2-I200703301423 version:
>
> eclipse\plugins\org.eclipse.uml2.source_2.1.0.v200703301423\ src\org.eclipse.uml2.uml_2.1.0.v200703301423
>
> 3. in the newly created Java project, use Import->File System and select
> the source folder just extracted. Then choose the top folder "org" and
> Finish.
>
> 4. add the following external jars in the Properties-Libraries page:
>
> org.eclipse.core.runtime_3.3.100.v20070319
> org.eclipse.emf.common_2.3.0.v200703291501
> org.eclipse.emf.ecore_2.3.0.v200703291501
> org.eclipse.emf.ecore.xmi_2.3.0.v200703291501
> org.eclipse.emf.mapping.ecore2xml_2.3.0.v200703291501
> org.eclipse.osgi_3.3.0.v20070321
> org.eclipse.uml2.common_1.3.0.v200703301423
>
> 5. compiling error

What is the compile error you are seeing?


>
> Is this process correct? I used the same process for UML2-1.1.1 and
> UML2-2.0.1 and they compiled/run ok.
>
> Have a good day,
>
> -- Sunny
>
Re: How to get compatible Eclipse and EMF? [message #619749 is a reply to message #473093] Tue, 05 June 2007 20:41 Go to previous message
Sunfire is currently offline SunfireFriend
Messages: 71
Registered: July 2009
Member
Hello James,

Thanks for your feedback.

The Eclipse platform I am using to develop applications is Eclipse 3.2. I
think this develpment platform is different from the Eclipse on which the
UML2 2.1 depends, right? In addition, I did add those Eclipse 3.3 jar
files in the Java Build path, as shown in the item 4 in my previous
message.

The error I got is that the UMLPlugin.java complains
org.eclipse.core.runtime.IConfigurationElement cannot be resolved.

Thank you for your time,

-- Sunny
Re: How to get compatible Eclipse and EMF? [message #619784 is a reply to message #473099] Thu, 07 June 2007 14:01 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Sunny,

It sounds like you are trying to mix and match different versions of
Eclipse. I'm not an expert in that area but I don't think it's possible
( or at least the results will be unpredictable ).

- James.



"Sunny" <sunfire001@gmail.com> wrote in message
news:f12e82577a64e07ad1cbc9698fd7f7f1$1@www.eclipse.org...
> Hello James,
>
> Thanks for your feedback.
>
> The Eclipse platform I am using to develop applications is Eclipse 3.2. I
> think this develpment platform is different from the Eclipse on which the
> UML2 2.1 depends, right? In addition, I did add those Eclipse 3.3 jar
> files in the Java Build path, as shown in the item 4 in my previous
> message.
>
> The error I got is that the UMLPlugin.java complains
> org.eclipse.core.runtime.IConfigurationElement cannot be resolved.
>
> Thank you for your time,
>
> -- Sunny
>
Re: How to get compatible Eclipse and EMF? [message #619901 is a reply to message #473115] Thu, 07 June 2007 16:12 Go to previous message
Sunfire is currently offline SunfireFriend
Messages: 71
Registered: July 2009
Member
Hi James,

I tried Eclipse 3.3M6 as both my development platform and external jars
for the uml2-I200703301423 version, but the same compiling error exists.
Actually the class org.eclipse.core.runtime.IConfigurationElement that
UMLPlugin references does not exist in the
org.eclipse.core.runtime_3.3.100.v20070319.jar. This is quite strange.

Then I added one more jar (org.eclipse.uml2.uml_2.1.0.v200703301423) in
the build path, and also deleted the UMLPlugin.java from its package cause
this is the only file causing the compiling error. Now the program
compiles.

I repeated the same process using Eclipse 3.2 as my development platform,
with all other configurations staying the same (i.e., the build path
includes all the same external jars as above), and it seems to work as
well.

Thank you for your help,

-- Sunny
Re: How to get compatible Eclipse and EMF? [message #621529 is a reply to message #473118] Tue, 12 June 2007 00:37 Go to previous message
Kenn Hussey is currently offline Kenn HusseyFriend
Messages: 1620
Registered: July 2009
Senior Member
Sunny,

The IConfigurationElement class is defined in the
org.eclipse.equinox.registry plug-in...

Kenn

"Sunny" <sunfire001@gmail.com> wrote in message
news:619d3875f910b14e6fd3d39051c70162$1@www.eclipse.org...
> Hi James,
>
> I tried Eclipse 3.3M6 as both my development platform and external jars
> for the uml2-I200703301423 version, but the same compiling error exists.
> Actually the class org.eclipse.core.runtime.IConfigurationElement that
> UMLPlugin references does not exist in the
> org.eclipse.core.runtime_3.3.100.v20070319.jar. This is quite strange.
> Then I added one more jar (org.eclipse.uml2.uml_2.1.0.v200703301423) in
> the build path, and also deleted the UMLPlugin.java from its package cause
> this is the only file causing the compiling error. Now the program
> compiles.
>
> I repeated the same process using Eclipse 3.2 as my development platform,
> with all other configurations staying the same (i.e., the build path
> includes all the same external jars as above), and it seems to work as
> well.
>
> Thank you for your help,
>
> -- Sunny
>
>
>
Re: How to get compatible Eclipse and EMF? [message #621688 is a reply to message #473179] Fri, 15 June 2007 16:01 Go to previous message
Sunfire is currently offline SunfireFriend
Messages: 71
Registered: July 2009
Member
Hello Kenn,

Sorry for my late response. I was out of town for a few days...

Now the uml2 implementation compiles/runs fine by adding the
org.eclipse.equinox.registry package. Thank you so much!

Cheers,

-- Sunny
Previous Topic:Default value "*" of tag with type UnlimitedNatural gets lost
Next Topic:basic question: how to load a uml model?
Goto Forum:
  


Current Time: Fri Apr 26 03:56:37 GMT 2024

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

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

Back to the top