From 3804ae9c672b3203f8c22abd03ec7b1d5e3142a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20L=C3=A4ubrich?= Date: Sun, 15 Dec 2024 13:13:49 +0100 Subject: [PATCH] Add coloring support for implicitDependencies --- .../META-INF/MANIFEST.MF | 2 +- .../genericeditor/target/extension/model/ITargetConstants.java | 2 ++ .../reconciler/presentation/TargetPlatformTagRule.java | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ui/org.eclipse.pde.genericeditor.extension/META-INF/MANIFEST.MF b/ui/org.eclipse.pde.genericeditor.extension/META-INF/MANIFEST.MF index 121014c534..8142015e91 100644 --- a/ui/org.eclipse.pde.genericeditor.extension/META-INF/MANIFEST.MF +++ b/ui/org.eclipse.pde.genericeditor.extension/META-INF/MANIFEST.MF @@ -2,7 +2,7 @@ Manifest-Version: 1.0 Bundle-ManifestVersion: 2 Bundle-Name: %pluginName Bundle-SymbolicName: org.eclipse.pde.genericeditor.extension;singleton:=true -Bundle-Version: 1.2.500.qualifier +Bundle-Version: 1.2.600.qualifier Bundle-Localization: plugin Require-Bundle: org.eclipse.core.runtime, org.eclipse.jface.text, diff --git a/ui/org.eclipse.pde.genericeditor.extension/src/org/eclipse/pde/internal/genericeditor/target/extension/model/ITargetConstants.java b/ui/org.eclipse.pde.genericeditor.extension/src/org/eclipse/pde/internal/genericeditor/target/extension/model/ITargetConstants.java index 221036f068..6da34e202d 100644 --- a/ui/org.eclipse.pde.genericeditor.extension/src/org/eclipse/pde/internal/genericeditor/target/extension/model/ITargetConstants.java +++ b/ui/org.eclipse.pde.genericeditor.extension/src/org/eclipse/pde/internal/genericeditor/target/extension/model/ITargetConstants.java @@ -43,6 +43,8 @@ public interface ITargetConstants { String ARTIFACT_ID_TAG = "artifactId";//$NON-NLS-1$ String VERSION_TAG = "version";//$NON-NLS-1$ String TYPE_TAG = "type";//$NON-NLS-1$ + String IMPLICITDEPENDENCIES_TAG = "implicitDependencies";//$NON-NLS-1$ + String PLUGIN_TAG = "plugin";//$NON-NLS-1$ String UNIT_ID_ATTR = "id"; //$NON-NLS-1$ String UNIT_VERSION_ATTR = "version"; //$NON-NLS-1$ String TARGET_NAME_ATTR = "name"; //$NON-NLS-1$ diff --git a/ui/org.eclipse.pde.genericeditor.extension/src/org/eclipse/pde/internal/genericeditor/target/extension/reconciler/presentation/TargetPlatformTagRule.java b/ui/org.eclipse.pde.genericeditor.extension/src/org/eclipse/pde/internal/genericeditor/target/extension/reconciler/presentation/TargetPlatformTagRule.java index 3c88461b41..8024f737aa 100644 --- a/ui/org.eclipse.pde.genericeditor.extension/src/org/eclipse/pde/internal/genericeditor/target/extension/reconciler/presentation/TargetPlatformTagRule.java +++ b/ui/org.eclipse.pde.genericeditor.extension/src/org/eclipse/pde/internal/genericeditor/target/extension/reconciler/presentation/TargetPlatformTagRule.java @@ -40,6 +40,7 @@ import org.eclipse.jface.text.rules.IToken; import org.eclipse.jface.text.rules.Token; import org.eclipse.jface.text.rules.WordRule; +import org.eclipse.pde.internal.genericeditor.target.extension.model.ITargetConstants; import org.eclipse.ui.PlatformUI; /** @@ -50,7 +51,7 @@ public class TargetPlatformTagRule extends WordRule { private static final String[] TAGS = new String[] { LOCATIONS_TAG, LOCATION_TAG, TARGET_TAG, UNIT_TAG, REPOSITORY_TAG, TARGET_JRE_TAG, LAUNCHER_ARGS_TAG, VM_ARGS_TAG, PROGRAM_ARGS_TAG, ENVIRONMENT_TAG, OS_TAG, WS_TAG, ARCH_TAG, NL_TAG, DEPENDENCIES_TAG, DEPENDENCY_TAG, VERSION_TAG, TYPE_TAG, GROUP_ID_TAG, - ARTIFACT_ID_TAG }; + ARTIFACT_ID_TAG, ITargetConstants.IMPLICITDEPENDENCIES_TAG, ITargetConstants.PLUGIN_TAG }; private final IToken tagToken = new Token( new TextAttribute(PlatformUI.getWorkbench().getThemeManager().getCurrentTheme().getColorRegistry()