01: /*******************************************************************************
02: * Copyright (c) 2000, 2006 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.jdt.internal.ui;
11:
12: import org.eclipse.jdt.internal.ui.javaeditor.saveparticipant.IPostSaveListener;
13:
14: /**
15: * Defines status codes relevant to the Java UI plug-in. When a
16: * Core exception is thrown, it contain a status object describing
17: * the cause of the exception. The status objects originating from the
18: * Java UI plug-in use the codes defined in this interface.
19: */
20: public interface IJavaStatusConstants {
21:
22: // Java UI status constants start at 10000 to make sure that we don't
23: // collide with resource and java model constants.
24:
25: public static final int INTERNAL_ERROR = 10001;
26:
27: /**
28: * Status constant indicating that an exception occurred on
29: * storing or loading templates.
30: */
31: public static final int TEMPLATE_IO_EXCEPTION = 10002;
32:
33: /**
34: * Status constant indicating that an validateEdit call has changed the
35: * content of a file on disk.
36: */
37: public static final int VALIDATE_EDIT_CHANGED_CONTENT = 10003;
38:
39: /**
40: * Status constant indicating that a <tt>ChangeAbortException</tt> has been
41: * caught.
42: */
43: public static final int CHANGE_ABORTED = 10004;
44:
45: /**
46: * Status constant indicating that an exception occurred while
47: * parsing template file.
48: */
49: public static final int TEMPLATE_PARSE_EXCEPTION = 10005;
50:
51: /**
52: * Status constant indicating that a problem occurred while notifying a post
53: * save listener.
54: *
55: * @see IPostSaveListener
56: * @since 3.3
57: */
58: public static final int EDITOR_POST_SAVE_NOTIFICATION = 10006;
59:
60: }
|