Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 375205

Summary: Document the validation properties in edit.command contributions
Product: [ECD] Orion Reporter: John Arthorne <john.arthorne>
Component: ClientAssignee: Susan McCourt <susan>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: mamacdon, susan
Version: 0.4   
Target Milestone: 0.5 M1   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description John Arthorne CLA 2012-03-23 14:30:17 EDT
All orion.edit.command services seem to appear in every editor. For example I see JS Beautify in my text files. It should support adding a content type to the service props to filter what kinds of files it appears on.
Comment 1 John Arthorne CLA 2012-03-23 14:30:45 EDT
Note it's possible the doc is just missing this info:

http://wiki.eclipse.org/Orion/Documentation/Developer_Guide/Plugging_into_the_editor#orion.edit.command
Comment 2 Susan McCourt CLA 2012-03-26 08:36:37 EDT
validation properties were added to orion.edit.command in 0.4, but we haven't updated older plugins.  See bug 337766 comment 6.
Comment 3 Susan McCourt CLA 2012-03-26 08:37:33 EDT
I'll update the doc.
Comment 4 Susan McCourt CLA 2012-03-26 09:03:27 EDT
I have updated the doc to include the new properties introduced in bug 337766.  I don't include a very thorough description of validationProperties but plan to say a lot more once we implement bug 370903.  I also added a description of validationProperties to orion.navigate.command (it was not mentioned).

The remaining question here is whether we want to have contentTypes property similar to orion.navigate.openWith.  Right now we are using validationProperties.  I'll add a question about this to bug 370903.