Skip to content

Commit

Permalink
[BACKLOG-39531] - Move of RunInBackgroundCommand to scheduler-plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
wseyler committed Jan 18, 2024
1 parent ce70d7c commit 85be8e4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public void execute() {
} else if ( mode == COMMAND.CREATE_FOLDER ) {
new NewFolderCommand( fileSummary ).execute();
} else if ( mode == COMMAND.BACKGROUND ) {
executeRunInBackground( selectedItem.getRepositoryFile(), true);
executeRunInBackground( selectedItem.getRepositoryFile().getPath(), true);
} else if ( mode == COMMAND.SCHEDULE_NEW ) {
createSchedule( selectedItem.getRepositoryFile() );
} else if ( mode == COMMAND.SHARE ) {
Expand Down Expand Up @@ -119,12 +119,7 @@ private native void createSchedule( final String repositoryFileId, final String
$wnd.pho.createSchedule( repositoryFileId, repositoryFilePath );
}-*/;


private void executeRunInBackground( final RepositoryFile repositoryFile, final boolean feedback ) {
executeRunInBackground( repositoryFile.getId(), repositoryFile.getPath(), feedback );
}

private native void executeRunInBackground( final String repositoryFileId, final String repositoryFilePath, final boolean feedback )/*-{
$wnd.pho.executeRunInBackground( repositoryFileId, repositoryFilePath, feedback );
private native void executeRunInBackground( final String repositoryFilePath, final boolean feedback )/*-{
$wnd.mantle_runInBackgroundCommand_performOperation( repositoryFilePath, feedback );
}-*/;
}
Original file line number Diff line number Diff line change
Expand Up @@ -556,10 +556,13 @@ private native void registerFunctions( PerspectiveManager manager )
[email protected]::setPerspective(Ljava/lang/String;)(perspectiveId);
}
$wnd.mantle_getActivePerspectiveId = function() {
[email protected]::getActivePerspective()::getId();
return [email protected]::getActivePerspectiveID();
}
}-*/;

public String getActivePerspectiveID() {
return getActivePerspective().getId();
}
private JsArrayString getPerspectives() {
JsArrayString stringArray = getJsArrayString();
for ( IPluginPerspective perspective : perspectives ) {
Expand Down

0 comments on commit 85be8e4

Please sign in to comment.