-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #175 from codenvy/IDEX-4035
Added plugin extension examples for users
- Loading branch information
Showing
3 changed files
with
101 additions
and
0 deletions.
There are no files selected for viewing
36 changes: 36 additions & 0 deletions
36
assembly-main/src/assembly/plugins/examples/che-ide-extension-client-server.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<!-- | ||
|
||
Copyright (c) 2012-2015 Codenvy, S.A. | ||
All rights reserved. This program and the accompanying materials | ||
are made available under the terms of the Eclipse Public License v1.0 | ||
which accompanies this distribution, and is available at | ||
http://www.eclipse.org/legal/epl-v10.html | ||
|
||
Contributors: | ||
Codenvy, S.A. - initial API and implementation | ||
|
||
--> | ||
|
||
################################################### | ||
### | ||
### Che IDE Extension Talking to Server Example | ||
### | ||
################################################### | ||
|
||
WHAT: Creates a new IDE clickable action that prints server resposne as IDE notification popup. | ||
DOCS: https://eclipse-che.readme.io/docs/developing-extensions#ide-extension-example | ||
SOURCE: http://github.com/che-samples/che-ide-extension.git BRANCH: client-server | ||
PRE-REQS: Java 1.8, Maven, Git, and a clone of Che's assembly repo @ http://github.com/codenvy/che. | ||
|
||
STEPS: 1. git clone http://github.com/che-samples/che-ide-extension | ||
2. cd che-ide-extension | ||
3. git checkout client-server | ||
4. mvn clean install | ||
5. Add new extension as dependency to /che/assembly-ide-war/pom.xml | ||
6. Add new extension as GWT inheritance to /che/assembly-ide-war/src/main/resources/org/eclipse/che/ide/IDE.gwt.xml | ||
7. Add new extension as a dependency to /che/pom.xml | ||
8. Create new IDE with your extension: `mvn clean install` in /che/assembly-ide-war module | ||
9. Create new Che assembly with new IDE: `mvn clean install` in /che/assembly-main module | ||
10. In /che/assembly-main/target/eclipse-che-{version}/bin, run `che run` to launch new Che assembly. | ||
11. Create a workspace in Che. | ||
12. In the IDE, there will be a new menu with your action. |
35 changes: 35 additions & 0 deletions
35
assembly-main/src/assembly/plugins/examples/che-ide-extension-simple.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<!-- | ||
|
||
Copyright (c) 2012-2015 Codenvy, S.A. | ||
All rights reserved. This program and the accompanying materials | ||
are made available under the terms of the Eclipse Public License v1.0 | ||
which accompanies this distribution, and is available at | ||
http://www.eclipse.org/legal/epl-v10.html | ||
|
||
Contributors: | ||
Codenvy, S.A. - initial API and implementation | ||
|
||
--> | ||
|
||
################################################### | ||
### | ||
### Che IDE Extension Example | ||
### | ||
################################################### | ||
|
||
WHAT: Creates a new IDE clickable action that prints "It's My Action!" as an event in the event console. | ||
DOCS: https://eclipse-che.readme.io/docs/developing-extensions#ide-extension-example | ||
SOURCE: http://github.com/che-samples/che-ide-extension.git | ||
PRE-REQS: Java 1.8, Maven, Git, and a clone of Che's assembly repo @ http://github.com/codenvy/che. | ||
|
||
STEPS: 1. git clone http://github.com/che-samples/che-ide-extension | ||
2. cd che-ide-extension | ||
3. mvn clean install | ||
4. Add new extension as dependency to /che/assembly-ide-war/pom.xml | ||
5. Add new extension as GWT inheritance to /che/assembly-ide-war/src/main/resources/org/eclipse/che/ide/IDE.gwt.xml | ||
6. Add new extension as a dependency to /che/pom.xml | ||
7. Create new IDE with your extension: `mvn clean install` in /che/assembly-ide-war module | ||
8. Create new Che assembly with new IDE: `mvn clean install` in /che/assembly-main module | ||
9. In /che/assembly-main/target/eclipse-che-{version}/bin, run `che run` to launch new Che assembly. | ||
10. Create a workspace in Che. | ||
11. In the IDE, there will be a new menu with your action. |
30 changes: 30 additions & 0 deletions
30
assembly-main/src/assembly/plugins/examples/che-server-extension.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<!-- | ||
|
||
Copyright (c) 2012-2015 Codenvy, S.A. | ||
All rights reserved. This program and the accompanying materials | ||
are made available under the terms of the Eclipse Public License v1.0 | ||
which accompanies this distribution, and is available at | ||
http://www.eclipse.org/legal/epl-v10.html | ||
|
||
Contributors: | ||
Codenvy, S.A. - initial API and implementation | ||
|
||
--> | ||
|
||
################################################### | ||
### | ||
### Che Server-Side Extension Example | ||
### | ||
################################################### | ||
|
||
DOCS: https://eclipse-che.readme.io/docs/developing-extensions | ||
SOURCE: http://github.com/che-samples/che-server-extension.git | ||
PRE-REQS: Java 1.8, Maven, Git, and a clone of Che's assembly repo @ http://github.com/codenvy/che. | ||
|
||
STEPS: 1. git clone http://github.com/che-samples/che-server-extension | ||
2. cd che-server-extension | ||
3. mvn clean install | ||
4. Add new extension as dependency to /che/assembly-machine-war/pom.xml | ||
5. Add new extension as dependency to /che/pom.xml | ||
6. Create new che assembly: `mvn clean install` in /che directory | ||
7. In /che/assembly-main/target/eclipse-che-{version}/bin, run `che run` to launch new Che assembly. |