Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » How to make styledText "visible" in other files.
How to make styledText "visible" in other files. [message #611454] Sat, 03 December 2005 09:58
Eclipse UserFriend
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.
Previous Topic:java.lang.NullPointerException duting open VE
Next Topic:Will VE have VAJ like event connecting feature?
Goto Forum:
  


Current Time: Fri Apr 26 14:39:41 GMT 2024

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

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

Back to the top