It's all about the answers!

Ask a question

create new (feed) channel subscription programmatically


enzo zuk (12693) | asked Sep 21 '09, 7:22 a.m.
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

3 answers



permanent link
Work Item & UI Commons Team (1.3k1) | answered Sep 21 '09, 8:35 a.m.
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

permanent link
enzo zuk (12693) | answered Sep 21 '09, 12:23 p.m.
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

permanent link
Work Item & UI Commons Team (1.3k1) | answered Sep 22 '09, 3:52 a.m.
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

Your answer


Register or 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.