Java Doc for JarPackageData.java in  » IDE-Eclipse » jdt » org » eclipse » jdt » ui » jarpackager » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » IDE Eclipse » jdt » org.eclipse.jdt.ui.jarpackager 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.eclipse.jdt.ui.jarpackager.JarPackageData

All known Subclasses:   org.eclipse.jdt.internal.ui.jarimport.JarImportData,
JarPackageData
public class JarPackageData (Code)
Model for a JAR package which stores information used during JAR export and import.

Clients may subclass.


See Also:   org.eclipse.jdt.ui.jarpackager.JarWriter3
since:
   2.0



Constructor Summary
public  JarPackageData()
    

Method Summary
public  booleanallowOverwrite()
     Tells whether files can be overwritten without warning.
public  booleanareClassFilesExported()
     Tells whether class files and resources are exported.
public  booleanareDirectoryEntriesIncluded()
     Tells whether directory entries are added to the jar.
public  booleanareErrorsExported()
     Answers if compilation units with errors are exported.
public  booleanareGeneratedFilesExported()
     Tells whether files created by the Java builder are exported.
public  booleanareJavaFilesExported()
     Tells whether java files and resources are exported.
public  booleanareOutputFoldersExported()
     Tells whether all output folders for the enclosing projects of the exported elements.
public  IJarDescriptionReadercreateJarDescriptionReader(InputStream inputStream)
     Creates and returns a JAR package data description reader for this JAR package data object.
public  IJarDescriptionWritercreateJarDescriptionWriter(OutputStream outputStream)
     Creates and returns a JAR package data description writer for this JAR package data object.
public  IJarDescriptionWritercreateJarDescriptionWriter(OutputStream outputStream, String encoding)
     Creates and returns a JAR package data description writer for this JAR package data object.
public  IJarExportRunnablecreateJarExportRunnable(Shell parent)
     Creates and returns a JarExportRunnable.
Parameters:
  parent - the parent for the dialog,or null if no questions should be asked andno checks for unsaved files should be made.
public  IJarExportRunnablecreateJarExportRunnable(JarPackageData[] jarPackagesData, Shell parent)
     Creates and returns a JarExportRunnable for a list of JAR package data objects.
public  JarWriter2createJarWriter(Shell parent)
     Creates and returns a JarWriter for this JAR package.
public  JarWriter3createJarWriter3(Shell parent)
     Creates and returns a JarWriter for this JAR package.
public  booleanexportWarnings()
     Answers if compilation units with warnings are exported.
public  IFile[]findClassfilesFor(IFile javaFile)
     Finds the class files for the given java file and returns them.

This is a hook for subclasses which want to implement a different strategy for finding the class files.

public  IPathgetAbsoluteJarLocation()
     Gets the absolute location of the JAR file.
public  StringgetComment()
     Returns the JAR's comment.
public  IFilegetDescriptionFile()
     Gets the description file (as workspace resource).
public  IPathgetDescriptionLocation()
     Returns the location of file containing the description of a JAR.
public  Object[]getElements()
     Returns the elements which will be exported. These elements are leaf objects e.g.
public  IPathgetJarLocation()
     Gets the location of the JAR file.
public  IFilegetManifestFile()
     Gets the manifest file (as workspace resource).
public  IPathgetManifestLocation()
     Returns the location of a user-defined manifest file.
public  ITypegetManifestMainClass()
     Gets the manifest's main class.
public  IManifestProvidergetManifestProvider()
     Gets the manifest provider for this JAR package.
public  StringgetManifestVersion()
     Gets the manifest version.
public  IPackageFragment[]getPackagesToSeal()
     Gets the packages which should be sealed.
public  IPackageFragment[]getPackagesToUnseal()
     Gets the packages which should explicitly be unsealed.
public  RefactoringDescriptorProxy[]getRefactoringDescriptors()
     Returns the refactoring descriptors to export.
public  IProject[]getRefactoringProjects()
     Returns the projects for which refactoring information should be stored.
public  booleanisBuildingIfNeeded()
     Answers if a build should be performed before exporting files.
public  booleanisCompressed()
     Tells whether the JAR is compressed or not.
public  booleanisDeprecationAware()
     Is the JAR package deprecation aware?

This information is used in JAR export.

public  booleanisDescriptionSaved()
     Tells whether a description of this JAR package must be saved to a file by a JAR description writer during the export operation.
public  booleanisExportStructuralOnly()
     Is the JAR export wizard only exporting refactorings causing structural changes?

This information is used for JAR export.

public  booleanisJarSealed()
     Answers whether the JAR itself is sealed.
public  booleanisMainClassValid(IRunnableContext context)
     Tells whether the specified manifest main class is valid.
public  booleanisManifestAccessible()
     Tells whether a manifest is available.
public  booleanisManifestGenerated()
     Tells whether the manifest file must be generated.
public  booleanisManifestReused()
     Tells whether a previously generated manifest should be reused.
public  booleanisManifestSaved()
     Tells whether the manifest file must be saved to the specified file during the export operation.
public  booleanisRefactoringAware()
    
public  booleanisValid()
     Tells whether this JAR package data can be used to generate a valid JAR.
public  booleanlogErrors()
     Tell whether errors are logged.
public  booleanlogWarnings()
     Tells whether warnings are logged or not.
public  voidsetBuildIfNeeded(boolean buildIfNeeded)
     Sets if a build should be performed before exporting files.
public  voidsetComment(String comment)
     Sets the JAR's comment.
public  voidsetCompress(boolean state)
     Set whether the JAR is compressed or not.
public  voidsetDeprecationAware(boolean aware)
     Determines whether the jar package is deprecation aware.
public  voidsetDescriptionLocation(IPath descriptionLocation)
     Set the location of the JAR description file.
public  voidsetElements(Object[] elements)
     Set the elements which will be exported. These elements are leaf objects e.g.
public  voidsetExportClassFiles(boolean state)
     Sets option to export class files and resources.
public  voidsetExportErrors(boolean exportErrors)
     Sets if compilation units with errors are exported.
public  voidsetExportJavaFiles(boolean state)
     Sets the option to export Java source and resources.
public  voidsetExportOutputFolders(boolean state)
     Sets option to export all output folders for the enclosing projects of the exported elements.
public  voidsetExportStructuralOnly(boolean structural)
     Determines whether the jar packager exports only refactorings causing structural changes.
public  voidsetExportWarnings(boolean exportWarnings)
     Sets if compilation units with warnings are exported.
public  voidsetGenerateManifest(boolean state)
     Set whether a manifest must be generated or not.
public  voidsetIncludeDirectoryEntries(boolean includeDirectoryEntries)
     Sets the option to include directory entries into the jar.
public  voidsetJarLocation(IPath jarLocation)
     Sets the JAR file location.
public  voidsetLogErrors(boolean logErrors)
     Sets whether errors are logged.
public  voidsetLogWarnings(boolean logWarnings)
     Sets if warnings are logged.
public  voidsetManifestLocation(IPath manifestLocation)
     Sets the location of a user-defined manifest file.
public  voidsetManifestMainClass(IType manifestMainClass)
     Set the manifest's main class.
public  voidsetManifestProvider(IManifestProvider manifestProvider)
     Sets the manifest provider.
public  voidsetManifestVersion(String manifestVersion)
     Sets the manifest version.
public  voidsetOverwrite(boolean state)
     Sets whether files can be overwritten without warning.
public  voidsetPackagesToSeal(IPackageFragment[] packagesToSeal)
     Sets the packages which should be sealed.
public  voidsetPackagesToUnseal(IPackageFragment[] packagesToUnseal)
     Set the packages which should explicitly be unsealed.
public  voidsetRefactoringAware(boolean aware)
     Determines whether the jar package is refactoring aware.
public  voidsetRefactoringDescriptors(RefactoringDescriptorProxy[] descriptors)
     Sets the refactoring descriptors to export.
public  voidsetRefactoringProjects(IProject[] projects)
     Sets the projects for which refactoring information should be stored.
public  voidsetReuseManifest(boolean state)
     Sets whether a previously generated manifest should be reused.
public  voidsetSaveDescription(boolean state)
     Set whether a description of this JAR package must be saved to a file by a JAR description writer during the export operation.
public  voidsetSaveManifest(boolean state)
     Sets whether the manifest file must be saved during export operation or not.
public  voidsetSealJar(boolean sealJar)
     Sets whether the JAR itself is sealed.
public  voidsetUseSourceFolderHierarchy(boolean state)
     Set the option to export the source folder hierarchy.
public  voidsetUsesManifest(boolean state)
     Sets whether a manifest must be included in the JAR.
public  booleanuseSourceFolderHierarchy()
     Tells whether the source folder hierarchy is used.
public  booleanusesManifest()
     Answers whether a manifest must be included in the JAR.


Constructor Detail
JarPackageData
public JarPackageData()(Code)
Creates a new Jar Package Data structure




Method Detail
allowOverwrite
public boolean allowOverwrite()(Code)
Tells whether files can be overwritten without warning. true if files can be overwritten without warning



areClassFilesExported
public boolean areClassFilesExported()(Code)
Tells whether class files and resources are exported. true if class files and resources are exported



areDirectoryEntriesIncluded
public boolean areDirectoryEntriesIncluded()(Code)
Tells whether directory entries are added to the jar. true if directory entries are to be included
since:
   3.1



areErrorsExported
public boolean areErrorsExported()(Code)
Answers if compilation units with errors are exported. true if CUs with errors should be exported



areGeneratedFilesExported
public boolean areGeneratedFilesExported()(Code)
Tells whether files created by the Java builder are exported. true if output folder are exported
since:
   3.0



areJavaFilesExported
public boolean areJavaFilesExported()(Code)
Tells whether java files and resources are exported. true if java files and resources are exported



areOutputFoldersExported
public boolean areOutputFoldersExported()(Code)
Tells whether all output folders for the enclosing projects of the exported elements. true if output folder are exported
since:
   3.0



createJarDescriptionReader
public IJarDescriptionReader createJarDescriptionReader(InputStream inputStream)(Code)
Creates and returns a JAR package data description reader for this JAR package data object.

It is the client's responsibility to close this reader.


Parameters:
  inputStream - the input stream to read from a JarWriter



createJarDescriptionWriter
public IJarDescriptionWriter createJarDescriptionWriter(OutputStream outputStream)(Code)
Creates and returns a JAR package data description writer for this JAR package data object.

It is the client's responsibility to close this writer.


Parameters:
  outputStream - the output stream to write to a JarWriterJarPackageData.createJarDescriptionWriter(OutputStream,String)



createJarDescriptionWriter
public IJarDescriptionWriter createJarDescriptionWriter(OutputStream outputStream, String encoding)(Code)
Creates and returns a JAR package data description writer for this JAR package data object.

It is the client's responsibility to close this writer.


Parameters:
  outputStream - the output stream to write to
Parameters:
  encoding - the encoding to use a JarWriter
since:
   3.3



createJarExportRunnable
public IJarExportRunnable createJarExportRunnable(Shell parent)(Code)
Creates and returns a JarExportRunnable.
Parameters:
  parent - the parent for the dialog,or null if no questions should be asked andno checks for unsaved files should be made. a JarExportRunnable



createJarExportRunnable
public IJarExportRunnable createJarExportRunnable(JarPackageData[] jarPackagesData, Shell parent)(Code)
Creates and returns a JarExportRunnable for a list of JAR package data objects.
Parameters:
  jarPackagesData - an array with JAR package data objects
Parameters:
  parent - the parent for the dialog,or null if no dialog should be presented the IJarExportRunnable



createJarWriter
public JarWriter2 createJarWriter(Shell parent) throws CoreException(Code)
Creates and returns a JarWriter for this JAR package.
Parameters:
  parent - the shell used to display question dialogs,or null if "false/no/cancel" is the answerand no dialog should be shown a JarWriter2
See Also:   JarWriter2
throws:
  CoreException - if an unexpected exception happensJarPackageData.createJarWriter3(Shell)



createJarWriter3
public JarWriter3 createJarWriter3(Shell parent) throws CoreException(Code)
Creates and returns a JarWriter for this JAR package.
Parameters:
  parent - the shell used to display question dialogs,or null if "false/no/cancel" is the answerand no dialog should be shown a JarWriter3
See Also:   JarWriter3
throws:
  CoreException - if an unexpected exception happens
since:
   3.2



exportWarnings
public boolean exportWarnings()(Code)
Answers if compilation units with warnings are exported. true if CUs with warnings should be exported



findClassfilesFor
public IFile[] findClassfilesFor(IFile javaFile) throws CoreException(Code)
Finds the class files for the given java file and returns them.

This is a hook for subclasses which want to implement a different strategy for finding the class files. The default strategy is to query the class files for the source file name attribute. If this attribute is missing then all class files in the corresponding output folder are exported.

A CoreException can be thrown if an error occurs during this operation. The CoreException will not stop the export process but adds the status object to the status of the export runnable.


Parameters:
  javaFile - a .java file an array with class files or null to used the default strategy
throws:
  CoreException - if find failed, e.g. I/O error or resource out of sync
See Also:   IJarExportRunnable.getStatus



getAbsoluteJarLocation
public IPath getAbsoluteJarLocation()(Code)
Gets the absolute location of the JAR file. This path is normally external to the workspace. the absolute path representing the location of the JAR file
since:
   3.0



getComment
public String getComment()(Code)
Returns the JAR's comment. the comment string or nullif the JAR does not contain a comment



getDescriptionFile
public IFile getDescriptionFile()(Code)
Gets the description file (as workspace resource). a file which points to the description



getDescriptionLocation
public IPath getDescriptionLocation()(Code)
Returns the location of file containing the description of a JAR. This location is inside the workspace. the path of the description file location,or null if none is specified



getElements
public Object[] getElements()(Code)
Returns the elements which will be exported. These elements are leaf objects e.g. IFile and not containers. an array of leaf objects



getJarLocation
public IPath getJarLocation()(Code)
Gets the location of the JAR file. This path is normally external to the workspace. the path representing the location of the JAR file



getManifestFile
public IFile getManifestFile()(Code)
Gets the manifest file (as workspace resource). a file which points to the manifest



getManifestLocation
public IPath getManifestLocation()(Code)
Returns the location of a user-defined manifest file. the path of the user-defined manifest file location,or null if none is specified



getManifestMainClass
public IType getManifestMainClass()(Code)
Gets the manifest's main class. the type which contains the main class or,null if none is specified



getManifestProvider
public IManifestProvider getManifestProvider()(Code)
Gets the manifest provider for this JAR package. the IManifestProvider



getManifestVersion
public String getManifestVersion()(Code)
Gets the manifest version. a string containing the manifest version



getPackagesToSeal
public IPackageFragment[] getPackagesToSeal()(Code)
Gets the packages which should be sealed. The following entry will be added to the manifest file for each package: Name: <name of the package> Sealed: true

This should only be used if the JAR itself is not sealed.

an array of IPackageFragment



getPackagesToUnseal
public IPackageFragment[] getPackagesToUnseal()(Code)
Gets the packages which should explicitly be unsealed. The following entry will be added to the manifest file for each package: Name: <name of the package> Sealed: false

This should only be used if the JAR itself is sealed.

an array of IPackageFragment



getRefactoringDescriptors
public RefactoringDescriptorProxy[] getRefactoringDescriptors()(Code)
Returns the refactoring descriptors to export.

This information is used in JAR export.

the refactoring descriptors to export
since:
   3.2



getRefactoringProjects
public IProject[] getRefactoringProjects()(Code)
Returns the projects for which refactoring information should be stored.

This information is used for JAR export.

the projects for which refactoring information should be stored,or an empty array
since:
   3.2



isBuildingIfNeeded
public boolean isBuildingIfNeeded()(Code)
Answers if a build should be performed before exporting files. This flag is only considered if auto-build is off. a boolean telling if a build should be performed



isCompressed
public boolean isCompressed()(Code)
Tells whether the JAR is compressed or not. true if the JAR is compressed



isDeprecationAware
public boolean isDeprecationAware()(Code)
Is the JAR package deprecation aware?

This information is used in JAR export.

true if it is deprecation aware,false otherwise
since:
   3.2



isDescriptionSaved
public boolean isDescriptionSaved()(Code)
Tells whether a description of this JAR package must be saved to a file by a JAR description writer during the export operation.

The JAR writer defines the format of the file.

true if this JAR package will be saved
See Also:   JarPackageData.getDescriptionLocation()



isExportStructuralOnly
public boolean isExportStructuralOnly()(Code)
Is the JAR export wizard only exporting refactorings causing structural changes?

This information is used for JAR export.

true if exporting structural changes only,false otherwise
since:
   3.2



isJarSealed
public boolean isJarSealed()(Code)
Answers whether the JAR itself is sealed. The manifest will contain a "Sealed: true" statement.

This option should only be considered when the manifest file is generated.

true if the JAR must be sealed
See Also:   JarPackageData.isManifestGenerated()



isMainClassValid
public boolean isMainClassValid(IRunnableContext context)(Code)
Tells whether the specified manifest main class is valid.
Parameters:
  context - the IRunnableContext true if a main class is specified and valid



isManifestAccessible
public boolean isManifestAccessible()(Code)
Tells whether a manifest is available. true if the manifest is generated or the provided one is accessible



isManifestGenerated
public boolean isManifestGenerated()(Code)
Tells whether the manifest file must be generated. true if the manifest has to be generated



isManifestReused
public boolean isManifestReused()(Code)
Tells whether a previously generated manifest should be reused. true if the generated manifest will be reused when regenerating this JAR,false if the manifest has to be regenerated



isManifestSaved
public boolean isManifestSaved()(Code)
Tells whether the manifest file must be saved to the specified file during the export operation. true if the manifest must be saved
See Also:   JarPackageData.getManifestLocation()



isRefactoringAware
public boolean isRefactoringAware()(Code)
Is the JAR package refactoring aware?

This information is used both in JAR export and import

true if it is refactoring aware,false otherwise
since:
   3.2



isValid
public boolean isValid()(Code)
Tells whether this JAR package data can be used to generate a valid JAR. true if the JAR Package info is valid



logErrors
public boolean logErrors()(Code)
Tell whether errors are logged.

The export operation decides where and how the errors are logged.

true if errors are logged



logWarnings
public boolean logWarnings()(Code)
Tells whether warnings are logged or not.

The export operation decides where and how the warnings are logged.

true if warnings are logged



setBuildIfNeeded
public void setBuildIfNeeded(boolean buildIfNeeded)(Code)
Sets if a build should be performed before exporting files. This flag is only considered if auto-build is off.
Parameters:
  buildIfNeeded - a boolean telling if a build should be performed



setComment
public void setComment(String comment)(Code)
Sets the JAR's comment.
Parameters:
  comment - a string or nullif the JAR does not contain a comment



setCompress
public void setCompress(boolean state)(Code)
Set whether the JAR is compressed or not.
Parameters:
  state - a boolean indicating the new state



setDeprecationAware
public void setDeprecationAware(boolean aware)(Code)
Determines whether the jar package is deprecation aware.

This information is used in JAR export.


Parameters:
  aware - true if it is deprecation aware,false otherwise
since:
   3.2



setDescriptionLocation
public void setDescriptionLocation(IPath descriptionLocation)(Code)
Set the location of the JAR description file.
Parameters:
  descriptionLocation - the path of location



setElements
public void setElements(Object[] elements)(Code)
Set the elements which will be exported. These elements are leaf objects e.g. IFile. and not containers.
Parameters:
  elements - an array with leaf objects



setExportClassFiles
public void setExportClassFiles(boolean state)(Code)
Sets option to export class files and resources.
Parameters:
  state - a boolean indicating the new state



setExportErrors
public void setExportErrors(boolean exportErrors)(Code)
Sets if compilation units with errors are exported.
Parameters:
  exportErrors - true if CUs with errors should be exported



setExportJavaFiles
public void setExportJavaFiles(boolean state)(Code)
Sets the option to export Java source and resources.
Parameters:
  state - the new state



setExportOutputFolders
public void setExportOutputFolders(boolean state)(Code)
Sets option to export all output folders for the enclosing projects of the exported elements.
Parameters:
  state - a boolean indicating the new state
since:
   3.0



setExportStructuralOnly
public void setExportStructuralOnly(boolean structural)(Code)
Determines whether the jar packager exports only refactorings causing structural changes.

This information is used for JAR export.


Parameters:
  structural - true if it exports only refactorings causingstructural changes, false otherwise
since:
   3.2



setExportWarnings
public void setExportWarnings(boolean exportWarnings)(Code)
Sets if compilation units with warnings are exported.
Parameters:
  exportWarnings - true if CUs with warnings should be exported



setGenerateManifest
public void setGenerateManifest(boolean state)(Code)
Set whether a manifest must be generated or not.
Parameters:
  state - the new state



setIncludeDirectoryEntries
public void setIncludeDirectoryEntries(boolean includeDirectoryEntries)(Code)
Sets the option to include directory entries into the jar.
Parameters:
  includeDirectoryEntries - true to includedirectory entries false otherwise
since:
   3.1



setJarLocation
public void setJarLocation(IPath jarLocation)(Code)
Sets the JAR file location.
Parameters:
  jarLocation - a path denoting the location of the JAR file



setLogErrors
public void setLogErrors(boolean logErrors)(Code)
Sets whether errors are logged.

The export operation decides where and how the errors are logged.


Parameters:
  logErrors - true if errors are logged



setLogWarnings
public void setLogWarnings(boolean logWarnings)(Code)
Sets if warnings are logged.

The export operation decides where and how the warnings are logged.


Parameters:
  logWarnings - true if warnings are logged



setManifestLocation
public void setManifestLocation(IPath manifestLocation)(Code)
Sets the location of a user-defined manifest file.
Parameters:
  manifestLocation - the path of the user-define manifest location



setManifestMainClass
public void setManifestMainClass(IType manifestMainClass)(Code)
Set the manifest's main class.
Parameters:
  manifestMainClass - the type with the main class for the manifest file



setManifestProvider
public void setManifestProvider(IManifestProvider manifestProvider)(Code)
Sets the manifest provider.
Parameters:
  manifestProvider - the ManifestProvider to set



setManifestVersion
public void setManifestVersion(String manifestVersion)(Code)
Sets the manifest version.
Parameters:
  manifestVersion - the string which contains the manifest version



setOverwrite
public void setOverwrite(boolean state)(Code)
Sets whether files can be overwritten without warning.
Parameters:
  state - a boolean indicating the new state



setPackagesToSeal
public void setPackagesToSeal(IPackageFragment[] packagesToSeal)(Code)
Sets the packages which should be sealed. The following entry will be added to the manifest file for each package: Name: <name of the package> Sealed: true

This should only be used if the JAR itself is not sealed.


Parameters:
  packagesToSeal - an array of IPackageFragment to seal



setPackagesToUnseal
public void setPackagesToUnseal(IPackageFragment[] packagesToUnseal)(Code)
Set the packages which should explicitly be unsealed. The following entry will be added to the manifest file for each package: Name: <name of the package> Sealed: false

This should only be used if the JAR itself is sealed.


Parameters:
  packagesToUnseal - an array of IPackageFragment



setRefactoringAware
public void setRefactoringAware(boolean aware)(Code)
Determines whether the jar package is refactoring aware.

This information is used both in JAR export and import.


Parameters:
  aware - true if it is refactoring aware,false otherwise
since:
   3.2



setRefactoringDescriptors
public void setRefactoringDescriptors(RefactoringDescriptorProxy[] descriptors)(Code)
Sets the refactoring descriptors to export.

This information is used in JAR export.


Parameters:
  descriptors - the refactoring descriptors
since:
   3.2



setRefactoringProjects
public void setRefactoringProjects(IProject[] projects)(Code)
Sets the projects for which refactoring information should be stored.

This information is used for JAR export.


Parameters:
  projects - the projects for which refactoring information should bestored
since:
   3.2



setReuseManifest
public void setReuseManifest(boolean state)(Code)
Sets whether a previously generated manifest should be reused.
Parameters:
  state - the new state



setSaveDescription
public void setSaveDescription(boolean state)(Code)
Set whether a description of this JAR package must be saved to a file by a JAR description writer during the export operation.

The format is defined by the client who implements the reader/writer pair.


Parameters:
  state - a boolean containing the new state
See Also:   JarPackageData.getDescriptionLocation()
See Also:   IJarDescriptionWriter



setSaveManifest
public void setSaveManifest(boolean state)(Code)
Sets whether the manifest file must be saved during export operation or not.
Parameters:
  state - the new state
See Also:   JarPackageData.getManifestLocation()



setSealJar
public void setSealJar(boolean sealJar)(Code)
Sets whether the JAR itself is sealed. The manifest will contain the following entry: Sealed: true

This option should only be considered when the manifest file is generated.


Parameters:
  sealJar - true if the JAR must be sealed
See Also:   JarPackageData.isManifestGenerated()



setUseSourceFolderHierarchy
public void setUseSourceFolderHierarchy(boolean state)(Code)
Set the option to export the source folder hierarchy.
Parameters:
  state - the new state



setUsesManifest
public void setUsesManifest(boolean state)(Code)
Sets whether a manifest must be included in the JAR.
Parameters:
  state - the new state



useSourceFolderHierarchy
public boolean useSourceFolderHierarchy()(Code)
Tells whether the source folder hierarchy is used.

Using the source folder hierarchy only makes sense if java files are but class files aren't exported.

true if source folder hierarchy is used



usesManifest
public boolean usesManifest()(Code)
Answers whether a manifest must be included in the JAR. true if a manifest has to be included



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.