This procedure describes adding a tool to an already existing workspace, by enabling a dedicated plug-in from the Dashboard.
To add tools that are available as plug-ins into a Che workspace, use one of the following methods:
This procedure uses the Java language support plug-in as an example.
-
A running instance of Eclipse Che. To install an instance of Eclipse Che, see Che 'quick-starts'.
-
An existing workspace defined in this instance of Eclipse Che; see:
-
The workspace must be in a
stoppedstate. To do so:-
Navigate to the Che Dashboard. See Navigating Che using the Dashboard.
-
In the Dashboard, click the Workspaces menu to open the workspaces list and locate the workspace.
-
On the same row with the displayed workspace, on the right side of the screen, click the Stop button to stop the workspace.
-
Wait a few seconds for the workspace to stop, then configure the workspace by clicking on it.
-
To add the plug-in from the Plug-in registry to an already existing Che workspace, use one of the following methods:
-
Installing the plug-in from the Plugin tab.
-
Navigate to the Plugin tab.
The list of plug-ins, installed or possible to install, is displayed.
-
Enable the desired plug-in, for example, the Language Support for Java 11, by using the * Enable* slide-toggle.
The plug-in source code is added to the workspace devfile, and the plug-in is now enabled.
-
On the bottom right side of the screen, save the changes by clicking the Save button. + Once the changes are saved, the workspace is restarted.
-
-
Installing the plug-in by adding content to the devfile.
-
Navigate to the Devfile tab.
The devfile structure is displayed.
-
Locate the
componentsection of the devfile and add the following lines to add the Java language v8 in to the workspace:- id: redhat/java8/latest type: chePluginSee the example of the final result:
components: - id: redhat/php/latest memoryLimit: 1Gi type: chePlugin - id: redhat/php-debugger/latest memoryLimit: 256Mi type: chePlugin - mountSources: true endpoints: - name: 8080/tcp port: 8080 memoryLimit: 512Mi type: dockerimage volumes: - name: composer containerPath: /home/user/.composer - name: symfony containerPath: /home/user/.symfony alias: php image: 'quay.io/eclipse/che-php-7:nightly' - id: redhat/java8/latest type: chePlugin
-