为eidtor在ProjectExplorer中支持'Link with editor' 功能,需要在plug.xml中扩展 'org.eclipse.ui.navigator.linkHelper' 和 'org.eclipse.ui.navigator.viewer'
<extension
point="org.eclipse.ui.navigator.linkHelper">
<linkHelper
class="org.myym.MyLinkHelper"
id="org.myym.mylinkhelper">
<editorInputEnablement></editorInputEnablement>
<selectionEnablement>
<instanceof
value="org.eclipse.core.resources.IFile">
</instanceof>
</selectionEnablement>
</linkHelper>
</extension>
<extension
point="org.eclipse.ui.navigator.viewer">
<viewerContentBinding
viewerId="org.eclipse.ui.navigator.ProjectExplorer">
<includes>
<contentExtension
pattern="org.myym.mylinkhelper">
</contentExtension>
</includes>
</viewerContentBinding>
</extension>
MyLinkHelper.java
/**
* Link Helper for editors.
*/
public class MyLinkHelper implements ILinkHelper {
/**
* Default Constructor.
*/
public MyLinkHelper() {
}
public void activateEditor(IWorkbenchPage aPage, IStructuredSelection aSelection) {
}
public IStructuredSelection findSelection(IEditorInput anInput) {
if (anInput instanceof MyClass) //check the IEditorInput whether are interested
IFile file = getFile(MyClass); //create method 'getFile' to get the IFile refer to this input
if (file != null) {
return new StructuredSelection(file);
}
}
return StructuredSelection.EMPTY;
}
}
分享到:
相关推荐
Link with Editor Support 提供了一种机制来确保 Navigator 中选中的元素与当前打开的编辑器之间保持同步。 ##### 8.2 扩展点 Link with Editor Support 的扩展点允许开发者定制编辑器与 Navigator 之间的联动行为...
启用“Link with Editor”功能,当在编辑器中打开一个类时,Eclipse会在包浏览器中自动定位到该类的位置。在`Windows -> Preferences -> General -> Editors`中可以找到这个选项。 为了减少性能影响,可以禁用不必...
标题 "A text editor mixed with an HTML editor" 描述了一个创新的编辑器软件,它结合了文本编辑和HTML编辑的功能。这种工具对Web开发者和内容创作者来说尤其有用,因为它允许他们在同一环境中同时处理纯文本和HTML...
安装PropertiesEditor插件后,只需在Eclipse的"Package Explorer"或"Project Explorer"视图中右键点击`.properties`文件,选择"Open With" -> "Properties Editor"即可打开该插件的界面。在该界面中,用户可以享受到...
标题 "An HTML editor with complete VB source code" 提供了一个关键信息,即这是一个基于Visual Basic (VB) 开发的HTML编辑器。这意味着它可能是一个用于创建和编辑HTML文档的图形用户界面工具,用户可以通过该...
jlink-v8-frimware - Changed ID in location 0xFF00 with hex editor - Changed GDBFull - Changed expire date
4. 使用:一旦安装完成,你可以在Eclipse的工作区中右键点击一个.properties文件,选择"Open With" -> "PropertiesEditor"来打开属性编辑器。编辑器通常提供了一个友好的界面,包括分栏视图、键值对的列表以及实时...
Compare files (now with editor) / synchronize directories Quick View panel with bitmap display ZIP, ARJ, LZH, RAR, UC2, TAR, GZ, CAB, ACE archive handling + plugins Built-in FTP client with FXP ...
Compare files (now with editor) / synchronize directories Quick View panel with bitmap display ZIP, 7ZIP, ARJ, LZH, RAR, UC2, TAR, GZ, CAB, ACE archive handling + plugins Built-in FTP client with FXP ...
H5 Editor移动端页面 UI 生成器用于将设计稿样式转化为组件化的代码有时间会持续更新维护的 :grinning_face_with_smiling_eyes:使用者设计师:通过拖拽编辑,生成UI稿前端开发:划分模块、组件、重命名 class ----&...
- Since this package is a clone of OpenCV Java, you are able to use the same API as OpenCV Java 3.4.2 (link). - You can image processing in real-time by using the WebCamTexture capabilities of Unity...
•Take control of your code with syntax highlighting in the Advanced Code editor and advanced style and element attribute editing •Integrated Spellchecking using Google™ Spellchecker (or PSpell and ...
- Set up a basic workflow with a text editor, version control system, and web browser - Structure a user interface with HTML, and include styles with CSS - Use JQuery and JavaScript to add ...
Version 6.40 Build Updated segger-cc compiler to version 14.2.1 Updated segger-cc-ng compiler to version 14.92.0 Fixed Source Navigator/Analyze command lines for libcxx projects. ...Editor
Version 6.34 Build Updated segger-cc compiler to version 14.2.1 Updated segger-cc-ng compiler to version 14.92.0 Fixed Source Navigator/Analyze command lines for libcxx projects. ...Editor
- Since this package is a clone of OpenCV Java, you are able to use the same API as OpenCV Java 4.0.0 (link). - You can image processing in real-time by using the WebCamTexture capabilities of Unity....
12. Fixed a problem with cursor display in the Image Editor window. 13. Optimized the feature for image editing. 14. Automated recall of previous windows size settings. 15. Other minor bug fixes to ...
- Check out real-time 2D previews in the editor with no re-compile time, and another 3D previewer to get a more accurate look at your shader. Shader Sandwich comes with: - The editor itself (Source ...
4. Integrated with Timeline Editor [BETA]. Edit the cutscene right inplace, and easily integrate with code/fx/audio/gui/etc. 5. Visualize the bone link, the vertices, and bone weights, etc. 6. Reduce ...
iOS( with tvOS) source path: Plugins/iOS folder This Demo Supported platforms: Android, iOS, AppleTV(tvOS) Supported platforms(Beta Version): PC (windows, Mac 64bit) EasyMovieTexture Editor ...