che-server/samples/sample-plugin-actions
Artem Zatsarynnyi 04be689c69 Merge branch 'master' into spi 2017-09-04 11:51:57 +03:00
..
che-sample-plugin-actions-ide Merge branch 'master' into spi 2017-09-04 11:51:57 +03:00
README.md Remove unnecessary gwt.xml instructions (#5317) 2017-06-14 13:57:44 +03:00
pom.xml RELEASE: Set next development version (#6067) 2017-08-23 11:11:34 +03:00

README.md

Description

This sample plugin show how to author actions, register them and display them depending the state of the IDE.

Read the tutorial at: https://www.eclipse.org/che/docs/plugins/actions/index.html

How to test sample-plugin-actions plugin

The plugin-actions extension is only a client-side (IDE) extension. You have to introduce the extension as a dependency in /che/assembly/assembly-ide-war/pom.xml.

Add:

...
<dependency>
  <groupId>org.eclipse.che.sample</groupId>
  <artifactId>che-sample-plugin-actions-ide</artifactId>
</dependency>
...

You can insert the dependency anywhere in the list. After you have inserted it, run mvn sortpom:sort and maven will order the pom.xml for you.

2- Rebuild Eclipse Che

# Build a new IDE.war
# This IDE web app will be bundled into the assembly
cd che/assembly/assembly-ide-war
mvn clean install

# Create a new Che assembly that includes all new server- and client-side extensions
cd assembly/assembly-main
mvn clean install

3- Run Eclipse Che

# Start Che using the CLI with your new assembly
# Replace <local-repo> with the path to your Che repository, to use local binaries in your local image
# Replace <version> with the actual version you are working on
docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock \
                    -v <local-path>:/data \
                    -v <local-repo>:/repo \
                       eclipse/che:<version> start --debug

Documentation resources