public void reset() { final FlexmojosSdkAdditionalData data = (FlexmojosSdkAdditionalData) mySdk.getSdkAdditionalData(); myFlexmojosSdkForm.setFlexCompilerClasspath( data == null ? Collections.<String>emptyList() : data.getFlexCompilerClasspath()); myFlexmojosSdkForm.setAdlPath(data == null ? "" : data.getAdlPath()); myFlexmojosSdkForm.setAirRuntimePath(data == null ? "" : data.getAirRuntimePath()); }
public void apply() throws ConfigurationException { final FlexmojosSdkAdditionalData data = (FlexmojosSdkAdditionalData) mySdk.getSdkAdditionalData(); if (data != null) { data.setAdlPath(myFlexmojosSdkForm.getAdlPath()); data.setAirRuntimePath(myFlexmojosSdkForm.getAirRuntimePath()); } }
public boolean isModified() { final FlexmojosSdkAdditionalData data = (FlexmojosSdkAdditionalData) mySdk.getSdkAdditionalData(); if (data != null) { if (!myFlexmojosSdkForm.getAdlPath().equals(data.getAdlPath())) return true; if (!myFlexmojosSdkForm.getAirRuntimePath().equals(data.getAirRuntimePath())) return true; } return false; }
public JComponent createComponent() { return myFlexmojosSdkForm.getMainPanel(); }