Home » Eclipse Projects » Oomph » [Solved] How to try your own setup - drag file onto Projects catalog in the installer
[Solved] How to try your own setup - drag file onto Projects catalog in the installer [message #1383928] |
Tue, 27 May 2014 09:10 |
Abel Hegedus Messages: 197 Registered: September 2015 |
Senior Member |
|
|
I created a new setup in the new version of Oomph and would like to try it.
What is the sure-fire way of doing that?
- I tried pushing the "Launch the installer for the current project" but nothing happens (nothing on the error log either)
- I tried copying the .setup file to the root of the installer folder next to setup-eclipse.exe
- I tried to set the "Logical project container" to User and Eclipse.org projects but neither made the setup appear in the installer.
Thanks for any suggestions.
[Updated on: Tue, 27 May 2014 16:03] by Moderator Report message to a moderator
|
|
| | | | |
Re: How to try your own setup [message #1384713 is a reply to message #1383983] |
Fri, 30 May 2014 16:06 |
|
Like Abel, I tried the tree points he noticed, I also tried to drag my
setup file into the project page (the page right after the product one),
but nothing happened. So I guess, there is something missing in my setup
file, or I don't understand what you want to say by "Project catalog".
Thanks for any other suggestions (if there are).
Guillaume Coutable - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
| |
Re: How to try your own setup [message #1384752 is a reply to message #1384721] |
Sat, 31 May 2014 11:14 |
|
Thanks Ed, it works.
Whenever I wanted to drag my setup file, I did on the tree view, not
specifically on the "Eclipse.org Projects".
Le 30/05/2014 19:18, Ed Merks a écrit :
> You should be able to drag a *.setup resource from your Eclipse
> workspace or from the file system explorer, drag until you hover over
> the "Eclipse.org Projects" tree item in the Projects page's tree
> viewer. That should create a link...
>
> Failing that, you can locate the file
> <user.home>/.eclipse/org.eclipse.oomph.setup/setups/org.eclipse.projects.setup
> and add a line as follows to refer to your *.setup.
>
> <project
> href="file:/D:/sandbox/oomph/git/org.eclipse.oomph/setups/interim/xtext.setup#/"/>
>
>
> This should be an absolute URI starting with file: or http: and should
> use / as the segment separator; note the #/ at the end refers to the
> root object in your *.setup resource.
>
> On 30/05/2014 6:06 PM, gcoutable wrote:
>> Like Abel, I tried the tree points he noticed, I also tried to drag my
>> setup file into the project page (the page right after the product
>> one), but nothing happened. So I guess, there is something missing in
>> my setup file, or I don't understand what you want to say by "Project
>> catalog".
>>
>> Thanks for any other suggestions (if there are).
>
Guillaume Coutable - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
Re: How to try your own setup [message #1384753 is a reply to message #1384752] |
Sat, 31 May 2014 11:24 |
Ed Merks Messages: 33218 Registered: July 2009 |
Senior Member |
|
|
Yes, it's not the most obvious thing. There's no support for removing
it either, other than editing the file I mentioned. Please open a
bugzilla asking for a mechanism that's more discoverable.
On 31/05/2014 1:14 PM, gcoutable wrote:
> Thanks Ed, it works.
>
> Whenever I wanted to drag my setup file, I did on the tree view, not
> specifically on the "Eclipse.org Projects".
>
> Le 30/05/2014 19:18, Ed Merks a écrit :
>> You should be able to drag a *.setup resource from your Eclipse
>> workspace or from the file system explorer, drag until you hover over
>> the "Eclipse.org Projects" tree item in the Projects page's tree
>> viewer. That should create a link...
>>
>> Failing that, you can locate the file
>> <user.home>/.eclipse/org.eclipse.oomph.setup/setups/org.eclipse.projects.setup
>>
>> and add a line as follows to refer to your *.setup.
>>
>> <project
>> href="file:/D:/sandbox/oomph/git/org.eclipse.oomph/setups/interim/xtext.setup#/"/>
>>
>>
>>
>> This should be an absolute URI starting with file: or http: and should
>> use / as the segment separator; note the #/ at the end refers to the
>> root object in your *.setup resource.
>>
>> On 30/05/2014 6:06 PM, gcoutable wrote:
>>> Like Abel, I tried the tree points he noticed, I also tried to drag my
>>> setup file into the project page (the page right after the product
>>> one), but nothing happened. So I guess, there is something missing in
>>> my setup file, or I don't understand what you want to say by "Project
>>> catalog".
>>>
>>> Thanks for any other suggestions (if there are).
>>
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
| | | |
Re: How to try your own setup [message #1386262 is a reply to message #1386247] |
Mon, 16 June 2014 08:43 |
Ed Merks Messages: 33218 Registered: July 2009 |
Senior Member |
|
|
Chistoph,
There are some guards in
org.eclipse.oomph.setup.ui.wizards.ProjectPage.ItemProviderAdapterFactory.createProjectAdapter().SpecializedProjectItemProvider.createDragAndDropCommand(...).new
DragAndDropCommand() {...}.prepare(), i.e.,
protected boolean prepare()
{
projects.clear();
for (Object value : collection)
{
if (value instanceof URI)
{
URI uri = (URI)value;
SetupResource resource =
EMFUtil.loadResourceSafely(resourceSet, uri);
Project project =
(Project)EcoreUtil.getObjectByType(resource.getContents(),
SetupPackage.Literals.PROJECT);
if (project != null && project.getName() != null &&
(operation == DROP_COPY || project.eContainer() == null))
{
projects.add(project);
}
}
}
So the resource must contain a project that has a name. Perhaps your
resource isn't well formed?
Failing all that, what I suggested before, i.e., Failing that, you can
locate the file
<user.home>/.eclipse/org.eclipse.oomph.setup/setups/org.eclipse.projects.setup
and add a line as follows to refer to your *.setup.
<project
href="file:/D:/sandbox/oomph/git/org.eclipse.oomph/setups/interim/xtext.setup#/"/>
On 16/06/2014 8:42 AM, Christoph Keimel wrote:
> Dropping it on "Eclipse.org" isn't allowed either.
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
| | | | |
Re: How to try your own setup [message #1402974 is a reply to message #1402968] |
Sat, 19 July 2014 03:59 |
Ed Merks Messages: 33218 Registered: July 2009 |
Senior Member |
|
|
Tamar,
Comments below.
On 19/07/2014 12:29 AM, Tamar Cohen wrote:
> Hi Ed --
>
> I'm having the same problems as these users,
Sorry we've not focused on improving the documentation to keep up with
the features that are available.
> I cannot figure out how to get the setup file to show up as a choice
> in the installer. I've tried dropping it on the folder,
:-(
> putting it next to the application, and editing the
> org.eclipse.projects.setup in my
> .eclipse/org.eclipse.oomph.setup/setups as you described. I've
> restarted the oomph installer of course, and refreshed it. It's
> version 1.0.0.v20140716-0322.
> I have also tried with the efxclipse.setup file you have in this
> thread, and with the test.setup file from
> http://git.eclipse.org/c/cdo/cdo.git/plain/plugins/org.eclipse.emf.cdo.releng.setup/setups/test.setup
That one definitely won't work because it's not using all the latest
namespaces.
>
> all of them have the same result, which is nothing.
When editing your *.setup, do you have an outline view? If not, you
need to set the logical container of your project to point at the
Eclipse.org (or Github.com) project catalog. Without an outline, you
won't know if your project is completely well formed. With live
validation enabled (it should be by default) you should see any direct
problems in the project via the decorators. In the outline you should
see your streams listed and under each stream is essentially a preview
of the tasks that will be performed to provision that stream into a
product. You must have at least one stream; only a stream can be
provisioned, not a project without streams.
>
> Suggestions?
My immediate guess is that the project has no streams and so there's
nothing that can be provisioned for it. Getting the outline view to
show your per-stream tasks will help.
> This tool looks perfect for our group and I really want it to work!
I'm sure we can get it working for you. If the problem is simply a
missing stream, we should probably add validation that a project should
have at least one stream or at least one subproject (with the constraint
applying recursively).
>
> Thanks a ton
> Tamar
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
| |
Re: How to try your own setup [message #1402987 is a reply to message #1402977] |
Sat, 19 July 2014 08:24 |
Ed Merks Messages: 33218 Registered: July 2009 |
Senior Member |
|
|
Tamar,
Do you see other files in your .eclipse/org.eclipse.oomph.setup/setups
folder? I.e., the user.setup? I guess so because you didn't create
this whole file by yourself did you?
<?xml version="1.0" encoding="UTF-8"?>
<setup:Project
xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI"
xmlns:setup="http://www.eclipse.org/oomph/setup/1.0"
name="user.project"
label="<User>">
<description>A container project for local user projects that are
virtual members of the Eclipse.org project catalog</description>
<project
href="file://Users/tecohen/Documents/workspace/oomph_setup/VerveSimple.setup#/"/>
<project
href="file://Users/tecohen/Documents/workspace/oomph_setup/VerveKnRoverRAPID.setup#/"/>
<project
href="file://Users/tecohen/Documents/workspace/oomph_setup/test.setup#/"/>
<project
href="file://Users/tecohen/Documents/workspace/oomph_setup/efxclipse.setup#/"/>
</setup:Project>
I suppose it got created for you, but that implies you successfully did
a drag and drop to have created it...
If you have this file in the right place, I would expect you'd see a
<user> project as the first child in your Eclipse.org projects list.
I assume that Eclipse.org project catalog is showing:
Maybe there are clues in the configuration/*.log of the installer itself?
If you want to email me your setup file, I can see if there's something
wrong with it...
On 19/07/2014 6:25 AM, Tamar Cohen wrote:
> Thanks Ed for your response --
> I am not convinced it's my project, because my project has a master
> stream and looks a lot like the efxclipse.setup and test.setup. It
> does have a correct looking view in the setup editor, with the outline
> view.
> It has validated, there are no problem markers.
>
>
> Is there a current, valid test setup file that I can use? I'm feeling
> like maybe I'm editing the wrong file, here is my
> org.eclipse.projects.setup file:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <setup:Project
> xmi:version="2.0"
> xmlns:xmi="http://www.omg.org/XMI"
> xmlns:setup="http://www.eclipse.org/oomph/setup/1.0"
> name="user.project"
> label="<User>">
> <description>A container project for local user projects that are
> virtual members of the Eclipse.org project catalog</description>
> <project
> href="file://Users/tecohen/Documents/workspace/oomph_setup/VerveSimple.setup#/"/>
> <project
> href="file://Users/tecohen/Documents/workspace/oomph_setup/VerveKnRoverRAPID.setup#/"/>
> <project
> href="file://Users/tecohen/Documents/workspace/oomph_setup/test.setup#/"/>
> <project
> href="file://Users/tecohen/Documents/workspace/oomph_setup/efxclipse.setup#/"/>
> </setup:Project>
>
>
> Thanks so much for your help!
>
> Tamar
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Re: How to try your own setup [message #1402988 is a reply to message #1402987] |
Sat, 19 July 2014 08:25 |
Ed Merks Messages: 33218 Registered: July 2009 |
Senior Member |
|
|
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Oops no picture when sending plain text:<br>
<br>
<img src="https://www.eclipse.org/forums/index.php?t=getfile&id=18583" alt=""><br>
<div class="moz-cite-prefix">On 19/07/2014 10:24 AM, Ed Merks wrote:<br>
</div>
<blockquote cite="mid:lqda0k$jei$1@xxxxxxxxe.org" type="cite">Tamar,
<br>
<br>
Do you see other files in your
.eclipse/org.eclipse.oomph.setup/setups folder? I.e., the
user.setup? I guess so because you didn't create this whole file
by yourself did you?
<br>
<br>
<?xml version="1.0" encoding="UTF-8"?>
<br>
<setup:Project
<br>
xmi:version="2.0"
<br>
xmlns:xmi=<a class="moz-txt-link-rfc2396E" href="http://www.omg.org/XMI">"http://www.omg.org/XMI"</a>
<br>
xmlns:setup=<a class="moz-txt-link-rfc2396E" href="http://www.eclipse.org/oomph/setup/1.0">"http://www.eclipse.org/oomph/setup/1.0"</a>
<br>
name="user.project"
<br>
label="<User>">
<br>
<description>A container project for local user projects
that are virtual members of the Eclipse.org project
catalog</description>
<br>
<project
href=<a class="moz-txt-link-rfc2396E" href="file://Users/tecohen/Documents/workspace/oomph_setup/VerveSimple.setup#/">"file://Users/tecohen/Documents/workspace/oomph_setup/VerveSimple.setup#/"</a>/><br>
<project
href=<a class="moz-txt-link-rfc2396E" href="file://Users/tecohen/Documents/workspace/oomph_setup/VerveKnRoverRAPID.setup#/">"file://Users/tecohen/Documents/workspace/oomph_setup/VerveKnRoverRAPID.setup#/"</a>/><br>
<project
href=<a class="moz-txt-link-rfc2396E" href="file://Users/tecohen/Documents/workspace/oomph_setup/test.setup#/">"file://Users/tecohen/Documents/workspace/oomph_setup/test.setup#/"</a>/><br>
<project
href=<a class="moz-txt-link-rfc2396E" href="file://Users/tecohen/Documents/workspace/oomph_setup/efxclipse.setup#/">"file://Users/tecohen/Documents/workspace/oomph_setup/efxclipse.setup#/"</a>/><br>
</setup:Project>
<br>
<br>
I suppose it got created for you, but that implies you
successfully did a drag and drop to have created it...
<br>
<br>
If you have this file in the right place, I would expect you'd see
a <user> project as the first child in your Eclipse.org
projects list. I assume that Eclipse.org project catalog is
showing:
<br>
<br>
<br>
<br>
Maybe there are clues in the configuration/*.log of the installer
itself?
<br>
<br>
If you want to email me your setup file, I can see if there's
something wrong with it...
<br>
<br>
<br>
On 19/07/2014 6:25 AM, Tamar Cohen wrote:
<br>
<blockquote type="cite">Thanks Ed for your response --
<br>
I am not convinced it's my project, because my project has a
master stream and looks a lot like the efxclipse.setup and
test.setup. It does have a correct looking view in the setup
editor, with the outline view.
<br>
It has validated, there are no problem markers.
<br>
<br>
<br>
Is there a current, valid test setup file that I can use? I'm
feeling like maybe I'm editing the wrong file, here is my
org.eclipse.projects.setup file:
<br>
<br>
<?xml version="1.0" encoding="UTF-8"?>
<br>
<setup:Project
<br>
xmi:version="2.0"
<br>
xmlns:xmi=<a class="moz-txt-link-rfc2396E" href="http://www.omg.org/XMI">"http://www.omg.org/XMI"</a>
<br>
xmlns:setup=<a class="moz-txt-link-rfc2396E" href="http://www.eclipse.org/oomph/setup/1.0">"http://www.eclipse.org/oomph/setup/1.0"</a>
<br>
name="user.project"
<br>
label="<User>">
<br>
<description>A container project for local user projects
that are virtual members of the Eclipse.org project
catalog</description>
<br>
<project
href=<a class="moz-txt-link-rfc2396E" href="file://Users/tecohen/Documents/workspace/oomph_setup/VerveSimple.setup#/">"file://Users/tecohen/Documents/workspace/oomph_setup/VerveSimple.setup#/"</a>/><br>
<project
href=<a class="moz-txt-link-rfc2396E" href="file://Users/tecohen/Documents/workspace/oomph_setup/VerveKnRoverRAPID.setup#/">"file://Users/tecohen/Documents/workspace/oomph_setup/VerveKnRoverRAPID.setup#/"</a>/><br>
<project
href=<a class="moz-txt-link-rfc2396E" href="file://Users/tecohen/Documents/workspace/oomph_setup/test.setup#/">"file://Users/tecohen/Documents/workspace/oomph_setup/test.setup#/"</a>/><br>
<project
href=<a class="moz-txt-link-rfc2396E" href="file://Users/tecohen/Documents/workspace/oomph_setup/efxclipse.setup#/">"file://Users/tecohen/Documents/workspace/oomph_setup/efxclipse.setup#/"</a>/><br>
</setup:Project>
<br>
<br>
<br>
Thanks so much for your help!
<br>
<br>
Tamar
<br>
<br>
</blockquote>
<br>
</blockquote>
<br>
</body>
</html>
-
Attachment: bdfejiha.png
(Size: 34.54KB, Downloaded 161 times)
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
| | | | | | | |
Re: How to try your own setup [message #1403291 is a reply to message #1403149] |
Tue, 22 July 2014 03:48 |
Ed Merks Messages: 33218 Registered: July 2009 |
Senior Member |
|
|
Tamar,
Comments below.
On 21/07/2014 7:26 PM, Tamar Cohen wrote:
> HOLY COW I was just totally confused. The first screen (image attached) was where I thought we were expected to see the user folder and to be able to drag and drop things, but it turns out after I press Next is where the folders including the User folder with my setups show up! AND drag and drop works in this area.
Oh dear. Yes, they both have Eclipse.org as the root object, though on
the first page it's the list of Products and the second the list of
Projects and when coding those two words differ by only two letters. :-P
>
> sorry. thank you! sorry AND thank you!
>
> ok I'm finishing up my exploration of using this tool now. Thanks again for your amazingly prompt response and hopefully the resolution of my confusion can help others.
Hehehe. You're welcome.
>
> Tamar
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Goto Forum:
Current Time: Thu Sep 26 15:48:39 GMT 2024
Powered by FUDForum. Page generated in 0.08431 seconds
|