简体   繁体   English

如何从Project Explorer和Package Explorer将文件获取到Eclipse上的新View?

[英]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.

相关问题 Eclipse 在 package 资源管理器视图中不刷新项目文件 - Eclipse does not refresh project files in package explorer view Eclipse PDE:如何以编程方式在Package Explorer中加载新项目? - Eclipse PDE: How to load a new project in Package Explorer programmatically? Eclipse 中的 Package 资源管理器视图 - Package explorer view in Eclipse 如何在Eclipse包浏览器中查看类文件? - How do you view class files in Eclipse package explorer? 从Eclipse中的打开文件中展开Project Explorer,Package Explorer或Navigator视图? - expand Project Explorer, Package Explorer, or Navigator view from open file in Eclipse? 如何从Eclipse插件中获取包浏览器中的选定节点 - How to get the selected node in the package explorer from an Eclipse plugin 最近,我在 Eclipse 中创建的任何新 Maven 项目都将在 package 资源管理器视图中将“[workspace master]”作为标题的一部分 - Recently any new Maven project I create in Eclipse will have "[workspace master]" as part of the title in the package explorer view Eclipse项目浏览器视图,错误 - Eclipse Project Explorer View , Errorrs Eclipse Package Explorer中的项目 - Projects from Eclipse Package Explorer 从Eclipse中的项目资源管理器视图中删除项目.jars - Remove project .jars from project explorer view in Eclipse
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM