Package org.eclipse.sapphire

Examples of org.eclipse.sapphire.PossibleValuesService.values()


        final TestElement element = TestElement.TYPE.instantiate();

        final PossibleValuesService possibleValuesService = element.property( TestElement.PROP_SHAPES ).service( PossibleValuesService.class );
        assertNotNull( possibleValuesService );

        final Set<String> values = possibleValuesService.values();
        assertNotNull( values );

        final ContentProposalService contentProposalService = element.property( TestElement.PROP_SHAPES ).service( ContentProposalService.class );
        assertNotNull( contentProposalService );
View Full Code Here


    this.pagePart = textPart.nearest(SapphireDiagramEditorPagePart.class);
    this.property = property;
    create(parent);
    this.combo = (CCombo)getControl();
    PossibleValuesService possibleValuesService = this.property.service(PossibleValuesService.class);
    Set<String> possibleValues = possibleValuesService.values();
    final String[] contentForCombo = new String[possibleValues.size()];
    possibleValues.toArray(contentForCombo);
    setItems(contentForCombo);
  }
 
View Full Code Here

    {
      initValue = this.textPart.getContent();
    }
    this.initialValue = initValue;
    PossibleValuesService possibleValuesService = this.property.service(PossibleValuesService.class);
    Set<String> possibleValues = possibleValuesService.values();
    Iterator<String> it = possibleValues.iterator();
    int index = -1;
    while (it.hasNext())
    {
      index++;
View Full Code Here

        final Value<?> property = property();
        final PossibleValuesService possibleValuesService = property().service( PossibleValuesService.class );

        if( possibleValuesService != null )
        {
            final Collection<String> valuesList = possibleValuesService.values();
            final String[] valuesArray = valuesList.toArray( new String[ valuesList.size() ] );
           
            final ValueLabelProvider labelProvider = new ValueLabelProvider( (PropertyEditorPart) getPart(), property );
           
            final ElementListSelectionDialog dialog = new ElementListSelectionDialog( ( (FormComponentPresentation) context ).shell(), labelProvider );
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.