KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > internal > codeassist > complete > InvalidCursorLocation


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.jdt.internal.codeassist.complete;
12
13 /**
14  * Thrown whenever cursor location is not inside a consistent token
15  * for example: inside a string, number, unicode, comments etc...
16  */

17 public class InvalidCursorLocation extends RuntimeException JavaDoc {
18
19     public String JavaDoc irritant;
20
21     /* Possible irritants */
22     public static final String JavaDoc NO_COMPLETION_INSIDE_UNICODE = "No Completion Inside Unicode"; //$NON-NLS-1$
23
public static final String JavaDoc NO_COMPLETION_INSIDE_COMMENT = "No Completion Inside Comment"; //$NON-NLS-1$
24
public static final String JavaDoc NO_COMPLETION_INSIDE_STRING = "No Completion Inside String"; //$NON-NLS-1$
25
public static final String JavaDoc NO_COMPLETION_INSIDE_NUMBER = "No Completion Inside Number"; //$NON-NLS-1$
26

27     private static final long serialVersionUID = -3443160725735779590L; // backward compatible
28

29 public InvalidCursorLocation(String JavaDoc irritant){
30     this.irritant = irritant;
31 }
32 }
33
Popular Tags