[英]How to get files from Project Explorer and Package Explorer to new View on Eclipse?
I created wizard to create project and from that project I can create new file or import one. 我创建了向导来创建项目,并且可以从该项目中创建新文件或导入一个文件。 this file shows in Project Explorer and Package Explorer and I can open the file from there.
该文件显示在Project Explorer和Package Explorer中,我可以从那里打开该文件。 what I want that this file opens a new View and It opens from there.
我想要这个文件打开一个新视图,然后从那里打开。 because this file which what you can suggest me?
因为这个文件你能建议我什么? which way?
哪一条路?
The Eclipse framework can only invoke an editor when you open a file from a navigator view. 当您从导航器视图打开文件时,Eclipse框架只能调用编辑器。 However, you can build a read-only editor that looks and acts like a view and let your users open files with this editor.
但是,您可以构建一个外观和行为类似于视图的只读编辑器,并让您的用户使用该编辑器打开文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.