Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sapphire-dev] Sapphire Query

- How do I add additional custom page (like the summary page added in the Sapphire extension editor) to XML based editor

[kosta] The base class for editors is SapphireEditor. A simple two page editor with form and xml source view is SapphireEditorForXml. I would recommend looking at the source of that class to see how pages are added. For more complex example, see CalendarEditor in Sapphire samples (two form pages + two source pages). Of course, you can always look at the Sapphire extensions editor itself that you reference… SapphireExtensionEditor in the sdk plugin. The easiest way to see the source is to install the source feature from the repository.

 

- I have to implement some rule in the UI components, like if selection of one component changes, I have to disable or change value on the other UI component. Since UI is mostly defined in XML and annotation How do I achieve this

 

[kosta] Sapphire approach is to describe these interactions in the model. For enablement, there is @Enablement annotation. For changing values, there is @DefaultValue annotation. See the samples project for examples of this.

 

 

From: Nagarajan Murugesan [mailto:nagarajan.m@xxxxxxxxx]
Sent: Friday, May 06, 2011 12:47 PM
To: konstantin.komissarchik@xxxxxxxxxx
Subject: Sapphire Query

 

Hi Konstantin,
I came across Eclipse Sapphire, when I was searching for sample code for my project which involves creating a multi page form editor with an XML source. I found it very interesting and easy to create those pages using sapphire framework.

I have couple of questions on that,
- How do I add additional custom page (like the summary page added in the Sapphire extension editor) to XML based editor
- I have to implement some rule in the UI components, like if selection of one component changes, I have to disable or change value on the other UI component. Since UI is mostly defined in XML and annotation How do I achieve this

Your help is very much appreciated.

Thanks
-Naga


Back to the top