public CloudDebugRunConfiguration(Project project, @NotNull ConfigurationFactory factory) { super(project, factory, NAME); CloudDebugProcessWatcher.getInstance().ensureWatcher(); }
@Override protected void tearDown() throws Exception { deleteApplicationServers(); CloudDebugProcessWatcher.getInstance().removeWatcher(); super.tearDown(); } }
@Override public void readExternal(Element element) throws InvalidDataException { super.readExternal(element); Optional.ofNullable(element.getAttribute(PROJECT_NAME_TAG)) .map(Attribute::getValue) .ifPresent(this::setCloudProjectId); Optional.ofNullable(element.getAttribute(GOOGLE_USERNAME_TAG)) .map(Attribute::getValue) .ifPresent(this::setGoogleUsername); // Call out to the state serializer to get process state out of workspace.xml. if (!Strings.isNullOrEmpty(cloudProjectId) && !Strings.isNullOrEmpty(getName())) { processState = CloudDebugProcessStateSerializer.getInstance(getProject()) .getState(getName(), cloudProjectId); } CloudDebugProcessWatcher.getInstance().ensureWatcher(); }