Package vektah.rust.ide.runner

Source Code of vektah.rust.ide.runner.RustModuleBasedConfiguration

package vektah.rust.ide.runner;

import com.google.common.base.Strings;
import com.intellij.execution.configurations.RunConfigurationModule;
import com.intellij.execution.configurations.RuntimeConfigurationError;
import com.intellij.execution.configurations.RuntimeConfigurationException;
import com.intellij.openapi.project.Project;

class RustModuleBasedConfiguration extends RunConfigurationModule {
  public RustModuleBasedConfiguration(Project project) {
    super(project);
  }

  public void checkModuleAndFile(final String fileName, final String expectedFileMessage) throws RuntimeConfigurationException {
    checkForWarning();
    checkFile(fileName, expectedFileMessage);
  }

  private void checkFile(String fileName, String expectedFileMessage) throws RuntimeConfigurationError {
    if (Strings.isNullOrEmpty(fileName)) {
      throw new RuntimeConfigurationError(expectedFileMessage);
    }
    findNotNullFile(fileName);
  }

  private void findNotNullFile(String fileName) {
    // FIXME
  }
}
TOP

Related Classes of vektah.rust.ide.runner.RustModuleBasedConfiguration

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.