Skip to main content

This CGIT instance is deprecated, and repositories have been moved to Gitlab or Github. See the repository descriptions for specific locations.

summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
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.java27
1 files changed, 0 insertions, 27 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 92a202725a..0000000000
--- a/bundles/org.eclipse.wst.xsd.ui/src-refactor/org/eclipse/wst/xsd/ui/internal/refactor/Checks.java
+++ /dev/null
@@ -1,27 +0,0 @@
-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");
- 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");
-
- return result;
- }
-
-}

Back to the top