Eclipse PackageKit User Guide

From FedoraProject

(Difference between revisions)
Jump to: navigation, search
Line 15: Line 15:
 
Eclipse PackageKit provides an Autotools plugin which adds resolutions to many different types of Autotools problem types.
 
Eclipse PackageKit provides an Autotools plugin which adds resolutions to many different types of Autotools problem types.
  
Simply right click on any (or multiple) Autotools Problems View entries, and go to "Quick Fix". Alternatively you can just select the desired entries and press '<CTRL> + 1'. Either of these actions will bring up the Quick Fix menu.
+
Simply right click on any (or multiple) Autotools Problems View entries, and go to "Quick Fix". Alternatively you can just select the desired entries and press '<CTRL> + 1'. Either of these actions will bring up the Quick Fix Dialog.
 +
 
 +
[[File:Eclipse_problem_highlight_quick_fix.png|800px|center]]
 +
 
 +
From the Quick Fix Dialog, we can view the markers we selected. Clicking "Finish" will attempt to resolve all of the selected problems at once.
 +
 
 +
[[File:Eclipse_problem_quick_fix_menu.png|400px|center]]
 +
 
 +
At this point, PackageKit is being queried to determine a resolution for each problem. If any packages satisfy the requirements, a prompt requesting their installation will appear.
 +
 
 +
[[File:Eclipse_packagekit_install_prompt.png|400px|center]]

Revision as of 16:35, 30 January 2013

What is Eclipse PackageKit

Eclipse PackageKit is an Eclipse plugin that allows for interaction with PackageKit. The goal of this plugin is to satisfy various software installation requests from within the Eclipse IDE, and without having to force a user to explicitly use any distribution-specific tools.

To interact with PackageKit, we use the PackageKit DBus API, which we access using dbus-java.

Workflows Using PackageKit Integration

The following list will contain a set of plugins within the Eclipse IDE that Eclipse PackageKit can improve.

Eclipse Autotools Problem Marker Resolution

When building a C/C++ Autotools project, one can use the can use the Autotools support provided by the Eclipse CDT to acoomplish the task. When Autoconf is invoked on the project, it may fail to find a particular resource (library, module, program, file, etc.) and this will be clearly indicated in the Eclipse "Problems" View. Although its possible to bind a particular resolution to a problem, the Autotools plugin currently does not do this, and it becomes the responsibility of the user to figure out which packages in their distribution satisfy the missing requirement(s).

Eclipse PackageKit provides an Autotools plugin which adds resolutions to many different types of Autotools problem types.

Simply right click on any (or multiple) Autotools Problems View entries, and go to "Quick Fix". Alternatively you can just select the desired entries and press '<CTRL> + 1'. Either of these actions will bring up the Quick Fix Dialog.

Eclipse problem highlight quick fix.png

From the Quick Fix Dialog, we can view the markers we selected. Clicking "Finish" will attempt to resolve all of the selected problems at once.

Eclipse problem quick fix menu.png

At this point, PackageKit is being queried to determine a resolution for each problem. If any packages satisfy the requirements, a prompt requesting their installation will appear.

Eclipse packagekit install prompt.png