diff options
author | Thomas Schindl | 2010-07-25 18:41:27 +0000 |
---|---|---|
committer | Thomas Schindl | 2010-07-25 18:41:27 +0000 |
commit | 511c3620242bec538cd0b3586e5781afd06161fa (patch) | |
tree | cf10c42c874af0e6dcc6aaaf3aaf7da8e90353f3 /bundles/org.eclipse.e4.tools.emf.editor3x | |
parent | 699acc1f188fe940f8bc726a2fbc9ea2485dd09f (diff) | |
download | org.eclipse.e4.tools-511c3620242bec538cd0b3586e5781afd06161fa.tar.gz org.eclipse.e4.tools-511c3620242bec538cd0b3586e5781afd06161fa.tar.xz org.eclipse.e4.tools-511c3620242bec538cd0b3586e5781afd06161fa.zip |
Bug 320842 - [ModelTooling] Editing of Expressions not available
Diffstat (limited to 'bundles/org.eclipse.e4.tools.emf.editor3x')
4 files changed, 34 insertions, 2 deletions
diff --git a/bundles/org.eclipse.e4.tools.emf.editor3x/META-INF/MANIFEST.MF b/bundles/org.eclipse.e4.tools.emf.editor3x/META-INF/MANIFEST.MF index 5fa11546..1691e76e 100644 --- a/bundles/org.eclipse.e4.tools.emf.editor3x/META-INF/MANIFEST.MF +++ b/bundles/org.eclipse.e4.tools.emf.editor3x/META-INF/MANIFEST.MF @@ -27,6 +27,6 @@ Require-Bundle: org.eclipse.ui;bundle-version="3.6.0", org.eclipse.e4.tools.services;bundle-version="1.0.0", org.eclipse.e4.tools;bundle-version="0.9.0", org.eclipse.jdt.ui;bundle-version="3.6.0" -Service-Component: OSGI-INF/pdecontributionprovider.xml, OSGI-INF/xmiresourcecontextfunction.xml, OSGI-INF/projectfunction.xml, OSGI-INF/pdee4xmiprovider.xml +Service-Component: OSGI-INF/pdecontributionprovider.xml, OSGI-INF/xmiresourcecontextfunction.xml, OSGI-INF/projectfunction.xml, OSGI-INF/pdee4xmiprovider.xml, OSGI-INF/pdeextensionlookup.xml Bundle-ActivationPolicy: lazy Bundle-Vendor: %Bundle-Vendor diff --git a/bundles/org.eclipse.e4.tools.emf.editor3x/OSGI-INF/pdeextensionlookup.xml b/bundles/org.eclipse.e4.tools.emf.editor3x/OSGI-INF/pdeextensionlookup.xml new file mode 100644 index 00000000..759090b9 --- /dev/null +++ b/bundles/org.eclipse.e4.tools.emf.editor3x/OSGI-INF/pdeextensionlookup.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" name="org.eclipse.e4.tools.emf.editor3x"> + <implementation class="org.eclipse.e4.tools.emf.editor3x.PDEExtensionLookup"/> + <service> + <provide interface="org.eclipse.e4.tools.emf.ui.common.IExtensionLookup"/> + </service> +</scr:component> diff --git a/bundles/org.eclipse.e4.tools.emf.editor3x/build.properties b/bundles/org.eclipse.e4.tools.emf.editor3x/build.properties index 72fab184..13160ee8 100644 --- a/bundles/org.eclipse.e4.tools.emf.editor3x/build.properties +++ b/bundles/org.eclipse.e4.tools.emf.editor3x/build.properties @@ -4,5 +4,6 @@ bin.includes = META-INF/,\ plugin.xml,\ icons/,\ OSGI-INF/,\ - about.html + about.html,\ + OSGI-INF/pdeextensionlookup.xml source.. = src/ diff --git a/bundles/org.eclipse.e4.tools.emf.editor3x/src/org/eclipse/e4/tools/emf/editor3x/PDEExtensionLookup.java b/bundles/org.eclipse.e4.tools.emf.editor3x/src/org/eclipse/e4/tools/emf/editor3x/PDEExtensionLookup.java new file mode 100644 index 00000000..4cce764f --- /dev/null +++ b/bundles/org.eclipse.e4.tools.emf.editor3x/src/org/eclipse/e4/tools/emf/editor3x/PDEExtensionLookup.java @@ -0,0 +1,24 @@ +/******************************************************************************* + * Copyright (c) 2010 BestSolution.at and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Tom Schindl <tom.schindl@bestsolution.at> - initial API and implementation + ******************************************************************************/ +package org.eclipse.e4.tools.emf.editor3x; + +import org.eclipse.core.runtime.IExtension; +import org.eclipse.e4.tools.emf.ui.common.IExtensionLookup; +import org.eclipse.pde.internal.core.PDEExtensionRegistry; + +public class PDEExtensionLookup implements IExtensionLookup { + + public IExtension[] findExtensions(String extensionPointId) { + PDEExtensionRegistry reg = new PDEExtensionRegistry(); + return reg.findExtensions(extensionPointId, true); + } + +}
\ No newline at end of file |