diff options
Diffstat (limited to 'bundles/org.eclipse.wst.xsd.ui/src-refactor/org/eclipse/wst/xsd/ui/internal/refactor/Checks.java')
-rw-r--r-- | bundles/org.eclipse.wst.xsd.ui/src-refactor/org/eclipse/wst/xsd/ui/internal/refactor/Checks.java | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/bundles/org.eclipse.wst.xsd.ui/src-refactor/org/eclipse/wst/xsd/ui/internal/refactor/Checks.java b/bundles/org.eclipse.wst.xsd.ui/src-refactor/org/eclipse/wst/xsd/ui/internal/refactor/Checks.java deleted file mode 100644 index bb0280bc6c..0000000000 --- a/bundles/org.eclipse.wst.xsd.ui/src-refactor/org/eclipse/wst/xsd/ui/internal/refactor/Checks.java +++ /dev/null @@ -1,38 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2005, 2006 IBM Corporation and others. - * 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: - * IBM Corporation - initial API and implementation - * - *******************************************************************************/ -package org.eclipse.wst.xsd.ui.internal.refactor; - -import org.eclipse.ltk.core.refactoring.RefactoringStatus; -import org.eclipse.wst.xml.core.internal.provisional.NameValidator; - -public class Checks { - - public static RefactoringStatus checkName(String name) { - RefactoringStatus result= new RefactoringStatus(); - if ("".equals(name)) //$NON-NLS-1$ - return RefactoringStatus.createFatalErrorStatus("RefactoringMessages.Checks_Choose_name"); //$NON-NLS-1$ - return result; - } - - public static boolean isAlreadyNamed(RefactoringComponent element, String name){ - return name.equals(element.getName()); - } - - public static RefactoringStatus checkComponentName(String name) { - RefactoringStatus result= new RefactoringStatus(); - if (!NameValidator.isValid(name)) //$NON-NLS-1$ - return RefactoringStatus.createFatalErrorStatus("RefactoringMessages.Checks_Choose_name"); //$NON-NLS-1$ - - return result; - } - -} |