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, setFilePath
getType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
initializeComponent, noStateLoaded
public 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.Object
public 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.XmlSerializer
public void loadState(FileCopyPackagingElement state)
PersistentStateComponent
State 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 RenameablePackagingElement
public boolean canBeRenamed()
canBeRenamed
in interface RenameablePackagingElement
public void rename(java.lang.String newName)
rename
in interface RenameablePackagingElement
public VirtualFile getLibraryRoot()