import java.util.Iterator;
import java.util.StringTokenizer;
+import net.sourceforge.phpdt.internal.ui.util.StringUtil;
+
import org.eclipse.core.resources.IContainer;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IFolder;
import org.eclipse.ui.internal.IHelpContextIds;
import org.eclipse.ui.internal.WorkbenchMessages;
import org.eclipse.ui.internal.WorkbenchPlugin;
-import org.eclipse.ui.internal.misc.ResourceAndContainerGroup;
+import org.eclipse.ui.internal.ide.IDEWorkbenchPlugin;
+import org.eclipse.ui.internal.ide.misc.ResourceAndContainerGroup;
public class XarayaModuleContainerPage extends WizardPage implements Listener {
private static final int SIZING_CONTAINER_GROUP_HEIGHT = 250;
}
protected IFolder createFolderHandle(IPath folderPath) {
- return WorkbenchPlugin.getPluginWorkspace().getRoot().getFolder(folderPath);
+ return IDEWorkbenchPlugin.getPluginWorkspace().getRoot().getFolder(folderPath);
}
public IFolder createNewModuleFolder() {
}
protected IFile createFileHandle(IPath filePath) {
- return WorkbenchPlugin.getPluginWorkspace().getRoot().getFile(filePath);
+ return IDEWorkbenchPlugin.getPluginWorkspace().getRoot().getFile(filePath);
}
public Object[] createNewModuleFiles(){
String insert = (String)inserts.get(i);
String replace = (String)names.get(i);
- buffer = buffer.replaceAll(insert, replace.toLowerCase());
+ buffer = StringUtil.replaceAll(buffer, insert, replace.toLowerCase());
try {
ps = new PipedOutputStream();
is = new PipedInputStream(ps);
protected boolean validatePage() {
boolean valid = true;
String moduleName = new String();
- IWorkspace workspace = WorkbenchPlugin.getPluginWorkspace();
+ IWorkspace workspace = IDEWorkbenchPlugin.getPluginWorkspace();
IStatus nameStatus = null;
String folderName = resourceGroup.getResource();
moduleName = folderName;