Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BACKLOG-40197] - track current Bowl in Spoon #9292

Merged
merged 1 commit into from
Apr 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 13 additions & 0 deletions ui/src/main/java/org/pentaho/di/ui/spoon/Spoon.java
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@
import org.pentaho.di.cluster.SlaveServer;
import org.pentaho.di.connections.ConnectionManager;
import org.pentaho.di.core.AddUndoPositionInterface;
import org.pentaho.di.core.bowl.Bowl;
import org.pentaho.di.core.bowl.DefaultBowl;
import org.pentaho.di.core.Const;
import org.pentaho.di.core.DBCache;
import org.pentaho.di.core.EngineMetaInterface;
Expand Down Expand Up @@ -482,6 +484,9 @@ public class Spoon extends ApplicationWindow implements AddUndoPositionInterface

public PropsUI props;

// should never be null
private Bowl bowl = DefaultBowl.getInstance();

public Repository rep;
private String repositoryName;

Expand Down Expand Up @@ -9572,6 +9577,14 @@ public void setMetaStoreSupplier( Supplier<IMetaStore> metaStoreSupplier ) {
this.metaStoreSupplier = metaStoreSupplier;
}

public Bowl getBowl() {
return bowl;
}

public void setBowl( Bowl bowl ) {
this.bowl = Objects.requireNonNull( bowl );
}

private void onLoginError( Throwable t ) {
if ( t instanceof KettleAuthException ) {
ShowMessageDialog dialog =
Expand Down