Skip to content

Commit

Permalink
Don't share breakpoints between workspaces (eclipse-che#5288)
Browse files Browse the repository at this point in the history
CHE-5288: Don't share breakpoints between workspaces
  • Loading branch information
Anatoliy Bazko committed Jun 8, 2017
1 parent 22de7d5 commit 2c9f78f
Show file tree
Hide file tree
Showing 9 changed files with 411 additions and 222 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
import java.util.Objects;

/**
* Immutable object represents a breakpoint. It isn't designed to be preserved.
* {@link org.eclipse.che.ide.api.debug.dto.StorableBreakpointDto} should be used then.
* Immutable object represents a breakpoint.
*
* @author Evgen Vidolob
* @author Anatoliy Bazko
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
/*******************************************************************************
* Copyright (c) 2012-2017 Codenvy, S.A.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Codenvy, S.A. - initial API and implementation
*******************************************************************************/
package org.eclipse.che.ide.api.debug;

import org.eclipse.che.api.promises.client.Promise;

import java.util.List;

/**
* Preserves and loads breakpoints for the active workspace.
*
* @author Anatolii Bazko
*/
public interface BreakpointStorage {

/**
* Preserves breakpoints into a storage.
*
* @param breakpoints
* the list of the breakpoints
*/
void addAll(List<Breakpoint> breakpoints);

/**
* Preserve a single breakpoints into a storage.
*
* @param breakpoint
* the breakpoint
*/
void add(Breakpoint breakpoint);

/**
* Removes breakpoints out of the storage.
*
* @param breakpoint
* the breakpoint
*/
void delete(Breakpoint breakpoint);


/**
* Removes breakpoints out of the storage.
*
* @param breakpoints
* the list of the breakpoints
*/
void deleteAll(List<Breakpoint> breakpoints);

/**
* Clears storage.
*/
void clear();

/**
* Loads all breakpoints out of the storage.
*
* @return the list of the breakpoints
*/
Promise<List<Breakpoint>> readAll();
}

This file was deleted.

Loading

0 comments on commit 2c9f78f

Please sign in to comment.