Package org.erlide.runtime.runtimeinfo

Examples of org.erlide.runtime.runtimeinfo.RuntimeVersion


                  }
                };
                List<String> _map = ListExtensions.<RuntimeVersion, String>map(((List<RuntimeVersion>)Conversions.doWrapArray(runtimeVersions)), _function);
                it.setItems(((String[])Conversions.unwrapArray(_map, String.class)));
                RuntimeInfo _bestRuntime = ErlangProjectBuilderPage.this.info.bestRuntime();
                RuntimeVersion _version = _bestRuntime.getVersion();
                RuntimeVersion _asMajor = _version.asMajor();
                String _string = _asMajor.toString();
                it.setText(_string);
                String _text = it.getText();
                RuntimeVersion _parse = RuntimeVersion.Serializer.parse(_text);
                ErlangProjectBuilderPage.this.info.setRequiredRuntimeVersion(_parse);
              }
            };
            Combo _newControl = XtendSWTLib.<Combo>newControl(it, Combo.class, SWT.READ_ONLY, _function_1);
            ErlangProjectBuilderPage.this.runtimeCombo = _newControl;
View Full Code Here


    }
  }
 
  protected void onExit() {
    String _text = this.runtimeCombo.getText();
    RuntimeVersion _parse = RuntimeVersion.Serializer.parse(_text);
    this.info.setRequiredRuntimeVersion(_parse);
  }
View Full Code Here

    private boolean storing;

    @Override
    public RuntimeInfo getRuntimeInfo() {
        final RuntimeVersion requiredRuntimeVersion = getProperties()
                .getRequiredRuntimeVersion();
        if (requiredRuntimeVersion != cachedRuntimeVersion) {
            cachedRuntimeVersion = requiredRuntimeVersion;
            cachedRuntimeInfo = RuntimeCore.getRuntimeInfoCatalog().getRuntime(
                    requiredRuntimeVersion, null);
View Full Code Here

    // RuntimeVersion getRuntimeVersion();
    @Test
    public void getRuntimeVersion() throws Exception {
        final IErlProject aProject = project2;
        final RuntimeVersion version = aProject.getRuntimeVersion();
        assertNotNull(version);
        final int majorVersion = version.getMajor();
        assertTrue(majorVersion >= 12);
    }
View Full Code Here

public class RuntimeVersionTest {

    @Test
    public void toString_1() {
        final String expect = "R12";
        final RuntimeVersion test = RuntimeVersion.Serializer.parse(expect);
        assertThat(test.toString(), is(expect));
    }
View Full Code Here

    }

    @Test
    public void toString_2() {
        final String expect = "R12A";
        final RuntimeVersion test = RuntimeVersion.Serializer.parse(expect);
        assertThat(test.toString(), is(expect));
    }
View Full Code Here

    }

    @Test
    public void toString_4() {
        final String expect = "R16B03-1";
        final RuntimeVersion test = RuntimeVersion.Serializer.parse(expect);
        assertThat(test.toString(), is(expect));
    }
View Full Code Here

    }

    @Test
    public void toString_5() {
        final String expect = "17.0.0";
        final RuntimeVersion test = RuntimeVersion.Serializer.parse("17");
        assertThat(test.toString(), is(expect));
    }
View Full Code Here

    }

    @Test
    public void toString_5a() {
        final String expect = "17.2.3";
        final RuntimeVersion test = RuntimeVersion.Serializer.parse(expect);
        assertThat(test.toString(), is(expect));
    }
View Full Code Here

    }

    @Test
    public void toString_6() {
        final String expect = "17.1.1-rc1";
        final RuntimeVersion test = RuntimeVersion.Serializer.parse(expect);
        assertThat(test.toString(), is(expect));
    }
View Full Code Here

TOP

Related Classes of org.erlide.runtime.runtimeinfo.RuntimeVersion

Copyright © 2018 www.massapicom. 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.