content: package ts.eclipse.ide.terminal.interpreter.internal.commands;
  
  import org.eclipse.core.resources.IContainer;
  import org.eclipse.core.resources.ResourcesPlugin;
  import org.eclipse.core.runtime.Path;
  import org.eclipse.ui.progress.UIJob;
  
  import ts.eclipse.ide.terminal.interpreter.AbstractCommandInterpreter;
  import ts.eclipse.ide.terminal.interpreter.internal.jobs.RefreshContainerJob;
  
  public class DelCommandInterpreter extends AbstractCommandInterpreter {
  
  	private final String path;
  
  	public DelCommandInterpreter(String path, String workingDir) {
  		super(workingDir);
  		this.path = path;
  	}
  
  	@Override
  	public void execute(String newWorkingDir) {
  		final IContainer[] c = ResourcesPlugin.getWorkspace().getRoot()
  				.findContainersForLocation(new Path(getWorkingDir()).append(path).removeLastSegments(1));
  		if (c != null && c.length > 0) {
  			for (int i = 0; i < c.length; i++) {
  				UIJob job = new RefreshContainerJob(c[i], true);
  				job.schedule();
  			}
  		}
  	}
  
  	@Override
  	public void onTrace(String line) {
  		// Do nothing
  	}
  
  }
  