本文整理匯總了Java中com.intellij.packaging.impl.artifacts.JarArtifactType類的典型用法代碼示例。如果您正苦於以下問題:Java JarArtifactType類的具體用法?Java JarArtifactType怎麽用?Java JarArtifactType使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
JarArtifactType類屬於com.intellij.packaging.impl.artifacts包,在下文中一共展示了JarArtifactType類的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: createArtifact
import com.intellij.packaging.impl.artifacts.JarArtifactType; //導入依賴的package包/類
@Override
public NewArtifactConfiguration createArtifact()
{
Module module = null;
if(myModules.size() == 1)
{
module = myModules.get(0);
}
else
{
final ChooseModulesDialog dialog = new ChooseModulesDialog(myModules.get(0).getProject(), myModules, "Select Module", "Selected module output would to be included in the artifact");
dialog.setSingleSelectionMode();
dialog.show();
if(dialog.isOK())
{
final List<Module> elements = dialog.getChosenElements();
if(elements.isEmpty())
{
return null;
}
module = elements.get(0);
}
}
if(module == null)
{
return null;
}
final CompositePackagingElement<?> rootElement = JavaFxApplicationArtifactType.this.createRootElement(module.getName());
final CompositePackagingElement<?> subElement = JarArtifactType.getInstance().createRootElement(FileUtil.sanitizeFileName(module.getName()));
final PackagingElement<?> moduleOutputElement = ProductionModuleOutputElementType.getInstance().createElement(module.getProject(), ModuleUtil.createPointer(module));
subElement.addFirstChild(moduleOutputElement);
rootElement.addFirstChild(subElement);
return new NewArtifactConfiguration(rootElement, module.getName(), JavaFxApplicationArtifactType.this);
}
示例2: getKindOfProducedElements
import com.intellij.packaging.impl.artifacts.JarArtifactType; //導入依賴的package包/類
@NotNull
@Override
public PackagingElementOutputKind getKindOfProducedElements() {
return myArtifact.getArtifactType() instanceof JarArtifactType ? PackagingElementOutputKind.JAR_FILES : PackagingElementOutputKind.OTHER;
}
示例3: createRootElement
import com.intellij.packaging.impl.artifacts.JarArtifactType; //導入依賴的package包/類
@NotNull
@Override
public CompositePackagingElement<?> createRootElement(@NotNull String artifactName)
{
return JarArtifactType.getInstance().createRootElement(artifactName);
}