Skip to content

Commit

Permalink
stable alpha state
Browse files Browse the repository at this point in the history
  • Loading branch information
pardonmycode committed May 31, 2024
1 parent 217d36e commit 3f39496
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
3 changes: 3 additions & 0 deletions src/abapactionchain/commands/ActionsAfterActivation.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
import abapactionchain.views.View;


import com.sap.adt.activation.ui.PostActivationNotifier ;

@SuppressWarnings("restriction")
public class ActionsAfterActivation implements IActivationSuccessListener {
boolean debug = true;
Expand All @@ -36,6 +38,7 @@ public void onActivationSuccess(List<IAdtObjectReference> adts, IProject arg1) {
if("Run Test with coverage" == btn.getText()) {
runTestWithCoverage();


}

if("Run Test with ATC checks" == btn.getText()) {
Expand Down
15 changes: 11 additions & 4 deletions src/abapactionchain/views/CommandListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,17 @@
import org.eclipse.core.commands.ExecutionException;
import org.eclipse.core.commands.IExecutionListener;
import org.eclipse.core.commands.NotHandledException;

import abapactionchain.commands.ActionsBeforeActivation;

public class CommandListener implements IExecutionListener {



public class CommandListener implements IExecutionListener {
boolean debug = true;
@Override
public void notHandled(String commandId, NotHandledException exception) {
// TODO Auto-generated method stub

}

@Override
Expand All @@ -25,14 +27,19 @@ public void postExecuteFailure(String commandId, ExecutionException exception) {
public void postExecuteSuccess(String commandId, Object returnValue) {


if (debug) {
System.out.println(this.getClass().getSimpleName());
System.out.println( "commandId:" + commandId );
}


switch (commandId) {
case "org.eclipse.ui.file.saveAll": {
}

case "org.eclipse.ui.file.save": {

boolean debug = true;

if (debug) {
System.out.println(this.getClass().getSimpleName());
System.out.println( commandId );
Expand Down

0 comments on commit 3f39496

Please sign in to comment.