This is an automated email from the ASF dual-hosted git repository.
lukaszlenart pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/struts-intellij-plugin.git
The following commit(s) were added to refs/heads/main by this push:
new 7413202 refactor: migrate OGNL color settings page to colorSettings
extension (#151) (#154)
7413202 is described below
commit 74132029230664b7411ab4895f75720acf1e544b
Author: Lukasz Lenart <[email protected]>
AuthorDate: Fri Nov 13 16:39:25 2026 +0100
refactor: migrate OGNL color settings page to colorSettings extension
(#151) (#154)
* docs: specify the OGNL color settings page migration (#151)
Record the agreed registration, page id, and verification before
implementation.
Co-authored-by: Cursor <[email protected]>
* docs: add OGNL color settings implementation plan (#151)
Co-authored-by: Cursor <[email protected]>
* refactor: give OGNL color settings page id OGNL (#151)
Co-authored-by: Cursor <[email protected]>
* refactor: register OGNL color settings with colorSettings extension (#151)
Co-authored-by: Cursor <[email protected]>
* docs: changelog for OGNL color settings migration (#151)
Co-authored-by: Cursor <[email protected]>
---------
Co-authored-by: Cursor <[email protected]>
---
CHANGELOG.md | 1 +
.../plans/2026-11-13-ognl-color-settings.md | 249 +++++++++++++++++++++
.../specs/2026-11-13-ognl-color-settings-design.md | 142 ++++++++++++
.../lang/ognl/highlight/OgnlColorSettingsPage.java | 6 +
src/main/resources/META-INF/ognl.xml | 4 +-
.../ognl/highlight/OgnlColorSettingsPageTest.java | 61 +++++
6 files changed, 462 insertions(+), 1 deletion(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index e6a9310..88cc345 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -16,6 +16,7 @@
- Dependencies - declare the IntelliJ Platform 2026.3 XML plugin
(`com.intellij.xml`)
([#150](https://github.com/apache/struts-intellij-plugin/issues/150))
- Dependencies - JSP support now requires the JetBrains Marketplace
`com.intellij.jsp` plugin (IntelliJ IDEA Ultimate subscription); users without
Ultimate can no longer load the Struts plugin
- Dependencies - FreeMarker and Velocity are now Marketplace plugins pinned to
`263.7307.112` and `263.7307.101`
+- Migrate the OGNL color settings page to the declarative
`com.intellij.colorSettings` extension
([#151](https://github.com/apache/struts-intellij-plugin/issues/151))
## [262.19039.1] - 2026-08-01
diff --git a/docs/superpowers/plans/2026-11-13-ognl-color-settings.md
b/docs/superpowers/plans/2026-11-13-ognl-color-settings.md
new file mode 100644
index 0000000..f8ad49a
--- /dev/null
+++ b/docs/superpowers/plans/2026-11-13-ognl-color-settings.md
@@ -0,0 +1,249 @@
+# OGNL Color Settings Page Implementation Plan
+
+> **For agentic workers:** REQUIRED SUB-SKILL: Use
superpowers:subagent-driven-development (recommended) or
superpowers:executing-plans to implement this plan task-by-task. Steps use
checkbox (`- [ ]`) syntax for tracking.
+
+**Goal:** Move the OGNL color settings page from the deprecated
`com.intellij.colorSettingsPage` extension to the declarative
`com.intellij.colorSettings` extension, with page id and display name `OGNL`.
+
+**Architecture:** The page class `OgnlColorSettingsPage` stays where it is and
gains one override, `getId()`, returning `OgnlLanguage.ID`. `META-INF/ognl.xml`
replaces the old registration with a `colorSettings` declaration whose
`displayName` and `pageId` match the class. Descriptors, demo text,
highlighter, and icon are unchanged, so saved OGNL colors keep working.
+
+**Tech Stack:** Java 25, IntelliJ Platform 2026.3 (`platformVersion = 2026.3`,
since-build `263`), IntelliJ Platform Gradle Plugin 2.20.1, JUnit 3-style
`LightPlatformTestCase`, Gradle.
+
+**Spec:** `docs/superpowers/specs/2026-11-13-ognl-color-settings-design.md`
+
+## Global Constraints
+
+- Do not change `platformVersion`, `pluginSinceBuild`, `pluginUntilBuild`, or
`pluginVersion` in `gradle.properties`.
+- Do not change `build.gradle.kts`, `qodana.yml`, or
`.github/workflows/build.yml`.
+- Do not register `com.intellij.colorSettingsPage` anywhere, not even beside
the new registration.
+- Do not implement `DisplayPrioritySortable` and do not set `priority` or
`groupWeight` in XML.
+- Do not change attribute descriptor labels, attribute keys on
`OgnlHighlighter`, the demo text, the highlighter, the icon, or
`getColorDescriptors()`.
+- Do not add a message bundle for the page name.
+- Do not re-enable disabled tests.
+- Commit message format: `<type>: <description> (#151)`.
+
+---
+
+### Task 1: Page id `OGNL` on `OgnlColorSettingsPage`
+
+**Files:**
+- Create:
`src/test/java/com/intellij/lang/ognl/highlight/OgnlColorSettingsPageTest.java`
+- Modify:
`src/main/java/com/intellij/lang/ognl/highlight/OgnlColorSettingsPage.java:51-55`
(insert after `getDisplayName()`)
+- Test:
`src/test/java/com/intellij/lang/ognl/highlight/OgnlColorSettingsPageTest.java`
+
+**Interfaces:**
+- Consumes: `OgnlLanguage.ID` (`"OGNL"`) from
`com.intellij.lang.ognl.OgnlLanguage`.
+- Produces: `OgnlColorSettingsPage#getId()` returning `String` `"OGNL"`. Task
2 must declare `pageId="OGNL"` to match.
+
+- [ ] **Step 1: Write the test class**
+
+Create
`src/test/java/com/intellij/lang/ognl/highlight/OgnlColorSettingsPageTest.java`.
Copy the Apache license header from lines 1–16 of
`src/test/java/com/intellij/lang/ognl/highlight/OgnlHighlightingLexerTest.java`
verbatim, then add:
+
+```java
+package com.intellij.lang.ognl.highlight;
+
+import com.intellij.openapi.options.colors.AttributesDescriptor;
+import com.intellij.testFramework.LightPlatformTestCase;
+
+import java.util.Arrays;
+import java.util.List;
+
+public class OgnlColorSettingsPageTest extends LightPlatformTestCase {
+
+ private final OgnlColorSettingsPage myPage = new OgnlColorSettingsPage();
+
+ public void testId() {
+ assertEquals("OGNL", myPage.getId());
+ }
+
+ public void testDisplayName() {
+ assertEquals("OGNL", myPage.getDisplayName());
+ }
+
+ public void testAttributeDescriptorsInOrder() {
+ List<String> names = Arrays.stream(myPage.getAttributeDescriptors())
+ .map(AttributesDescriptor::getDisplayName)
+ .toList();
+
+ assertEquals(List.of("Background",
+ "Expression bounds",
+ "Keyword",
+ "Operations",
+ "Identifier",
+ "String",
+ "Number",
+ "Comma",
+ "Parentheses",
+ "Brackets",
+ "Braces",
+ "Class reference"), names);
+ }
+
+ public void testNoColorDescriptors() {
+ assertEquals(0, myPage.getColorDescriptors().length);
+ }
+}
+```
+
+- [ ] **Step 2: Run the test to verify `testId` fails**
+
+Run: `./gradlew test --tests
"com.intellij.lang.ognl.highlight.OgnlColorSettingsPageTest" -x rat`
+Expected: FAIL in `testId` with `expected:<OGNL> but
was:<com.intellij.lang.ognl.highlight.OgnlColorSettingsPage>`. The other three
tests PASS: they guard behavior that must not change.
+
+- [ ] **Step 3: Add `getId()` to the page class**
+
+In
`src/main/java/com/intellij/lang/ognl/highlight/OgnlColorSettingsPage.java`,
insert after the closing brace of `getDisplayName()` (currently line 55),
keeping one blank line before the next method:
+
+```java
+ @NotNull
+ @Override
+ public String getId() {
+ return OgnlLanguage.ID;
+ }
+```
+
+`OgnlLanguage` is already imported in this file.
+
+- [ ] **Step 4: Run the test to verify all four pass**
+
+Run: `./gradlew test --tests
"com.intellij.lang.ognl.highlight.OgnlColorSettingsPageTest" -x rat`
+Expected: PASS, 4 tests.
+
+- [ ] **Step 5: Commit**
+
+```bash
+git add
src/test/java/com/intellij/lang/ognl/highlight/OgnlColorSettingsPageTest.java
src/main/java/com/intellij/lang/ognl/highlight/OgnlColorSettingsPage.java
+git commit -m "refactor: give OGNL color settings page id OGNL (#151)"
+```
+
+---
+
+### Task 2: Declarative `colorSettings` registration
+
+**Files:**
+- Modify: `src/main/resources/META-INF/ognl.xml:30` (replace the
`colorSettingsPage` line)
+
+**Interfaces:**
+- Consumes: `OgnlColorSettingsPage#getId()` returning `"OGNL"` and
`getDisplayName()` returning `"OGNL"` (Task 1).
+- Produces: a `com.intellij.colorSettings` declaration with `implementation`,
`displayName`, and `pageId`, all matching the class.
+
+- [ ] **Step 1: Confirm the old registration is present**
+
+Run: `grep -n "colorSettingsPage" src/main/resources/META-INF/ognl.xml`
+Expected: one match at line 30: `<colorSettingsPage
implementation="com.intellij.lang.ognl.highlight.OgnlColorSettingsPage"/>`
+
+- [ ] **Step 2: Replace the registration**
+
+In `src/main/resources/META-INF/ognl.xml`, replace line 30:
+
+```xml
+ <colorSettingsPage
implementation="com.intellij.lang.ognl.highlight.OgnlColorSettingsPage"/>
+```
+
+with:
+
+```xml
+ <colorSettings
implementation="com.intellij.lang.ognl.highlight.OgnlColorSettingsPage"
+ displayName="OGNL"
+ pageId="OGNL"/>
+```
+
+- [ ] **Step 3: Verify the old registration is gone**
+
+Run: `grep -c "colorSettingsPage" src/main/resources/META-INF/ognl.xml`
+Expected: `0` (the command prints `0` and exits with status 1, which is the
expected result of `grep -c` with no matches).
+
+- [ ] **Step 4: Run the page test and the plugin build check**
+
+Run: `./gradlew test --tests
"com.intellij.lang.ognl.highlight.OgnlColorSettingsPageTest" -x rat`
+Expected: PASS, 4 tests.
+
+Run: `./gradlew buildPlugin`
+Expected: BUILD SUCCESSFUL. The packaged `plugin.xml` in the build output
contains the `colorSettings` element and no `colorSettingsPage` element.
+
+- [ ] **Step 5: Commit**
+
+```bash
+git add src/main/resources/META-INF/ognl.xml
+git commit -m "refactor: register OGNL color settings with colorSettings
extension (#151)"
+```
+
+---
+
+### Task 3: Changelog entry
+
+**Files:**
+- Modify: `CHANGELOG.md` (under `## [Unreleased]` → `### Changed`, after the
FreeMarker/Velocity bullet at line 18)
+
+**Interfaces:**
+- Consumes: nothing.
+- Produces: nothing.
+
+- [ ] **Step 1: Add the bullet**
+
+In `CHANGELOG.md`, under `## [Unreleased]` → `### Changed`, add this line
immediately after the bullet that starts with `- Dependencies - FreeMarker and
Velocity are now Marketplace plugins`:
+
+```markdown
+- Migrate the OGNL color settings page to the declarative
`com.intellij.colorSettings` extension
([#151](https://github.com/apache/struts-intellij-plugin/issues/151))
+```
+
+- [ ] **Step 2: Verify the placement**
+
+Run: `sed -n '10,22p' CHANGELOG.md`
+Expected: the new bullet sits inside the `### Changed` list of `##
[Unreleased]`, above the `## [262.19039.1]` heading.
+
+- [ ] **Step 3: Commit**
+
+```bash
+git add CHANGELOG.md
+git commit -m "docs: changelog for OGNL color settings migration (#151)"
+```
+
+Note: the 2026.3 compatibility work on another branch also edits this same
`Changed` list. When both land, keep both bullets.
+
+---
+
+### Task 4: Full verification (no commit)
+
+**Files:** none modified.
+
+**Interfaces:**
+- Consumes: the commits from Tasks 1–3.
+- Produces: evidence for the acceptance checks in the spec.
+
+- [ ] **Step 1: Run the full test suite**
+
+Run: `./gradlew test -x rat`
+Expected: BUILD SUCCESSFUL. No new failures compared with `main`.
+
+- [ ] **Step 2: Run the plugin verifier**
+
+Run: `./gradlew runPluginVerifier`
+Expected: the run completes successfully. Check the output for the deprecated
extension point:
+
+Run: `./gradlew runPluginVerifier 2>&1 | grep -i "colorSettingsPage"`
+Expected: no output.
+
+- [ ] **Step 3: Manual check in the sandbox IDE**
+
+Run: `./gradlew runIde`
+
+1. Open Settings | Editor | Color Scheme.
+2. Select the OGNL entry. Expected: it appears in the tree and its name is
`OGNL`.
+3. Confirm the twelve descriptors are listed in this order: Background,
Expression bounds, Keyword, Operations, Identifier, String, Number, Comma,
Parentheses, Brackets, Braces, Class reference.
+4. Change the Keyword foreground color, click Apply.
+5. Open an OGNL fragment, for example in a `.action` or JSP expression
`%{...}`, and confirm keywords use the new color.
+
+Expected: all five checks pass. Record any failure before continuing.
+
+- [ ] **Step 4: Confirm the branch state**
+
+Run: `git log --oneline main..HEAD`
+Expected: the spec commit, the plan commit, and the three commits from Tasks
1–3, in that order.
+
+---
+
+## Self-Review Notes
+
+- Spec coverage: registration (Task 2), page id and `getId()` (Task 1),
unchanged behavior (Task 1 regression tests and Task 4 manual check), changelog
(Task 3), automated tests and verifier (Tasks 1, 2, 4), manual Settings check
(Task 4).
+- Non-goals: no tasks touch `gradle.properties`, `build.gradle.kts`, priority
or weight attributes, a second `colorSettingsPage` registration, or a message
bundle.
+- Names: `getId()`, `getDisplayName()`, and `pageId="OGNL"` use the same value
`"OGNL"` in every task.
diff --git a/docs/superpowers/specs/2026-11-13-ognl-color-settings-design.md
b/docs/superpowers/specs/2026-11-13-ognl-color-settings-design.md
new file mode 100644
index 0000000..1e16658
--- /dev/null
+++ b/docs/superpowers/specs/2026-11-13-ognl-color-settings-design.md
@@ -0,0 +1,142 @@
+# OGNL Color Settings Page on `colorSettings`
+
+**Date:** 2026-11-13
+**Status:** Draft for review
+**Issue:** [#151](https://github.com/apache/struts-intellij-plugin/issues/151)
+
+## Problem
+
+IntelliJ Platform 2026.3 deprecates `com.intellij.colorSettingsPage`. The
replacement is `com.intellij.colorSettings`. The IDE builds Settings | Editor |
Color Scheme from that declaration and creates the `ColorSettingsPage` only
when the page is opened.
+
+`src/main/resources/META-INF/ognl.xml` still registers the old extension:
+
+```xml
+<colorSettingsPage
implementation="com.intellij.lang.ognl.highlight.OgnlColorSettingsPage"/>
+```
+
+The plugin already targets 2026.3 only (`pluginSinceBuild = 263`,
`pluginUntilBuild = 263.*`). The old extension does not need to stay for older
IDEs.
+
+## Goals
+
+1. Register the OGNL color page with `com.intellij.colorSettings`, with
display name `OGNL` and page id `OGNL`.
+2. Make `OgnlColorSettingsPage.getId()` return that same id.
+3. Leave the page's descriptors, demo text, highlighter, and icon as they are.
+4. Keep the page in the language group at weight 0 by omitting `priority` and
`groupWeight`, which is the extension default.
+5. Record the move in `CHANGELOG.md`.
+
+## Non-Goals
+
+- Implementing `DisplayPrioritySortable`, or setting `priority` and
`groupWeight` in XML.
+- Registering `colorSettingsPage` beside `colorSettings`.
+- A message bundle for the page name.
+- Changing attribute keys, descriptor labels, demo text, the highlighter, or
the file-type icon.
+- A platform, Gradle, or since-build bump.
+- An automated test of the Settings tree, or of applying a scheme color to an
editor.
+
+## Decision
+
+Change the existing page class in place. The declaration carries the name and
the id. The class returns the same id and the same display name. Order stays
the extension default: language group, weight 0. The class does not implement
`DisplayPrioritySortable`, so the declaration does not set `priority` or
`groupWeight`.
+
+The values in the declaration must match the class. The tree reads the
declaration. The opened page reads the class. The IDE reports a mismatch. This
change adds no plugin-side check.
+
+## Registration
+
+In `src/main/resources/META-INF/ognl.xml`, replace the `colorSettingsPage`
element with:
+
+```xml
+<colorSettings
implementation="com.intellij.lang.ognl.highlight.OgnlColorSettingsPage"
+ displayName="OGNL"
+ pageId="OGNL"/>
+```
+
+`pageId` sets the page id. The common extension `id` attribute does not.
+
+`displayName` is the literal `OGNL`. It matches
`OgnlColorSettingsPage.getDisplayName()`, which returns
`OgnlLanguage.INSTANCE.getDisplayName()`. `OgnlLanguage` does not override
`getDisplayName()`, and its id is `OGNL`, so that call returns `OGNL`.
+
+## Page class
+
+In `OgnlColorSettingsPage`, add:
+
+```java
+@NotNull
+@Override
+public String getId() {
+ return OgnlLanguage.ID;
+}
+```
+
+`OgnlLanguage.ID` is `"OGNL"`. The class continues to implement
`ColorSettingsPage` only.
+
+These members stay:
+
+| Member | Behavior |
+|---|---|
+| `getDisplayName()` | `OgnlLanguage.INSTANCE.getDisplayName()` |
+| `getIcon()` | `OgnlFileType.INSTANCE.getIcon()` |
+| `getAttributeDescriptors()` | The twelve descriptors below, in this order |
+| `getColorDescriptors()` | `ColorDescriptor.EMPTY_ARRAY` |
+| `getHighlighter()` | `new OgnlHighlighter()` |
+| `getDemoText()` | The current OGNL sample |
+| `getAdditionalHighlightingTagToDescriptorMap()` | `fqnType` →
`OgnlHighlighter.FQN_TYPE` |
+
+Descriptor labels, in order:
+
+1. Background
+2. Expression bounds
+3. Keyword
+4. Operations
+5. Identifier
+6. String
+7. Number
+8. Comma
+9. Parentheses
+10. Brackets
+11. Braces
+12. Class reference
+
+Attribute keys stay on `OgnlHighlighter`. Saved color schemes keep their OGNL
colors because those colors are stored under the keys, and the keys do not
change.
+
+## Changelog
+
+Under `CHANGELOG.md` `[Unreleased]` → `Changed`, add:
+
+- Migrate the OGNL color settings page to the declarative colorSettings
extension ([#151](https://github.com/apache/struts-intellij-plugin/issues/151))
+
+## Testing
+
+### Automated
+
+Add
`src/test/java/com/intellij/lang/ognl/highlight/OgnlColorSettingsPageTest.java`.
It extends `LightPlatformTestCase`, in the same style as
`OgnlHighlightingLexerTest`, and it starts with that file's Apache license
header. It constructs `OgnlColorSettingsPage` and asserts:
+
+- `getId()` equals `OgnlLanguage.ID` and equals `"OGNL"`
+- `getDisplayName()` equals `"OGNL"`
+- attribute descriptor display names are the twelve labels above, in that order
+- `getColorDescriptors()` is empty
+
+Run:
+
+```bash
+./gradlew test --tests "OgnlColorSettingsPageTest" -x rat
+./gradlew test -x rat
+./gradlew runPluginVerifier
+```
+
+`runPluginVerifier` must complete successfully, and its output must not
mention `colorSettingsPage`.
+
+### Manual
+
+With `./gradlew runIde`:
+
+1. Open Settings | Editor | Color Scheme | OGNL.
+2. Confirm the twelve descriptors are listed.
+3. Change the Keyword color.
+4. Confirm an OGNL fragment uses the new Keyword color.
+
+## Files
+
+| File | Change |
+|---|---|
+| `src/main/resources/META-INF/ognl.xml` | Replace `colorSettingsPage` with
`colorSettings` |
+| `src/main/java/com/intellij/lang/ognl/highlight/OgnlColorSettingsPage.java`
| Add `getId()` |
+|
`src/test/java/com/intellij/lang/ognl/highlight/OgnlColorSettingsPageTest.java`
| New test |
+| `CHANGELOG.md` | One `Changed` bullet under `[Unreleased]` |
diff --git
a/src/main/java/com/intellij/lang/ognl/highlight/OgnlColorSettingsPage.java
b/src/main/java/com/intellij/lang/ognl/highlight/OgnlColorSettingsPage.java
index 47d5faa..952a7b2 100644
--- a/src/main/java/com/intellij/lang/ognl/highlight/OgnlColorSettingsPage.java
+++ b/src/main/java/com/intellij/lang/ognl/highlight/OgnlColorSettingsPage.java
@@ -54,6 +54,12 @@ public class OgnlColorSettingsPage implements
ColorSettingsPage {
return OgnlLanguage.INSTANCE.getDisplayName();
}
+ @NotNull
+ @Override
+ public String getId() {
+ return OgnlLanguage.ID;
+ }
+
@Override
public Icon getIcon() {
return OgnlFileType.INSTANCE.getIcon();
diff --git a/src/main/resources/META-INF/ognl.xml
b/src/main/resources/META-INF/ognl.xml
index 58bb0ec..4b6becd 100644
--- a/src/main/resources/META-INF/ognl.xml
+++ b/src/main/resources/META-INF/ognl.xml
@@ -27,7 +27,9 @@
<ognl.variableReferencesContributor id="default"
implementation="com.intellij.lang.ognl.psi.resolve.variable.OgnlDefaultVariableReferencesContributor"/>
- <colorSettingsPage
implementation="com.intellij.lang.ognl.highlight.OgnlColorSettingsPage"/>
+ <colorSettings
implementation="com.intellij.lang.ognl.highlight.OgnlColorSettingsPage"
+ displayName="OGNL"
+ pageId="OGNL"/>
<annotator language="OGNL"
implementationClass="com.intellij.lang.ognl.highlight.OgnlHighlightingAnnotator"/>
diff --git
a/src/test/java/com/intellij/lang/ognl/highlight/OgnlColorSettingsPageTest.java
b/src/test/java/com/intellij/lang/ognl/highlight/OgnlColorSettingsPageTest.java
new file mode 100644
index 0000000..c38be65
--- /dev/null
+++
b/src/test/java/com/intellij/lang/ognl/highlight/OgnlColorSettingsPageTest.java
@@ -0,0 +1,61 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package com.intellij.lang.ognl.highlight;
+
+import com.intellij.openapi.options.colors.AttributesDescriptor;
+import com.intellij.testFramework.LightPlatformTestCase;
+
+import java.util.Arrays;
+import java.util.List;
+
+public class OgnlColorSettingsPageTest extends LightPlatformTestCase {
+
+ private final OgnlColorSettingsPage myPage = new OgnlColorSettingsPage();
+
+ public void testId() {
+ assertEquals("OGNL", myPage.getId());
+ }
+
+ public void testDisplayName() {
+ assertEquals("OGNL", myPage.getDisplayName());
+ }
+
+ public void testAttributeDescriptorsInOrder() {
+ List<String> names = Arrays.stream(myPage.getAttributeDescriptors())
+ .map(AttributesDescriptor::getDisplayName)
+ .toList();
+
+ assertEquals(List.of("Background",
+ "Expression bounds",
+ "Keyword",
+ "Operations",
+ "Identifier",
+ "String",
+ "Number",
+ "Comma",
+ "Parentheses",
+ "Brackets",
+ "Braces",
+ "Class reference"), names);
+ }
+
+ public void testNoColorDescriptors() {
+ assertEquals(0, myPage.getColorDescriptors().length);
+ }
+}