Skip to main content



      Home
Home » Eclipse Projects » Oomph » [Solved] How to disable an annotation
[Solved] How to disable an annotation [message #1654677] Fri, 06 March 2015 15:06 Go to next message
Eclipse UserFriend
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 11:44] by Moderator

Re: How to disable an annotation [message #1655615 is a reply to message #1654677] Sat, 07 March 2015 00:44 Go to previous messageGo to next message
Eclipse UserFriend
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,
Re: How to disable an annotation [message #1661121 is a reply to message #1655615] Mon, 09 March 2015 09:41 Go to previous messageGo to next message
Eclipse UserFriend
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 11:00 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: How to disable an annotation [message #1661673 is a reply to message #1661274] Mon, 09 March 2015 14:46 Go to previous message
Eclipse UserFriend
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: Mon Jul 14 08:34:41 EDT 2025

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

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

Back to the top