KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > internal > ui > IJavaStatusConstants


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.ui;
12
13 import org.eclipse.jdt.internal.ui.javaeditor.saveparticipant.IPostSaveListener;
14
15 /**
16  * Defines status codes relevant to the Java UI plug-in. When a
17  * Core exception is thrown, it contain a status object describing
18  * the cause of the exception. The status objects originating from the
19  * Java UI plug-in use the codes defined in this interface.
20   */

21 public interface IJavaStatusConstants {
22
23     // Java UI status constants start at 10000 to make sure that we don't
24
// collide with resource and java model constants.
25

26     public static final int INTERNAL_ERROR= 10001;
27     
28     /**
29      * Status constant indicating that an exception occurred on
30      * storing or loading templates.
31      */

32     public static final int TEMPLATE_IO_EXCEPTION = 10002;
33
34     /**
35      * Status constant indicating that an validateEdit call has changed the
36      * content of a file on disk.
37      */

38     public static final int VALIDATE_EDIT_CHANGED_CONTENT= 10003;
39     
40     /**
41      * Status constant indicating that a <tt>ChangeAbortException</tt> has been
42      * caught.
43      */

44     public static final int CHANGE_ABORTED= 10004;
45
46     /**
47      * Status constant indicating that an exception occurred while
48      * parsing template file.
49      */

50     public static final int TEMPLATE_PARSE_EXCEPTION = 10005;
51     
52     /**
53      * Status constant indicating that a problem occurred while notifying a post
54      * save listener.
55      *
56      * @see IPostSaveListener
57      * @since 3.3
58      */

59     public static final int EDITOR_POST_SAVE_NOTIFICATION= 10006;
60     
61  }
62
Popular Tags