-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
unexpected grouping of create new project menu items #3759
Comments
@aleksei-burakov it is expected behavior at the moment. If you want your sample to get into the sample list in the IDE, you need to choose Samples category otherwise Che will create a new one. |
I have created Marmolata category (as on the picture) and I want it to consist of both of plugins registered by newSetBinder(...).addBinding().to(MyPlugin.class) and samples cofigured in |
Che separates sample projects and project templates. Have you registered a custom project type and you want your plugin to provide samples? |
Yes. I have implemented a ProjectWizardRegistrar class , ie a new plugin. It has created the Marmolata group. I would also like to put some samples from samples.json in that group. |
You can just mimic what other plugins do, for instance node.js: |
You may add clustering to the list of templates that your plugin provides. So, ignore samples.json at all at this point. |
If I add it as a plugin I will have to hardcode it. When it is configured in stacks.json, it gets cloned from a git repository. |
This is an essential difference. |
@aleksei-burakov so is current behavior. Creating a project from scratch (this is where your 3 other samples are) implies creating a file with little or no cotent at all. Some plugins use generators (like php composer or maven archetype). @vparfonov may help you customize this behavior. |
Thank you, I think I will live it as is by now. |
I have added a new item in
che/instance/data/templates/samples.json
Its name isClustering
and its category isBlank
. It is expected to see theClustering
project in the sameBlank
group, but it is put in anotherBlank
group.The question is if it is expected behaviour? If so, is there a way to put both blank groups together?
OS and version:
Che version: 5.0.0
OS and version: Ubuntu 16.04
Docker version: 1.12.5
The text was updated successfully, but these errors were encountered: