Class ProjectImpl
java.lang.Object
org.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.ecore.impl.BasicEObjectImpl
org.eclipse.emf.ecore.impl.EObjectImpl
org.enterprisedomain.classmaker.impl.ProjectImpl
- All Implemented Interfaces:
org.eclipse.core.runtime.jobs.ISchedulingRule
,org.eclipse.emf.common.notify.Notifier
,org.eclipse.emf.ecore.EObject
,org.eclipse.emf.ecore.InternalEObject
,Item
,Project
- Direct Known Subclasses:
ContributionImpl
An implementation of the model object '
Project'.
The following features are implemented:
Model Name
Phase
Language
Domain Model
Customizers
Parent
Locale
Project
Name
Project Name
Children
Dirty
Workspace
Resource Path
Need Completion Notification
Completion Notification Adapter
Resource Reload Listener
Saving Resource
Revision
Revisions
Project Version
Select Reveal Handler
Version
State
Model Resource Adapter
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList<E extends Object & org.eclipse.emf.common.notify.Adapter>, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EObservableAdapterList, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EScannableAdapterList
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.InternalEObject
org.eclipse.emf.ecore.InternalEObject.EStore
-
Field Summary
Fields inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
ELAST_EOBJECT_FLAG
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addCompletionListener
(CompletionListener resultListener) void
addResourceChangeListener
(ResourceChangeListener resourceListener) org.eclipse.emf.common.notify.NotificationChain
basicSetCompletionNotificationAdapter
(CompletionNotificationAdapter newCompletionNotificationAdapter, org.eclipse.emf.common.notify.NotificationChain msgs) org.eclipse.emf.common.notify.NotificationChain
basicSetDomainModel
(Models newDomainModel, org.eclipse.emf.common.notify.NotificationChain msgs) org.eclipse.emf.common.notify.NotificationChain
basicSetModelResourceAdapter
(ResourceAdapter newModelResourceAdapter, org.eclipse.emf.common.notify.NotificationChain msgs) org.eclipse.emf.common.notify.NotificationChain
basicSetWorkspace
(Workspace newWorkspace, org.eclipse.emf.common.notify.NotificationChain msgs) void
build
(org.eclipse.core.runtime.IProgressMonitor monitor) void
checkout
(long time) void
void
void
checkout
(org.osgi.framework.Version version) void
checkout
(org.osgi.framework.Version version, long time) void
void
close
(org.eclipse.core.runtime.IProgressMonitor monitor) boolean
contains
(org.eclipse.core.runtime.jobs.ISchedulingRule rule) void
void
create
(org.eclipse.core.runtime.IProgressMonitor monitor) createRevision
(org.eclipse.core.runtime.IProgressMonitor monitor) void
delete
(org.eclipse.core.runtime.IProgressMonitor monitor) void
void
doNewRevision
(Revision newRevision) Sub-classes may implement.int
eBaseStructuralFeatureID
(int derivedFeatureID, Class<?> baseClass) org.eclipse.emf.common.notify.NotificationChain
eBasicRemoveFromContainerFeature
(org.eclipse.emf.common.notify.NotificationChain msgs) int
eDerivedStructuralFeatureID
(int baseFeatureID, Class<?> baseClass) eGet
(int featureID, boolean resolve, boolean coreType) org.eclipse.emf.common.notify.NotificationChain
eInverseAdd
(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, org.eclipse.emf.common.notify.NotificationChain msgs) org.eclipse.emf.common.notify.NotificationChain
eInverseRemove
(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, org.eclipse.emf.common.notify.NotificationChain msgs) boolean
eIsSet
(int featureID) boolean
void
void
eUnset
(int featureID) org.eclipse.emf.common.util.EList<Object>
org.eclipse.emf.common.util.EMap<StageQualifier,
Customizer> getName()
getPhase()
org.osgi.framework.Version
org.eclipse.emf.common.util.EMap<org.osgi.framework.Version,
Revision> getState()
org.osgi.framework.Version
int
hashCode()
void
initAdapters
(Revision revision) initialize
(boolean commit) boolean
isConflicting
(org.eclipse.core.runtime.jobs.ISchedulingRule rule) boolean
isDirty()
boolean
boolean
void
load
(boolean create, boolean loadOnDemand) make
(org.eclipse.core.runtime.IProgressMonitor monitor) newBareRevision
(org.osgi.framework.Version version) newRevision
(org.osgi.framework.Version version) org.osgi.framework.Version
newVersion
(boolean incrementMajor, boolean incrementMinor, boolean incrementMicro) org.osgi.framework.Version
newVersion
(org.osgi.framework.Version base, boolean incrementMajor, boolean incrementMinor, boolean incrementMicro) org.osgi.framework.Version
void
void
notifyResourceChanged
(org.eclipse.emf.common.notify.Notification notification) void
onModelResourceCreate
(org.eclipse.emf.ecore.resource.Resource eResource) boolean
open
(org.eclipse.core.runtime.IProgressMonitor monitor) void
removeCompletionListener
(CompletionListener resultListener) void
removeResourceChangeListener
(ResourceChangeListener resourceListener) void
setCompletionNotificationAdapter
(CompletionNotificationAdapter newCompletionNotificationAdapter) void
setDirty
(boolean newDirty) void
setDomainModel
(Models newDomainModel) void
setLanguage
(String newLanguage) void
void
setModelName
(String newModelName) void
void
setNeedCompletionNotification
(boolean newNeedCompletionNotification) void
void
void
setProject
(Project newProject) void
setProjectName
(String newProjectName) void
setProjectVersion
(org.osgi.framework.Version newProjectVersion) void
setRevision
(Revision newRevision) void
setSavingResource
(boolean newSavingResource) void
setSelectRevealHandler
(SelectRevealHandler newSelectRevealHandler) void
setVersion
(org.osgi.framework.Version newVersion) void
setWorkspace
(Workspace newWorkspace) toString()
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eInvoke, eIsProxy, eSetClass, eSetDeliver, eSetProxyURI
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
eAllContents, eBasicRemoveFromContainer, eBasicSetContainer, eContainer, eContainingFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedOperationID, eDerivedOperationID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInvoke, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eInternalResource, eInverseAdd, eInverseRemove, eInvoke, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eResolveProxy, eResource, eSet, eSetResource, eSetStore, eSetting, eStore, eUnset, eURIFragmentSegment, eVirtualGet, eVirtualGet, eVirtualIsSet, eVirtualSet, eVirtualUnset
Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
eNotificationRequired, eNotify
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
Methods inherited from interface org.eclipse.emf.ecore.InternalEObject
eNotificationRequired
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
-
Method Details
-
getModelName
- Specified by:
getModelName
in interfaceItem
- Returns:
- the value of the 'Model Name' attribute.
- See Also:
-
setModelName
- Specified by:
setModelName
in interfaceItem
- Parameters:
newModelName
- the new value of the 'Model Name' attribute.- See Also:
-
getPhase
-
setPhase
-
getLanguage
- Specified by:
getLanguage
in interfaceItem
- Returns:
- the value of the 'Language' attribute.
- See Also:
-
setLanguage
- Specified by:
setLanguage
in interfaceItem
- Parameters:
newLanguage
- the new value of the 'Language' attribute.- See Also:
-
getDomainModel
- Specified by:
getDomainModel
in interfaceItem
- Returns:
- the value of the 'Domain Model' containment reference.
- See Also:
-
ClassMakerPackage.getItem_DomainModel()
org.enterprisedomain.classmaker.ModelPair#getParent
-
basicSetDomainModel
public org.eclipse.emf.common.notify.NotificationChain basicSetDomainModel(Models newDomainModel, org.eclipse.emf.common.notify.NotificationChain msgs) -
setDomainModel
- Specified by:
setDomainModel
in interfaceItem
- Parameters:
newDomainModel
- the new value of the 'Domain Model' containment reference.- See Also:
-
getCustomizers
- Specified by:
getCustomizers
in interfaceItem
- Returns:
- the value of the 'Customizers' map.
- See Also:
-
getParent
-
basicGetParent
-
setParent
-
getLocale
-
setLocale
-
getProject
- Specified by:
getProject
in interfaceItem
- Returns:
- the value of the 'Project' reference.
- See Also:
-
basicGetProject
-
setProject
- Specified by:
setProject
in interfaceItem
- Parameters:
newProject
- the new value of the 'Project' reference.- See Also:
-
getName
-
setName
-
getProjectName
- Specified by:
getProjectName
in interfaceProject
- Returns:
- the value of the 'Project Name' attribute.
- See Also:
-
setProjectName
- Specified by:
setProjectName
in interfaceProject
- Parameters:
newProjectName
- the new value of the 'Project Name' attribute.- See Also:
-
getChildren
- Specified by:
getChildren
in interfaceProject
- Returns:
- the value of the 'Children' attribute list.
- See Also:
-
isDirty
public boolean isDirty() -
setDirty
public void setDirty(boolean newDirty) -
getWorkspace
- Specified by:
getWorkspace
in interfaceProject
- Returns:
- the value of the 'Workspace' container reference.
- See Also:
-
basicSetWorkspace
public org.eclipse.emf.common.notify.NotificationChain basicSetWorkspace(Workspace newWorkspace, org.eclipse.emf.common.notify.NotificationChain msgs) -
setWorkspace
- Specified by:
setWorkspace
in interfaceProject
- Parameters:
newWorkspace
- the new value of the 'Workspace' container reference.- See Also:
-
getResourcePath
- Specified by:
getResourcePath
in interfaceProject
- Returns:
- the value of the 'Resource Path' attribute.
- See Also:
-
isNeedCompletionNotification
public boolean isNeedCompletionNotification()- Specified by:
isNeedCompletionNotification
in interfaceProject
- Returns:
- the value of the 'Need Completion Notification' attribute.
- See Also:
-
setNeedCompletionNotification
public void setNeedCompletionNotification(boolean newNeedCompletionNotification) - Specified by:
setNeedCompletionNotification
in interfaceProject
- Parameters:
newNeedCompletionNotification
- the new value of the 'Need Completion Notification' attribute.- See Also:
-
getCompletionNotificationAdapter
- Specified by:
getCompletionNotificationAdapter
in interfaceProject
- Returns:
- the value of the 'Completion Notification Adapter' containment reference.
- See Also:
-
basicGetCompletionNotificationAdapter
-
basicSetCompletionNotificationAdapter
public org.eclipse.emf.common.notify.NotificationChain basicSetCompletionNotificationAdapter(CompletionNotificationAdapter newCompletionNotificationAdapter, org.eclipse.emf.common.notify.NotificationChain msgs) -
setCompletionNotificationAdapter
public void setCompletionNotificationAdapter(CompletionNotificationAdapter newCompletionNotificationAdapter) - Specified by:
setCompletionNotificationAdapter
in interfaceProject
- Parameters:
newCompletionNotificationAdapter
- the new value of the 'Completion Notification Adapter' containment reference.- See Also:
-
getResourceReloadListener
- Specified by:
getResourceReloadListener
in interfaceProject
- Returns:
- the value of the 'Resource Reload Listener' reference.
- See Also:
-
isSavingResource
public boolean isSavingResource()- Specified by:
isSavingResource
in interfaceProject
- Returns:
- the value of the 'Saving Resource' attribute.
- See Also:
-
setSavingResource
public void setSavingResource(boolean newSavingResource) - Specified by:
setSavingResource
in interfaceProject
- Parameters:
newSavingResource
- the new value of the 'Saving Resource' attribute.- See Also:
-
getRevision
- Specified by:
getRevision
in interfaceProject
- Returns:
- the value of the 'Revision' reference.
- See Also:
-
basicGetRevision
-
setRevision
- Specified by:
setRevision
in interfaceProject
- Parameters:
newRevision
- the new value of the 'Revision' reference.- See Also:
-
getRevisions
- Specified by:
getRevisions
in interfaceProject
- Returns:
- the value of the 'Revisions' map.
- See Also:
-
getProjectVersion
public org.osgi.framework.Version getProjectVersion()- Specified by:
getProjectVersion
in interfaceProject
- Returns:
- the value of the 'Project Version' attribute.
- See Also:
-
setProjectVersion
public void setProjectVersion(org.osgi.framework.Version newProjectVersion) - Specified by:
setProjectVersion
in interfaceProject
- Parameters:
newProjectVersion
- the new value of the 'Project Version' attribute.- See Also:
-
getSelectRevealHandler
- Specified by:
getSelectRevealHandler
in interfaceProject
- Returns:
- the value of the 'Select Reveal Handler' reference.
- See Also:
-
basicGetSelectRevealHandler
-
setSelectRevealHandler
- Specified by:
setSelectRevealHandler
in interfaceProject
- Parameters:
newSelectRevealHandler
- the new value of the 'Select Reveal Handler' reference.- See Also:
-
getVersion
public org.osgi.framework.Version getVersion()- Specified by:
getVersion
in interfaceProject
- Returns:
- the value of the 'Version' attribute.
- See Also:
-
setVersion
public void setVersion(org.osgi.framework.Version newVersion) - Specified by:
setVersion
in interfaceProject
- Parameters:
newVersion
- the new value of the 'Version' attribute.- See Also:
-
getState
-
basicGetState
-
getModelResourceAdapter
- Specified by:
getModelResourceAdapter
in interfaceProject
- Returns:
- the value of the 'Model Resource Adapter' containment reference.
- See Also:
-
basicSetModelResourceAdapter
public org.eclipse.emf.common.notify.NotificationChain basicSetModelResourceAdapter(ResourceAdapter newModelResourceAdapter, org.eclipse.emf.common.notify.NotificationChain msgs) -
create
public void create(org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException -
createRevision
public Revision createRevision(org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException - Specified by:
createRevision
in interfaceProject
- Throws:
org.eclipse.core.runtime.CoreException
-
delete
public void delete(org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException -
delete
-
notifyCompletion
Description copied from interface:Project
- Specified by:
notifyCompletion
in interfaceProject
- Throws:
Exception
-
addResourceChangeListener
- Specified by:
addResourceChangeListener
in interfaceProject
-
removeResourceChangeListener
- Specified by:
removeResourceChangeListener
in interfaceProject
-
newRevision
- Specified by:
newRevision
in interfaceProject
-
newBareRevision
- Specified by:
newBareRevision
in interfaceProject
-
doNewRevision
Sub-classes may implement.- Specified by:
doNewRevision
in interfaceProject
-
newVersion
public org.osgi.framework.Version newVersion(boolean incrementMajor, boolean incrementMinor, boolean incrementMicro) throws org.eclipse.core.runtime.CoreException - Specified by:
newVersion
in interfaceProject
- Throws:
org.eclipse.core.runtime.CoreException
-
newVersion
public org.osgi.framework.Version newVersion(org.osgi.framework.Version base, boolean incrementMajor, boolean incrementMinor, boolean incrementMicro) throws org.eclipse.core.runtime.CoreException - Specified by:
newVersion
in interfaceProject
- Throws:
org.eclipse.core.runtime.CoreException
-
nextVersion
public org.osgi.framework.Version nextVersion() throws org.eclipse.core.runtime.CoreException- Specified by:
nextVersion
in interfaceProject
- Throws:
org.eclipse.core.runtime.CoreException
-
checkout
public void checkout(org.osgi.framework.Version version) -
checkout
public void checkout(org.osgi.framework.Version version, long time) -
checkout
-
checkout
public void checkout(long time) -
checkout
-
checkout
-
initAdapters
- Specified by:
initAdapters
in interfaceProject
-
load
public void load(boolean create, boolean loadOnDemand) throws org.eclipse.core.runtime.CoreException -
build
public void build(org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException -
copyModel
-
notifyResourceChanged
public void notifyResourceChanged(org.eclipse.emf.common.notify.Notification notification) throws Exception - Specified by:
notifyResourceChanged
in interfaceProject
- Throws:
Exception
-
make
public String make(org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException -
open
public boolean open(org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException -
close
public void close(org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException -
initialize
- Specified by:
initialize
in interfaceItem
- Specified by:
initialize
in interfaceProject
- Parameters:
commit
- whether to perform commit- Returns:
- commit Id
-
addCompletionListener
- Specified by:
addCompletionListener
in interfaceProject
-
removeCompletionListener
- Specified by:
removeCompletionListener
in interfaceProject
-
onModelResourceCreate
public void onModelResourceCreate(org.eclipse.emf.ecore.resource.Resource eResource) -
eInverseAdd
public org.eclipse.emf.common.notify.NotificationChain eInverseAdd(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, org.eclipse.emf.common.notify.NotificationChain msgs) - Overrides:
eInverseAdd
in classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
-
eInverseRemove
public org.eclipse.emf.common.notify.NotificationChain eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, org.eclipse.emf.common.notify.NotificationChain msgs) - Overrides:
eInverseRemove
in classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
-
eBasicRemoveFromContainerFeature
public org.eclipse.emf.common.notify.NotificationChain eBasicRemoveFromContainerFeature(org.eclipse.emf.common.notify.NotificationChain msgs) - Overrides:
eBasicRemoveFromContainerFeature
in classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
-
contains
public boolean contains(org.eclipse.core.runtime.jobs.ISchedulingRule rule) - Specified by:
contains
in interfaceorg.eclipse.core.runtime.jobs.ISchedulingRule
-
isConflicting
public boolean isConflicting(org.eclipse.core.runtime.jobs.ISchedulingRule rule) - Specified by:
isConflicting
in interfaceorg.eclipse.core.runtime.jobs.ISchedulingRule
-
eGet
- Specified by:
eGet
in interfaceorg.eclipse.emf.ecore.InternalEObject
- Overrides:
eGet
in classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
-
eSet
- Specified by:
eSet
in interfaceorg.eclipse.emf.ecore.InternalEObject
- Overrides:
eSet
in classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
-
eUnset
public void eUnset(int featureID) - Specified by:
eUnset
in interfaceorg.eclipse.emf.ecore.InternalEObject
- Overrides:
eUnset
in classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
-
eIsSet
public boolean eIsSet(int featureID) - Specified by:
eIsSet
in interfaceorg.eclipse.emf.ecore.InternalEObject
- Overrides:
eIsSet
in classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
-
eBaseStructuralFeatureID
- Specified by:
eBaseStructuralFeatureID
in interfaceorg.eclipse.emf.ecore.InternalEObject
- Overrides:
eBaseStructuralFeatureID
in classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
-
eDerivedStructuralFeatureID
- Specified by:
eDerivedStructuralFeatureID
in interfaceorg.eclipse.emf.ecore.InternalEObject
- Overrides:
eDerivedStructuralFeatureID
in classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
-
hashCode
public int hashCode() -
equals
-
toString
- Overrides:
toString
in classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
-