Package org.jetbrains.osgi.jps.model

Examples of org.jetbrains.osgi.jps.model.OutputPathType


    setBundlorFileLocation(element.getAttributeValue(BUNDLOR_FILE_LOCATION));
    setManifestLocation(element.getAttributeValue(MANIFEST_LOCATION));


    String outputPathTypeName = element.getAttributeValue(OUTPUT_PATH_TYPE, OutputPathType.SpecificOutputPath.name());
    OutputPathType outputPathType = OutputPathType.valueOf(outputPathTypeName);

    setJarFileLocation(element.getAttributeValue(JAR_FILE_LOCATION), outputPathType);
    setBundleActivator(element.getAttributeValue(BUNDLE_ACTIVATOR));
    setBundleSymbolicName(element.getAttributeValue(BUNDLE_SYMBOLIC_NAME));
    setBundleVersion(element.getAttributeValue(BUNDLE_VERSION));
View Full Code Here


      throw new ConfigurationException(OsmorcBundle.message("facet.editor.jar.empty.jar.name"));
    }

    OsmorcFacetConfiguration configuration = (OsmorcFacetConfiguration)myEditorContext.getFacet().getConfiguration();

    OutputPathType pathType = getSelectedOutputPathType();
    if (pathType == SpecificOutputPath) {
      String location = myJarOutputPathChooser.getText();
      if (StringUtil.isEmptyOrSpaces(location)) {
        throw new ConfigurationException(OsmorcBundle.message("facet.editor.jar.empty.output.path"));
      }
View Full Code Here

  @Override
  public void reset() {
    OsmorcFacetConfiguration configuration = (OsmorcFacetConfiguration)myEditorContext.getFacet().getConfiguration();

    OutputPathType outputPathType = configuration.getOutputPathType();
    myPlaceInCompilerOutputPathRadioButton.setSelected(outputPathType == CompilerOutputPath);
    myPlaceInProjectWideRadioButton.setSelected(outputPathType == OsgiOutputPath);
    myPlaceInThisPathRadioButton.setSelected(outputPathType == SpecificOutputPath);

    myJarFileTextField.setText(configuration.getJarFileName());
View Full Code Here

      throw new ConfigurationException(OsmorcBundle.message("facet.editor.jar.empty.jar.name"));
    }

    OsmorcFacetConfiguration configuration = (OsmorcFacetConfiguration)myEditorContext.getFacet().getConfiguration();

    OutputPathType pathType = getSelectedOutputPathType();
    if (pathType == SpecificOutputPath) {
      String location = myJarOutputPathChooser.getText();
      if (StringUtil.isEmptyOrSpaces(location)) {
        throw new ConfigurationException(OsmorcBundle.message("facet.editor.jar.empty.output.path"));
      }
View Full Code Here

  @Override
  public void reset() {
    OsmorcFacetConfiguration configuration = (OsmorcFacetConfiguration)myEditorContext.getFacet().getConfiguration();

    OutputPathType outputPathType = configuration.getOutputPathType();
    myPlaceInCompilerOutputPathRadioButton.setSelected(outputPathType == CompilerOutputPath);
    myPlaceInProjectWideRadioButton.setSelected(outputPathType == OsgiOutputPath);
    myPlaceInThisPathRadioButton.setSelected(outputPathType == SpecificOutputPath);

    myJarFileTextField.setText(configuration.getJarFileName());
View Full Code Here

  private static void completeDefaultConfiguration(OsmorcFacetConfiguration configuration, Module module) {
    if (StringUtil.isEmpty(configuration.getJarFileLocation())) {
      String jarFileName = module.getName().replaceAll("[\\s]", "_") + ".jar";

      // by default put stuff into the compiler output path.
      OutputPathType outputPathType = OutputPathType.CompilerOutputPath;
      ProjectSettings projectSettings = ProjectSettings.getInstance(module.getProject());
      if (projectSettings != null) {
        String bundlesOutputPath = projectSettings.getBundlesOutputPath();
        if (StringUtil.isNotEmpty(bundlesOutputPath)) {
          outputPathType = OutputPathType.OsgiOutputPath;
View Full Code Here

TOP

Related Classes of org.jetbrains.osgi.jps.model.OutputPathType

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.