Source:
public void initializeFrom(ILaunchConfiguration configuration) { IDockerConnection[] connections = DockerConnectionManager.getInstance() .getConnections(); try { String connectionName = configuration.getAttribute( IRunDockerImageLaunchConfigurationConstants.CONNECTION_NAME, connections[0].getName()); connectionSelectionCombo.setText(connectionName); model.setSelectedConnectionName(connectionName); String imageName = configuration.getAttribute( IRunDockerImageLaunchConfigurationConstants.IMAGE_NAME, ""); imageSelectionCombo.setText(imageName); model.setSelectedImageName(imageName); String command = configuration.getAttribute( IRunDockerImageLaunchConfigurationConstants.COMMAND, ""); commandText.setText(command); model.setCommand(command); String entryPoint = configuration.getAttribute( IRunDockerImageLaunchConfigurationConstants.ENTRYPOINT, ""); entrypointText.setText(entryPoint); model.setEntrypoint(entryPoint); String containerName = configuration.getAttribute( IRunDockerImageLaunchConfigurationConstants.CONTAINER_NAME, ""); containerNameText.setText(containerName); model.setContainerName(containerName); boolean removeContainer = configuration.getAttribute( IRunDockerImageLaunchConfigurationConstants.AUTO_REMOVE, false); removeWhenExitsButton.setSelection(removeContainer); model.setRemoveWhenExits(removeContainer); boolean interactive = configuration.getAttribute( IRunDockerImageLaunchConfigurationConstants.INTERACTIVE, false); interactiveButton.setSelection(interactive); model.setInteractiveMode(interactive); boolean useTTY = configuration.getAttribute( IRunDockerImageLaunchConfigurationConstants.ALLOCATE_PSEUDO_CONSOLE, false); allocatePseudoTTY.setSelection(useTTY); model.setAllocatePseudoTTY(useTTY); } catch (CoreException e) { e.printStackTrace(); } }

Target:
public void initializeFrom(ILaunchConfiguration configuration) { final IDockerConnection[] connections = DockerConnectionManager .getInstance() .getConnections(); try { String connectionName = configuration.getAttribute( IRunDockerImageLaunchConfigurationConstants.CONNECTION_NAME, connections[0].getName()); model.setSelectedConnectionName(connectionName); String imageName = configuration.getAttribute( IRunDockerImageLaunchConfigurationConstants.IMAGE_NAME, ""); model.setSelectedImageName(imageName); String command = configuration.getAttribute( IRunDockerImageLaunchConfigurationConstants.COMMAND, ""); model.setCommand(command); String entryPoint = configuration.getAttribute( IRunDockerImageLaunchConfigurationConstants.ENTRYPOINT, ""); model.setEntrypoint(entryPoint); String containerName = configuration.getAttribute( IRunDockerImageLaunchConfigurationConstants.CONTAINER_NAME, ""); model.setContainerName(containerName); boolean removeContainer = configuration.getAttribute( IRunDockerImageLaunchConfigurationConstants.AUTO_REMOVE, false); model.setRemoveWhenExits(removeContainer); boolean interactive = configuration.getAttribute( IRunDockerImageLaunchConfigurationConstants.INTERACTIVE, false); model.setInteractiveMode(interactive); boolean useTTY = configuration.getAttribute( IRunDockerImageLaunchConfigurationConstants.ALLOCATE_PSEUDO_CONSOLE, false); model.setAllocatePseudoTTY(useTTY); } catch (CoreException e) { Activator.logErrorMessage( LaunchMessages.getString( "RunDockerImageLaunchConfiguration.load.failure"), e); } model.addPropertyChangeListener( new LaunchConfigurationChangeListener()); }