Skip to main content
Jump to: navigation, search

HOWTO: Shared Code Plugin

Revision as of 22:26, 7 July 2006 by Mayworm.gmail.com (Talk | contribs) (How-to moved to HOWTO: Shared Code Plugin)

This article should be moved elsewhere, perhaps with a name liked HOWTO:Shared Code Plugin or something similar. The page How-to is in of itself an ambiguous term and users going through search engines may hit this page by mistake when it is (very likely) not what they are actually looking for.


Installation and Running of the SCP

This is a description of how to install and run the Shared Code plug'in. It should guide you to having a working SCP demo in minutes.

Steps

Step 0

Prerequisites:

  • Eclipse 3.1 or higher
  • [ECF] 0.8 or higher

After installing Eclipse and ECF, verify that they are all available in your Eclipse environment.

Step 1

Starting ECF Local Server.

  1. Start a shell.
  2. CD to the Eclipse features directory.
  3. CD to org.eclipse.ecf.serverfeature_X.X.X\bin directory (X.X.X is the ecf version number).
  4. Run startserver.sh for OS X/Linux (.bat for windows)
  5. The default settings are fine for now.

Shell.png

Step 2

Config Project on workspace

  • Config Itacare instace Projects

ConfigItacare.png


  • Config Trancoso instance Projects

ConfigTrancoso.png

Step 3

  1. For this demo, it's necessary to use two or more Eclipse instances. I will use only two Eclipse instance(Itacare and Trancoso).
  2. Make sure to use different workspaces, because this demo is on the same machine.
  • Click on the Run->Run, change the launcher name to "Itacare"

Itacare.png


  • Click on the Run->Run, change the launcher name to "Trancoso"

Trancoso.png


  • Adjust workspace data as necessary. You need to setup different "Location" to each Eclipse instance, and each instance needs to point to the same ECF server.

Step 4

Connect SCP to ECF Local Server

  • In the Itacare launched workbench, click on the IconeTransp.gif in toolbar

ConnectingSCP.png

  • In the Trancoso launched workbench, click on the IconeTransp.gif in toolbar
  • After this actions, you are able to search for remote source code.

Step 5

Searching for Java files on Itacare

  • Click on Eclipse search EclipseSearch.png in the Trancoso instance
  • Type yours criterias

SearchPageTrancoso.png


  • SCP will search for Java files in the Itacare instance.

InstanceItacare.png


  • If it matches on the search term, it sends the match to Trancoso instance and shows the result in the Share Code view.

ShareCodeView.png


  • Now you need to make a double click on any row, and see the Java file on the Eclipse Java Editor.

ScpJavaEditor.png

Back to the top