Skip to content

Commit

Permalink
Update org.eclipse.gef.examples.shapes/src/org/eclipse/gef/examples/s…
Browse files Browse the repository at this point in the history
…hapes/model/Shape.java

Co-authored-by: Patrick Ziegler <[email protected]>
  • Loading branch information
azoitl and ptziegler authored Oct 19, 2024
1 parent cc2fc78 commit b427de9
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,13 @@ public abstract class Shape extends ModelElement {
* @see #setPropertyValue(Object, Object)
*/
static {
descriptors = new IPropertyDescriptor[] { new TextPropertyDescriptor(XPOS_PROP, ShapesExampleMessages.Shape_X), // id
// and
// description
// pair
// id and description pair
descriptors = new IPropertyDescriptor[] { new TextPropertyDescriptor(XPOS_PROP, ShapesExampleMessages.Shape_X),
new TextPropertyDescriptor(YPOS_PROP, ShapesExampleMessages.Shape_Y),
new TextPropertyDescriptor(WIDTH_PROP, ShapesExampleMessages.Shape_Width),
new TextPropertyDescriptor(HEIGHT_PROP, ShapesExampleMessages.Shape_Height), };
new TextPropertyDescriptor(WIDTH_PROP, ShapesExampleMessages.Shape_Width),
new TextPropertyDescriptor(HEIGHT_PROP, ShapesExampleMessages.Shape_Height), };
// use a custom cell editor validator for all four array entries
for (IPropertyDescriptor descriptor : descriptors) {
((PropertyDescriptor) descriptor).setValidator(value -> {
Expand Down

0 comments on commit b427de9

Please sign in to comment.