Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » [Solved] How to disable an annotation
[Solved] How to disable an annotation [message #1654677] Fri, 06 March 2015 20:06 Go to next message
Julian Enoch is currently offline Julian EnochFriend
Messages: 24
Registered: January 2014
Junior Member
Is there a way to disable the annotation http://www.eclipse.org/oomph/setup/Enablement, in order that I have total control on my P2 repositories from within the .setup file?

In relation with this question, is there a plan to reinstate RedirectionTask?

Thanks,

[Updated on: Thu, 21 May 2015 15:44]

Report message to a moderator

Re: How to disable an annotation [message #1655615 is a reply to message #1654677] Sat, 07 March 2015 05:44 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33258
Registered: July 2009
Senior Member
Julian,

No. If there are alternative p2 locations from which you want to
install the task implementations you could use redirection tasks to
redirect what the annotation specifies to where your alternative is
located.

On 06/03/2015 9:06 PM, Julian Enoch wrote:
> Is there a way to disable the annotation
> http://www.eclipse.org/oomph/setup/Enablement, in order that I have
> total control on my P2 repositories from within the .setup file?
>
> Thanks,


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: How to disable an annotation [message #1661121 is a reply to message #1655615] Mon, 09 March 2015 13:41 Go to previous messageGo to next message
Julian Enoch is currently offline Julian EnochFriend
Messages: 24
Registered: January 2014
Junior Member
Hi Ed,

I would like to use the RedirectionTask, except that currently it has been cancelled! It looks like this:

public boolean isNeeded(SetupTaskContext context) throws Exception
{
return false;
}

public void perform(SetupTaskContext context) throws Exception
{
throw new UnsupportedOperationException("Redirection task can't be executed");
}

Which is why I asked if it will be reinstated.

I am aware of the conference, so I understand if I don't get a feedback until after.

Thanks
Re: How to disable an annotation [message #1661274 is a reply to message #1661121] Mon, 09 March 2015 15:00 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33258
Registered: July 2009
Senior Member
Julian,

Redirection tasks work much like variable tasks, i.e., they affect the
setup context, but otherwise there's nothing to actually perform so
they're never "needed" and cannot be performed in the normal sense.

On 09/03/2015 2:41 PM, Julian Enoch wrote:
> Hi Ed,
>
> I would like to use the RedirectionTask, except that currently it has
> been cancelled! It looks like this:
>
> public boolean isNeeded(SetupTaskContext context) throws Exception
> {
> return false;
> }
>
> public void perform(SetupTaskContext context) throws Exception
> {
> throw new UnsupportedOperationException("Redirection task can't be
> executed");
> }
>
> Which is why I asked if it will be reinstated.
>
> I am aware of the conference, so I understand if I don't get a
> feedback until after.
>
> Thanks


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: How to disable an annotation [message #1661673 is a reply to message #1661274] Mon, 09 March 2015 18:46 Go to previous message
Julian Enoch is currently offline Julian EnochFriend
Messages: 24
Registered: January 2014
Junior Member
I get it now Smile I got confused because RedirectionTask used to have some code in isNeeded().

Thanks,
Previous Topic:Help cloning git repo
Next Topic:[SOLVED] Cannot launch Eclipse, installed by Oomph
Goto Forum:
  


Current Time: Sun Dec 08 22:03:40 GMT 2024

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

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

Back to the top