Search in sources :

Example 1 with CutResourceMarker

use of org.eclipse.che.ide.api.resources.modification.CutResourceMarker in project che by eclipse.

the class CopyPasteManager method setResources.

protected void setResources(Resource[] resources, boolean move) {
    if (this.resources != null) {
        for (Resource resource : this.resources) {
            resource.deleteMarker(CutResourceMarker.ID);
        }
    }
    this.resources = resources;
    this.move = move;
    if (move) {
        for (Resource resource : resources) {
            resource.addMarker(new CutResourceMarker());
        }
    }
}
Also used : Resource(org.eclipse.che.ide.api.resources.Resource) CutResourceMarker(org.eclipse.che.ide.api.resources.modification.CutResourceMarker)

Aggregations

Resource (org.eclipse.che.ide.api.resources.Resource)1 CutResourceMarker (org.eclipse.che.ide.api.resources.modification.CutResourceMarker)1