Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "Riena/Snippets"
(→Snippets) |
(→Snippets) |
||
Line 19: | Line 19: | ||
* [http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.riena/org.eclipse.riena.sample.snippets/src/org/eclipse/riena/sample/snippets/SnippetHelloWorld.java?root=RT_Project&view=markup '''Hello World'''] | * [http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.riena/org.eclipse.riena.sample.snippets/src/org/eclipse/riena/sample/snippets/SnippetHelloWorld.java?root=RT_Project&view=markup '''Hello World'''] | ||
− | * '''Text Ridget''' | + | * '''Text Ridget und LabelRidget''' |
** [http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.riena/org.eclipse.riena.sample.snippets/src/org/eclipse/riena/sample/snippets/SnippetTextRidget001.java?root=RT_Project&view=markup Text field ridget with minimum length validation rule and direct writing] | ** [http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.riena/org.eclipse.riena.sample.snippets/src/org/eclipse/riena/sample/snippets/SnippetTextRidget001.java?root=RT_Project&view=markup Text field ridget with minimum length validation rule and direct writing] | ||
− | |||
* '''List Ridget''' | * '''List Ridget''' | ||
* '''Single Choice Ridget''' | * '''Single Choice Ridget''' | ||
Line 35: | Line 34: | ||
[[Image:Snippet004TreeRidget.png]] | [[Image:Snippet004TreeRidget.png]] | ||
* '''Tree Table Ridget''' | * '''Tree Table Ridget''' | ||
− | * ''' | + | * '''Validation''' TextRidget with Validation |
− | * ''' | + | * '''Marker Support''' TextRidget with Marker (output, disabled, hidden, error etc.) |
[[Category:Riena]] | [[Category:Riena]] |
Revision as of 05:27, 12 September 2008
What are Snippets?
Riena Snippets are small stand-alone programs that demonstrate specific techniques or functionality. Often a small example is the easiest way to understand how to use a particular feature.
To run a snippet:
- create a new project that depends on org.eclipse.riena.client
- copy the desired snippet to the clipboard
- select your project and paste the snippet into your project. The snippet class will be created for you
- run by selecting the class and then selecting Run > Run As > Java Application
Note that the snippets are edited for brevity rather than completeness. They are intended to guide the reader towards the correct solution, rather than be finished products. They are tested against the HEAD stream and may sometimes reference new API or require bug fixes from there.
Snippets also help isolate problems. The best way to report an Riena bug is to write your own snippet showing the problem and paste it into the bug report. For a snippet template, see the "Hello World" example.
To contribute a new snippet, create a snippet contribution in Bugzilla. Thanks in advance for your contribution!
Snippets
- Text Ridget und LabelRidget
- List Ridget
- Single Choice Ridget
- Multiple Choice Ridget
- Action Ridget
- Table Ridget
- Tree Ridget
- Tree Table Ridget
- Validation TextRidget with Validation
- Marker Support TextRidget with Marker (output, disabled, hidden, error etc.)