Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

create new (feed) channel subscription programmatically

hi,
how can i create a new feed channel subscription programmatically?

i try with simple addTempChannel method

FeedManager feedManager=FeedManager.getDefault();
URL url = new URL("http:...");
feedManager.addTempChannel(url, title);


and not work...

with the addChannel method instead i have problem during the creation of Channel instance (Channel channel=new Channel() is wrong)...
how can i initializate channel, for add then to feedManager?

thanks
enzo

0 votes



3 answers

Permanent link
zuk wrote:
hi,
how can i create a new feed channel subscription programmatically?

i try with simple addTempChannel method

FeedManager feedManager=FeedManager.getDefault();
URL url = new URL("http:...");
feedManager.addTempChannel(url, title);


and not work...

with the addChannel method instead i have problem during the creation
of Channel instance (Channel channel=new Channel() is wrong)...
how can i initializate channel, for add then to feedManager?

thanks
enzo



Channel channel= FeedFactory.eINSTANCE.createChannel();
channel.setUrl(urlStr);
FeedManager.getDefault().addChannel(channel);

--
Benjamin Pasero
Work Item & UI Commons Team

0 votes


Permanent link
great...
now i would add a object contribution popup menu action to Feed folder menu, between new subscription... and refresh actions.

how is the objectClass name related to this object contribution?

thanks
enzo

0 votes


Permanent link
zuk wrote:
great...
now i would add a object contribution popup menu action to Feed folder
menu, between new subscription... and refresh actions.

how is the objectClass name related to this object contribution?

thanks
enzo


I am happy to help on Jazz related stuff, but please understand that I
wont explain Eclipse to you :). I suggest you take a look at these links
/ books:

http://wiki.eclipse.org/index.php/The_Official_Eclipse_FAQs
http://www.eclipse.org/swt/
http://www.amazon.com/Eclipse-Rich-Client-Platform-ebook/dp/B00142N2ZI/ref=sr_1_3?ie=UTF8&s=books&qid=1253605875&sr=8-3

Also, the Eclipse UI mailinglist is good for questions like that one:
http://dev.eclipse.org/mailman/listinfo/platform-ui-dev

Ben

--
Benjamin Pasero
Work Item & UI Commons Team

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,952

Question asked: Sep 21 '09, 7:22 a.m.

Question was seen: 5,398 times

Last updated: Sep 21 '09, 7:22 a.m.

Confirmation Cancel Confirm