I am trying to get the Eclipse force activate Link With Editor option by default . 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.
Till now , I found this link : "link with editor" for 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="0"..."/>
or ...="1"..."/>
).
Programmatically, the linking enablement can be set in the class org.eclipse.ui.navigator.resources.ProjectExplorer
via the method setLinkingEnabled
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.