Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add jArchi support for CheatSheets #83

Open
jbsarrodie opened this issue Nov 18, 2020 · 6 comments
Open

Add jArchi support for CheatSheets #83

jbsarrodie opened this issue Nov 18, 2020 · 6 comments
Labels
enhancement New feature or request

Comments

@jbsarrodie
Copy link
Member

jbsarrodie commented Nov 18, 2020

jArchi makes it possible to automate a lot of things. I think that, together with Cheat Sheets (which are an interesting but motly hidden feature of Archi) this would allow people to create really amazing things.

Thanks to @Phillipus's help, I've started to work on jArchi support for Cheat Sheets, and this has been much simpler than expected. So I've just submited some code in a new cheatsheets branch.

This code provides a very simple RunArchiScriptCheatSheetAction action which will run the script passed as an argument. The argument must contains the script path relative to __SCRIPTS_DIR__.

A basic demo cheat sheet has been included. It expects the user to have created a demo.ajs script beforehand in the root scripts folder.

I'm planning to update this code so that the action takes another parameter to define the "scope" of the script, so that it becomes possible to run a script:

So opening this issue to discuss this feature.

@jbsarrodie jbsarrodie added the enhancement New feature or request label Nov 18, 2020
@Phillipus
Copy link
Member

Interesting.

demo.xml file is missing, though

Might be better to use:

Require-Bundle: org.eclipse.ui.cheatsheets

rather than

Import-Package: org.eclipse.ui.cheatsheets

@jbsarrodie
Copy link
Member Author

demo.xml file is missing, though

In fact lots of files are missing (unfortunately I have to use TortoiseGit, which not that bad but not that good than SmartGit). I've just commited the other files.

@jbsarrodie
Copy link
Member Author

Might be better to use:

Require-Bundle: org.eclipse.ui.cheatsheets

rather than

Import-Package: org.eclipse.ui.cheatsheets

Done

@Phillipus
Copy link
Member

Also, try to remove the ``org.eclipse.core.resources.prefs` file. I don't know which part of Eclipse adds it.

@jbsarrodie
Copy link
Member Author

Also, try to remove the ``org.eclipse.core.resources.prefs` file. I don't know which part of Eclipse adds it.

Done. In fact this is related to another change we have to make in jArchi: the template for new scripts should be in UTF-8, or else people might have some troubles. I'll submit it on master later.

@Phillipus
Copy link
Member

I'll submit it on master later.

I've done it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants