Skip to content

Commit

Permalink
Improve selective pull dialog with action description & support delet…
Browse files Browse the repository at this point in the history
…ion (#271)
  • Loading branch information
shubhamWaghmare-sap authored Jul 4, 2024
1 parent be2608c commit 908af20
Show file tree
Hide file tree
Showing 26 changed files with 801 additions and 390 deletions.
23 changes: 20 additions & 3 deletions org.abapgit.adt.backend/model/agitpullmodifiedobjects.ecore
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
<details key="name" value="overwriteObjects"/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EReference" name="abapgitobjects" upperBound="-1"
eType="#//AbapGitObject" containment="true" resolveProxies="false">
eType="#//OverwriteObject" containment="true" resolveProxies="false">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="namespace" value="##targetNamespace"/>
Expand All @@ -86,13 +86,30 @@
<details key="name" value="packageWarningObjects"/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EReference" name="abapgitobjects" upperBound="-1"
eType="#//AbapGitObject" containment="true" resolveProxies="false">
eType="#//OverwriteObject" containment="true" resolveProxies="false">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="namespace" value="##targetNamespace"/>
<details key="name" value="abapgitobjects"/>
</eAnnotations>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="AbapGitObject" eSuperTypes="../../com.sap.adt.tools.core.base/model/adtcore.ecore#//AdtObjectReference"/>
<eClassifiers xsi:type="ecore:EClass" name="OverwriteObject" eSuperTypes="../../com.sap.adt.tools.core.base/model/adtcore.ecore#//AdtObjectReference">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="elementOnly"/>
<details key="name" value="overwriteObject"/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="action" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="attribute"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="actionDescription" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="attribute"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
</eClassifiers>
</ecore:EPackage>
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
<genClasses ecoreClass="agitpullmodifiedobjects.ecore#//PackageWarningObjects">
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference agitpullmodifiedobjects.ecore#//PackageWarningObjects/abapgitobjects"/>
</genClasses>
<genClasses ecoreClass="agitpullmodifiedobjects.ecore#//AbapGitObject"/>
<genClasses ecoreClass="agitpullmodifiedobjects.ecore#//OverwriteObject">
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute agitpullmodifiedobjects.ecore#//OverwriteObject/action"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute agitpullmodifiedobjects.ecore#//OverwriteObject/actionDescription"/>
</genClasses>
</genPackages>
</genmodel:GenModel>
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import com.sap.adt.communication.resources.AdtRestResourceFactory;
import com.sap.adt.communication.resources.IRestResource;
import com.sap.adt.communication.resources.UriBuilder;
import com.sap.adt.compatibility.exceptions.OutDatedClientException;
import com.sap.adt.compatibility.filter.AdtCompatibleRestResourceFilterFactory;
import com.sap.adt.compatibility.filter.IAdtCompatibleRestResourceFilter;
import com.sap.adt.tools.core.model.atom.IAtomLink;
Expand Down Expand Up @@ -265,7 +266,7 @@ public URI getURIFromAtomLink(IRepository repository, String relation) {

@Override
public IAbapGitPullModifiedObjects getModifiedObjects(IProgressMonitor monitor, IRepository currRepository,
String user, String password) {
String user, String password) throws OutDatedClientException {
URI uriToModifiedObjects = getURIFromAtomLink(currRepository, IRepositoryService.RELATION_MODIFIED_OBJECTS);

IHeaders headers = null;
Expand Down
Loading

0 comments on commit 908af20

Please sign in to comment.