1 package cz
.cvut
.promod
.services
.projectService
.results
;
4 * ProMod, master thesis project
5 * User: Petr Zverina, petr.zverina@gmail.com
6 * Date: 23:43:20, 8.2.2010
10 * Dialog showing ProMod configuration changes between actual configuration and the one loaded from a project file.
12 public class ConfigurationDifference
{
14 public static enum ChangeType
{
16 * There is referred a notation that does NOT exist in actual configuration of ProMod
17 * Message contains the identifier of the non existing notation.
22 * There is referred a module that does NOT exist in actual configuration of ProMod.
23 * Message contains the identifier of the non existing module.
28 * There is referred a extension that does NOT exist in actual configuration of ProMod.
29 * Message contains the identifier of the non existing extension.
34 * There is an existing notation but has a different full name.
35 * Message contains the full name acquired from the project file.
40 * There is an existing notation but has a different abbreviation.
41 * Message contains the abbreviation acquired from the project file.
43 DIFFERENT_ABBREVIATION
,
46 * There is an existing notation but has a different extension.
47 * Message contains the extension acquired from the project file.
52 private final ChangeType changeType
;
54 private final String message
;
56 private final String identifier
;
59 public ConfigurationDifference(final ChangeType changeType
, final String message
) {
60 this.changeType
= changeType
;
61 this.message
= message
;
63 this.identifier
= null;
66 public ConfigurationDifference(final ChangeType changeType
, final String message
, final String identifier
) {
67 this.changeType
= changeType
;
68 this.message
= message
;
70 this.identifier
= identifier
;
74 * @return the configuration change type
76 public ChangeType
getChangeType() {
81 * @return the configuration change message
83 public String
getMessage() {
88 * @return the plugin identifier
90 public String
getIdentifier() {