Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » Package Explorer: Top Level Elements
Package Explorer: Top Level Elements [message #1708381] Wed, 16 September 2015 07:00 Go to next message
Markus Rathgeb is currently offline Markus RathgebFriend
Messages: 105
Registered: August 2014
Senior Member

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 07:25 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
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 08:10 Go to previous messageGo to next message
Markus Rathgeb is currently offline Markus RathgebFriend
Messages: 105
Registered: August 2014
Senior Member

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 09:25 Go to previous messageGo to next message
Maksim Melnik is currently offline Maksim MelnikFriend
Messages: 52
Registered: August 2015
Member
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 10:19 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
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 10:34 Go to previous messageGo to next message
Maksim Melnik is currently offline Maksim MelnikFriend
Messages: 52
Registered: August 2015
Member
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 10:48 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
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 11:02 Go to previous messageGo to next message
Maksim Melnik is currently offline Maksim MelnikFriend
Messages: 52
Registered: August 2015
Member
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 158 times)
Re: Package Explorer: Top Level Elements [message #1708545 is a reply to message #1708540] Thu, 17 September 2015 11:46 Go to previous messageGo to next message
Maksim Melnik is currently offline Maksim MelnikFriend
Messages: 52
Registered: August 2015
Member
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 11:55 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
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 Apr 19 14:11:00 GMT 2024

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

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

Back to the top