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
,Project
- Direct Known Subclasses:
ContributionImpl
public class ProjectImpl extends org.eclipse.emf.ecore.impl.EObjectImpl implements Project
An implementation of the model object ' Project'.The following features are implemented:
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
ProjectImpl.ProjectNameAdapter
-
Nested classes/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList<E extends java.lang.Object & org.eclipse.emf.common.notify.Adapter>, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EObservableAdapterList, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EScannableAdapterList
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCompletionListener(CompletionListener resultListener)
void
addResourceChangeListener(ResourceChangeListener resourceListener)
Revision
basicGetRevision()
SelectRevealHandler
basicGetSelectRevealHandler()
State
basicGetState()
org.eclipse.emf.common.notify.NotificationChain
basicSetCompletionNotificationAdapter(CompletionNotificationAdapter newCompletionNotificationAdapter, org.eclipse.emf.common.notify.NotificationChain msgs)
org.eclipse.emf.common.notify.NotificationChain
basicSetWorkspace(Workspace newWorkspace, org.eclipse.emf.common.notify.NotificationChain msgs)
void
checkout(long time)
void
checkout(long time, java.lang.String commitId)
void
checkout(java.lang.String commitId)
void
checkout(org.osgi.framework.Version version)
void
checkout(org.osgi.framework.Version version, long time)
void
checkout(org.osgi.framework.Version version, long time, java.lang.String commitId)
void
close(org.eclipse.core.runtime.IProgressMonitor monitor)
boolean
contains(org.eclipse.core.runtime.jobs.ISchedulingRule rule)
void
create(org.eclipse.core.runtime.IProgressMonitor monitor)
void
delete(org.eclipse.core.runtime.IProgressMonitor monitor)
void
delete(org.eclipse.emf.common.util.EList<java.lang.Object> objects)
void
doNewRevision(Revision newRevision)
Sub-classes may implement.org.eclipse.emf.common.notify.NotificationChain
eBasicRemoveFromContainerFeature(org.eclipse.emf.common.notify.NotificationChain msgs)
java.lang.Object
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
equals(java.lang.Object obj)
void
eSet(int featureID, java.lang.Object newValue)
void
eUnset(int featureID)
org.eclipse.emf.common.util.EList<java.lang.Object>
getChildren()
CompletionNotificationAdapter
getCompletionNotificationAdapter()
java.lang.String
getName()
java.lang.String
getProjectName()
org.osgi.framework.Version
getProjectVersion()
java.lang.String
getResourcePath()
ResourceChangeListener
getResourceReloadListener()
Revision
getRevision()
org.eclipse.emf.common.util.EMap<org.osgi.framework.Version,Revision>
getRevisions()
SelectRevealHandler
getSelectRevealHandler()
State
getState()
org.osgi.framework.Version
getVersion()
Workspace
getWorkspace()
int
hashCode()
void
initAdapters(Revision revision)
java.lang.String
initialize(boolean commit)
boolean
isConflicting(org.eclipse.core.runtime.jobs.ISchedulingRule rule)
boolean
isDirty()
boolean
isNeedCompletionNotification()
boolean
isSavingResource()
java.lang.String
make(org.eclipse.core.runtime.IProgressMonitor monitor)
Revision
newBareRevision(org.osgi.framework.Version version)
Revision
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
nextVersion()
void
notifyCompletion()
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
setName(java.lang.String newName)
void
setNeedCompletionNotification(boolean newNeedCompletionNotification)
void
setProjectName(java.lang.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)
java.lang.String
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, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicSetContainer, eContainer, eContainingFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedOperationID, eDerivedOperationID, eDerivedStructuralFeatureID, 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
-
-
-
-
Method Detail
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceProject
- Returns:
- the value of the 'Name' attribute.
- See Also:
Project.setName(String)
,ClassMakerPackage.getProject_Name()
-
setName
public void setName(java.lang.String newName)
- Specified by:
setName
in interfaceProject
- Parameters:
newName
- the new value of the 'Name' attribute.- See Also:
Project.getName()
-
getProjectName
public java.lang.String getProjectName()
- Specified by:
getProjectName
in interfaceProject
- Returns:
- the value of the 'Project Name' attribute.
- See Also:
Project.setProjectName(String)
,ClassMakerPackage.getProject_ProjectName()
-
setProjectName
public void setProjectName(java.lang.String newProjectName)
- Specified by:
setProjectName
in interfaceProject
- Parameters:
newProjectName
- the new value of the 'Project Name' attribute.- See Also:
Project.getProjectName()
-
getChildren
public org.eclipse.emf.common.util.EList<java.lang.Object> getChildren()
- Specified by:
getChildren
in interfaceProject
- Returns:
- the value of the 'Children' reference list.
- See Also:
org.genericdomain.EnterpriseDomainPackage#getProject_Children()
-
isDirty
public boolean isDirty()
-
setDirty
public void setDirty(boolean newDirty)
- Specified by:
setDirty
in interfaceProject
- Parameters:
newDirty
- the new value of the 'Dirty' attribute.- See Also:
Project.isDirty()
-
getWorkspace
public Workspace getWorkspace()
- Specified by:
getWorkspace
in interfaceProject
- Returns:
- the value of the 'Workspace' container reference.
- See Also:
Project.setWorkspace(Workspace)
,ClassMakerPackage.getProject_Workspace()
,Workspace.getProjects()
-
basicSetWorkspace
public org.eclipse.emf.common.notify.NotificationChain basicSetWorkspace(Workspace newWorkspace, org.eclipse.emf.common.notify.NotificationChain msgs)
-
setWorkspace
public void setWorkspace(Workspace newWorkspace)
- Specified by:
setWorkspace
in interfaceProject
- Parameters:
newWorkspace
- the new value of the 'Workspace' container reference.- See Also:
Project.getWorkspace()
-
getResourcePath
public java.lang.String getResourcePath()
- Specified by:
getResourcePath
in interfaceProject
- Returns:
- the value of the 'Resource Path' attribute.
- See Also:
ClassMakerPackage.getProject_ResourcePath()
-
isNeedCompletionNotification
public boolean isNeedCompletionNotification()
- Specified by:
isNeedCompletionNotification
in interfaceProject
- Returns:
- the value of the 'Need Completion Notification' attribute.
- See Also:
Project.setNeedCompletionNotification(boolean)
,ClassMakerPackage.getProject_NeedCompletionNotification()
-
setNeedCompletionNotification
public void setNeedCompletionNotification(boolean newNeedCompletionNotification)
- Specified by:
setNeedCompletionNotification
in interfaceProject
- Parameters:
newNeedCompletionNotification
- the new value of the 'Need Completion Notification' attribute.- See Also:
Project.isNeedCompletionNotification()
-
getCompletionNotificationAdapter
public CompletionNotificationAdapter getCompletionNotificationAdapter()
- Specified by:
getCompletionNotificationAdapter
in interfaceProject
- Returns:
- the value of the 'Completion Notification Adapter' containment reference.
- See Also:
Project.setCompletionNotificationAdapter(CompletionNotificationAdapter)
,ClassMakerPackage.getProject_CompletionNotificationAdapter()
-
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:
Project.getCompletionNotificationAdapter()
-
getResourceReloadListener
public ResourceChangeListener getResourceReloadListener()
- Specified by:
getResourceReloadListener
in interfaceProject
- Returns:
- the value of the 'Resource Reload Listener' reference.
- See Also:
ClassMakerPackage.getProject_ResourceReloadListener()
-
isSavingResource
public boolean isSavingResource()
- Specified by:
isSavingResource
in interfaceProject
- Returns:
- the value of the 'Saving Resource' attribute.
- See Also:
Project.setSavingResource(boolean)
,ClassMakerPackage.getProject_SavingResource()
-
setSavingResource
public void setSavingResource(boolean newSavingResource)
- Specified by:
setSavingResource
in interfaceProject
- Parameters:
newSavingResource
- the new value of the 'Saving Resource' attribute.- See Also:
Project.isSavingResource()
-
getRevision
public Revision getRevision()
- Specified by:
getRevision
in interfaceProject
- Returns:
- the value of the 'Revision' reference.
- See Also:
Project.setRevision(Revision)
,ClassMakerPackage.getProject_Revision()
-
basicGetRevision
public Revision basicGetRevision()
-
setRevision
public void setRevision(Revision newRevision)
- Specified by:
setRevision
in interfaceProject
- Parameters:
newRevision
- the new value of the 'Revision' reference.- See Also:
Project.getRevision()
-
getRevisions
public org.eclipse.emf.common.util.EMap<org.osgi.framework.Version,Revision> getRevisions()
- Specified by:
getRevisions
in interfaceProject
- Returns:
- the value of the 'Revisions' map.
- See Also:
ClassMakerPackage.getProject_Revisions()
-
getProjectVersion
public org.osgi.framework.Version getProjectVersion()
- Specified by:
getProjectVersion
in interfaceProject
- Returns:
- the value of the 'Project Version' attribute.
- See Also:
Project.setProjectVersion(Version)
,ClassMakerPackage.getProject_ProjectVersion()
-
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:
Project.getProjectVersion()
-
getSelectRevealHandler
public SelectRevealHandler getSelectRevealHandler()
- Specified by:
getSelectRevealHandler
in interfaceProject
- Returns:
- the value of the 'Select Reveal Handler' reference.
- See Also:
Project.setSelectRevealHandler(SelectRevealHandler)
,ClassMakerPackage.getProject_SelectRevealHandler()
-
basicGetSelectRevealHandler
public SelectRevealHandler basicGetSelectRevealHandler()
-
setSelectRevealHandler
public void setSelectRevealHandler(SelectRevealHandler newSelectRevealHandler)
- Specified by:
setSelectRevealHandler
in interfaceProject
- Parameters:
newSelectRevealHandler
- the new value of the 'Select Reveal Handler' reference.- See Also:
Project.getSelectRevealHandler()
-
getVersion
public org.osgi.framework.Version getVersion()
- Specified by:
getVersion
in interfaceProject
- Returns:
- the value of the 'Version' attribute.
- See Also:
Project.setVersion(Version)
,ClassMakerPackage.getProject_Version()
-
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:
Project.getVersion()
-
getState
public State getState()
- Specified by:
getState
in interfaceProject
- Returns:
- the value of the 'State' reference.
- See Also:
ClassMakerPackage.getProject_State()
-
basicGetState
public State basicGetState()
-
create
public void create(org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
-
delete
public void delete(org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
-
delete
public void delete(org.eclipse.emf.common.util.EList<java.lang.Object> objects)
-
notifyCompletion
public void notifyCompletion() throws java.lang.Exception
Description copied from interface:Project
- Specified by:
notifyCompletion
in interfaceProject
- Throws:
java.lang.Exception
-
addResourceChangeListener
public void addResourceChangeListener(ResourceChangeListener resourceListener)
- Specified by:
addResourceChangeListener
in interfaceProject
-
removeResourceChangeListener
public void removeResourceChangeListener(ResourceChangeListener resourceListener)
- Specified by:
removeResourceChangeListener
in interfaceProject
-
newRevision
public Revision newRevision(org.osgi.framework.Version version)
- Specified by:
newRevision
in interfaceProject
-
newBareRevision
public Revision newBareRevision(org.osgi.framework.Version version)
- Specified by:
newBareRevision
in interfaceProject
-
doNewRevision
public void doNewRevision(Revision newRevision)
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
public void checkout(org.osgi.framework.Version version, long time, java.lang.String commitId)
-
checkout
public void checkout(long time, java.lang.String commitId)
-
checkout
public void checkout(java.lang.String commitId)
-
initAdapters
public void initAdapters(Revision revision)
- Specified by:
initAdapters
in interfaceProject
-
notifyResourceChanged
public void notifyResourceChanged(org.eclipse.emf.common.notify.Notification notification) throws java.lang.Exception
- Specified by:
notifyResourceChanged
in interfaceProject
- Throws:
java.lang.Exception
-
make
public java.lang.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
public java.lang.String initialize(boolean commit)
- Specified by:
initialize
in interfaceProject
- Parameters:
commit
- whether to perform commit- Returns:
- commit Id
-
addCompletionListener
public void addCompletionListener(CompletionListener resultListener)
- Specified by:
addCompletionListener
in interfaceProject
-
removeCompletionListener
public void removeCompletionListener(CompletionListener resultListener)
- 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
public java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)
- Specified by:
eGet
in interfaceorg.eclipse.emf.ecore.InternalEObject
- Overrides:
eGet
in classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
-
eSet
public void eSet(int featureID, java.lang.Object newValue)
- 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
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
-
-