Examples of WGARuntimeConfigurationModel


Examples of de.innovationgate.eclipse.wgadesigner.models.WGARuntimeConfigurationModel

    IProject project = ((IFileEditorInput)input).getFile().getProject();
    try {
      if (project.hasNature(WGADesignerPlugin.NATURE_WGA_RUNTIME)) {
        _wgaRuntime = (WGARuntime) project.getNature(WGADesignerPlugin.NATURE_WGA_RUNTIME);
        setPartName("Runtime (" + _wgaRuntime.getName() + ")");
        _model = new WGARuntimeConfigurationModel();
        try {         
          _model.init(_wgaRuntime);
        } catch (IncompatibleWGAConfigVersion e) {
          MessageDialog.openWarning(getSite().getShell(), "Warning", "The configured WGA distribution seams to be incompatible. Please ensure that your are using the latest version of WGADevelopmentStudio. Some config features may not work properly.");
          WGADesignerPlugin.getDefault().logError(e.getMessage(), e);
View Full Code Here

Examples of de.innovationgate.eclipse.wgadesigner.models.WGARuntimeConfigurationModel

        return errors;
    }

    static void validateWGARuntimeVersion(List<IStatus> errors, WGARuntime runtime) {
        if (runtime != null) {
            WGARuntimeConfigurationModel model = new WGARuntimeConfigurationModel();
            try {
                model.init(runtime);
                if (model.getWgaDeployment() != null) {
                    if (!model.getWgaDeployment().getWGAVersion().isAtLeast(5, 3)) {
                        errors.add(new Status(IStatus.ERROR, WGADesignerPlugin.PLUGIN_ID, "The runtime must use at least OpenWGA 5.3 to export web applications. Please choose another runtime or update your OpenWGA version."));
                    }
                }
            }
            catch (IncompatibleWGAConfigVersion e) {
View Full Code Here

Examples of de.innovationgate.eclipse.wgadesigner.models.WGARuntimeConfigurationModel

       
        try {
           
            // save location in runtime config
            try {
                WGARuntimeConfigurationModel model = new WGARuntimeConfigurationModel();
                model.init(_runtime);
                if (model.getRemoteLocation() == null || !model.getRemoteLocation().equals(_remoteLocationPage.getLocation())) {
                    model.setRemoteLocation(_remoteLocationPage.getLocation());
                    model.saveChanges();   
                }
            } catch (Exception e) {
                // ignore
            }
           
View Full Code Here

Examples of de.innovationgate.eclipse.wgadesigner.models.WGARuntimeConfigurationModel

 
  @Override
  public boolean performFinish() {
    // save location in runtime config
    try {
      WGARuntimeConfigurationModel model = new WGARuntimeConfigurationModel();
      model.init(_runtime);
      if (model.getRemoteLocation() == null || !model.getRemoteLocation().equals(_remoteLocationPage.getLocation())) {
        model.setRemoteLocation(_remoteLocationPage.getLocation());
        model.saveChanges()
      }
    } catch (Exception e) {
      // ignore
    }     
     
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.