Skip to content

Commit

Permalink
[BACKLOG-40197] - track current Bowl in Spoon
Browse files Browse the repository at this point in the history
  • Loading branch information
abryant-hv committed Apr 26, 2024
1 parent 7852de2 commit fad7164
Showing 1 changed file with 13 additions and 0 deletions.
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

0 comments on commit fad7164

Please sign in to comment.