Skip to content

Commit

Permalink
Add coloring support for implicitDependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
laeubi committed Dec 15, 2024
1 parent 9a772d2 commit 6265c39
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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$
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/**
Expand All @@ -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()
Expand Down

0 comments on commit 6265c39

Please sign in to comment.