Bug 161748 - Add documentation to org.eclipse.stp.soas.deploy.core.ui.configuration package
Summary: Add documentation to org.eclipse.stp.soas.deploy.core.ui.configuration package
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: STP (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Adrian Skehill CLA
QA Contact:
URL:
Whiteboard:
Keywords: usability
Depends on:
Blocks:
 
Reported: 2006-10-20 12:50 EDT by Rob Cernich CLA
Modified: 2012-09-21 14:40 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rob Cernich CLA 2006-10-20 12:50:58 EDT
Add documentation to org.eclipse.stp.soas.deploy.core.ui.configuration package.

Here's a start:
That is doable with the configurablePackage extension.  Look at the classes within the org.eclipse.stp.soas.deploy.core.ui.configuration package.  The documentation is sparse, to say the least, so here's a quick explanation.  These are used to contribute property pages for editing a package's configuration.  The mechanism used is very similar to the basic property page and preference page dialog within Eclipse, with the exception that you need to provide the "nodes" for the pages.  A "node" is represented in the tree on the left-hand side of the dialog and is associated with a "page" displayed on the right.  You should use ConfigurationNode as the base class for your nodes.  You should use ConfigurationPage as the base class for your page implementations.  The main difference are the IConfigurationNode.save() and needsSave() methods.  These can be used for udpating the state of the configuration.  The impetus for thes methods, as opposed to using the default behavior in the PreferenceDialog, was to prevent save() from being called on nodes whose state may have already been saved by a parent or child node.  For the most part, you should be able to simply use performOk() on your page for updating the configuration.  Here's  a little example of an implementation for IConfigurationPageFactory.contribute():

	pm.addToRoot(new MyConfigurationNode());
	pm.addTo("myConfigurationNodeId", MyConfigurationChildNode());
Comment 1 Johnson Ma CLA 2007-12-11 04:15:19 EST
add the doc to wiki page below
http://wiki.eclipse.org/Configuration_Ext_Explained
Comment 2 Denny CLA 2007-12-11 04:17:06 EST
It's fixed by Johnson