com.pvx.ooadide.builder
Class ProvideXBuilder

java.lang.Object
  extended by org.eclipse.core.internal.events.InternalBuilder
      extended by org.eclipse.core.resources.IncrementalProjectBuilder
          extended by com.pvx.ooadide.builder.ProvideXBuilder
All Implemented Interfaces:
org.eclipse.core.runtime.IExecutableExtension

public class ProvideXBuilder
extends org.eclipse.core.resources.IncrementalProjectBuilder


Field Summary
static java.lang.String BUILDER_ID
           
static java.lang.String BUILDLOG_NAME
           
static org.eclipse.core.runtime.Path DEFAULT_DESTDIR
           
static org.eclipse.core.runtime.Path DEFAULT_SRCDIR
           
static java.lang.String ERROR_SCAN_PROGRAM
           
static java.lang.String PVX_1FILE_COMPLR_PROGRAM
           
static java.lang.String PVX_CONTEXTMNU_BUILD
           
static java.lang.String PVXDATAFILE_SCAN_PROGRAM
           
static java.lang.String STYLELOG_NAME
           
 
Fields inherited from class org.eclipse.core.resources.IncrementalProjectBuilder
AUTO_BUILD, CLEAN_BUILD, FULL_BUILD, INCREMENTAL_BUILD
 
Constructor Summary
ProvideXBuilder()
           
 
Method Summary
static void addSaveListener(IPvxSaveListener saveListener)
           
static void addToKnownPassword(java.lang.String pass)
           
static void checkCodeStyle(org.eclipse.core.resources.IFile srcFile, java.util.Vector msgs)
           
static boolean checkIsPVXASCII(org.eclipse.core.resources.IResource resource)
           
 boolean checkPVX(org.eclipse.core.resources.IResource resource, ConsoleDisplayManager console)
           
static java.lang.String convertSrcToDestRelativePath(org.eclipse.core.resources.IResource inputResource, org.eclipse.core.resources.IProject project)
           
 java.lang.String covertSrcPathToDestAbsolutePath(org.eclipse.core.resources.IResource relPath)
           
static java.lang.String covertSrcPathToDestAbsolutePath(org.eclipse.core.resources.IResource relPath, org.eclipse.core.resources.IProject project)
           
 void doConvertResource(org.eclipse.core.resources.IResource resource)
           
static java.io.File findDataDomFile(org.eclipse.core.resources.IResource resource, java.lang.String fileExt)
           
static java.io.File findDomFile(org.eclipse.core.resources.IResource resource)
           
static void generateFormattedSourceFile(org.eclipse.core.resources.IFile srcFile, java.lang.String destFilePath)
           
static org.eclipse.core.runtime.Path getAbsoluteSRCDIR(org.eclipse.core.resources.IProject project)
           
static java.lang.String getBuildErrorMsg()
           
static java.lang.String getDefaultRawOutputDir(org.eclipse.core.resources.IProject project)
           
static java.lang.String getDefaultRawSrcDir(org.eclipse.core.resources.IProject project)
           
static org.eclipse.core.runtime.Path getDESTDIR(org.eclipse.core.resources.IProject project)
           
static java.lang.String getDOM_DIRECTORY(org.eclipse.core.resources.IProject project)
           
static int getNumbResourcesInSrcDir(org.eclipse.core.resources.IFolder sourceFolder)
           
static org.eclipse.core.runtime.Path getOutputLinkDIR(org.eclipse.core.resources.IProject project)
           
 java.lang.String getPrgPassword(org.eclipse.core.resources.IResource resource)
           
static org.eclipse.core.runtime.Path getSRCDIR(org.eclipse.core.resources.IProject project)
           
 void handleConvertToASCII(org.eclipse.core.resources.IProject project, org.eclipse.core.runtime.IProgressMonitor monitor)
           
 java.lang.String initializePropertyFromArgsMap(java.util.Map args, org.eclipse.core.resources.IProject project, java.lang.String key)
           
static boolean isBuilderRunning()
           
static boolean isCanceled()
           
static boolean isConvertingResources()
           
static boolean isInSrcDir(org.eclipse.core.resources.IResource resource)
           
static boolean isOutputDirectory(org.eclipse.core.resources.IResource resource)
           
static boolean isPvxDataFile(java.lang.String line)
           
static boolean isPvxOtherFile(java.lang.String line)
           
static boolean isSourceDirectory(org.eclipse.core.resources.IResource resource)
           
static boolean isSuppressPasswordDialogue()
           
static void notifyHostFullBuildEnd()
           
static void notifyHostFullBuildStart(org.eclipse.core.resources.IProject project, int rCount)
           
static java.lang.String queryForPassword(java.io.InputStream in, org.eclipse.core.resources.IFile file, java.lang.String pathToSrcFile)
           
static java.lang.String readFileHeader(org.eclipse.core.resources.IFile addition)
           
static void removeSaveListener(IPvxSaveListener saveListener)
           
static void setBuildError(boolean status)
           
static void setBuildErrorMSg(java.lang.String msg)
           
static void setSuppressPasswordDialogue(boolean suprs)
           
static void syncInOutPutFolder(org.eclipse.core.resources.IContainer folder, org.eclipse.core.resources.IProject project)
           
static void terminatePvxBuilds()
           
static java.lang.String translatePath(java.lang.String projectRelativePath)
           
 
Methods inherited from class org.eclipse.core.resources.IncrementalProjectBuilder
forgetLastBuiltState, getCommand, getDelta, getProject, hasBeenBuilt, isInterrupted, needRebuild, setInitializationData
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BUILDER_ID

public static final java.lang.String BUILDER_ID
See Also:
Constant Field Values

DEFAULT_SRCDIR

public static final org.eclipse.core.runtime.Path DEFAULT_SRCDIR

DEFAULT_DESTDIR

public static final org.eclipse.core.runtime.Path DEFAULT_DESTDIR

BUILDLOG_NAME

public static final java.lang.String BUILDLOG_NAME
See Also:
Constant Field Values

STYLELOG_NAME

public static final java.lang.String STYLELOG_NAME
See Also:
Constant Field Values

PVX_1FILE_COMPLR_PROGRAM

public static final java.lang.String PVX_1FILE_COMPLR_PROGRAM
See Also:
Constant Field Values

ERROR_SCAN_PROGRAM

public static final java.lang.String ERROR_SCAN_PROGRAM
See Also:
Constant Field Values

PVXDATAFILE_SCAN_PROGRAM

public static final java.lang.String PVXDATAFILE_SCAN_PROGRAM
See Also:
Constant Field Values

PVX_CONTEXTMNU_BUILD

public static final java.lang.String PVX_CONTEXTMNU_BUILD
See Also:
Constant Field Values
Constructor Detail

ProvideXBuilder

public ProvideXBuilder()
Method Detail

setSuppressPasswordDialogue

public static void setSuppressPasswordDialogue(boolean suprs)

isSuppressPasswordDialogue

public static boolean isSuppressPasswordDialogue()

isInSrcDir

public static boolean isInSrcDir(org.eclipse.core.resources.IResource resource)

findDomFile

public static java.io.File findDomFile(org.eclipse.core.resources.IResource resource)

findDataDomFile

public static java.io.File findDataDomFile(org.eclipse.core.resources.IResource resource,
                                           java.lang.String fileExt)

isOutputDirectory

public static boolean isOutputDirectory(org.eclipse.core.resources.IResource resource)

isSourceDirectory

public static boolean isSourceDirectory(org.eclipse.core.resources.IResource resource)

isBuilderRunning

public static boolean isBuilderRunning()

isConvertingResources

public static boolean isConvertingResources()

initializePropertyFromArgsMap

public java.lang.String initializePropertyFromArgsMap(java.util.Map args,
                                                      org.eclipse.core.resources.IProject project,
                                                      java.lang.String key)

notifyHostFullBuildEnd

public static void notifyHostFullBuildEnd()

notifyHostFullBuildStart

public static void notifyHostFullBuildStart(org.eclipse.core.resources.IProject project,
                                            int rCount)

getNumbResourcesInSrcDir

public static int getNumbResourcesInSrcDir(org.eclipse.core.resources.IFolder sourceFolder)

checkPVX

public boolean checkPVX(org.eclipse.core.resources.IResource resource,
                        ConsoleDisplayManager console)

addSaveListener

public static void addSaveListener(IPvxSaveListener saveListener)

removeSaveListener

public static void removeSaveListener(IPvxSaveListener saveListener)

syncInOutPutFolder

public static void syncInOutPutFolder(org.eclipse.core.resources.IContainer folder,
                                      org.eclipse.core.resources.IProject project)

translatePath

public static final java.lang.String translatePath(java.lang.String projectRelativePath)

covertSrcPathToDestAbsolutePath

public static java.lang.String covertSrcPathToDestAbsolutePath(org.eclipse.core.resources.IResource relPath,
                                                               org.eclipse.core.resources.IProject project)

covertSrcPathToDestAbsolutePath

public java.lang.String covertSrcPathToDestAbsolutePath(org.eclipse.core.resources.IResource relPath)

convertSrcToDestRelativePath

public static java.lang.String convertSrcToDestRelativePath(org.eclipse.core.resources.IResource inputResource,
                                                            org.eclipse.core.resources.IProject project)

generateFormattedSourceFile

public static final void generateFormattedSourceFile(org.eclipse.core.resources.IFile srcFile,
                                                     java.lang.String destFilePath)

terminatePvxBuilds

public static void terminatePvxBuilds()

handleConvertToASCII

public void handleConvertToASCII(org.eclipse.core.resources.IProject project,
                                 org.eclipse.core.runtime.IProgressMonitor monitor)
                          throws org.eclipse.core.runtime.CoreException
Throws:
org.eclipse.core.runtime.CoreException

doConvertResource

public void doConvertResource(org.eclipse.core.resources.IResource resource)

getPrgPassword

public java.lang.String getPrgPassword(org.eclipse.core.resources.IResource resource)

queryForPassword

public static java.lang.String queryForPassword(java.io.InputStream in,
                                                org.eclipse.core.resources.IFile file,
                                                java.lang.String pathToSrcFile)
                                         throws java.io.IOException
Throws:
java.io.IOException

checkCodeStyle

public static void checkCodeStyle(org.eclipse.core.resources.IFile srcFile,
                                  java.util.Vector msgs)

getDOM_DIRECTORY

public static java.lang.String getDOM_DIRECTORY(org.eclipse.core.resources.IProject project)

getAbsoluteSRCDIR

public static org.eclipse.core.runtime.Path getAbsoluteSRCDIR(org.eclipse.core.resources.IProject project)

getDefaultRawSrcDir

public static java.lang.String getDefaultRawSrcDir(org.eclipse.core.resources.IProject project)

getSRCDIR

public static org.eclipse.core.runtime.Path getSRCDIR(org.eclipse.core.resources.IProject project)

getOutputLinkDIR

public static org.eclipse.core.runtime.Path getOutputLinkDIR(org.eclipse.core.resources.IProject project)

getDESTDIR

public static org.eclipse.core.runtime.Path getDESTDIR(org.eclipse.core.resources.IProject project)

getDefaultRawOutputDir

public static java.lang.String getDefaultRawOutputDir(org.eclipse.core.resources.IProject project)

checkIsPVXASCII

public static boolean checkIsPVXASCII(org.eclipse.core.resources.IResource resource)

readFileHeader

public static java.lang.String readFileHeader(org.eclipse.core.resources.IFile addition)

isPvxDataFile

public static boolean isPvxDataFile(java.lang.String line)

isPvxOtherFile

public static boolean isPvxOtherFile(java.lang.String line)

isCanceled

public static boolean isCanceled()

setBuildError

public static void setBuildError(boolean status)

getBuildErrorMsg

public static java.lang.String getBuildErrorMsg()

setBuildErrorMSg

public static void setBuildErrorMSg(java.lang.String msg)

addToKnownPassword

public static void addToKnownPassword(java.lang.String pass)