Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions org.abapgit.adt.backend/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ Bundle-Version: 0.12.3
Bundle-ClassPath: .
Bundle-Localization: plugin
Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.12.0,4.0.0)",
com.sap.adt.compatibility;bundle-version="[2.106.1,3.2.0)",
com.sap.adt.communication;bundle-version="[2.106.1,3.2.0)"
com.sap.adt.compatibility;bundle-version="[2.106.1,4.0.0)",
com.sap.adt.communication;bundle-version="[2.106.1,4.0.0)"
Automatic-Module-Name: org.abapgit.adt.backend
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Bundle-ActivationPolicy: lazy
Expand Down
18 changes: 9 additions & 9 deletions org.abapgit.adt.ui/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ Bundle-Localization: plugin
Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.12.0,4.0.0)",
org.eclipse.core.resources;bundle-version="[3.11.0,4.0.0)",
org.eclipse.jface.text;bundle-version="(3.10.0,4.0.0)",
com.sap.adt.util.ui;bundle-version="[2.106.1,3.2.0)",
com.sap.adt.tools.core.ui;bundle-version="[2.106.1,3.2.0)",
com.sap.adt.tools.core;bundle-version="[2.106.1,3.2.0)",
com.sap.adt.destinations.ui;bundle-version="[2.106.1,3.2.0)",
com.sap.adt.destinations;bundle-version="[2.106.1,3.2.0)",
com.sap.adt.project.ui;bundle-version="[2.106.1,3.2.0)",
com.sap.adt.transport;bundle-version="[2.106.1,3.2.0)",
com.sap.adt.transport.ui;bundle-version="[2.106.1,3.2.0)",
com.sap.adt.util.ui;bundle-version="[2.106.1,4.0.0)",
com.sap.adt.tools.core.ui;bundle-version="[2.106.1,4.0.0)",
com.sap.adt.tools.core;bundle-version="[2.106.1,4.0.0)",
com.sap.adt.destinations.ui;bundle-version="[2.106.1,4.0.0)",
com.sap.adt.destinations;bundle-version="[2.106.1,4.0.0)",
com.sap.adt.project.ui;bundle-version="[2.106.1,4.0.0)",
com.sap.adt.transport;bundle-version="[2.106.1,4.0.0)",
com.sap.adt.transport.ui;bundle-version="[2.106.1,4.0.0)",
org.abapgit.adt.backend;bundle-version="[0.1.0,2.0.0)",
com.sap.adt.communication;bundle-version="[2.106.1,3.2.0)"
com.sap.adt.communication;bundle-version="[2.106.1,4.0.0)"
Automatic-Module-Name: org.abapgit.adt.ui
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Bundle-ActivationPolicy: lazy
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -279,17 +279,10 @@ public void menuAboutToShow(IMenuManager manager) {
Object firstElement = AbapGitView.this.viewer.getStructuredSelection().getFirstElement();
if (firstElement instanceof IRepository) {

//Check if repos are created by current user
String destinationId = getDestination(AbapGitView.this.lastProject);
IProject currProject = AdtProjectServiceFactory.createProjectService().findProject(destinationId);
IAbapProject currAbapProject = currProject.getAdapter(IAbapProject.class);
IDestinationData ProjectDestData = currAbapProject.getDestinationData();

manager.add(AbapGitView.this.actionOpen);
manager.add(AbapGitView.this.actionCopy);

if ((((IRepository) firstElement).getCreatedBy().equalsIgnoreCase(ProjectDestData.getUser()))
&& ((IRepository) firstElement).getLink(IRepositoryService.RELATION_PULL) != null) {
if (((IRepository) firstElement).getLink(IRepositoryService.RELATION_PULL) != null) {

manager.removeAll();
manager.add(AbapGitView.this.actionPullWizard);
Expand All @@ -300,11 +293,7 @@ public void menuAboutToShow(IMenuManager manager) {

manager.add(new Separator());
manager.add(new UnlinkAction(AbapGitView.this.lastProject, (IRepository) firstElement));

}



}
}
}
Expand Down