|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.core.internal.events.InternalBuilder
org.eclipse.core.resources.IncrementalProjectBuilder
edu.cmu.sei.osate.core.builder.AadlBuilder
public class AadlBuilder
Nested Class Summary | |
---|---|
protected class |
AadlBuilder.DeltaVisitor
|
protected class |
AadlBuilder.DuplicateModelsVisitor
|
protected class |
AadlBuilder.Visitor
|
Field Summary | |
---|---|
protected AnalysisErrorReporterFactory |
analysisErrorLoggerFactory
|
protected boolean |
askedAboutMissingPredeclared
This value is only meaningful if reportedMissingPredeclared is true |
static java.lang.String |
BUILDER_ID
|
static java.lang.String |
copyright
|
protected CorePackage |
corePackage
|
static boolean |
DEBUG
|
static java.lang.String |
DEBUG_OPTION
|
protected static boolean |
didFullIncrementalBuild
|
protected FilenameCache |
fcache
|
protected static java.util.Set<org.eclipse.core.resources.IFile> |
filesDone
The set of files that have been processed in this build. |
protected InternalErrorReporter |
internalErrorLogger
|
protected java.util.ArrayList<java.lang.String> |
markerMessagesForFilesNotInSourceDir
Each element in this list correspond to the element with the same index in sourceFilesNotInSourceDir. |
protected java.util.Set |
modelsToSanityCheck
Model files that were changed and need to have their sanity checked. |
protected static java.util.Set |
packagesToDo
Set of package names (Strings) to parse |
protected ParseErrorReporterFactory |
parseErrorLoggerFactory
|
protected boolean |
parseMissingPredeclared
This value is only meaningful if askedAboutMissingPredeclared is true |
protected java.util.Map<org.eclipse.core.resources.IProject,org.eclipse.jface.preference.PreferenceStore> |
prefCache
Cache of project preference stores. |
protected static java.util.Set |
propertysetsToDo
Set of property set names (Strings) to parse |
protected boolean |
reportedMissingPredeclared
|
protected static boolean |
requestFullIncremenalBuild
incremental build requires a full build |
protected static org.eclipse.core.resources.IResourceChangeListener |
resourceChangeListener
|
protected java.util.ArrayList<org.eclipse.core.resources.IFile> |
sourceFilesNotInSourceDir
Files are added to this list when checking if each source file is in the project's source directory. |
protected static java.util.Set<org.eclipse.core.resources.IFile> |
specsToDo
Set of AADL specifications (IFile objects) to parse |
protected IAadlWorkspace |
workspace
A reference to the current workspace. |
Fields inherited from class org.eclipse.core.resources.IncrementalProjectBuilder |
---|
AUTO_BUILD, CLEAN_BUILD, FULL_BUILD, INCREMENTAL_BUILD |
Constructor Summary | |
---|---|
AadlBuilder()
|
Method Summary | |
---|---|
protected void |
addAllSourceFiles(org.eclipse.core.runtime.IProgressMonitor monitor)
add all source files for processing if their XML files don't exist or are marked as with syntax errors |
protected void |
addAllSourceFilesWithCompileNeed(org.eclipse.core.runtime.IProgressMonitor monitor)
add all source files for processing if their XML files don't exist or are marked as with syntax errors |
static void |
addLocationInformation(org.eclipse.emf.ecore.resource.Resource res)
adds location information to object model if not present |
protected org.eclipse.core.resources.IProject[] |
build(int kind,
java.util.Map args,
org.eclipse.core.runtime.IProgressMonitor monitor)
|
protected void |
checkAll(AnalysisErrorReporterManager analErrMgr,
java.util.Set modelsToCheck)
This method collects all checks that need to be done on the workspace / resource set after parsing, including Semantic checking Property checking. |
protected void |
checkAnnexes(java.util.Set resources,
AnalysisErrorReporterManager errMgr)
|
protected void |
checkForUniquePropertySetAndPackageNames(AnalysisErrorReporterManager checkingErrManager)
|
protected java.util.Set |
checkModelSanity(AnalysisErrorReporterManager errMgr,
java.util.Set modelsToCheck)
|
protected void |
checkProjectPreferences(org.eclipse.core.resources.IProject project,
org.eclipse.jface.preference.PreferenceStore projectProperties)
|
void |
checkUnresolvedProxies(org.eclipse.core.runtime.IProgressMonitor monitor)
|
protected void |
clean(org.eclipse.core.runtime.IProgressMonitor monitor)
deletes all declarative model files in the current projects |
protected void |
cleanAll(org.eclipse.core.runtime.IProgressMonitor monitor)
deletes all declarative model files in all projects |
protected void |
clearProjectPrefsCache()
|
protected boolean |
containsSegment(org.eclipse.core.runtime.IPath path,
java.lang.String segmentName)
returns true if named segment is contained in path as segment |
boolean |
doReinstantiate(org.eclipse.core.resources.IResource ires,
org.eclipse.core.runtime.IProgressMonitor monitor)
|
protected boolean |
fileNameMatchesName(java.lang.String fn,
java.lang.String n)
|
protected org.eclipse.jface.preference.PreferenceStore |
getProjectPrefs(org.eclipse.core.resources.IProject project)
|
static org.eclipse.core.resources.IFile |
getUpToDateAadlFile(org.eclipse.core.resources.IFile aaxlFile)
makes sure the aadl file exists and is up to date with respect to the aaxl file. |
protected boolean |
hasNames(java.util.Set set)
|
protected void |
initBuildListener()
sets the resource change event listener for build events |
static void |
loadStandardPropertySets()
Deprecated. This method call is a noop, you can remove it. |
static void |
loadStandardPropertySets(ParseErrorReporterManager parseErrManager,
AnalysisErrorReporterManager checkingErrManager)
Deprecated. This method call is a noop, you can remove it. |
protected void |
loadStandardPropertySets(ParseErrorReporterManager parseErrManager,
AnalysisErrorReporterManager nameErrManager,
AnalysisErrorReporterManager checkingErrManager)
Deprecated. This method call is a noop, you can remove it. |
protected org.eclipse.emf.common.util.URI |
makeOutURI(org.eclipse.core.resources.IFile file)
|
protected void |
markFilesNotInSourceDirectory(ParseErrorReporterManager errManager)
Creates new warning markers with messages from markerMessagesForFilesNotInSourceDir and adds them to the corresponding file in sourceFilesNotInSourceDir. |
protected AadlSpec |
parseFile(org.eclipse.core.resources.IFile file,
ParseErrorReporterManager parseErrManager)
Parse an AADL file. |
protected AadlSpec |
parsePluginProvided(java.io.InputStream aadlis,
java.io.InputStream aaxlis,
java.lang.String pluginName,
org.eclipse.emf.ecore.resource.Resource outRsrc)
Parse an AADL file. |
AadlSpec |
parseSingleAadlFile(org.eclipse.core.resources.IFile file,
org.eclipse.core.runtime.IProgressMonitor monitor)
Process an AADL file but not any referenced external packages/propertysets. |
protected void |
processAadlFileInternal(org.eclipse.core.resources.IFile file)
Process an AADL file including referenced external packages/propertysets. |
protected void |
processAll(ParseErrorReporterManager errManager,
org.eclipse.core.runtime.IProgressMonitor monitor)
Parse all AADL specification files in the specsToDo set as
well as all packages and property sets in the sets packagesToDo and
propertysetsToDo, respectively. |
protected void |
processFile(int fileType,
org.eclipse.core.resources.IFile sourceFile,
ParseErrorReporterManager errManager,
org.eclipse.core.runtime.IProgressMonitor monitor)
Process an AADL file. |
protected void |
processSet(int type,
java.util.Set set,
ParseErrorReporterManager errManager,
org.eclipse.core.runtime.IProgressMonitor monitor)
Helper method to process a set of package or property set names. |
void |
removeUnresolvedInstanceModelFiles()
|
void |
removeUnresolvedInstanceModelFiles(org.eclipse.core.resources.IProject project)
|
protected void |
resolveAllParsed(AnalysisErrorReporterManager errMgr)
|
static void |
synchronizeResources(org.eclipse.core.runtime.IProgressMonitor monitor)
Given a resource was saved, make sure any affected XML models get saved to update their XPath. |
protected void |
updateInstanceModelFiles(boolean rebuildAll,
org.eclipse.core.resources.IProject project,
org.eclipse.core.runtime.IProgressMonitor monitor)
|
Methods inherited from class org.eclipse.core.resources.IncrementalProjectBuilder |
---|
forgetLastBuiltState, getCommand, getDelta, getProject, hasBeenBuilt, isInterrupted, needRebuild, setInitializationData, startupOnInitialize |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String copyright
public static final java.lang.String BUILDER_ID
public static final java.lang.String DEBUG_OPTION
public static boolean DEBUG
protected static org.eclipse.core.resources.IResourceChangeListener resourceChangeListener
protected CorePackage corePackage
protected static java.util.Set<org.eclipse.core.resources.IFile> specsToDo
protected static java.util.Set packagesToDo
protected static java.util.Set propertysetsToDo
protected static java.util.Set<org.eclipse.core.resources.IFile> filesDone
protected IAadlWorkspace workspace
protected static boolean requestFullIncremenalBuild
protected static boolean didFullIncrementalBuild
protected boolean reportedMissingPredeclared
protected boolean askedAboutMissingPredeclared
reportedMissingPredeclared
is true
protected boolean parseMissingPredeclared
askedAboutMissingPredeclared
is true
protected java.util.ArrayList<org.eclipse.core.resources.IFile> sourceFilesNotInSourceDir
protected java.util.ArrayList<java.lang.String> markerMessagesForFilesNotInSourceDir
protected final java.util.Map<org.eclipse.core.resources.IProject,org.eclipse.jface.preference.PreferenceStore> prefCache
protected final InternalErrorReporter internalErrorLogger
protected final ParseErrorReporterFactory parseErrorLoggerFactory
protected final AnalysisErrorReporterFactory analysisErrorLoggerFactory
protected final FilenameCache fcache
protected java.util.Set modelsToSanityCheck
Constructor Detail |
---|
public AadlBuilder()
Method Detail |
---|
protected void clean(org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
clean
in class org.eclipse.core.resources.IncrementalProjectBuilder
org.eclipse.core.runtime.CoreException
protected void cleanAll(org.eclipse.core.runtime.IProgressMonitor monitor)
protected void initBuildListener()
protected void addAllSourceFilesWithCompileNeed(org.eclipse.core.runtime.IProgressMonitor monitor)
monitor
- protected void addAllSourceFiles(org.eclipse.core.runtime.IProgressMonitor monitor)
monitor
- protected org.eclipse.core.resources.IProject[] build(int kind, java.util.Map args, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
build
in class org.eclipse.core.resources.IncrementalProjectBuilder
org.eclipse.core.runtime.CoreException
protected void checkForUniquePropertySetAndPackageNames(AnalysisErrorReporterManager checkingErrManager)
protected void processAadlFileInternal(org.eclipse.core.resources.IFile file)
file
- the AADL file to processprotected boolean containsSegment(org.eclipse.core.runtime.IPath path, java.lang.String segmentName)
path
- segmentName
- public AadlSpec parseSingleAadlFile(org.eclipse.core.resources.IFile file, org.eclipse.core.runtime.IProgressMonitor monitor)
This method parses the source file, loads the corresponding model file (if necessary and present), and copies all location references to the resource.
file
- the AADL file to processmonitor
- the progress monitor for this operationprotected void processAll(ParseErrorReporterManager errManager, org.eclipse.core.runtime.IProgressMonitor monitor)
specsToDo
set as
well as all packages and property sets in the sets packagesToDo and
propertysetsToDo, respectively.
monitor
- the progress monitor for this jobprotected boolean hasNames(java.util.Set set)
protected void processSet(int type, java.util.Set set, ParseErrorReporterManager errManager, org.eclipse.core.runtime.IProgressMonitor monitor)
type
- set
- monitor
- protected void processFile(int fileType, org.eclipse.core.resources.IFile sourceFile, ParseErrorReporterManager errManager, org.eclipse.core.runtime.IProgressMonitor monitor)
sourceFile
- the file to process in the current workspacemonitor
- the progress monitor to useprotected AadlSpec parseFile(org.eclipse.core.resources.IFile file, ParseErrorReporterManager parseErrManager)
file
- the file to parse in the current workspace
null
if there were parse errors.protected AadlSpec parsePluginProvided(java.io.InputStream aadlis, java.io.InputStream aaxlis, java.lang.String pluginName, org.eclipse.emf.ecore.resource.Resource outRsrc)
null
if there were parse errors.protected boolean fileNameMatchesName(java.lang.String fn, java.lang.String n)
protected void resolveAllParsed(AnalysisErrorReporterManager errMgr)
protected java.util.Set checkModelSanity(AnalysisErrorReporterManager errMgr, java.util.Set modelsToCheck)
protected void checkAll(AnalysisErrorReporterManager analErrMgr, java.util.Set modelsToCheck)
protected void checkAnnexes(java.util.Set resources, AnalysisErrorReporterManager errMgr)
protected org.eclipse.emf.common.util.URI makeOutURI(org.eclipse.core.resources.IFile file)
file
- public static void loadStandardPropertySets()
public static void loadStandardPropertySets(ParseErrorReporterManager parseErrManager, AnalysisErrorReporterManager checkingErrManager)
protected void loadStandardPropertySets(ParseErrorReporterManager parseErrManager, AnalysisErrorReporterManager nameErrManager, AnalysisErrorReporterManager checkingErrManager)
protected void updateInstanceModelFiles(boolean rebuildAll, org.eclipse.core.resources.IProject project, org.eclipse.core.runtime.IProgressMonitor monitor)
public boolean doReinstantiate(org.eclipse.core.resources.IResource ires, org.eclipse.core.runtime.IProgressMonitor monitor)
public void removeUnresolvedInstanceModelFiles()
public void removeUnresolvedInstanceModelFiles(org.eclipse.core.resources.IProject project)
protected void markFilesNotInSourceDirectory(ParseErrorReporterManager errManager)
protected void clearProjectPrefsCache()
protected org.eclipse.jface.preference.PreferenceStore getProjectPrefs(org.eclipse.core.resources.IProject project)
protected void checkProjectPreferences(org.eclipse.core.resources.IProject project, org.eclipse.jface.preference.PreferenceStore projectProperties)
public static org.eclipse.core.resources.IFile getUpToDateAadlFile(org.eclipse.core.resources.IFile aaxlFile)
public static void addLocationInformation(org.eclipse.emf.ecore.resource.Resource res)
res
- declarative model resourcepublic void checkUnresolvedProxies(org.eclipse.core.runtime.IProgressMonitor monitor)
public static void synchronizeResources(org.eclipse.core.runtime.IProgressMonitor monitor)
monitor
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |