Skip to content

About

Crossly for the Eclipse IDE: schema validation, did-you-mean quick fixes, hover docs and templates for Crossly automation recipes and workflow files.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Crossly for Eclipse

ci release license

The Crossly plugin for the Eclipse IDE (2024-06 and later, Java 21). It is the Eclipse counterpart of crossly-vscode and crossly-jetbrains.

Write Crossly automation recipes and workflow files with Eclipse checking them as you type. Crossly is the crosslisting platform for resellers: list once, then crosspost, reprice, relist and delist across eBay, Poshmark, Mercari, Depop, Grailed, Facebook Marketplace, Vinted, Whatnot, Shopify and more. A recipe is a JSON automation rule (a trigger, an optional condition, an action) that you import into Crossly or share in crossly-recipes.

  • JSON Schema validation and completion, offline, in the Wild Web Developer JSON editor: *.crossly-recipe.json and recipes under crossly-recipes/recipes/ against automation-recipe-v1.json (all 29 triggers, 7 conditions, 42 actions); bundles in *.crossly-recipes.json and crossly-recipes/recipes/all.json, entry by entry; *.crossly-workflow.json (what Export JSON in the Crossly workflow editor downloads) against workflow-v1.json.
  • Did you mean: a mistyped trigger, condition or action type, config key or recipe key gets a warning naming the closest valid name and a quick fix (Ctrl+1 in the editor, or Quick Fix in the Problems view): listing.sol to listing.sold.
  • Hover docs: hover a type for its title, description and config keys, or a key for its description, straight from the schema.
  • Templates (Ctrl+Space): crossly-recipe, crossly-recipe-condition, crossly-bundle, and crossly-trigger / crossly-condition / crossly-action with a pick list of every type. Edit them in Preferences > Crossly > Templates.
  • Crossly menu: open the Crossly docs, create an API token, and add the Crossly MCP server (npx -y @crossly/mcp) to GitHub Copilot for Eclipse or any other MCP host.

Validation, completion and templates never touch the network or your account.

New to Crossly? Create a free account, then read the developer docs.

Install

  • Eclipse Marketplace: Help > Eclipse Marketplace..., search for Crossly, click Install.
  • Update site: Help > Install New Software... > Add..., enter https://crossly-dev.github.io/crossly-eclipse/, tick Crossly, finish and restart.
  • Offline: download crossly-eclipse-<version>.zip from the latest release, then Help > Install New Software... > Add... > Archive....

The plugin requires Wild Web Developer (the standard Eclipse JSON editor). It is part of the Eclipse release repository and most Eclipse packages; p2 installs it if it is missing.

Every release zip has build provenance; check it with:

gh attestation verify crossly-eclipse-0.1.0.zip -R crossly-dev/crossly-eclipse

Files it recognises

File Schema
*.crossly-recipe.json, crossly-recipes/recipes/<folder>/**/*.json automation-recipe-v1.json
*.crossly-recipes.json, crossly-recipes/recipes/all.json automation-recipe-bundle-v1.json
*.crossly-workflow.json workflow-v1.json

The schemas ship inside the plugin and are registered through Wild Web Developer's org.eclipse.wildwebdeveloper.json.schema extension point. Two differences from VS Code, both from that extension point taking one glob per association with no ! exclusions:

  • In a crossly-recipes checkout, recipes are matched one folder below recipes/ or deeper (the repository's layout, recipes/<category>/<slug>.json), so recipes/all.json gets only the bundle schema.
  • A .json file with another name and "$schema": "https://crossly.net/schemas/automation-recipe-v1.json" is validated by the JSON language server against the live schema at that URL rather than the bundled copy. The did-you-mean checks, hover docs and templates work in it offline all the same.

Crossly MCP server

Crossly > Add Crossly MCP Server... shows the config and copies it. Eclipse has no MCP host of its own. In GitHub Copilot for Eclipse, open Preferences > GitHub Copilot > MCP and add:

{
  "servers": {
    "crossly": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@crossly/mcp"],
      "env": { "CROSSLY_PAT": "<your Crossly API token>" }
    }
  }
}

Other MCP hosts take the same entry under "mcpServers" (the dialog copies either form). Create the token with Crossly > Create API Token (crossly.net/settings/api/tokens/new). Node.js 20+ is required.

Development

Builds run on GitHub Actions (.github/workflows/ci.yml): template check, XML lint, unit tests of the editor-independent core (tests/CoreTests.java, also run over every recipe in crossly-recipes), then Maven Tycho builds the plugin, feature and p2 update site against Eclipse 2024-06. Locally:

mvn verify                        # releng/net.crossly.eclipse.site/target/repository (the update site) and its zip
node scripts/gen-templates.js     # regenerate templates/crossly-templates.xml after a schema update
javac -d build/tests bundles/net.crossly.eclipse/src/net/crossly/eclipse/core/*.java tests/CoreTests.java
java -cp build/tests:bundles/net.crossly.eclipse CoreTests

To run it in an IDE, import the folders as existing projects into an Eclipse for RCP and RAP Developers with Wild Web Developer installed and launch an Eclipse Application.

Layout: bundles/net.crossly.eclipse (the plugin), features/net.crossly.eclipse.feature, releng/net.crossly.eclipse.site (the p2 repository and its category.xml).

Releases: bump the version in the four pom.xml files, MANIFEST.MF and feature.xml (scripts/version.sh checks they agree), add a CHANGELOG.md section, push a v<version> tag. The release workflow builds, attests and attaches crossly-eclipse-<version>.zip to a GitHub Release and deploys the update site to GitHub Pages, which is what the Eclipse Marketplace listing installs from.

Related

Links

License

MIT

About

Crossly for the Eclipse IDE: schema validation, did-you-mean quick fixes, hover docs and templates for Crossly automation recipes and workflow files.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages