Skip to content

Commit

Permalink
Merge pull request pentaho#9292 from abryant-hv/BACKLOG-40197
Browse files Browse the repository at this point in the history
[BACKLOG-40197] - track current Bowl in Spoon
  • Loading branch information
niehusa authored Apr 30, 2024
2 parents befb038 + fad7164 commit 686686f
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 686686f

Please sign in to comment.