Revision 8c8d24e5
Added by Patrick Plitzner over 6 years ago
eu.etaxonomy.taxeditor.application/src/main/java/eu/etaxonomy/taxeditor/ModelResourceHandler.java | ||
---|---|---|
21 | 21 |
import javax.inject.Named; |
22 | 22 |
|
23 | 23 |
import org.eclipse.core.internal.runtime.PlatformURLPluginConnection; |
24 |
import org.eclipse.core.runtime.FileLocator; |
|
25 | 24 |
import org.eclipse.core.runtime.Platform; |
25 |
import org.eclipse.core.runtime.URIUtil; |
|
26 | 26 |
import org.eclipse.e4.core.contexts.ContextInjectionFactory; |
27 | 27 |
import org.eclipse.e4.core.contexts.IEclipseContext; |
28 | 28 |
import org.eclipse.e4.core.services.log.Logger; |
... | ... | |
245 | 245 |
private File getBaseLocation() { |
246 | 246 |
File baseLocation; |
247 | 247 |
try { |
248 |
baseLocation = FileLocator.getBundleFile(Platform.getBundle(TaxonomicEditorPlugin.PLUGIN_ID));
|
|
249 |
} catch (IOException e) {
|
|
248 |
baseLocation = new File(URIUtil.toURI(Platform.getInstallLocation().getURL()));
|
|
249 |
} catch (Exception e) { |
|
250 | 250 |
throw new RuntimeException(e); |
251 | 251 |
} |
252 |
// baseLocation = new File(baseLocation, ".metadata"); //$NON-NLS-1$ |
|
253 |
// baseLocation = new File(baseLocation, ".plugins"); //$NON-NLS-1$ |
|
254 |
// baseLocation = new File(baseLocation, "org.eclipse.e4.workbench"); //$NON-NLS-1$ |
|
252 |
baseLocation = new File(baseLocation, "configuration"); //$NON-NLS-1$ |
|
255 | 253 |
return baseLocation; |
256 | 254 |
} |
257 | 255 |
|
Also available in: Unified diff
ref #6745 Change location of workbench.xmi to {install}/configuration