Time for action – installing a feature

Now that the feature has been exported, it can be installed into Eclipse. Either the current Eclipse instance can be used for this, or a new instance of Eclipse can be created by running the eclipse executable with a different workspace. (On macOS, double-clicking on the Eclipse.app will show the current Eclipse instance again. To run a second instance on macOS, open up the application in the terminal and run eclipse from the home of the application folder.)

  1. To install the feature into Eclipse, go to Help | Install New Software....
  2. In the dialog that is prompted, type the directory's URL in the work with field. If the feature was exported on Linux into /tmp/exported, then enter file:///tmp/exported into the work with field. If the feature was exported on Windows into c: empexported, then enter file:///c:/temp/exported into the work with field. Note that on Windows, the directory slashes are reversed in the URL.
  3. After the URL has been entered, press the Enter key. The message may say no categorized items. If so, uncheck the Group items by category checkbox and the feature should appear:
    Time for action – installing a feature
  4. Click on the checkbox next to the feature and hit Finish to install the feature and associated plug-in in the Eclipse workspace.
  5. Restart Eclipse to complete the install.
  6. Verify that the various Clock views are available by going to Window | Show View | Other | Timekeeping.

What just happened?

The feature exported from the earlier step was imported from the same location. Unless the feature is categorized, it won't show up on the list of things to install. Unchecking the Group items by category checkbox shows all features, not just categorized ones.

The Feature name shown here is derived from the default value in the feature.xml file; it can be replaced with a more appropriate value if desired.

If the Eclipse instance isn't showing changes (for example, because the feature or plug-in has been modified), go to the Preferences, find Install/Update | Available Software Sites, and click on the exported repository. The reload button on the right-hand side will be enabled, and clicking on that will refresh from disk the contents of the repository:

What just happened?

Once the repository is reloaded, go back into the Help | Install New Software and the update should be seen. If it is not, verify that the version ends with .qualifier on the end of the features' and plug-ins' version number. Without a monotonically increasing version number, Eclipse gets confused and cannot detect that the plug-in or feature has been changed, and so refuses to re-install it. Check also that the exported version of the plug-in and feature ends with a more recent date; or remove the contents of the exported folder, export, and then reload.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.138.200.66