packages exported from a fragment are not visible at build time
2007-08-15 14:55
585 查看
As described in the post http://rcpquickstart.wordpress.com/2007/06/20/unit-testing-plug-ins-with-fragments/
-->
Classes in fragments are not visible outside of the fragment itself. Any attempt to reference fragment classes in another plug-in will result in a compile error.
-->
Packages exported from a fragment are not visible at build time.
--------------
Workaround:
--> reflection
--> if you have the source code of the fragment to reference, do following:
1. export the fragment’s package (in its manifest)
2. add the fragment project as a reference to your fragment project’s Java build path (can’t do this in the manifest)
3. add the exported fragment package into the Import-Package header of your fragment project’s manifest (for runtime visibility)
----------------
personally speaking, I don't know why this would happen. I'm glad to know your opinion
-->
Classes in fragments are not visible outside of the fragment itself. Any attempt to reference fragment classes in another plug-in will result in a compile error.
-->
Packages exported from a fragment are not visible at build time.
--------------
Workaround:
--> reflection
--> if you have the source code of the fragment to reference, do following:
1. export the fragment’s package (in its manifest)
2. add the fragment project as a reference to your fragment project’s Java build path (can’t do this in the manifest)
3. add the exported fragment package into the Import-Package header of your fragment project’s manifest (for runtime visibility)
----------------
personally speaking, I don't know why this would happen. I'm glad to know your opinion
相关文章推荐
- references to other resources are not supported by build-time PNG generation. See http://developer.a
- actionbarsherlock+viewpage+fragment menu not display at first time
- 升级adt插件后,eclipse突然出现Unable to build: the file dx.jar was not loaded from the SDK folder 错误
- Unable to build: the file dx.jar was not loaded from the SDK folder
- 【jsp】Fragment "/index.do?method=top" was not found at expected path
- ORA-00604: error occurred at recursive SQL level 1 ORA-01882: timezone region not found weblogic
- Unable to build: the file dx.jar was not loaded from the SDK folder!
- angularjs date fromat timezone
- Parameter 'xxxx' not found. Available parameters are [list] at java.util.concurrent.FutureTask
- [转]The Citrix MetaFrame servers cannot process your request at this time. The Citrix XML Service object was not found.
- 错误-python-Not uninstalling six at /usr/lib/python2.7/dist-packages, owned by OS
- All packages are not available for download
- wscript:329: error: Could not autodetect OpenSSL support. Make sure OpenSSL development packages are
- CentOS编译安装Apache 2.4.x时报错:configure: error: Bundled APR requested but not found at ./srclib/. Download and unpack the corresponding apr and apr-util packages to ./srclib/.
- session.run Requesting multiple values from graph at same time
- javax.jms.JMSException: Failed to build body from content. Serializable class not available to broke
- 【IntelliJ IDEA】lambda expressions are not supported at language level x.x
- how to scroll a ScrollViewer at design time in Blend to manually design content for it that goes beyond the visible view
- 【lamdba表达式】lambda expressions are not supported at this language level
- Warning: Tracefile events are not sorted by time. (黄化吉第三个例程有问题)