Skip to main content



      Home
Home » Eclipse Projects » Oomph » Package Explorer: Top Level Elements
Package Explorer: Top Level Elements [message #1708381] Wed, 16 September 2015 03:00 Go to next message
Eclipse UserFriend
Hello,
I would like to add a setup task to my Oomph setup file, so the package explorer top level view is sest to working sets.
I have found this topic "https://www.eclipse.org/forums/index.php/t/1068762/", but do not know how to insert this lines in my setup file. The thread is rather old, too.
What is the current preferred way to accomplish this task?
Re: Package Explorer: Top Level Elements [message #1708384 is a reply to message #1708381] Wed, 16 September 2015 03:25 Go to previous messageGo to next message
Eclipse UserFriend
Am 16.09.2015 um 09:00 schrieb Markus Rathgeb:
> Hello,
> I would like to add a setup task to my Oomph setup file, so the package explorer top level view is sest to working sets.
> I have found this topic "https://www.eclipse.org/forums/index.php/t/1068762/", but do not know how to insert this
> lines in my setup file. The thread is rather old, too.
> What is the current preferred way to accomplish this task?
Just copy the XML snippet from that forum post, select the element under which you want to insert it (in the Setup
editor) and paste the snippet. It will be inserted as proper setup elements.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
Re: Package Explorer: Top Level Elements [message #1708391 is a reply to message #1708384] Wed, 16 September 2015 04:10 Go to previous messageGo to next message
Eclipse UserFriend
Thank you, this one is working for me.

    <setupTask
        xsi:type="setup:ResourceCreationTask"
        content="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?>&#xD;&#xA;&lt;section  name=&quot;Workbench&quot;>&#xD;&#xA;&#x9;&lt;section  name=&quot;org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart&quot;>&#xD;&#xA;&#x9;&#x9;&lt;item  value=&quot;true&quot; key=&quot;group_libraries&quot;/>&#xD;&#xA;&#x9;&#x9;&lt;item value=&quot;false&quot;  key=&quot;linkWithEditor&quot;/>&#xD;&#xA;&#x9;&#x9;&lt;item value=&quot;2&quot;  key=&quot;layout&quot;/>&#xD;&#xA;&#x9;&#x9;&lt;item value=&quot;2&quot;  key=&quot;rootMode&quot;/>&#xD;&#xA;&#x9;&#x9;&lt;item value=&quot;&amp;lt;?xml version=&amp;quot;1.0&amp;quot;  encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&amp;#x0D;&amp;#x0A;&amp;lt;packageExplorer  configured=&amp;quot;true&amp;quot; group_libraries=&amp;quot;1&amp;quot; layout=&amp;quot;2&amp;quot;  linkWithEditor=&amp;quot;0&amp;quot; rootMode=&amp;quot;2&amp;quot; sortWorkingSets=&amp;quot;false&amp;quot;  workingSetName=&amp;quot;&amp;quot;&amp;gt;&amp;#x0D;&amp;#x0A;&amp;lt;localWorkingSetManager&amp;gt;&amp;#x0D;&amp;#x0A;&amp;lt;workingSet  editPageId=&amp;quot;org.eclipse.jdt.internal.ui.OthersWorkingSet&amp;quot;  factoryID=&amp;quot;org.eclipse.ui.internal.WorkingSetFactory&amp;quot; id=&amp;quot;1382792884467_1&amp;quot;  label=&amp;quot;Other Projects&amp;quot; name=&amp;quot;Other  Projects&amp;quot;/&amp;gt;&amp;#x0D;&amp;#x0A;&amp;lt;/localWorkingSetManager&amp;gt;&amp;#x0D;&amp;#x0A;&amp;lt;activeWorkingSet  workingSetName=&amp;quot;Other Projects&amp;quot;/&amp;gt;&amp;#x0D;&amp;#x0A;&amp;lt;allWorkingSets  workingSetName=&amp;quot;Other Projects&amp;quot;/&amp;gt;&amp;#x0D;&amp;#x0A;&amp;lt;/packageExplorer&amp;gt;&quot;  key=&quot;memento&quot;/>&#xD;&#xA;&#x9;&lt;/section>&#xD;&#xA;&lt;/section>&#xD;&#xA;"
        targetURL="${workspace.location|uri}/.metadata/.plugins/org.eclipse.jdt.ui/dialog_settings.xml"
        encoding="UTF-8">
      <description>Use working sets as top lovel elements</description>
    </setupTask>
Re: Package Explorer: Top Level Elements [message #1708517 is a reply to message #1708391] Thu, 17 September 2015 05:25 Go to previous messageGo to next message
Eclipse UserFriend
How do I change the ResourceCreationTask if i want Projects be my top level elements ?
Re: Package Explorer: Top Level Elements [message #1708531 is a reply to message #1708517] Thu, 17 September 2015 06:19 Go to previous messageGo to next message
Eclipse UserFriend
Am 17.09.2015 um 11:25 schrieb Maksim Melnik:
> How do I change the ResourceCreationTask if i want Projects be my top level elements ?
Isn't that the default setting anyways? Why would you want to explicitely configure a setting with it own default value?

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
Re: Package Explorer: Top Level Elements [message #1708533 is a reply to message #1708531] Thu, 17 September 2015 06:34 Go to previous messageGo to next message
Eclipse UserFriend
Hey Eike,
I don't know why but it is not default for me Sad my default top elements are "Working Sets"... Here is my default ResourceCreationTask content:

content="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?>&#xD;&#xA;&lt;section name=&quot;Workbench&quot;>&#xD;&#xA;&#x9;&lt;section name=&quot;org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart&quot;>&#xD;&#xA;&#x9;&#x9;&lt;item value=&quot;true&quot; key=&quot;group_libraries&quot;/>&#xD;&#xA;&#x9;&#x9;&lt;item value=&quot;false&quot; key=&quot;linkWithEditor&quot;/>&#xD;&#xA;&#x9;&#x9;&lt;item value=&quot;2&quot; key=&quot;layout&quot;/>&#xD;&#xA;&#x9;&#x9;&lt;item value=&quot;2&quot; key=&quot;rootMode&quot;/>&#xD;&#xA;&#x9;&#x9;&lt;item value=&quot;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&amp;#x0D;&amp;#x0A;&amp;lt;packageExplorer configured=&amp;quot;true&amp;quot; group_libraries=&amp;quot;1&amp;quot; layout=&amp;quot;2&amp;quot; linkWithEditor=&amp;quot;0&amp;quot; rootMode=&amp;quot;2&amp;quot; sortWorkingSets=&amp;quot;false&amp;quot; workingSetName=&amp;quot;&amp;quot;&amp;gt;&amp;#x0D;&amp;#x0A;&amp;lt;localWorkingSetManager&amp;gt;&amp;#x0D;&amp;#x0A;&amp;lt;workingSet editPageId=&amp;quot;org.eclipse.jdt.internal.ui.OthersWorkingSet&amp;quot; factoryID=&amp;quot;org.eclipse.ui.internal.WorkingSetFactory&amp;quot; id=&amp;quot;1382792884467_1&amp;quot; label=&amp;quot;Other Projects&amp;quot; name=&amp;quot;Other Projects&amp;quot;/&amp;gt;&amp;#x0D;&amp;#x0A;&amp;lt;/localWorkingSetManager&amp;gt;&amp;#x0D;&amp;#x0A;&amp;lt;activeWorkingSet workingSetName=&amp;quot;Other Projects&amp;quot;/&amp;gt;&amp;#x0D;&amp;#x0A;&amp;lt;allWorkingSets workingSetName=&amp;quot;Other Projects&amp;quot;/&amp;gt;&amp;#x0D;&amp;#x0A;&amp;lt;/packageExplorer&amp;gt;&quot; key=&quot;memento&quot;/>&#xD;&#xA;&#x9;&lt;/section>&#xD;&#xA;&lt;/section>&#xD;&#xA;"
 
Re: Package Explorer: Top Level Elements [message #1708537 is a reply to message #1708533] Thu, 17 September 2015 06:48 Go to previous messageGo to next message
Eclipse UserFriend
Am 17.09.2015 um 12:34 schrieb Maksim Melnik:
> Hey Eike,
> I don't know why but it is not default for me :( my default top elements are "Working Sets"... Here is my default
> ResourceCreationTask content:
You confuse me. With this ResourceCreationTask you overwrite the default setting. Of course you see what you configure
explicitely, or you see the default behaviour if you don't touch that setting (i.e. leave the default value). What
happens *without* this ResourceCreationTask?

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper



>
>
> content="<?xml version="1.0" encoding="UTF-8"?>
> <section name="Workbench">
> <section name="org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart">
> <item value="true" key="group_libraries"/>
> <item value="false" key="linkWithEditor"/>
> <item value="2" key="layout"/>
> <item value="2" key="rootMode"/>
> <item value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#x0D;&#x0A;&lt;packageExplorer
> configured=&quot;true&quot; group_libraries=&quot;1&quot; layout=&quot;2&quot; linkWithEditor=&quot;0&quot;
> rootMode=&quot;2&quot; sortWorkingSets=&quot;false&quot;
> workingSetName=&quot;&quot;&gt;&#x0D;&#x0A;&lt;localWorkingSetManager&gt;&#x0D;&#x0A;&lt;workingSet
> editPageId=&quot;org.eclipse.jdt.internal.ui.OthersWorkingSet&quot;
> factoryID=&quot;org.eclipse.ui.internal.WorkingSetFactory&quot; id=&quot;1382792884467_1&quot; label=&quot;Other
> Projects&quot; name=&quot;Other
> Projects&quot;/&gt;&#x0D;&#x0A;&lt;/localWorkingSetManager&gt;&#x0D;&#x0A;&lt;activeWorkingSet
> workingSetName=&quot;Other Projects&quot;/&gt;&#x0D;&#x0A;&lt;allWorkingSets workingSetName=&quot;Other
> Projects&quot;/&gt;&#x0D;&#x0A;&lt;/packageExplorer&gt;" key="memento"/>
> </section>
> </section>
> "
>
Re: Package Explorer: Top Level Elements [message #1708540 is a reply to message #1708537] Thu, 17 September 2015 07:02 Go to previous messageGo to next message
Eclipse UserFriend
Hey Eike,
that is strange , when i create new project setup file then this task with the configuration above is created automatically... I don't touch it whatsoever...

When i delete the task then nothing changes, eclipse's default top level elements are still the working sets.
Cheers,
Maksim
  • Attachment: Capture.PNG
    (Size: 146.96KB, Downloaded 181 times)
Re: Package Explorer: Top Level Elements [message #1708545 is a reply to message #1708540] Thu, 17 September 2015 07:46 Go to previous messageGo to next message
Eclipse UserFriend
Update:

Ahh, actually, when i delete the task, it makes Projects my top elements... However it is still strange that you get the task per default when you create a new oomph setup project.

Thank you for your help.
Re: Package Explorer: Top Level Elements [message #1708548 is a reply to message #1708545] Thu, 17 September 2015 07:55 Go to previous message
Eclipse UserFriend
Am 17.09.2015 um 13:46 schrieb Maksim Melnik:
> Update:
>
> Ahh, actually, when i delete the task, it makes Projects my top elements...
Exactly, because that's Eclipse's default behaviour without such a task.

> However it is still strange that you get the task per default when you create a new oomph setup project.
We think that working sets are very useful and because our working sets are dynamic they're very easy and consistent,
too. That's why our setup file wizard adds this task. But of course you can remove this task or any other of the tasks
that come from the wizard templat.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
Previous Topic:ValidTriggers of a Task
Next Topic:XML Catalog configuration
Goto Forum:
  


Current Time: Fri Jul 04 02:31:40 EDT 2025

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

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

Back to the top