[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [mylyn-dev] Parameter for interest manipulation
|
Hi Shawn,
I see, so, the manipulateInterest* methods are for adding landmarks and removing items. What I am really looking to do is either bump up or bump down the interest level of an element by one notch *programmatically*. For increasing, I just create a new interaction event and process it. But for bumping it down, there is no such equivalent. That is why I use the manipulateInterest* methods for that. The solution you give below sounds like it would be just for increasing the interest by a certain level (please correct me if I'm wrong), which would not work for me.
I propose the following, please let me know what you think:
- Redesign the manipulateInterest* methods so that they are named for what they actually do -- yes they manipulate the interest but what they are really doing is either removing an element from the context or making it a landmark. Specifically, we should have methods like makeLandmark and removeFromContext or something of the like.
- Make several new methods called increaseInterest and decreaseInterest, some of which take a parameter and others that don't. The parameter will correspond to the amount of interest to add/remove. The ones that do not take a parameter simply call the parameterized ones with some standard amount.
Raffi
On Nov 3, 2010, at 11:36 AM, Shawn Minto wrote:
> Hi Raffi,
>
> This value is currently "hard coded" as the landmark value as the
> manipulate* methods are used for adding landmarks and removing items
> from the context. If you want to manipulate the interest with a
> specific value, you could consider building your own InteractionEvent
> and then calling processInteractionEvent instead.
>
> Shawn
>
> On Tue, Oct 26, 2010 at 3:34 PM, Raffi Khatchadourian
> <khatchad@xxxxxxxxxxxxxxxxxx> wrote:
>> Would it make sense to have the amount of interest to increase/decrease to the method org.eclipse.mylyn.internal.context.core.InteractionContextManager.manipulateInterestForElement(IInteractionElement, boolean, boolean, boolean, String, boolean) come in as a parameter? Right now, the change value seems to be hard coded.
>> _______________________________________________
>> mylyn-dev mailing list
>> mylyn-dev@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/mylyn-dev
>>
>
>
>
> --
> Shawn Minto
> shawn.minto@xxxxxxxxxxx
> Tasktop Technologies, Inc.
> http://www.tasktop.com
> _______________________________________________
> mylyn-dev mailing list
> mylyn-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/mylyn-dev