Mercurial > projects > dwt-addons
comparison dwtx/core/commands/operations/OperationStatus.d @ 3:6518c18a01f7
eclipse.core package without osgi dependencies
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Wed, 26 Mar 2008 00:57:19 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
2:a012107a911c | 3:6518c18a01f7 |
---|---|
1 /******************************************************************************* | |
2 * Copyright (c) 2005 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 * Port to the D programming language: | |
11 * Frank Benoit <benoit@tionex.de> | |
12 *******************************************************************************/ | |
13 module dwtx.core.commands.operations.OperationStatus; | |
14 | |
15 import dwtx.core.runtime.Status; | |
16 | |
17 import dwt.dwthelper.utils; | |
18 | |
19 /** | |
20 * <p> | |
21 * OperationStatus describes the status of a request to execute, undo, or redo | |
22 * an operation. This class may be instantiated by clients. | |
23 * </p> | |
24 * | |
25 * @since 3.1 | |
26 */ | |
27 public final class OperationStatus : Status { | |
28 /** | |
29 * NOTHING_TO_REDO indicates there was no operation available for redo. | |
30 * | |
31 * (value is 1). | |
32 */ | |
33 public static const int NOTHING_TO_REDO = 1; | |
34 | |
35 /** | |
36 * NOTHING_TO_UNDO indicates there was no operation available for undo. | |
37 * | |
38 * (value is 2). | |
39 */ | |
40 public static const int NOTHING_TO_UNDO = 2; | |
41 | |
42 /** | |
43 * OPERATION_INVALID indicates that the operation available for undo or redo | |
44 * is not in a state to successfully perform the undo or redo. | |
45 * | |
46 * (value is 3). | |
47 */ | |
48 public static const int OPERATION_INVALID = 3; | |
49 | |
50 /** | |
51 * DEFAULT_PLUGIN_ID identifies the default plugin reporting the status. | |
52 * | |
53 * (value is "dwtx.core.commands"). | |
54 */ | |
55 static String DEFAULT_PLUGIN_ID = "dwtx.core.commands"; //$NON-NLS-1$ | |
56 | |
57 /** | |
58 * Creates a new operation status, specifying all properties. | |
59 * | |
60 * @param severity | |
61 * the severity for the status | |
62 * @param pluginId | |
63 * the unique identifier of the relevant plug-in | |
64 * @param code | |
65 * the informational code for the status | |
66 * @param message | |
67 * a human-readable message, localized to the current locale | |
68 * @param exception | |
69 * a low-level exception, or <code>null</code> if not | |
70 * applicable | |
71 */ | |
72 public this(int severity, String pluginId, int code, String message, Exception exception) { | |
73 super(severity, pluginId, code, message, exception); | |
74 } | |
75 } |