blob: a738fdca4d64337c18454e7aa46796534c437354 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
/*******************************************************************************
* Copyright (c) 2001, 2008 Oracle Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Oracle Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.jst.jsf.ui.internal.classpath;
import org.eclipse.core.runtime.IStatus;
/**
* Validation event used by JSFLibraryControl to notify containers of updates
* @deprecated
*/
public class JSFLibraryValidationEvent {
private String msg;
private int severity;
/**
* Constructor
* @param msg
* @param severity - IStatus int value
*/
public JSFLibraryValidationEvent(String msg, int severity) {
this.msg = msg;
this.severity = severity;
}
/**
* Constructs event with severity of IStatus.ERROR
* @param msg
*/
public JSFLibraryValidationEvent(String msg) {
this(msg, IStatus.ERROR);
}
/**
* @return validation message
*/
public String getMessage(){
return msg;
}
/**
* @return IStatus int value
*/
public int getSeverity(){
return severity;
}
}
|