public class FileCopyPackagingElement extends FileOrDirectoryCopyPackagingElement<FileCopyPackagingElement> implements RenameablePackagingElement
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
OUTPUT_FILE_NAME_ATTRIBUTE |
myFilePath, PATH_ATTRIBUTE| Constructor and Description |
|---|
FileCopyPackagingElement() |
FileCopyPackagingElement(java.lang.String filePath) |
FileCopyPackagingElement(java.lang.String filePath,
java.lang.String outputFileName) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canBeRenamed() |
PackagingElementPresentation |
createPresentation(ArtifactEditorContext context) |
VirtualFile |
getLibraryRoot() |
java.lang.String |
getName() |
java.lang.String |
getOutputFileName() |
java.lang.String |
getRenamedOutputFileName() |
FileCopyPackagingElement |
getState() |
boolean |
isDirectory() |
boolean |
isEqualTo(PackagingElement<?> element) |
void |
loadState(FileCopyPackagingElement state)
This method is called when new component state is loaded.
|
void |
rename(java.lang.String newName) |
void |
setRenamedOutputFileName(java.lang.String renamedOutputFileName) |
java.lang.String |
toString() |
findFile, getFilePath, getFilesKind, setFilePathgetTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitinitializeComponent, noStateLoadedpublic static final java.lang.String OUTPUT_FILE_NAME_ATTRIBUTE
public FileCopyPackagingElement()
public FileCopyPackagingElement(java.lang.String filePath)
public FileCopyPackagingElement(java.lang.String filePath,
java.lang.String outputFileName)
public PackagingElementPresentation createPresentation(ArtifactEditorContext context)
createPresentation in class PackagingElement<FileCopyPackagingElement>public java.lang.String getOutputFileName()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean isDirectory()
public boolean isEqualTo(PackagingElement<?> element)
isEqualTo in class FileOrDirectoryCopyPackagingElement<FileCopyPackagingElement>public FileCopyPackagingElement getState()
getState in interface PersistentStateComponent<FileCopyPackagingElement>null value indicates
that the returned state won't be stored, as a result previously stored state will be used.XmlSerializerpublic void loadState(FileCopyPackagingElement state)
PersistentStateComponentState object should be used directly, defensive copying is not required.
loadState in interface PersistentStateComponent<FileCopyPackagingElement>state - loaded component stateXmlSerializerUtil.copyBean(Object, Object)public java.lang.String getRenamedOutputFileName()
public void setRenamedOutputFileName(java.lang.String renamedOutputFileName)
public java.lang.String getName()
getName in interface RenameablePackagingElementpublic boolean canBeRenamed()
canBeRenamed in interface RenameablePackagingElementpublic void rename(java.lang.String newName)
rename in interface RenameablePackagingElementpublic VirtualFile getLibraryRoot()