1 11 12 package org.eclipse.ui.ide.undo; 13 14 import java.net.URI ; 15 16 import org.eclipse.core.resources.IFolder; 17 import org.eclipse.ui.internal.ide.undo.ContainerDescription; 18 19 33 public class CreateFolderOperation extends AbstractCreateResourcesOperation { 34 35 45 public CreateFolderOperation(IFolder folderHandle, URI linkLocation, 46 String label) { 47 super(null, label); 48 ContainerDescription containerDescription = ContainerDescription 49 .fromContainer(folderHandle); 50 if (linkLocation != null) { 51 containerDescription.getFirstLeafFolder().setLocation(linkLocation); 52 } 53 setResourceDescriptions(new ResourceDescription[] { containerDescription }); 54 } 55 } 56 | Popular Tags |