How to make styledText "visible" in other files. [message #464971] |
Fri, 02 December 2005 12:21 |
Eclipse User |
|
|
|
Originally posted by: qingxing20052.gmail.com
Dear all:
There is one styledText widget in my View A. I also create one Action called
"Copy" which is used to copy the content in styledText.
The CopyAction.Java is as follows:
public class CopyAction extends Action {
private final IWorkbenchWindow window;
public CopyAction(String text, IWorkbenchWindow window) {
......
}
public void run() {
styledText.copy(); //There is one error.
}
}
The problem is that there is one error about styledText.copy(). It seems
that styledText is not "visible" for CopyAction.Java, although I declared it
in my view file in terms of "public StyledText styledText = null;"
And I have already import the relative package. E.g. "import
org.eclipsercp.myView"
How shall I solve this problem? Does anyone have a few comments?
Thanks in advanced.
|
|
|
Powered by
FUDForum. Page generated in 0.03062 seconds