I installed Eclipse with Flex plugin. And I found in my current workspace, IntelliSense can only show the public methods, it cannot show me the protected methods (but it can compile and the app runs well).
However, in other workspaces, it works well.
If I create a new workspace, it's the same, that the IntelliSense can only show me the public methods, not protected methods.
What happened?
Thanks.
开发者_如何学运维Peter
You didn't specify where you are trying to access protected methods, but for the moment I'll assume in the same component that defines the protected methods.
A lot of odd issues like this are resolved by cleaning the work space. You can do that by launching Eclipse with the '-clean' argument.
If that doesn't work, I have heard of people re-creating projects or even work spaces to have odd problems magically go away. The fact that this does not solve the issue for you makes me wonder what you're trying to access and where.
Protected methods will only show up if you're accessing the class that defines that method or one of it's subclasses. Protected methods on "Component A" won't be accessible in classes that create instance of "Component A" or in children of "Component A". Or in parents of "Component A"
精彩评论