Skip to content

Commit

Permalink
Merge branch 'devel' into CB-5895-add-information-about-obtaining-a-l…
Browse files Browse the repository at this point in the history
…icense
  • Loading branch information
dariamarutkina authored Nov 20, 2024
2 parents 1e5f110 + 4323578 commit 3df6a16
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ private void importData(
processorInstance,
properties);
DatabaseMappingContainer databaseMappingContainer =
new DatabaseMappingContainer(databaseConsumerSettings, producer.getDatabaseObject());
new DatabaseMappingContainer(monitor, databaseConsumerSettings, producer.getDatabaseObject(), consumer.getTargetObject());
databaseMappingContainer.getAttributeMappings(monitor);
databaseMappingContainer.setTarget(dataContainer);
consumer.setContainerMapping(databaseMappingContainer);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

import java.net.URI;
import java.nio.file.Path;
import java.util.List;

public class RMVirtualFileSystem extends AbstractVirtualFileSystem {
@NotNull
Expand Down Expand Up @@ -83,7 +84,7 @@ public Path getPathByURI(@NotNull DBRProgressMonitor monitor, @NotNull URI uri)

@NotNull
@Override
public DBFVirtualFileSystemRoot[] getRootFolders(DBRProgressMonitor monitor) throws DBException {
return new RMVirtualFileSystemRoot[]{new RMVirtualFileSystemRoot(this, rmProject, rmNioFileSystemProvider)};
public List<? extends DBFVirtualFileSystemRoot> getRootFolders(DBRProgressMonitor monitor) throws DBException {
return List.of(new RMVirtualFileSystemRoot(this, rmProject, rmNioFileSystemProvider));
}
}
13 changes: 7 additions & 6 deletions webapp/packages/plugin-connections/src/ConnectionShield.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@ export const ConnectionShield = observer<PropsWithChildren<IConnectionShieldProp
const notificationService = useService(NotificationService);

const connection = useResource(ConnectionShield, ConnectionInfoResource, connectionKey);
const connecting = getComputed(() => connectionKey && connection.resource.isConnecting(connectionKey));
const connecting = getComputed(() => (connectionKey && connection.resource.isConnecting(connectionKey)) || connection.loading);
const isConnectionReady = getComputed(() => !connecting && connection.data?.connected && connection.loaded && !connection.outdated);

async function handleConnect() {
if (connecting || !connection.data || !connectionKey) {
if (isConnectionReady || !connection.data || !connectionKey) {
return;
}

Expand All @@ -37,11 +38,11 @@ export const ConnectionShield = observer<PropsWithChildren<IConnectionShieldProp
}
}

if (getComputed(() => connection.data && !connection.data.connected)) {
if (connecting) {
return <Loader message="ui_processing_connecting" />;
}
if (connecting) {
return <Loader message="ui_processing_connecting" />;
}

if (!isConnectionReady) {
return (
<TextPlaceholder>
<Button type="button" mod={['unelevated']} onClick={handleConnect}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export const ObjectViewerPanel: TabHandlerPanelComponent<IObjectViewerTabState>
tab.handlerState.tabTitle = data.name;
});
},
active: getComputed(() => !!connection.tryGetData?.connected),
active: getComputed(() => !!connection.tryGetData?.connected && !connection.outdated),
});

const pages = dbObjectPagesService.orderedPages;
Expand Down

0 comments on commit 3df6a16

Please sign in to comment.