Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Transferring String data from action to view
Transferring String data from action to view [message #329137] Fri, 13 June 2008 15:49
Eclipse UserFriend
Originally posted by: gang.xu.delphi.com

Hi,
I have built an eclipse plug-in with a pop-up and view included.
Basically, I have the action menu appearing over an IFunction and storing
to body of the function as a string. Is there any way to pass the string
(or any string, for that matter) over to my view where it can be viewed,
modified, etc.?

So far, I think I've looked in the wrong direction, and have the view
being alerted similar to the article:
http://www.eclipse.org/articles/Article-WorkbenchSelections/ article.html

So,
1. Along the lines above, is there a way to listen for the specific
selection of the action? I thought
addSelectionListener(String partId, ISelectionListener listener)
with partId = the name of the id of the action class in plugin.xml would
do the trick, but nothing is happening.

2. Is there a simple way to transfer data from an action over to a view?
Specifically, if Action.java under the *.popup.java stores a string, can
NewView.java under *.views of the same project get hold of that string?

Thanks!
Previous Topic:How to view the Eclipse SDK Samples
Next Topic:cheat sheets related question
Goto Forum:
  


Current Time: Thu Dec 26 10:32:42 GMT 2024

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

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

Back to the top