For the purpose of an University exam I have to create an eclipse plugin that allow users to do certain operation in a Sequence Diagram. My professor told us to use Papyrus for the drawing diagram part.
I used TortoiseSVN to download the source code. The download took several hours and ended with an error message after the demand of a name in a popup where it asked "Login as:". The folder downloaded, anyway, is about 10GB!!!
Then i tried to import as an existing project but I have some error message like "Resource '/alfFeature' already exists." and so on with all other projects in the folder I have downloaded. What I have to do to resolve that?
Several hours ? 10 GB ? What exactly did you try to checkout ? It can take some time to download the sources, but several hours is really too much. You shouldn't checkout more than a single version's "plugins" folder (e.g. branches/0.8.X/plugins), which is already 500~800 MB.
Also, do you really need to download the sources ? As there is no psf file for the 0.8.X version, it can be complicated to retrieve a coherent set of plug-ins (And 0.9.0 sources are probably not stable enough yet).
As I said, it can be pretty complicated to install a valid source version of Papyrus (At least for the branch), because not all plug-ins from the plugins/ folder are required (And, even worse, some of them should not be used). For example, the folder plugins/ocl contains a plug-in which is also located in plugins/uml (Which is why you have this error).
I think you should only download the following:
And if you install Papyrus before downloading the sources, it becomes much easier to have a coherent set of plug-ins (Because what is missing in the sources will at least be installed).
I imported the papyrus source code from the SVN repository, but i couldn't run it!! I didn't know how?
I tried the other method (import with a psf file) but i obtained java projects full of errors!! so i couldn't run it :/
I want to modify some classes code and view the result of my modification but i couldn't because i couldn't run papyrus!
Can you help me please?? Thank you
If all you want is to browse/debug the source feature will do. You can
Import plugins as sources for those of interest.
If you really want to get code from SVN you could use the downloaded
sources as a guide to what is useful.
On 15/01/2013 21:59, Walid Ban wrote:
> Hi I imported the papyrus source code from the SVN repository, but i
> couldn't run it!! I didn't know how?
> I tried the other method (import with a psf file) but i obtained java
> projects full of errors!! so i couldn't run it :/ I want to modify
> some classes code and view the result of my modification but i
> couldn't because i couldn't run papyrus!
> Can you help me please?? Thank you
thank you for replying...
when i get into run configuration-->run as java application, i couldn t find the main class in the the whole downloaded trunk! i didn t find a project named app or framework to fin that class.
i saw a video on youtube named "violet uml editor - how to configure eclipse and get the source code of the project" which explained that maven could build the java structure src/main to be able to run as a java application. well,i tried to do that but i didn t succeed may be because he has the project named framework and i don t..
could you please suggest some solutions? thanks a lot
Papyrus is an Eclipse Plug-in. It is not a standalone Java Application. This means that you must run Papyrus as an "Eclipse Application", not as a "Java Application". You can select any Papyrus plug-in and "Run as... Eclipse Application".