02.05.2014 Views

Ocean* Application Development Framework - Ocean - Schlumberger

Ocean* Application Development Framework - Ocean - Schlumberger

Ocean* Application Development Framework - Ocean - Schlumberger

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Custom Worksteps<br />

<strong>Ocean</strong> will populate the UIs with each argument’s initial value:<br />

Fig. 6-32 Line UI with Initial Argument Values<br />

Fig. 6-33 Default Dialog UI with Initial Argument Values<br />

Initial values for domain objects should be set to the NullObject or null if the<br />

NullObject property does not exist for that domain object.<br />

Argument Description<br />

Recall that the argument names in the default UI were the same as the argument<br />

package property names. You may prefer to show the user a more meaningful name<br />

in the default UIs.<br />

You can supply a better argument name and a short description using a custom<br />

<strong>Ocean</strong> attribute, DescriptionAttribute. It is defined as:<br />

public sealed class DescriptionAttribute : DescribedArgumentAttribute<br />

{<br />

public DescriptionAttribute(string name, string shortDescription);<br />

...<br />

}<br />

public abstract class DescribedArgumentAttribute : System.Attribute {}<br />

6-244 <strong>Ocean</strong> <strong>Application</strong> <strong>Development</strong> <strong>Framework</strong> 2009.1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!