]>
Commit | Line | Data |
---|---|---|
1b2798f6 EK |
1 | /******************************************************************************* |
2 | * Copyright (c) 2000, 2008 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.CompilationUnitDocumentProvider; | |
14 | import org.eclipse.jdt.internal.ui.javaeditor.EditorUtility; | |
15 | import org.eclipse.jdt.internal.ui.javaeditor.saveparticipant.IPostSaveListener; | |
16 | ||
17 | /** | |
18 | * Defines status codes relevant to the Java UI plug-in. When a | |
19 | * Core exception is thrown, it contain a status object describing | |
20 | * the cause of the exception. The status objects originating from the | |
21 | * Java UI plug-in use the codes defined in this interface. | |
22 | */ | |
23 | public interface IJavaStatusConstants { | |
24 | ||
25 | // Java UI status constants start at 10000 to make sure that we don't | |
26 | // collide with resource and java model constants. | |
27 | ||
28 | public static final int INTERNAL_ERROR= 10001; | |
29 | ||
30 | /** | |
31 | * Status constant indicating that an exception occurred on | |
32 | * storing or loading templates. | |
33 | */ | |
34 | public static final int TEMPLATE_IO_EXCEPTION = 10002; | |
35 | ||
36 | /** | |
37 | * Status constant indicating that an validateEdit call has changed the | |
38 | * content of a file on disk. | |
39 | */ | |
40 | public static final int VALIDATE_EDIT_CHANGED_CONTENT= 10003; | |
41 | ||
42 | /** | |
43 | * Status constant indicating that a <tt>ChangeAbortException</tt> has been | |
44 | * caught. | |
45 | */ | |
46 | public static final int CHANGE_ABORTED= 10004; | |
47 | ||
48 | /** | |
49 | * Status constant indicating that an exception occurred while | |
50 | * parsing template file. | |
51 | */ | |
52 | public static final int TEMPLATE_PARSE_EXCEPTION = 10005; | |
53 | ||
54 | /** | |
55 | * Status constant indicating that a problem occurred while notifying a post | |
56 | * save listener. | |
57 | * | |
58 | * @see IPostSaveListener | |
59 | * @since 3.3 | |
60 | */ | |
61 | public static final int EDITOR_POST_SAVE_NOTIFICATION= 10006; | |
62 | ||
63 | /** | |
64 | * Status constant indication that a problem occurred while calculating | |
65 | * the changed region during a save. | |
66 | * | |
67 | * @see CompilationUnitDocumentProvider | |
68 | * @since 3.4 | |
69 | */ | |
70 | public static final int EDITOR_CHANGED_REGION_CALCULATION= 10007; | |
71 | ||
72 | /** | |
73 | * Status constant indication that a problem occurred while opening an editor: | |
74 | * no editor input could be created. See {@link EditorUtility#openInEditor(Object, boolean)}. | |
75 | * @since 3.4 | |
76 | */ | |
77 | public static final int EDITOR_NO_EDITOR_INPUT= 10008; | |
78 | ||
79 | } |