简体   繁体   English

默认情况下,在Eclipse RCP中激活“强制与编辑器链接”

[英]Force Link With Editor to be activated by default in Eclipse RCP

I am trying to get the Eclipse force activate Link With Editor option by default . 我试图让Eclipse在默认情况下强制激活“与编辑器链接”选项。 The solution doesn't necessarily need to be programmatically , but it would be good. 解决方案不一定需要以编程方式进行,但这会很好。 So , I could use an .epf setting too or any other option. 因此,我也可以使用.epf设置或任何其他选项。

Till now , I found this link : "link with editor" for FormEditor 到目前为止,我发现此链接: FormEditor的“与编辑器链接”

As far as I know, there is no preference for this setting which is persisted in <workspace>/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi (as <sharedElements ... elementId="org.eclipse.ui.navigator.ProjectExplorer" ...> ... <persistedState key="memento" value="...CommonNavigator.LINKING_ENABLED=&quot;0&quot;..."/> or ...=&quot;1&quot;..."/> ). 据我所知,此设置没有任何偏好,它保留在<workspace>/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi (作为<sharedElements ... elementId="org.eclipse.ui.navigator.ProjectExplorer" ...> ... <persistedState key="memento" value="...CommonNavigator.LINKING_ENABLED=&quot;0&quot;..."/>...=&quot;1&quot;..."/> )。

Programmatically, the linking enablement can be set in the class org.eclipse.ui.navigator.resources.ProjectExplorer via the method setLinkingEnabled . 通过编程,可以通过setLinkingEnabled方法在org.eclipse.ui.navigator.resources.ProjectExplorer类中设置链接启用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM