diff options
Diffstat (limited to 'tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/ui/old/ArgumentParser.java')
-rw-r--r-- | tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/ui/old/ArgumentParser.java | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/ui/old/ArgumentParser.java b/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/ui/old/ArgumentParser.java deleted file mode 100644 index f206dbed4..000000000 --- a/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/ui/old/ArgumentParser.java +++ /dev/null @@ -1,49 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2003 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Common Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/cpl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.team.tests.ccvs.ui.old; - - -public class ArgumentParser { - protected ArgumentParser() { - } - - public boolean parse(String[] args) { - int index = 0; - String option = null; - for (int i = 0; i < args.length; i++) { - String arg = args[i]; - if (arg == null) continue; - if (arg.charAt(0) == '-') { - if (option != null && ! handleOption(option, null)) return false; - option = arg; - } else if (option != null) { - if (! handleOption(option, arg)) return false; - option = null; - } else { - if (! handleArgument(index++, arg)) return false; - } - } - if (option != null && ! handleOption(option, null)) return false; - return handleFinished(); - } - - protected boolean handleFinished() { - return true; - } - - protected boolean handleArgument(int index, String arg) { - return false; - } - - protected boolean handleOption(String option, String arg) { - return false; - } -} |