Transferring String data from action to view [message #329137] |
Fri, 13 June 2008 15:49 |
Eclipse User |
|
|
|
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!
|
|
|
Powered by
FUDForum. Page generated in 0.03275 seconds